free-posix: New module, renamed from 'free'.
[gnulib.git] / ChangeLog
blob049f71958019e58d15ddca49d5b0120b93672211
1 2020-12-18  Bruno Haible  <bruno@clisp.org>
3         free-posix: New module, renamed from 'free'.
4         * modules/free-posix: Renamed from modules/free.
5         (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
6         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
7         not GNULIB_FREE.
8         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
9         GNULIB_FREE.
10         * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
11         * doc/posix-functions/free.texi: Mention the module 'free-posix' and
12         what it does.
13         * NEWS: Mention that module 'free' no longer exists.
14         * modules/canonicalize (Depends-on): Add free-posix. Remove free.
15         * modules/canonicalize-lgpl (Depends-on): Likewise.
17 2020-12-18  Bruno Haible  <bruno@clisp.org>
19         free: Remove support for obsolete platforms.
20         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works. Don't define
21         CANNOT_FREE_NULL.
22         * lib/free.c (rpl_free): Don't test CANNOT_FREE_NULL.
23         * modules/free (Description): Update.
24         * doc/posix-functions/free.texi: Don't mention SunOS 4 any more.
26 2020-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28         intprops: port to ICC 2021.1 Beta 20201112
29         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P):
30         Port to ICC 2021.1, which has a non-working __builtin_mul_overflow_p.
31         Add a clause for other compilers that claim to support
32         __builtin_mul_overflow_p, since we might as well find out about
33         slackers other than Clang and ICC.
34         (INT_MULTIPLY_WRAPV): ICC 2021 has GCC bug 91450, so treat it
35         like older GCCs even when it claims to be a newer one.
37 2020-12-18  Bruno Haible  <bruno@clisp.org>
39         intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
40         Reported by Stefan Liebler <stli@linux.ibm.com> in
41         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.
42         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
43         GCC 5.x and 6.x.
44         * lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
45         GCC 5.x and 6.x.
47 2020-12-17  Bruno Haible  <bruno@clisp.org>
49         free: Fix warning.
50         Reported by Pádraig Brady <P@draigBrady.com> in
51         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.
52         * lib/stdlib.in.h (free): New declaration.
53         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
54         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
55         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
56         * m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
57         'free' as a macro here.
58         * modules/free (Depends-on): Add stdlib.
59         (configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
61 2020-12-17  Paul Eggert  <eggert@cs.ucla.edu>
63         canonicalize-lgpl: fix AIX test failures
64         This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
65         Problem reported by Bruno Haible in:
66         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
67         * lib/canonicalize-lgpl.c: Include sys/stat.h.
68         (__realpath): When testing a file name ending in '/', use stat
69         rather than readlink, so that it does the right thing on AIX.
70         * modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
72         canonicalize: omit second readlink when not needed
73         * lib/canonicalize.c (canonicalize_filename_mode_stk):
74         Omit second readlink when (can_exist != CAN_MISSING
75         && startlen != 0 && !logical).  Simplify.
77         canonicalize: remove arbitrary 8192-byte limit
78         Remove canonicalize.c’s arbitrary 8192-byte limit on platforms
79         like GNU Hurd that do not define the PATH_MAX macro, and similarly
80         for canonicalize-lgpl.c’s arbitrary 1024-byte limit.  Do this by
81         using scratch buffers.  Lessen the number of differences between
82         the two source files, to simplify this and future maintenance.
83         * lib/canonicalize-lgpl.c (__realpath):
84         * lib/canonicalize.c (canonicalize_filename_mode_stk):
85         Use scratch buffers instead of malloc and malloca.  This avoids
86         the need for alloca, and avoids the need for malloc in most cases.
87         * lib/canonicalize-lgpl.c, lib/canonicalize.c: Make these files
88         easier to compare, e.g., by sorting include files and by switching
89         to the GNU convention of calling file names "file names", not
90         "path names".  Include stdbool.h, scratch_buffer.h.
91         * lib/canonicalize-lgpl.c (IDX_MAX) [_LIBC]: New macro.
92         (malloca) [_LIBC]: Remove.
93         [!_LIBC]: Do not include malloca.h.
94         (get_path_max): New function, so that pathconf is called only in
95         the rare and dubious case when when RESOLVED is not null and
96         PATH_MAX is not defined.  Invoke pathconf on "/" not the input
97         file name, as we care about the longest file name starting from
98         "/" (not from the input file name), and POSIX does not specify
99         what pathconf does on a non-directory file anyway.  If PATH_MAX is
100         not defined, do not worry about overriding a path_max of 0, and do
101         not let path_max exceed IDX_MAX.
102         (__realpath): Remove an assumption that file name components
103         cannot exceed 1024 bytes when PATH_MAX is not defined (wrong for
104         the Hurd, presumably).
105         When allocating the result, allocate it to just the right size;
106         this costs nothing when the result is smaller than 1023 bytes,
107         and for larger results it's probably worth the CPU to call realloc,
108         as canonicalize.c already does.
109         * lib/canonicalize.c: Include attribute.h.
110         Do not include pathmax.h or xgetcwd.h.
111         (PATH_MAX): Do not define, so file names longer than 8192 bytes
112         work on platforms with no fixed limit.
113         (canonicalize_filename_mode_stk): New function, with
114         the content of the old canonicalize_filename_mode.
115         Use getcwd instead of xgetcwd, and readlink instead of areadlink,
116         since the scratch buffers now do memory management for us.
117         Use rawmemchr instead of adding strlen.
118         Use mempcpy instead of mempcpy + size.
119         Assume free preserves errno.
120         (canonicalize_filename_mode): Use it.
121         * modules/canonicalize (Depends-on): Remove areadlink, pathmax,
122         xgetcwd.  Add attribute, free, getcwd, mempcpy, rawmemchr,
123         scratch_buffer, stdbool, xalloc-die.
124         * modules/canonicalize-lgpl (Depends-on): Remove alloca-opt,
125         malloca, realloc-posix.  Add scratch_buffer, stdbool.
127         canonicalize-lgpl: simplify merge to glibc
128         This patch lessens the differences between git glibc
129         stdlib/canonicalize.c and lib/canonicalize-lgpl.c.
130         The (perhaps wishful) goal is to make them identical.
131         * lib/canonicalize-lgpl.c [!_LIBC]:
132         Include <libc-config.h>, not config.h.
133         Omit an unnecessary (!HAVE_CANONICALIZE_FILE_NAME ||
134         !FUNC_REALPATH_WORKS || defined _LIBC) #if.
135         Do not include alloca.h, since we use malloca now.
136         [_LIBC]: Include <eloop-threshold.h>, and define dummy macros
137         FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME, ISSLASH, malloca,
138         freea so that the mainline code can be kept #ifdef free.
139         [!_LIBC]: Remove dummy macros for SHLIB_COMPAT, versioned_symbol,
140         compat_symbol, weak_alias, __set_errno since libc-config.h does that.
141         Add redirecting macros __mempcpy, __pathconf, __rawmemchr,
142         __eloop_threshold.  All uses of their definiens changed.
143         (SIZE_MAX): Remove; no longer needed.
144         (alloc_failed): Remove, and remove all instances.
145         No need for alloc_failed now that free preserves errno.
146         (__realpath): Default path_max to 1024 instead of 8192, as that’s
147         the glibc tradition and is safer when the 2nd argument is null.
148         Use __rawmemchr instead of strchr.
149         Use __mempcpy where appropriate.
150         Simplify test for overflow so that it does not need SIZE_MAX.
151         Do not preserve errno around free or freea calls; no longer needed.
152         Mark __realpath with libc_hidden_def.
153         * modules/canonicalize-lgpl (Depends-on): Add free, libc-config,
154         malloc-posix, mempcpy, realloc-posix, rawmemchr.
155         * modules/free: Now LGPLv2+, for canonicalize-lgpl.
157         free: preserve errno
158         * lib/free.c (rpl_free): Preserve errno.  Check for null only if
159         CANNOT_FREE_NULL is defined, as an optimization for POSIX 2008
160         platforms that do not preserve errno.
161         * m4/free.m4 (gl_FUNC_FREE): Check whether free preserves errno.
162         Also, define CANNOT_FREE_NULL if free cannot free NULL.
163         * modules/free (configure.ac): Also replace 'free' if
164         it does not preserve errno.
166         idx: simplify IDX_MAX, remove IDX_WIDTH
167         * lib/idx.h (IDX_MAX): Simplify by removing obsolete reference
168         to UNSIGNED_IDX_T.
169         (IDX_WIDTH): Remove, since it’s not used and its value
170         arguably should be PTRDIFF_WIDTH anyway.
172 2020-12-16  Bruno Haible  <bruno@clisp.org>
174         posix_spawn_file_actions_addfchdir-tests: Rename test.
175         * tests/test-posix_spawn-fchdir.c: Renamed from
176         tests/test-posix_spawn5.c.
177         * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am):
178         Update.
180         posix_spawn_file_actions_addchdir-tests: Rename test.
181         * tests/test-posix_spawn-chdir.c: Renamed from
182         tests/test-posix_spawn4.c.
183         * modules/posix_spawn_file_actions_addchdir-tests (Files, Makefile.am):
184         Update.
186         posix_spawn-tests: Rename test.
187         * tests/test-posix_spawn-open1.c: Renamed from
188         tests/test-posix_spawn3.c.
189         * modules/posix_spawn-tests (Files, Makefile.am): Update.
191         posix_spawnp-tests: Rename test.
192         * tests/test-posix_spawn-dup2-stdin.c: Renamed from
193         tests/test-posix_spawn2.c.
194         * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from
195         tests/test-posix_spawn2.in.sh.
196         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
198         posix_spawnp-tests: Rename test.
199         * tests/test-posix_spawn-dup2-stdout.c: Renamed from
200         tests/test-posix_spawn1.c.
201         * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from
202         tests/test-posix_spawn1.in.sh.
203         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
205 2020-12-14  Bruno Haible  <bruno@clisp.org>
207         findprog-in: Allow overriding the current directory.
208         * lib/findprog.h (find_in_given_path): Add directory argument.
209         * lib/findprog-in.c (find_in_given_path): Likewise.
210         * lib/execute.c (execute): Update caller.
211         * lib/spawn-pipe.c (create_pipe): Likewise.
212         * lib/windows-spawn.c (spawnpvech): Likewise.
213         * NEWS: Mention the change.
215 2020-12-14  Bruno Haible  <bruno@clisp.org>
217         posix_spawn-internal: Make better use of 'const'.
218         * lib/spawn_int.h (__spawni): Does not need write access to the elements
219         of argv and envp.
220         * lib/spawni.c (__spawni, script_execute): Likewise.
221         * lib/spawn.c (posix_spawn): Update caller.
222         * lib/spawnp.c (posix_spawnp): Likewise.
224 2020-12-14  Bruno Haible  <bruno@clisp.org>
226         spawn: Make it compile on native Windows.
227         * modules/spawn (Depends-on): Add signal-h.
229 2020-12-14  Bruno Haible  <bruno@clisp.org>
231         windows-spawn: Avoid shadowing a variable.
232         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
234 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
236         string: port memchr macro to AIX 7.2 XLC
237         Its <string.h> defines a memchr macro to help inlining.
238         * lib/string.in.h (memchr): #undef before #defining.
240         canonicalize: fix AIX test failures
241         Problem reported by Bruno Haible in:
242         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
243         * lib/canonicalize.c (canonicalize_filename_mode):
244         When testing a file name ending in '/', use stat rather than
245         readlink, so that it does the right thing on AIX.
246         * modules/canonicalize (Depends-on): Add readlink, to pull in the
247         recent changes in the Gnulib readlink module.
249         Assume readlink/readlinkat ERANGE fix
250         * lib/areadlink-with-size.c (areadlink_with_size):
251         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
252         * lib/careadlinkat.c (readlink_stk):
253         Do not worry about readlink or readlinkat failing with errno == ERANGE,
254         since the Gnulib readlink and readlinkat modules now fix that.
256         getcwd: port to AIX
257         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
258         in case our sys/stat.h #defined a function macro with the same name.
260         readlink, readlinkat: add ERANGE portability
261         Fix some portability issues with Gnulib's readlink and readlinkat,
262         notably mostly working around the ERANGE problem in AIX and HP-UX.
263         * doc/posix-functions/readlink.texi:
264         * doc/posix-functions/readlinkat.texi:
265         ERANGE problem is mostly fixed now.  Mention AIX problem with
266         trailing / and EINVAL.  Lessen differences between these two files.
267         * lib/readlink.c (rpl_readlink):
268         * lib/readlinkat.c (rpl_readlinkat):
269         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
270         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
271         Lessen spurious differences between the readlink and readlinkat code.
272         * lib/readlinkat.c (rpl_readlinkat):
273         Fix bug where stat was used where fstatat was intended.
274         * m4/readlink.m4 (gl_FUNC_READLINK):
275         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
276         to identify readlink problems more precisely.  All uses changed.
277         Guess no on AIX or HP-UX for this variable.
278         Add check for whether readlink truncates results,
279         and define new macro READLINK_TRUCATE_BUG accordingly.
280         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
281         Also check gl_cv_func_readlink_trailing_slash when deciding
282         whether to replace readlinkat.
283         * modules/readlinkat (Depends-on): Most dependencies are also
284         needed if replacing readlinkat.  fstatat is different, as it
285         is needed only if replacing an existing readlinkat.
287 2020-12-13  Bruno Haible  <bruno@clisp.org>
289         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
290         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
291         the stdin_handle and/or stdout_handle.
293 2020-12-12  Bruno Haible  <bruno@clisp.org>
295         Fix gnulib-tool error when some modules occur in tests/.
296         * doc/gnulib.texi (Specification): Update statistics.
297         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
298         (Using AC_LIBOBJ): New section.
299         * check-AC_LIBOBJ: New file.
300         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
301         * modules/fopen-gnu (Files): Add lib/fopen.c.
302         * modules/memmem (Files): Add lib/memmem.c.
303         * modules/renameat (Files): Add lib/at-func2.c.
304         * modules/strcasestr (Files): Add lib/strcasestr.c.
305         * modules/strstr (Files): Add lib/strstr.c.
307 2020-12-11  Bruno Haible  <bruno@clisp.org>
309         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
310         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
311         elements of argv.
312         * lib/sh-quote.c (shell_quote_argv): Likewise.
313         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
314         the return type.
315         * lib/windows-spawn.c (prepare_spawn): Likewise.
316         * lib/os2-spawn.h (prepare_spawn): Likewise.
317         * lib/os2-spawn.c (prepare_spawn): Likewise.
318         * lib/execute.h (execute): Does not need write access to the elements of
319         prog_argv.
320         * lib/execute.c (execute): Likewise.
321         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
322         Likewise.
323         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
324         create_pipe_out): Likewise.
325         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
326         Likewise.
327         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
328         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
329         * lib/javaexec.h (execute_fn): Does not need write access to the
330         elements of prog_argv.
331         * lib/javaexec.c (execute_java_class): Update variable types and remove
332         casts to 'char *'.
333         * lib/csharpexec.h (execute_fn): Does not need write access to the
334         elements of prog_argv.
335         * lib/csharpexec.c (execute_csharp_using_mono,
336         execute_csharp_using_sscli): Update variable types and remove casts to
337         'char *'.
338         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
339         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
340         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
341         is_jikes_present): Update variable types and remove casts to 'char *'.
342         * lib/javaversion.c (execute_and_read_line): Does not need write access
343         to the elements of prog_argv.
344         * lib/csharpcomp.c (compile_csharp_using_mono,
345         compile_csharp_using_sscli): Update variable types and remove casts to
346         'char *'.
347         * tests/test-sh-quote.c (main): Update variable types and remove casts
348         to 'char *'.
349         * tests/test-execute-main.c (main): Update variable types and remove
350         casts to 'char *'.
351         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
352         remove casts to 'char *'.
353         * NEWS: Mention the changes.
355 2020-12-11  Bruno Haible  <bruno@clisp.org>
357         execute-tests: Fix compilation error with MSVC.
358         * tests/test-execute-child.c (is_device): With _fstat, use
359         'struct _stat', not 'struct stat'.
361 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
363         vararrays: just use 2.70
364         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
365         and later, since Autoconf 2.70 matches Gnulib now.
367         sys_types: just use 2.70
368         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
369         Reindent to match Autoconf sources.
370         Use Autoconf 2.70 as a prerequisite, not 2.69c.
372         stdint: port to Autoconf 2.70
373         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
374         instead of assuming that AC_INCLUDES_DEFAULT does it.
375         The old code relied on AC_INCLUDES_DEFAULT being called
376         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
377         but this does not occur in Autoconf 2.70.
379         pid_t.m4: just use 2.70
380         * m4/pid_t.m4 (AC_TYPE_PID_T):
381         Use Autoconf 2.70 as a prerequisite, not 2.69c.
383         largefile: just use 2.70
384         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
385         Use Autoconf 2.70 as a prerequisite, not 2.69c.
387         AC_C_RESTRICT: update from Autoconf
388         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
389         as a prerequisite, not 2.69c, since 2.70 is now out.
390         (AC_C_RESTRICT): Define only for 2.70 or earlier.
391         Try __restrict__ before __restrict.
393         extensions: update from Autoconf
394         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
395         Provide a default implementation for Autoconf 2.69 or earlier.
396         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
397         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
399         alloca: update from Autoconf
400         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
401         Trivial update to match Autoconf 2.70.
403 2020-12-11  Bruno Haible  <bruno@clisp.org>
405         memchr: Work around memory overrun bug on AIX 7.2.
406         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
407         * doc/posix-functions/memchr.texi: Mention the AIX bug.
409 2020-12-11  Bruno Haible  <bruno@clisp.org>
411         execute-tests: Fix compilation error on AIX in 32-bit mode.
412         * tests/test-execute-child.c: In order to get the original definition of
413         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
414         include the system's <sys/stat.h> and use it before including other
415         header files.
417 2020-12-10  Bruno Haible  <bruno@clisp.org>
419         windows-spawn: Relicense under LGPLv2+.
420         * modules/windows-spawn (License): Change to LGPLv2+.
422 2020-12-10  Bruno Haible  <bruno@clisp.org>
424         execute, spawn-pipe: Fix memory leak on native Windows.
425         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
426         * lib/windows-spawn.c: Don't include xalloc.h.
427         (quoted_arg_length, quoted_arg_string): New functions, extracted from
428         prepare_spawn.
429         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
430         elements of *new_argv together.
431         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
432         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
433         * lib/os2-spawn.c: Don't include xalloc.h.
434         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
435         elements of *new_argv together.
436         * lib/execute.c: Include xalloc.h.
437         (execute): Check return value of prepare_spawn. Free the memory
438         allocated by prepare_spawn.
439         * modules/execute (Depends-on): Add xalloc-die.
440         * lib/spawn-pipe.c: Include xalloc.h.
441         (create_pipe): Check return value of prepare_spawn. Free the memory
442         allocated by prepare_spawn.
443         * modules/spawn-pipe (Depends-on): Add xalloc-die.
445 2020-12-10  Bruno Haible  <bruno@clisp.org>
447         findprog-in: Relicense under LGPLv2+.
448         Paul Smith's approval is in
449         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
450         * modules/findprog-in (License): Change to LGPLv2+.
452 2020-12-10  Bruno Haible  <bruno@clisp.org>
454         findprog-in: Don't exit upon out-of-memory.
455         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
456         code.
457         * lib/findprog-in.c: Don't include xalloc.h.
458         (find_in_given_path): Call concatenated_filename, not
459         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
460         return NULL with errno set.
461         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
462         concat-filename, strdup-posix, malloc-posix.
464 2020-12-09  Bruno Haible  <bruno@clisp.org>
466         fmaf: Work around a bug on FreeBSD 12.2/arm.
467         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
468         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
470 2020-12-09  Bruno Haible  <bruno@clisp.org>
472         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
473         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
474         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
475         * lib/glthread/threadlib.c: Include <errno.h>.
476         (glthread_in_use): For FreeBSD, provide an alternative implementation
477         that uses pthread_key_create.
479 2020-12-09  Bruno Haible  <bruno@clisp.org>
481         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
482         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
483         not 'isnan'.
485 2020-12-08  Bruno Haible  <bruno@clisp.org>
487         std-gnu11: Make compatible with Autoconf 2.70.
488         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
489         use.
491 2020-12-08  Bruno Haible  <bruno@clisp.org>
493         argp: Avoid undefined behaviour when invoking qsort().
494         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
495         Reported by Jeffrey Walton <noloader@gmail.com> in
496         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
497         * lib/argp-help.c (group_cmp): Remove third argument.
498         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
499         upon hol_cluster_cmp.
500         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
501         (hol_entry_cmp): Rewritten to implement a total order.
503 2020-12-08  Bruno Haible  <bruno@clisp.org>
505         argp: Improve comments.
506         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
507         null pointer.
508         (struct hol_entry): Fix comment regarding sort order of group.
509         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
510         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
511         (hol_cluster_is_child, argp_hol): Move functions.
512         (HOL_ENTRY_PTRCMP): Remove unused macro.
514 2020-12-08  Bruno Haible  <bruno@clisp.org>
516         argp: Don't pass invalid arguments to isspace() and isalnum().
517         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
518         before passing it to isspace() or isalnum().
520 2020-12-08  Bruno Haible  <bruno@clisp.org>
522         argp: Don't rely on undefined behaviour of _tolower().
523         Patch by Eric Blake
524         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
525         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
526         not upper-case.  Pass correct range to tolower.
528 2020-12-07  Bruno Haible  <bruno@clisp.org>
530         unicodeio: Fix wrong result on FreeBSD.
531         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
532         characters on all platforms.
534 2020-12-07  Bruno Haible  <bruno@clisp.org>
536         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
537         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
538         FreeBSD systems.
540 2020-12-07  Bruno Haible  <bruno@clisp.org>
542         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
543         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
544         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
545         trivially of sbrk is not available.
546         * doc/glibc-functions/sbrk.texi: Mention that the function does not
547         exist in FreeBSD 12.2/arm64.
548         * doc/glibc-functions/brk.texi: Likewise.
550 2020-12-07  Bruno Haible  <bruno@clisp.org>
552         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
553         Suggested by Zack Weinberg in
554         <https://savannah.gnu.org/support/?110294>.
555         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
556         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
558 2020-12-07  Bruno Haible  <bruno@clisp.org>
560         Tweak the Windows oldnames workaround.
561         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
562         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
563         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
564         always.
565         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
566         * lib/stdlib.in.h (putenv): Likewise.
568 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
570         doc: fix flat address space discussion
571         * doc/gnulib-readme.texi (Other portability assumptions):
572         Move the all-bits-zero assumption outside the flat address space
573         section, since the two issues are independent.
575         doc: document -static-libubsan more
576         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
577         -static-libubsan a bit more.  Mostly cons.
579 2020-12-06  Bruno Haible  <bruno@clisp.org>
581         doc: Add more details regarding the undefined behaviour sanitizer.
582         * doc/gnulib-readme.texi (High Quality): Describe
583         -fsanitize-undefined-trap-on-error better.
585 2020-12-06  Bruno Haible  <bruno@clisp.org>
587         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
588         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
589         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
590         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
591         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
592         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
593         a preprocessor #define.
594         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
595         * lib/search.in.h (lfind, lsearch): Likewise.
596         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
597         Likewise.
598         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
599         * lib/string.in.h (memccpy, strdup): Likewise.
600         * lib/sys_stat.in.h (chmod, umask): Likewise.
601         * lib/time.in.h (tzset): Likewise.
602         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
603         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
604         read, rmdir, swab, unlink, write): Likewise.
605         * lib/utime.in.h (utime): Likewise.
606         * lib/wchar.in.h (wcsdup): Likewise.
607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
608         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
609         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
611         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
612         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
613         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
614         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
616         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
617         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
618         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
619         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
620         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
622 2020-12-06  Bruno Haible  <bruno@clisp.org>
624         doc: Mention some missing function declarations.
625         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
626         AIX.
627         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
628         FreeBSD.
629         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
630         Cygwin.
631         * doc/pastposix-functions/fcvt.texi: Likewise.
632         * doc/pastposix-functions/gcvt.texi: Likewise.
634 2020-12-06  Bruno Haible  <bruno@clisp.org>
636         doc: Tweak example.
637         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
638         'print'.
640 2020-12-06  Bruno Haible  <bruno@clisp.org>
642         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
643         * tests/test-filenamecat.c: Include idx.h.
644         (main): Mark prefixlen as nonnegative.
645         * modules/filenamecat-tests (Depends-on): Add idx.
647 2020-12-06  Bruno Haible  <bruno@clisp.org>
649         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
650         * lib/time_rz.c: Include idx.h.
651         (save_abbr): Mark zone_size as nonnegative.
652         * modules/time_rz (Depends-on): Add idx.
654 2020-12-06  Bruno Haible  <bruno@clisp.org>
656         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
657         * lib/parse-datetime.y: Include idx.h.
658         (textint): Mark digits as nonnegative.
659         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
660         dsts_seen, times_seen, zones_seen as nonnegative.
661         (lookup_word): Mark wordlen as nonnegative.
662         (yylex): Mark count as nonnegative.
663         (parse_datetime2): Mark tzsize as nonnegative.
664         * modules/parse-datetime (Depends-on): Add idx.
666 2020-12-06  Bruno Haible  <bruno@clisp.org>
668         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
669         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
670         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
671         nonnegative.
672         * modules/fnmatch (Depends-on): Add idx.
674 2020-12-06  Bruno Haible  <bruno@clisp.org>
676         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
677         * lib/c-stack.c: Include idx.h.
678         (die): Mark buflen as nonnegative.
679         * modules/c-stack (Depends-on): Add idx.
681 2020-12-06  Bruno Haible  <bruno@clisp.org>
683         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
684         * lib/backupfile.c: Include idx.h.
685         (numbered_backup): Mark base_offset as nonnegative.
686         (backupfile_internal): Likewise.
687         * modules/backup-rename (Depends-on): Add idx.
688         * modules/backupfile (Depends-on): Likewise.
690 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
692         doc: fix curved quotes issue
693         * doc/gnulib.texi: Set txicodequoteundirected and
694         txicodequotebacktick so that ` and ' in examples do not generate
695         curved single quotes that do the wrong thing when cut and pasted.
697         doc: mention static and dynamic checking
698         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
699         for static and dynamic checking.
701         intprops: Add INT_ADD_OK etc.
702         * doc/intprops.texi (Checking Integer Overflow): New section.
703         * lib/intprops.h: From a suggestion by Bruno Haible in:
704         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
705         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
707         doc: move exotic platfroms to Target Platforms
708         * doc/gnulib-intro.texi (Supported Platforms)
709         (Formerly Supported Platforms, Unsupported Platforms):
710         New subsections, split off from Target Platforms.
711         (Unsupported Platforms): Move the exotic-platform stuff here ...
712         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
713         section.
715         doc: mention intptr_t etc. and IBM i
716         * doc/gnulib-readme.texi (Other portability assumptions):
717         Mention intptr_t and uintptr_t, and that arithmetic on them
718         works in the usual way.
719         (Exotic platforms): New section, containing material from
720         the old 'Integer Portability' section.  Also mention IBM i.
721         * doc/intprops.texi (Wraparound Arithmetic):
722         Say that the macros work on unsigned integers too.
723         (Integer Portability): Remove.
725 2020-12-04  Bruno Haible  <bruno@clisp.org>
727         utime: Fix a test failure on macOS 10.13.
728         Reported by Martin Storsjö <martin@martin.st> in
729         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
730         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
731         slashes on files.
732         * lib/utime.c (utime): Add alternative implementation for Unix
733         platforms.
734         * modules/utime (Depends-on): Add stat.
735         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
736         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
737         trailing-slash bug.
738         * doc/posix-functions/open.texi: Likewise.
739         * doc/posix-functions/stat.texi: Likewise.
740         * doc/posix-functions/symlink.texi: Likewise.
742 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
744         intprops: update doc and mention Unisys
745         * doc/gnulib-readme.texi (Other portability assumptions):
746         Also mention ptrdiff_t when talking about widths and overflow.
747         * doc/intprops.texi (Integer Properties): Summarize new section.
748         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
749         evaluates its argument.
750         (Integer Bounds): Fix typo.
751         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
752         Document that the _WRAPV macros now support pointers to unsigned
753         integers.
754         (Integer Range Overflow): Update SEI CERT citation.
755         (Integer Portability): New subsection, which mentions
756         the oddball Unisys platforms as non-Gnulib targets.
758 2020-12-03  Bruno Haible  <bruno@clisp.org>
760         idx: Clarify that idx_t always behaves like a signed type.
761         Suggested by Paul Eggert in
762         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
763         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
764         Don't test UNSIGNED_IDX_T.
766 2020-12-03  Bruno Haible  <bruno@clisp.org>
768         idx: New module.
769         * lib/idx.h: New file.
770         * modules/idx: New file.
771         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
772         ptrdiff_t.
773         * lib/canonicalize.c: Likewise.
774         * modules/canonicalize-lgpl (Depends-on): Add idx.
775         * modules/canonicalize (Depends-on): Likewise.
777 2020-12-03  Bruno Haible  <bruno@clisp.org>
779         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
780         Reported by Martin Storsjö <martin@martin.st> in
781         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
782         * tests/test-fprintf-posix3.c: Skip the test on macOS.
783         (main): Return a different exit code at each point. Allow 100 KB extra
784         memory consumption.
785         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
786         doesn't work" diagnostic.
788 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
790         canonicalize: refactor can_mode flag
791         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
792         (multiple_bits_set): ... this new static function.  Uses changed.
793         (canonicalize_filename_mode): Refactor for clarity to avoid
794         modifying the CAN_MODE argument.
796         canonicalize: prefer signed integer types
797         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
798         (seen_triple, canonicalize_filename_mode): Prefer signed to
799         unsigned types where either will do, as they avoid some glitches
800         in comparisons and can trap on overflow when debugging.
802         canonicalize: fix most of another EOVERFLOW issue
803         * lib/canonicalize.c (canonicalize_filename_mode):
804         Do not call stat if fewer than 20 symlinks have been traversed.
805         This avoids EOVERFLOW failure in the common case where there
806         are not that many symlinks, while continuing to catch loops
807         (or fail due to EOVERFLOW) in the unusual case when there
808         are many symlinks to traverse.
810         canonicalize: do not assume symlinks have st_ino
811         * lib/canonicalize.c (canonicalize_filename_mode):
812         When checking for loops, use st_dev and st_ino from the parent
813         directory not from the symlink, as pre-2017 POSIX says these
814         members are not reliable for symlinks.  Couple this with START
815         (the remaining file name to be resolved), not NAME (the whole file
816         name with START as its suffix).
817         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
819         canonicalize: fix EOVERFLOW bug
820         * lib/canonicalize.c (canonicalize_filename_mode):
821         When testing whether a directory entry is a symbolic link, or a
822         directory or other, do not use lstat or stat or
823         areadlink_with_size.  Just use areadlink, as this suffices and it
824         avoids the EOVERFLOW problem that lstat and stat have.
825         * modules/canonicalize (Depends-on): Depend on areadlink instead
826         of areadlink-with-size and stat.
828         canonicalize-lgpl: fix EOVERFLOW bug
829         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
830         (__realpath): Do not use lstat.  Just use readlink, as this
831         suffices and it avoids the EOVERFLOW problem that lstat has.
832         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
834 2020-12-02  Bruno Haible  <bruno@clisp.org>
836         strsignal-tests: Fix test failure on macOS 10.13.
837         Reported by Martin Storsjö <martin@martin.st> in
838         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
839         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
840         to be longer than the expected result.
842 2020-12-02  Bruno Haible  <bruno@clisp.org>
844         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
845         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
846         recursive self-include problem on FreeBSD 12.2 in C++ mode.
848 2020-12-02  Bruno Haible  <bruno@clisp.org>
850         spawn-pipe: Allow caller to specify directory for the subprocess.
851         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
852         Add directory argument.
853         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
854         (create_pipe): Add directory argument. If specified, resolve the program
855         file name and make it absolute, first. Pass the directory to spawnpvech
856         and posix_spawn_file_actions_addchdir.
857         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
858         argument.
859         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
860         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
861         * tests/test-spawn-pipe-main.c (test_pipe): Update.
862         * NEWS: Mention the change.
863         * lib/csharpcomp.c (compile_csharp_using_mono,
864         compile_csharp_using_sscli): Update.
865         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
866         is_gcj_43): Update.
867         * lib/javaversion.c (execute_and_read_line): Update.
868         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
869         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
871 2020-12-02  Bruno Haible  <bruno@clisp.org>
873         execute: Allow caller to specify directory for the subprocess.
874         * lib/execute.h (execute): Add directory argument.
875         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
876         (execute): Add directory argument. If specified, resolve the program
877         file name and make it absolute, first. Pass the directory to spawnpvech
878         and posix_spawn_file_actions_addchdir.
879         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
880         posix_spawn, posix_spawn_file_actions_addchdir.
881         * tests/test-execute-main.c: Add test for passing a directory.
882         * tests/test-execute-child.c: Likewise.
883         * tests/test-execute.sh: Update.
884         * modules/execute-tests (Depends-on): Add mkdir.
885         * NEWS: Mention the change.
886         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
887         * lib/csharpexec.c (execute_csharp_using_mono,
888         execute_csharp_using_sscli): Update.
889         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
890         compile_using_javac, compile_using_jikes, is_javac_present,
891         is_jikes_present): Update.
892         * lib/javaexec.c (execute_java_class): Update.
894 2020-12-01  Bruno Haible  <bruno@clisp.org>
896         vma-iter: Add support for macOS11/arm64.
897         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
898         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
899         and by Martin Storsjö <martin@martin.st> in
900         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
901         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
903 2020-12-01  Bruno Haible  <bruno@clisp.org>
905         spawn-pipe: Fix handling of OS/2 kLIBC.
906         Reported by KO Myung-Hun <komh78@gmail.com> in
907         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
908         * modules/spawn-pipe (configure.ac): Use the common idiom for
909         recognizing the OS/2 operating system.
911 2020-11-30  Bruno Haible  <bruno@clisp.org>
913         execute: Fix uninitialized use of errno.
914         * lib/execute.c (execute): Preserve errno across several system calls.
916 2020-11-30  Bruno Haible  <bruno@clisp.org>
918         access tests: Fix test failure on native Windows.
919         * tests/test-access.c (main): Change permissions of f2 file before
920         attempting to remove it.
922 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
924         faccessat: link with $(LIB_EACCESS)
925         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
926         module depends on euidaccess.
928 2020-11-30  Bruno Haible  <bruno@clisp.org>
930         execute, spawn-pipe: Make multithread-safe on native Windows.
931         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
932         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
933         (spawnpvech): New declaration.
934         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
935         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
936         (_): Remove macro.
937         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
938         undup_safer_noinherit): Remove functions.
939         (spawnpvech): New function.
940         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
941         cloexec, dup2, error, gettext-h.
942         * lib/execute.c: Include msvc-nothrow.h.
943         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
944         * lib/spawn-pipe.c: Include msvc-nothrow.h.
945         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
946         instead of _spawnvpe.
947         * modules/execute (Depends-on): Add msvc-nothrow.
948         * modules/spawn-pipe (Depends-on): Likewise.
950 2020-11-30  Bruno Haible  <bruno@clisp.org>
952         execute, spawn-pipe: Improve documentation.
953         * lib/execute.h: Describe progname, prog_path, prog_argv.
954         * lib/spawn-pipe.h: Likewise.
956 2020-11-30  Bruno Haible  <bruno@clisp.org>
958         execute tests: Add more tests.
959         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
960         inherited file descriptors >= 3.
961         * tests/test-execute-child.c: Likewise.
962         * tests/test-execute.sh: Update.
964 2020-11-30  Bruno Haible  <bruno@clisp.org>
966         havelib: Fix for non-ELF platforms (regression 2019-11-17).
967         Reported by comex <comexk@gmail.com> in
968         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
969         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
970         don't expect an ELF header.
972 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
974         bitset: use integer_length in table implementation
975         * lib/bitset/table.c (tbitset_list_reverse): Use
976         BITSET_FOR_EACH_BIT_REVERSE.
978 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
980         bitset: use integer_length in list implementation
981         * lib/bitset/list.c (lbitset_list_reverse): Use
982         BITSET_FOR_EACH_BIT_REVERSE.
984 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
986         bitset: use integer_length in vector implementation
987         * lib/bitset/array.c (vbitset_list_reverse): Use
988         BITSET_FOR_EACH_BIT_REVERSE.
990 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
992         bitset: use integer_length in array implementation
993         * modules/bitset (Depends-on): Add integer_length_l.
994         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
995         * lib/bitset/array.c (abitset_list_reverse): Use it.
997 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
999         bitset: style: use consistent names
1000         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
1001         and 'boffset' as 'bitoff', for consistency with the other
1002         implementations.
1003         * bitset/table.c (tbitset_list_reverse): Likewise.
1005 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1007         bitset: style: sort header
1008         * lib/bitset/base.h (bitset_ffs): Rename as...
1009         (bitset_ffs_): this.
1010         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
1012 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1014         bitset: tests: check BITSET_FOR_EACH_REVERSE
1015         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
1016         Check BITSET_FOR_EACH_REVERSE.
1018 2020-11-29  Bruno Haible  <bruno@clisp.org>
1020         spawn-pipe tests: Fix test failure with MSVC.
1021         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
1022         (gl_msvc_invalid_parameter_handler): New function.
1023         (main): Set a global invalid-parameter handler.
1024         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
1026 2020-11-29  Bruno Haible  <bruno@clisp.org>
1028         execute: Add tests.
1029         * tests/test-execute.sh: New file.
1030         * tests/test-execute-main.c: New file.
1031         * tests/test-execute-child.c: New file.
1032         * modules/execute-tests: New file.
1034 2020-11-29  Bruno Haible  <bruno@clisp.org>
1036         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
1037         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
1038         works.
1039         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
1040         fallback implementation as on Haiku.
1041         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
1042         effective.
1043         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
1045 2020-11-29  Bruno Haible  <bruno@clisp.org>
1047         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
1048         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
1049         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
1050         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
1051         * lib/windows-spawn.c: Remove modifications for kLIBC.
1052         * modules/spawn-pipe (Files): Add the new files.
1053         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
1055 2020-11-28  Bruno Haible  <bruno@clisp.org>
1057         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
1058         Reported by Paul Eggert in
1059         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
1060         * m4/sparcv8+.m4: New file.
1061         * modules/sparcv8+: New file.
1062         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
1064 2020-11-28  Bruno Haible  <bruno@clisp.org>
1066         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
1067         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
1069 2020-11-28  Bruno Haible  <bruno@clisp.org>
1071         windows-spawn: New module.
1072         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
1073         implementations.
1074         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
1075         * modules/windows-spawn: New file.
1076         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
1077         * lib/spawn-pipe.c: Likewise.
1078         * modules/execute (Files): Remove lib/w32spawn.h.
1079         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
1080         xalloc.
1081         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
1082         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
1083         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
1084         xalloc.
1085         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
1087 2020-11-27  Bruno Haible  <bruno@clisp.org>
1089         ssfmalloc tests: Port to macOS 11.
1090         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
1092 2020-11-26  Bruno Haible  <bruno@clisp.org>
1094         Fix dependencies of modules that use '_exit' on native Windows.
1095         Reported by Jim Meyering in
1096         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
1097         * modules/_Exit (Depends-on): Add unistd.
1098         * modules/closein (Depends-on): Likewise.
1099         * modules/closeout (Depends-on): Likewise.
1100         * modules/forkpty (Depends-on): Likewise.
1101         * modules/posix_spawn-internal (Depends-on): Likewise.
1102         * modules/savewd (Depends-on): Likewise.
1103         * modules/stat-time-tests (Depends-on): Likewise.
1105 2020-11-26  Bruno Haible  <bruno@clisp.org>
1107         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
1108         * modules/raise-tests (Depends-on): Add unistd.
1109         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
1111 2020-11-25  Jim Meyering  <meyering@fb.com>
1113         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
1114         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
1115         non-NULL, since we don't bother handing strdup failure.
1117         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
1118         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
1119         * tests/test-raise.c: Include unistd.h.
1120         (handler): Use _exit, not exit.
1122 2020-11-23  Bruno Haible  <bruno@clisp.org>
1124         Use the correct printf format attribute for mingw.
1125         Reported by Reuben Thomas <rrt@sc3d.org> in
1126         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
1128         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
1129         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
1131         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
1132         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
1133         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
1134         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
1135         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
1136         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
1138         * modules/vasnprintf (Depends-on): Add stdio.
1139         * lib/vasnprintf.h: Include <stdio.h>.
1140         (asnprintf, vasnprintf): Use the standard printf format attribute.
1142         * modules/xvasprintf (Depends-on): Add stdio.
1143         * lib/xvasprintf.h: Include <stdio.h>.
1144         (xasprintf, xvasprintf): Use the standard printf format attribute.
1146         * modules/xprintf (Depends-on): List stdio first.
1147         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
1148         depends on GNULIB_VPRINTF_POSIX.
1149         (xfprintf, xvfprintf): Use a printf format attribute that depends on
1150         GNULIB_VFPRINTF_POSIX.
1152         * modules/c-vasnprintf (Depends-on): Add stdio.
1153         * lib/c-vasnprintf.h: Include <stdio.h>.
1154         (c_vasnprintf): Use the standard printf format attribute.
1156         * modules/c-vasprintf (Depends-on): Add stdio.
1157         * lib/c-vasprintf.h: Include <stdio.h>.
1158         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
1160         * modules/c-vsnprintf (Depends-on): Add stdio.
1161         * lib/c-vsnprintf.h: Include <stdio.h>.
1162         (c_vsnprintf): Use the standard printf format attribute.
1164         * modules/c-snprintf (Depends-on): Add stdio.
1165         * lib/c-snprintf.h: Include <stdio.h>.
1166         (c_snprintf): Use the standard printf format attribute.
1168         * modules/c-xvasprintf (Depends-on): Add stdio.
1169         * lib/c-xvasprintf.h: Include <stdio.h>.
1170         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
1172         * modules/error (Depends-on): Depend on stdio always.
1173         * lib/error.h: Include <stdio.h>.
1174         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
1175         (error, error_at_line): Use a printf format attribute that depends on
1176         GNULIB_VFPRINTF_POSIX.
1177         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
1178         _GL_ATTRIBUTE_FORMAT_PRINTF.
1180         * modules/verror (Depends-on): Add stdio.
1181         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
1182         (verror, verror_at_line): Use the standard printf format attribute.
1183         * lib/verror.c: Include "error.h".
1185         * modules/argp (Depends-on): Add stdio.
1186         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
1187         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
1189         * modules/libtextstyle-optional (Depends-on): Add stdio.
1190         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
1191         printf format attribute.
1193         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
1194         format attribute.
1196 2020-11-23  Pádraig Brady  <P@draigBrady.com>
1198         selinux-at, selinux-h: use const correct declarations
1199         * lib/se-selinux.in.h: Use const for "set" functions,
1200         to match current selinux, and support cleaner user code.
1201         * lib/selinux-at.c: Likewise.
1202         * lib/selinux-at.h: Likewise.
1204 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
1206         canonicalize-lgpl: fix memory leak
1207         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
1208         which could have occurred if BUF was so large that malloc was
1209         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
1210         this eliminates the need to free BUF separately.
1212 2020-11-22  Bruno Haible  <bruno@clisp.org>
1214         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
1215         * modules/xvasprintf (Depends-on): Add xalloc.
1216         * modules/pipe-filter-gi (Depends-on): Likewise.
1217         * modules/execute (Depends-on): Likewise, for w32spawn.h.
1218         * modules/spawn-pipe (Depends-on): Likewise.
1220 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
1222         bootstrap: add option hooks
1223         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
1224         (bootstrap_option_hook): Likewise.
1225         (usage): Call bootstrap_print_option_usage_hook.
1227 2020-11-22  Bruno Haible  <bruno@clisp.org>
1229         argp: Don't break getprogname on non-glibc systems.
1230         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
1231         program_invocation_name and program_invocation_short_name.
1233 2020-11-22  Bruno Haible  <bruno@clisp.org>
1235         doc: Document <link.h>.
1236         * doc/glibc-headers/link.texi: New file.
1237         * doc/gnulib.texi: Include it.
1239 2020-11-22  Bruno Haible  <bruno@clisp.org>
1241         doc: Add references to the LSB.
1242         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
1243         * doc/posix-functions/*.texi: Likewise.
1245 2020-11-22  Bruno Haible  <bruno@clisp.org>
1247         doc: Fix a makeinfo warning (regression 2020-11-03).
1248         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
1250 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
1252         parse-datetime: fix printf format typo
1253         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
1254         previous patch to this file.  Problem reported by Chris Elvidge in
1255         <https://bugs.gnu.org/44763#32>.
1257         setlocale-null-tests: work around GCC bug 44511
1258         * tests/test-setlocale_null-mt-all.c:
1259         * tests/test-setlocale_null-mt-one.c:
1260         Ignore -Wreturn-type, to work around GCC bug 44511.
1262         nl_langinfo-tests: work around GCC bug 44511
1263         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
1264         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
1265         Problem reported for GNU grep by Andreas Schwab
1266         <https://bugs.gnu.org/44535>.
1268         selinux-h: add stubs for selabel_open etc.
1269         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
1270         because matchpathcon is deprecated in favor of selabel_open etc.,
1271         so this patch adds stubs for these functions.
1272         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
1273         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
1274         as it is needed for selabel_open and selinux/selinux.h declares
1275         this type here.
1276         * modules/selinux-h (Files): Add the new files.
1277         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
1278         (lib_SOURCES): Add se-label.in.h, se-label.c.
1279         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
1280         (selinux/label.h): New rule, mimicking selinux/context.h.
1281         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
1282         (Include): Add selinux/label.h.
1284 2020-11-21  Bruno Haible  <bruno@clisp.org>
1286         Update after 'test-driver' in Automake changed.
1287         * build-aux/test-driver.diff: Rebase.
1289 2020-11-21  Daiki Ueno  <ueno@gnu.org>
1291         read-file: remove dead assignment
1292         * lib/read-file.c (fread_file): Remove dead assignment when
1293         RF_SENSITIVE is set, flagged by clang-analyzer.
1295 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1297         bitset: tests: exercise the stats too
1299         * tests/test-bitset.c: Display the stats at the end of the test.
1300         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
1301         last bin, display "256-..." rather that "256-511", since the last bin
1302         does count item greater than or equal to 256.
1304 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1306         bitset: tests: try harder to break it
1307         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
1308         BITSET_LIST_SIZE.
1309         (main): Likewise.
1310         While at it, also exercise super small bitsets.
1312 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1314         bitset: use ffs where possible in the vector implementation
1315         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
1317 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1319         bitset: use ffs where possible in the table implementation
1320         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
1322 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1324         bitset: check empty and full bitsets
1325         * tests/test-bitset.c (check_zero, check_ones): New.
1326         (check_attributes): Use them.
1328 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1330         bitset: be sure to always return a value
1331         * lib/bitset/array.c (abitset_small_list): Always update *next and
1332         return a value.
1334 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1336         vcs-to-changelog: Expect spaces in file names
1337         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
1338         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
1339         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
1340         tabs to spaces.
1341         (list_changes): Use tabs to identify file names.
1343 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1345         bitset: strengthen tests
1346         * tests/test-bitset.c (compare): Also check count.
1347         Deal only with random values, move the one-bit tests to...
1348         (check_one_bit): this new function.
1349         (check_attributes): Call it.
1351 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1353         bitset: fix iteration over table bitsets
1354         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
1356 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1358         bitset: rename internal details for consistency
1359         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
1361 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1363         bitset: test: run deterministic tests on several bitset sizes
1364         * tests/test-bitset.c (check_attributes): Run it with small and large
1365         sizes.
1367 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1369         bitset: use ffs where possible in the list implementation
1370         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
1372 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1374         bitset: use ffs where possible in array implementation
1375         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
1377 2020-11-17  Bruno Haible  <bruno@clisp.org>
1379         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
1380         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1381         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1382         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
1383         C++ mode.
1385 2020-11-17  Bruno Haible  <bruno@clisp.org>
1387         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
1388         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
1389         is always declared.
1390         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
1391         declared.
1393 2020-11-17  Bruno Haible  <bruno@clisp.org>
1395         Fix link errors on AIX.
1396         * modules/clean-temp (Link): Link with $(LIBTHREAD).
1397         * modules/getumask (Link): Link with $(LIBTHREAD).
1398         * modules/getumask-tests (Makefile.am): Link test-getumask with
1399         $(LIBTHREAD).
1400         * modules/supersede (Link): Link with $(LIBTHREAD).
1401         * modules/supersede-tests (Makefile.am): Link test-supersede with
1402         $(LIBTHREAD).
1403         * modules/fatal-signal (Link): New section.
1404         * modules/execute (Link): New section.
1405         * modules/csharpexec (Link): Link with $(LIBTHREAD).
1406         * modules/javaexec (Link): Link with $(LIBTHREAD).
1407         * modules/spawn-pipe (Link): New section.
1408         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
1409         $(LIBTHREAD).
1410         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
1411         * modules/javacomp (Link): Link with $(LIBTHREAD).
1412         * modules/javaversion (Link): Link with $(LIBTHREAD).
1413         * modules/pipe-filter-gi (Link): New section.
1414         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
1415         test-pipe-filter-gi2-main with $(LIBTHREAD).
1416         * modules/pipe-filter-ii (Link): New section.
1417         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
1418         test-pipe-filter-ii2-main with $(LIBTHREAD).
1419         * modules/term-style-control (Link): New section.
1420         * modules/term-style-control-tests (Makefile.am): Link
1421         test-term-style-control-hello, test-term-style-control-yes with
1422         $(LIBTHREAD).
1423         * modules/wait-process (Link): New section.
1424         * modules/nonblocking-pipe-tests (Makefile.am): Link
1425         test-nonblocking-pipe-main with $(LIBTHREAD).
1426         * modules/nonblocking-socket-tests (Makefile.am): Link
1427         test-nonblocking-socket-main with $(LIBTHREAD).
1429 2020-11-16  Bruno Haible  <bruno@clisp.org>
1431         Fix link errors on platforms with libunistring.
1432         * modules/c32isalnum (Link): New section.
1433         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
1434         $(LIBUNISTRING).
1435         * modules/c32isalpha (Link): New section.
1436         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
1437         $(LIBUNISTRING).
1438         * modules/c32isblank (Link): New section.
1439         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
1440         $(LIBUNISTRING).
1441         * modules/c32iscntrl (Link): New section.
1442         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
1443         $(LIBUNISTRING).
1444         * modules/c32isdigit (Link): New section.
1445         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
1446         $(LIBUNISTRING).
1447         * modules/c32isgraph (Link): New section.
1448         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
1449         $(LIBUNISTRING).
1450         * modules/c32islower (Link): New section.
1451         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
1452         $(LIBUNISTRING).
1453         * modules/c32isprint (Link): New section.
1454         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
1455         $(LIBUNISTRING).
1456         * modules/c32ispunct (Link): New section.
1457         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
1458         $(LIBUNISTRING).
1459         * modules/c32isspace (Link): New section.
1460         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
1461         $(LIBUNISTRING).
1462         * modules/c32isupper (Link): New section.
1463         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
1464         $(LIBUNISTRING).
1465         * modules/c32isxdigit (Link): New section.
1466         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
1467         $(LIBUNISTRING).
1468         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
1469         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1470         $(LIBUNISTRING).
1472 2020-11-16  Bruno Haible  <bruno@clisp.org>
1474         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
1475         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1476         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1477         * modules/getumask-tests (Makefile.am): Link test-getumask with
1478         $(LIBINTL).
1479         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
1480         * modules/supersede-tests (Makefile.am): Link test-supersede with
1481         $(LIBINTL).
1482         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1483         $(LIBINTL).
1485 2020-11-16  Bruno Haible  <bruno@clisp.org>
1487         getumask: Document link dependencies.
1488         * modules/getumask (Link): New section.
1490 2020-11-16  Bruno Haible  <bruno@clisp.org>
1492         Update link dependencies in modules after 2020-09-09 change.
1493         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
1494         * modules/mkdtemp (Link): Likewise.
1495         * modules/mkostemp (Link): Likewise.
1496         * modules/mkostemps (Link): Likewise.
1497         * modules/mkstemp (Link): Likewise.
1498         * modules/mkstemps (Link): Likewise.
1499         * modules/supersede (Link): Likewise.
1500         * modules/tmpfile (Link): Likewise.
1501         * modules/tmpfile-safer (Link): Likewise.
1503 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1505         getumask-tests: port to Solaris 10 etc.
1506         Problem reported by Tom Christensen in:
1507         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
1508         * modules/getumask-tests (test_getumask_LDADD):
1509         Add $(LIB_CLOCK_GETTIME).
1511 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1513         bitset: use ffsl to accelerate iterations over set bits
1514         Suggested by Bruno Haible.
1515         * modules/bitset: Depend upon ffsl.
1516         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
1517         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
1519 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1521         bitset: more tests
1522         * tests/test-bitset.c (compare): Make it clear that the random values
1523         should not be modified.
1524         Check bitset_first, bitset_last and BITSET_FOR_EACH.
1526 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1528         bitset: fix the copy from lbitset to other types
1529         * lib/bitset/list.c (lbitset_copy): Rename as...
1530         (lbitset_copy_): this.
1531         (lbitset_copy): New.
1532         Dispatch to heterogeneous/homogeneous copy.
1534 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1536         bitset: making debug traces more useful
1537         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
1539         bitset: comment changes
1540         * lib/bitset.c: Move some documenting comments to...
1541         * lib/bitset.h: here.
1542         * lib/bitset/array.c: Fix some comments.
1544 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
1546         careadlinkat: warn better about GCC bug 93644
1547         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
1548         not in effect, use "#warning" to let builders know more clearly
1549         about GCC bug 93644, because the bug triggers even if no -W option
1550         is given to GCC.
1552 2020-11-13  Jim Meyering  <meyering@fb.com>
1554         hard-locale-tests: avoid a -Wstrict-prototypes warning
1555         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
1556         changing "main ()" to "main (void)". This was the only case that
1557         triggered a warning when building grep with --enable-gcc-warnings.
1559 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1561         time_rz: simplify CVE-2017-7476 fix
1562         * lib/time_rz.c: Do not include limits.h; I think it was included
1563         under the mistaken impression that limits.h defines SIZE_MAX.
1564         (SIZE_MAX): Remove.
1565         (save_abbr): Put string length into a ptrdiff_t variable,
1566         so that the size comparison works naturally.  This
1567         fixes CVE-2017-7476 in a cleaner way.
1569         parse-datetime: streamline overflow checking
1570         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
1571         did not work for unsigned destinations, and since time_t might
1572         be unsigned that meant it did not work for time_t destinations.
1573         This limitation of INT_ADD_WRAPV has been fixed, so we can
1574         now streamline parse-datetime.y a bit.
1575         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
1576         has not been used for a while.
1577         (yylex, parse_datetime2): Assume C99 declarations after statements.
1578         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
1579         to TYPE_MINIMUM.
1580         (parse_datetime2): No need for time_overflow now that
1581         INT_ADD_WRAPV works for unsigned results.
1583         parse-datetime-tests: port to Alpine Linux 3.12.1
1584         * tests/test-parse-datetime.c: Include errno.h for errno,
1585         and unistd.h for _SC_TZNAME_MAX and sysconf.
1586         (main): In the outlandishly-long time zone abbreviation test,
1587         do not exceed TZNAME_MAX as this has undefined behavior,
1588         and on Alpine Linux 3.12.1 it makes the test fail.
1590 2020-11-09  Pádraig Brady  <P@draigBrady.com>
1592         mgetgroups: avoid warning with clang
1593         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
1594         so disable -Wpointer-sign for all clang versions.
1596 2020-11-07  Bruno Haible  <bruno@clisp.org>
1598         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
1599         Reported by Simon Josefsson in
1600         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
1601         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
1602         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
1603         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
1605 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1607         tests: pacify Sun C 5.9
1608         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
1609         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
1610         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
1611         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
1612         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
1613         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
1614         Remove unreachable ‘return NULL;’s.
1616         tests: port better to XLC 12.01
1617         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
1618         even in code that is not executed, as IBM XLC 12.01 complains "The
1619         subscript -1 is less than zero."
1620         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
1621         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
1622         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
1623         arguments than are required by the macro definition."
1625 2020-11-03  Bruno Haible  <bruno@clisp.org>
1627         aligned-malloc: Use fixes from the new modules.
1628         * modules/aligned-malloc (Depends-on): Add posix_memalign,
1629         aligned_alloc, memalign.
1630         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
1632 2020-11-03  Bruno Haible  <bruno@clisp.org>
1634         aligned_alloc: Add tests.
1635         * tests/test-aligned_alloc.c: New file.
1636         * modules/aligned_alloc-tests: New file.
1638         aligned_alloc: New module.
1639         * lib/stdlib.in.h (aligned_alloc): New declaration.
1640         * lib/aligned_alloc.c: New file.
1641         * m4/aligned_alloc.m4: New file.
1642         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
1643         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
1644         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
1645         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
1646         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
1647         * modules/aligned_alloc: New file.
1648         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
1649         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
1650         AIX bug.
1652 2020-11-03  Bruno Haible  <bruno@clisp.org>
1654         posix_memalign: Add tests.
1655         * tests/test-posix_memalign.c: New file.
1656         * modules/posix_memalign-tests: New file.
1658         posix_memalign: New module.
1659         * lib/stdlib.in.h (posix_memalign): New declaration.
1660         * lib/posix_memalign.c: New file.
1661         * m4/posix_memalign.m4: New file.
1662         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
1663         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
1664         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1665         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
1666         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1667         * modules/posix_memalign: New file.
1668         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
1669         * doc/posix-functions/posix_memalign.texi: Mention the new module and
1670         the OpenBSD bug.
1672 2020-11-03  Bruno Haible  <bruno@clisp.org>
1674         memalign: Add tests.
1675         * tests/test-memalign.c: New file.
1676         * modules/memalign-tests: New file.
1678         memalign: New module.
1679         * modules/memalign: New file.
1680         * doc/glibc-functions/memalign.texi: Mention the new module.
1682 2020-11-03  Bruno Haible  <bruno@clisp.org>
1684         verify tests: Fix crash with GCC (regression 2020-11-02).
1685         * tests/test-verify.c (main): Fix initializer of s.
1687 2020-11-03  Pádraig Brady  <P@draigBrady.com>
1689         mountlist: recognize more file system types as remote
1691         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
1692         "remote" file systems from stat.c in coreutils.
1694 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
1696         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
1697         * tests/test-verify.c (main): Initialize state variable.
1698         Reported by Bruno Haible for GCC 5.4.0.
1700 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
1702         dfa.h: support inclusion from C++
1703         * lib/dfa.h: Allow multiple inclusion, and inclusion from
1704         C++ code.  The latter was suggested by Arnold Robbins.
1706 2020-11-01  Bruno Haible  <bruno@clisp.org>
1708         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
1709         * tests/test-ssfmalloc.c: Include <limits.h>.
1710         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
1712 2020-11-01  Bruno Haible  <bruno@clisp.org>
1714         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
1715         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
1717 2020-11-01  Jim Meyering  <meyering@fb.com>
1719         dfa-tests: test for today's invalid-merge fix
1720         * tests/test-dfa-invalid-merge.sh: New file.
1721         * modules/dfa-tests (Files): Add it.
1722         (TESTS): Add it.
1724 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1726         dfa: retain sequences of similar nodes in optimization
1727         DFA was merging similar nodes when it should not.  For example,
1728         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
1729         is not merged.  Problem reported by Gonzalo Padrino in
1730         https://bugs.gnu.org/44351
1731         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
1732         optimization.
1734 2020-11-01  Jim Meyering  <meyering@fb.com>
1736         test-dfa-match-aux.c: accept EREs, not BREs
1737         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
1738         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
1740 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
1742         verify tests: avoid -Wmissing-declarations warnings
1743         * tests/test-verify.c (test_assume_expressions): Add declaration.
1744         (test_assume_optimization): Likewise.
1745         (test_assume_noreturn): Likewise.
1746         (main): Move down after all other definitions.  While at it, also
1747         call test_assume_expressions and test_assume_optimization as a
1748         runtime check.
1750 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1752         sys_stat: update comments for S_IRWXUGO, S_IXUGO
1753         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
1754         Perhaps these macros should be removed, as they’re not in either
1755         POSIX or GNU.  They could be moved to stat-macros.h, which would
1756         be cleaner in some sense.
1758 2020-10-25  Bruno Haible  <bruno@clisp.org>
1760         ssfmalloc tests: Small tweaks.
1761         * tests/test-ssfmalloc.c: Add comments.
1762         (alloc_pages): Don't require PROT_EXEC bits.
1763         (block_sizes): Add more small sizes, for better coverage of
1764         ssfmalloc-bitmap.h.
1766         ssfmalloc tests: Portability to Minix.
1767         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
1768         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
1769         * m4/mmap-anon.m4: Update comment.
1771         ssfmalloc: Portability to AIX.
1772         * modules/ssfmalloc (Include): Add ssfmalloc.h.
1773         (Link): New section.
1774         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
1775         $(LIBTHREAD).
1777         ssfmalloc: Portability to Cygwin.
1778         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
1779         (pg_offset_t): Define depending on PAGESIZE_MAX.
1780         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
1781         (PAGESIZE_MAX): New macro.
1783         ssfmalloc: Fix buffer overrun in bitmap search.
1784         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
1785         word *words_end.
1787 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1789         doc: mention ‘restrict’ and C++
1790         * doc/gnulib-readme.texi (C99 features assumed): Document
1791         that ‘restrict’ should be avoided in C++ code.
1793 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1795         selinux-at, selinux-h: port to SELinux 3.1
1796         The new release finally deprecated the typedef 'security_context_t',
1797         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
1798         Use the simpler 'char *' instead.
1799         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
1800         (lgetfilecon): Likewise.
1801         (fgetfilecon): Likewise.
1802         (map_to_failure): Likewise.
1803         (rpl_getfilecon): Likewise.
1804         (rpl_lgetfilecon): Likewise.
1805         (rpl_fgetfilecon): Likewise.
1806         * lib/se-selinux.in.h (security_context_t): Remove typedef.
1807         (getcon): Adjust type of context parameter.
1808         (freecon): Likewise.
1809         (getfscreatecon): Likewise.
1810         (setfscreatecon): Likewise.
1811         (matchpathcon): Likewise.
1812         (getfilecon): Likewise.
1813         (lgetfilecon): Likewise.
1814         (fgetfilecon): Likewise.
1815         (setfilecon): Likewise.
1816         (lsetfilecon): Likewise.
1817         (fsetfilecon): Likewise.
1818         (security_check_context): Likewise.
1819         (security_check_context_raw): Likewise.
1820         (setexeccon): Likewise.
1821         (security_compute_create): Likewise.
1822         * lib/selinux-at.c (getfileconat): Likewise.
1823         (lgetfileconat): Likewise.
1824         (setfileconat): Likewise.
1825         (lsetfileconat): Likewise.
1826         * lib/selinux-at.h: Likewise.
1828 2020-10-19  Bruno Haible  <bruno@clisp.org>
1830         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
1831         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
1832         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
1833         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
1834         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
1835         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
1836         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
1838 2020-10-18  Bruno Haible  <bruno@clisp.org>
1840         ssfmalloc: Add tests.
1841         * tests/test-ssfmalloc.c: New file.
1842         * modules/ssfmalloc-tests: New file.
1844         ssfmalloc: New module.
1845         * lib/ssfmalloc.h: New file.
1846         * lib/ssfmalloc-bitmap.h: New file.
1847         * modules/ssfmalloc: New file.
1849 2020-10-18  Bruno Haible  <bruno@clisp.org>
1851         wchar: Fix configure test result on some versions of AIX.
1852         Reported by Clément Chigot <clement.chigot@atos.net> in
1853         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
1854         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
1855         systems.
1857 2020-10-18  Bruno Haible  <bruno@clisp.org>
1859         time: Fix warning about asctime when asctime is not used.
1860         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
1861         invocation.
1863 2020-10-18  Bruno Haible  <bruno@clisp.org>
1865         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
1866         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
1867         '_GL_ATTRIBUTE_CONST'.
1868         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
1869         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
1870         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
1871         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
1872         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
1873         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
1874         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
1876 2020-10-18  Bruno Haible  <bruno@clisp.org>
1878         obstack: Fix a clang warning.
1879         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
1881 2020-10-16  Bruno Haible  <bruno@clisp.org>
1883         hash: Rename hash_delete to hash_remove.
1884         * lib/hash.h (hash_remove): Renamed from hash_delete.
1885         (hash_delete): New declaration.
1886         * lib/hash.c (hash_remove): Renamed from hash_delete.
1887         (hash_delete): New function.
1888         * tests/test-hash.c (main): Update.
1889         * lib/fts-cycle.c (leave_dir): Likewise.
1890         * NEWS: Mention the change.
1892 2020-10-16  Bruno Haible  <bruno@clisp.org>
1894         hash, xhash: Make usable from C++.
1895         * lib/hash.h: Add extern "C".
1897 2020-10-16  Bruno Haible  <bruno@clisp.org>
1899         hash, xhash: Move comments to the .h file.
1900         * lib/hash.c: Move comments meant for the user from here...
1901         * lib/xhash.c: ... and here...
1902         * lib/hash.h: ... to here.
1904 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
1906         Don't declare an intention to modify the return value of strerror.
1907         * tests/test-perror2.c (main): Assign the return value of strerror to a
1908         'const char *' variable.
1910 2020-10-11  Bruno Haible  <bruno@clisp.org>
1912         *printf: Avoid "expanded before it was required" warning.
1913         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
1914         AC_DEFUN_ONCE.
1916 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
1918         getprogname: Add support for OpenServer 6 and UnixWare 7.
1919         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
1920         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
1922 2020-10-11  Bruno Haible  <bruno@clisp.org>
1924         tests: Avoid a name clash on UnixWare.
1925         Reported by Tim Rice <tim@multitalents.net> in
1926         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
1927         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
1929 2020-10-11  Bruno Haible  <bruno@clisp.org>
1931         stdioext: Update comments regarding UnixWare.
1932         Reported by Tim Rice <tim@multitalents.net> in
1933         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
1934         * lib/fbufmode.c: Update comments.
1935         * lib/fflush.c: Likewise.
1936         * lib/fpending.c: Likewise.
1937         * lib/fpurge.c: Likewise.
1938         * lib/freadable.h: Likewise.
1939         * lib/freadable.c: Likewise.
1940         * lib/freadahead.c: Likewise.
1941         * lib/freading.h: Likewise.
1942         * lib/freading.c: Likewise.
1943         * lib/freadptr.c: Likewise.
1944         * lib/freadseek.c: Likewise.
1945         * lib/fseeko.c: Likewise.
1946         * lib/fseterr.c: Likewise.
1947         * lib/fwritable.h: Likewise.
1948         * lib/fwritable.c: Likewise.
1949         * lib/fwriting.h: Likewise.
1950         * lib/fwriting.c: Likewise.
1952 2020-10-11  Bruno Haible  <bruno@clisp.org>
1954         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
1955         Reported by Tim Rice <tim@multitalents.net> in
1956         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
1957         Uses the info from
1958         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
1959         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
1961 2020-10-11  Bruno Haible  <bruno@clisp.org>
1963         stdioext: Avoid compilation errors on UnixWare 7.
1964         Reported by Tim Rice <tim@multitalents.net> in
1965         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
1966         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
1967         * lib/fpurge.c: Likewise.
1968         * lib/freadable.h: Likewise.
1969         * lib/freading.h: Likewise.
1970         * lib/fwritable.h: Likewise.
1971         * lib/fwriting.h: Likewise.
1972         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
1973         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
1974         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
1975         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
1976         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
1977         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
1979 2020-10-11  Bruno Haible  <bruno@clisp.org>
1981         stdioext: Update comments regarding Cygwin.
1982         * lib/fpending.c: Update comments.
1983         * lib/fpurge.c: Likewise.
1984         * lib/freadable.h: Likewise.
1985         * lib/freadable.c: Likewise.
1986         * lib/freading.h: Likewise.
1987         * lib/freading.c: Likewise.
1988         * lib/fwritable.h: Likewise.
1989         * lib/fwritable.c: Likewise.
1990         * lib/fwriting.h: Likewise.
1991         * lib/fwriting.c: Likewise.
1993 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
1995         Fix "warning: implicit declaration of function 'pthread_sigmask'".
1996         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
1997         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
1999 2020-10-10  Bruno Haible  <bruno@clisp.org>
2001         *-list, *-oset, *-omap: Avoid possible compiler warnings.
2002         Reported by Marc Nieper-Wißkirchen in
2003         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
2004         * lib/gl_anylinked_list2.h (gl_linked_iterator,
2005         gl_linked_iterator_from_to): Mark as 'pure'.
2006         (gl_linked_iterator_free): Mark as 'const'.
2007         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
2008         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
2009         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
2010         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
2011         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
2012         (gl_tree_iterator_free): Mark as 'const'.
2013         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
2014         'pure'.
2015         (gl_tree_iterator_free): Mark as 'const'.
2016         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
2017         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
2018         (gl_tree_iterator_free): Mark as 'const'.
2019         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
2020         compare_position_threshold): Mark as 'pure'.
2021         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
2022         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
2023         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
2024         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
2025         'pure'.
2026         (gl_array_iterator_free): Mark as 'const'.
2027         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
2028         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
2029         (gl_array_iterator_free): Mark as 'const'.
2030         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
2031         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
2032         gl_array_iterator_atleast): Mark as 'pure'.
2033         (gl_array_iterator_free): Mark as 'const'.
2034         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
2035         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
2036         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
2037         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
2038         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
2039         gl_carray_sortedlist_search): Mark as 'pure'.
2040         (gl_carray_iterator_free): Mark as 'const'.
2042 2020-10-10  Bruno Haible  <bruno@clisp.org>
2044         rbtree-list: Avoid possible compiler warnings.
2045         This mirrors the change of avltree-list on 2014-09-16.
2046         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
2047         declaration. Add cast to void for ignored value of check_invariants.
2049 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
2051         stack: New module.
2052         * MODULES.html.sh: Add entry for the stack module.
2053         * modules/stack: New file.
2054         * modules/stack-tests: New file.
2055         * lib/stack.h: New file.
2056         * tests/test-stack.c: New file.
2058 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2060         attribute: improve const, pure doc
2061         Problem reported by Marc Nieper-Wißkirchen in:
2062         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
2063         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
2064         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
2066 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2068         thread: pacify GCC on Solaris 10
2069         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
2070         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
2071         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
2072         where pthread_t is unsigned int.
2074 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2076         c-stack: avoid AS_IF
2077         Problem reported by Bruno Haible in:
2078         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
2079         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
2081         c-stack: pacify GCC 9.3.1 when using libsigsegv
2082         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
2084 2020-10-04  Bruno Haible  <bruno@clisp.org>
2086         localename: Fix a couple of "unused parameter" warnings.
2087         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
2088         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
2089         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
2090         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
2091         parameter list.
2093 2020-10-04  Bruno Haible  <bruno@clisp.org>
2095         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
2096         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
2097         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
2098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
2099         HAVE_SNPRINTF_TRUNCATION_C99.
2100         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
2101         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
2103 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2105         c-stack: streamline Solaris configuration
2106         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
2107         the code is used only if a test for sigaltstack worked
2108         in some other way.
2109         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
2110         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
2111         heuristic does not work).
2112         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
2113         we no longer require the libsigsegv module.
2114         (Depends-on): Depend on havelib, not libsigsegv.
2116         c-stack: stop using SIGSTKSZ
2117         It’s been proposed to stop making SIGSTKSZ an integer constant:
2118         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
2119         Also, using SIGSTKSZ in #if did not conform to current POSIX.
2120         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
2121         * lib/c-stack.c (SIGSTKSZ): Remove.
2122         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
2123         All uses changed.
2125         c-stack: fix libsigsegv typo
2126         Problem reported by Bruno Haible in:
2127         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
2128         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
2129         to be used only on Solaris (exactly where it is not needed!).
2131 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
2133         MODULES.html.sh: Fix typo.
2134         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
2136 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
2138         version-etc: pacify Oracle Studio 12.6
2139         Without this patch, it complains: "version-etc.h", line 64:
2140         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
2141         pedantic mode.
2142         * lib/version-etc.h (version_etc): Port to C89 macro rules.
2144 2020-09-27  Bruno Haible  <bruno@clisp.org>
2146         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
2147         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2148         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2149         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
2150         ourselves; don't use AC_DECL_SYS_SIGLIST.
2152 2020-09-27  Bruno Haible  <bruno@clisp.org>
2154         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
2155         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2156         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2157         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
2158         instead of _AC_COMPUTE_INT.
2160 2020-09-27  Bruno Haible  <bruno@clisp.org>
2162         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
2163         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2164         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2165         Based on a patch by Paul Eggert.
2166         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
2167         test STDC_HEADERS. Assume <stdlib.h> exists.
2168         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
2170 2020-09-27  Bruno Haible  <bruno@clisp.org>
2172         Enable testing of prereleases of Autoconf 2.70.
2173         Suggested by Paul Eggert in
2174         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
2175         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
2176         >= 2.70.
2177         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
2178         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
2179         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
2181 2020-09-27  Bruno Haible  <bruno@clisp.org>
2183         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
2184         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2185         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
2186         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
2187         AC_PROG_CC, depending on the Autoconf version.
2189 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
2191         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
2192         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
2193         of AC_HELP_STRING.
2194         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
2196 2020-09-27  Bruno Haible  <bruno@clisp.org>
2198         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
2199         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2200         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
2201         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
2203 2020-09-27  Bruno Haible  <bruno@clisp.org>
2205         extensions: Simplify last commit.
2206         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
2207         AC_GNU_SOURCE ever.
2209 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2211         extensions: require AC_GNU_SOURCE only for <=2.63
2212         Problem reported by Gavin Smith in:
2213         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
2214         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
2215         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
2216         shouldn’t be needed after that, and Autoconf 2.70 complains about
2217         it being obsolete.
2219 2020-09-26  Bruno Haible  <bruno@clisp.org>
2221         regex-tests: Make test more robust.
2222         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
2223         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
2225 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2227         regex-tests: fix possible Turkish false-alarm
2228         * modules/regex-tests (Depends-on): Add wctype-h.
2229         * tests/test-regex.c: Include wctype.h.
2230         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
2231         as the Turkish regex test assumes this.
2233         regex-tests: fix test and add debug output
2234         Perhaps this will fix the recent grep test failure reported at:
2235         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
2236         At least, the debug output should help narrow down the failure.
2237         * tests/test-regex.c: Include stdarg.h, stdio.h.
2238         (exit_status): New var.
2239         (report_error): New function.
2240         (main): Use it to report failures to stdout instead of merely
2241         exiting with some nonzero status.  The status info alone isn’t
2242         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
2243         regex before calling re_compile_pattern, fixing a portability bug.
2245         regex: no longer match glibc
2246         * config/srclist.txt: Comment out regex_internal.c for now.
2248 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2250         regex: fix ignore-case Turkish bug
2251         * lib/regex_internal.c (build_wcs_upper_buffer):
2252         Do not assume that converting single-byte character to upper
2253         yields a single-byte character.  This is not true for Turkish,
2254         where towupper (L'i') yields L'İ', which is not single-byte.
2255         * tests/test-regex.c (main): Test for this bug.
2257         regex: port to weird isascii platforms
2258         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
2260 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2262         dfa: make dfasupported a global function
2263         * lib/dfa.c (dfasupported): Rename, and make it global.
2264         Update caller.
2265         * lib/dfa.h (dfasupported): Add prototype.
2267 2020-09-20  Bruno Haible  <bruno@clisp.org>
2269         canonicalize: Add support for UNC file names on native Windows.
2270         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
2271         <https://savannah.gnu.org/bugs/?59079>.
2272         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
2273         extend the prefix to include the server.
2275 2020-09-20  Bruno Haible  <bruno@clisp.org>
2277         supersede: Fix test failures on native Windows.
2278         * lib/supersede.c (open_supersede): Handle non-regular files on native
2279         Windows like on Solaris.
2280         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
2282 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2284         test-stdalign: test Oracle Studio better
2285         * doc/posix-headers/stdalign.texi (stdalign.h):
2286         * tests/test-stdalign.c (main):
2287         Sun Studio Bug #2125432 seems to be fixed.
2289         c-stack: output diagnostic in single 'write'
2290         * lib/c-stack.c (die): In the typical case, use just one 'write'
2291         syscall to output the diagnostic, as this lessens interleaving.
2292         (die, c_stack_action): Assume C99.
2293         * modules/c-stack (Depends-on): Add c99, mempcpy.
2295         c-stack: improve checking if !libsigsegv
2296         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
2297         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
2298         unlikely pointer overflow.  Also, fix some obsolete code and typos.
2299         I found these problems while looking into this bug report:
2300         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
2301         * lib/c-stack.c: Include c-stack.h first, to test interface.
2302         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
2303         max_align_t, intprops.h for INT_ADD_WRAPV.
2304         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
2305         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
2306         for libsigsegv 2.8 and earlier since the bug should be fixed
2307         after that.
2308         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
2309         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
2310         Assume sprintf returns byte count; this assumption is safe now.
2311         (page_size): New static volatile variable, since sysconf isn’t
2312         documented to be async-signal-safe on Solaris.  This variable is
2313         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
2314         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
2315         SIGINFO_WORKS).
2316         (segv_handler): Use it if present.  Never report null pointer
2317         dereference as a stack overflow.  Check for (unlikely) unsigned
2318         and/or pointer overflow.
2319         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2320         Rename cache variables to gl_cv_sys_stack_overflow_works
2321         and gl_cv_sys_xsi_stack_overflow_heuristic.
2322         All uses changed.
2323         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
2324         c-stack no longer uses STACK_DIRECTION.
2325         Do not check for unistd.h, since we depend on unistd.
2326         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
2327         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
2328         stdbool, stddef.
2330 2020-09-20  Bruno Haible  <bruno@clisp.org>
2332         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
2333         * m4/musl.m4: Revert 2020-09-19 patch.
2334         * m4/setlocale_null.m4: Likewise.
2335         * modules/setlocale-null: Likewise.
2337 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
2338             Bruno Haible  <bruno@clisp.org>
2340         relocatable-prog: Fix for multiple relocatable library directories.
2341         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
2342         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
2343         being attached to a single one.
2345 2020-09-19  Jim Meyering  <meyering@fb.com>
2347         test-verify.c: avoid -Wshadow warnings
2348         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
2349         (enum): Capitalize member names. Adjust uses.
2351 2020-09-19  Bruno Haible  <bruno@clisp.org>
2353         havelib: Avoid linking with libc.a on GNU systems.
2354         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
2355         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
2356         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
2357         dependency_libs value of a .la file, ignore '-lc' options on GNU
2358         systems.
2360 2020-09-19  Bruno Haible  <bruno@clisp.org>
2362         Fix recognition of musl libc on Alpine Linux 3.10.
2363         Reported by Jeffrey Walton <noloader@gmail.com> in
2364         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
2365         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
2366         (gl_MUSL_LIBC): Require it.
2367         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
2368         * modules/setlocale-null (Files): Add m4/musl.m4.
2370 2020-09-19  Bruno Haible  <bruno@clisp.org>
2372         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
2373         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
2374         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
2375         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
2376         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
2377         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
2378         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
2379         or <threads.h>.
2380         (ITEMS, MAX_RESULT_LEN): New macros.
2381         (nl_langinfo_unlocked): New function.
2382         (gl_get_nl_langinfo_lock): New declaration.
2383         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
2384         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
2385         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
2386         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
2387         REPLACE_NL_LANGINFO.
2388         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
2389         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
2390         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
2391         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
2392         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
2394 2020-09-18  Bruno Haible  <bruno@clisp.org>
2396         fsusage, getaddrinfo: Produce more regular configure output.
2397         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
2398         corresponding AC_MSG_RESULT.
2399         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
2401 2020-09-18  Bruno Haible  <bruno@clisp.org>
2403         Add back gl_SILENT.
2404         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
2406 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2408         c-stack-tests: fix -fsanitize=undefined false alarm
2409         * tests/test-c-stack2.sh: Skip the test-harness self-test
2410         if ‘gcc -fsanitize=undefined’ is in use.
2412 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2414         signalblocking: simplify and remove gl_SILENT
2415         gl_SILENT was problematic because if a trap was sprung, stderr
2416         generated during the trap was lost.  Avoid the problem by
2417         removing the need for gl_SILENT.
2418         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
2419         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
2420         Simplify, avoiding the need for gl_SILENT while preserving the
2421         ability of the user to override the value of the cache variable,
2422         now ac_cv_func_sigprocmask.
2424 2020-09-17  Bruno Haible  <bruno@clisp.org>
2426         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
2427         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
2428         (gl_SILENT): Use 'exec', not a compound statement, to redirect
2429         AS_MESSAGE_FD.
2431 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2433         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
2434         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
2435         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
2436         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
2437         Define to 0.
2438         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
2439         Do not use __builtin_mul_overflow_p.
2441         libc-config: port __THROW to Ubuntu 4
2442         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
2443         for GCC 3.3.  Problem reported by Jeffrey Walton in:
2444         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
2445         The GCC 3.3.4 documentation says the attribute should work, but
2446         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
2447         little point or desire to research this circa-2004 platform further,
2448         so just avoid the attribute there.
2450 2020-09-17  Jim Meyering  <meyering@fb.com>
2452         test-dfa-match.sh: port timeout work-around to newer Busybox
2453         * tests/test-dfa-match.sh: Update timeout -t portability test to
2454         accommodate Busybox 1.30.0 and newer.
2456 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2458         fnmatch: adjust to match glibc fix
2459         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
2460         This does not affect Gnulib; it merely keeps Gnulib and glibc
2461         closer together, to help with any eventual merge, by incorporating
2462         a recent glibc patch.  The patch and the following commentary is
2463         by Andreas Schwab.
2464         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
2465         contains the index into the extra array, whereas wextra points
2466         into the extra array at this index, containing the length of the
2467         following collating sequence in the wide character representation.
2469 2020-09-16  Bruno Haible  <bruno@clisp.org>
2471         stat, fstat: Fix compilation error with old mingw headers.
2472         Reported by Eli Zaretskii <eliz@gnu.org> in
2473         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2474         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
2475         define it.
2477 2020-09-16  Bruno Haible  <bruno@clisp.org>
2479         stat, fstat: Fix when compiling for versions older than Windows Vista.
2480         Reported by Eli Zaretskii <eliz@gnu.org> in
2481         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2482         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
2483         that was originally set before we redefined it.
2484         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
2485         (gl_PREREQ_STAT): Require it.
2486         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
2488 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2490         dfa: remove dfa-heap-overrun workaround
2491         * lib/dfa.c (reorder_tokens): Go back to a single pass that
2492         both sets map[*] and does other things.  This reverts
2493         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
2494         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
2495         fixed the underlying problem.
2497 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2499         dfa: avoid use of uninitialized constraint
2500         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
2501         to zero here.
2502         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
2503         use of an uninitialized constraint by later code when ! (flags[i]
2504         & OPT_QUEUED) means merge_nfa_state was not called to initialize
2505         the constraint.  Problem found by running 'valgrind src/grep -E
2506         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
2508         dfa: assume C99 in reorder_tokens
2509         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
2511         dfa: fix dfa-heap-overrun failure
2512         * lib/dfa.c (reorder_tokens): When setting
2513         map[d->follows[i].elems[j].index], instead of incorrectly assuming
2514         that (i < d->follows[i].elems[j].index), use two loops, one to set
2515         the map array and the other to use it.  The incorrect assumption
2516         caused some elements to be missed, and this in turn caused grep's
2517         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
2518         with GCC.  I found this bug while investigating
2519         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
2520         and I think the bug also occurs on GNU/Linux but with more-subtle
2521         symptoms.  The bug predates the recent dfa.c changes; perhaps the
2522         recent changes make the bug more likely.
2524 2020-09-13  Bruno Haible  <bruno@clisp.org>
2526         parse-datetime: Make the build rule work with parallel 'make'.
2527         Reported by Daiki Ueno <ueno@gnu.org> in
2528         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
2529         * modules/parse-datetime (Makefile.am): Use a phony target and the
2530         general idiom for rules that produce multiple files.
2532 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
2534         getpass: Check for nonnull prompt argument while avoiding warnings.
2535         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
2536         (getpass) [!_WIN32]: Print prompt only if nonnull.
2538 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2540         dfa: epsilon-closure tweaks (Bug#40634)
2541         Rename BACKWORD to BACKWARD consistently.
2542         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
2543         (addtok_mb): Redo slightly to make it act more like a state machine.
2544         Check depth only when it increases.
2545         (epsclosure): Let the switch test the tokens.
2546         (dfaanalyze): Cache tindex.  Simplify position loops.
2547         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
2548         only if it is not null, since we're testing that anyway.
2549         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
2551 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2553         dfa: use backward set in removal of epsilon closure
2554         When removing in epsilon closure, the code searched all nodes
2555         sequentially, and this was slow for some cases.  Build a backward
2556         set before search, and only check previous position with the set.
2557         Problem reported in <https://bugs.gnu.org/40634>.
2558         * lib/dfa.c (struct dfa): New member 'epsilon'.
2559         (addtok_mb): Check whether a pattern has epsilon node or not.
2560         (epsclosure): New arg BACKWORD; caller changed.  When removing
2561         epsilon node and reconnecting, check only previous positions.
2562         Treat BEG as if it were character.
2563         (dfaanalyze): Build backward set.
2565 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2567         canonicalize: fix pointer indexing bugs
2568         Problem reported by Florian Weimer in:
2569         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
2570         * lib/canonicalize-lgpl.c (__realpath):
2571         * lib/canonicalize.c (canonicalize_filename_mode):
2572         Do not generate a pointer past the end of the array.
2573         * lib/canonicalize.c (canonicalize_filename_mode):
2574         Do not use a pointer after passing it to realloc.
2576 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
2578         tempname: help merge with glibc
2579         Inspired by draft patches by Adhemerval Zanella in:
2580         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
2581         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
2582         * lib/tempname.c: Include stdalign.h, time.h.
2583         If _LIBC, do not include random-bits.h.
2584         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
2585         (RANDOM_BITS): Remove, replacing with ...
2586         (random_bits): ... this new static function.  All uses changed.
2587         Add entropy each time if getrandom is not supported.
2588         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
2589         Assume 64-bit support a la C99.
2590         (try_tempname_len): Take advantage of ASLR when initializing
2591         random value.
2592         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
2594         getcwd: merge recent glibc changes
2595         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
2596         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
2598 2020-09-06  Bruno Haible  <bruno@clisp.org>
2600         attribute: Clarify which file to include.
2601         * modules/attribute (Include): Add "attribute.h".
2603 2020-09-06  Bruno Haible  <bruno@clisp.org>
2605         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
2606         * lib/pipe-filter-ii.c: Include <process.h>.
2607         * lib/pipe-filter-gi.c: Likewise.
2609 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2611         verify: avoid __builtin_assume
2612         Our latest attempt to use Clang’s __builtin_assume caused a crash
2613         in GNU Emacs that we spent quite some time tracking down as being
2614         caused by the switch to __builtin_assume.  It’s not known whether
2615         the crash is due is a Clang bug or a portability bug in GNU Emacs.
2616         For now, play it safe and avoid __builtin_assume.
2617         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
2618         (assume): Simplify by not trying to use Clang’s __builtin_assume.
2620 2020-09-05  Bruno Haible  <bruno@clisp.org>
2622         Fix several "warning: no previous prototype for function".
2623         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
2624         in front of the declaration of the lookup function in
2625         unicase/locale-languages.h.
2626         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
2627         unictype/bidi_byname.h.
2628         * modules/unictype/category-byname (Makefile.am): Likewise in
2629         unictype/categ_byname.h.
2630         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
2631         unictype/combiningclass_byname.h.
2632         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
2633         unictype/joininggroup_byname.h.
2634         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
2635         unictype/joiningtype_byname.h.
2636         * modules/unictype/property-byname (Makefile.am): Likewise in
2637         unictype/pr_byname.h.
2638         * modules/unictype/scripts (Makefile.am): Likewise in
2639         unictype/scripts_byname.h.
2640         * modules/uninorm/composition (Makefile.am): Likewise in
2641         uninorm/composition-table.h.
2643 2020-09-05  Bruno Haible  <bruno@clisp.org>
2645         select: Fix "warning: no previous prototype for function".
2646         * lib/select.c: Include <sys/select.h>.
2648 2020-09-05  Bruno Haible  <bruno@clisp.org>
2650         Use module 'c99' when needed for variadic macros with '...' syntax.
2651         * modules/crypto/sm3 (Depends-on): Add c99.
2653 2020-09-05  Bruno Haible  <bruno@clisp.org>
2655         Use module 'c99' when needed for subobject initializer syntax.
2656         * modules/tempname (Depends-on): Add c99.
2657         * modules/nstrftime-tests (Depends-on): Likewise.
2659 2020-09-05  Bruno Haible  <bruno@clisp.org>
2661         Use module 'c99' when needed for declaration-after-statement syntax.
2662         * modules/backup-rename (Depends-on): Add c99.
2663         * modules/backupfile (Depends-on): Likewise.
2664         * modules/bitset-tests (Depends-on): Likewise.
2665         * modules/bitsetv (Depends-on): Likewise.
2666         * modules/c-strtod (Depends-on): Likewise.
2667         * modules/c-strtold (Depends-on): Likewise.
2668         * modules/clean-temp (Depends-on): Likewise.
2669         * modules/copy-file (Depends-on): Likewise.
2670         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
2671         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
2672         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
2673         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
2674         * modules/crypto/md5-buffer (Depends-on): Likewise.
2675         * modules/crypto/md5-tests (Depends-on): Likewise.
2676         * modules/crypto/sha1-buffer (Depends-on): Likewise.
2677         * modules/crypto/sha1-tests (Depends-on): Likewise.
2678         * modules/crypto/sha256-buffer (Depends-on): Likewise.
2679         * modules/crypto/sha256-tests (Depends-on): Likewise.
2680         * modules/crypto/sha512-buffer (Depends-on): Likewise.
2681         * modules/crypto/sha512-tests (Depends-on): Likewise.
2682         * modules/diffseq (Depends-on): Likewise.
2683         * modules/fatal-signal (Depends-on): Likewise.
2684         * modules/fchmodat (Depends-on): Likewise.
2685         * modules/fstrcmp (Depends-on): Likewise.
2686         * modules/fsusage (Depends-on): Likewise.
2687         * modules/fts (Depends-on): Likewise.
2688         * modules/fts-tests (Depends-on): Likewise.
2689         * modules/getumask (Depends-on): Likewise.
2690         * modules/git-merge-changelog (Depends-on): Likewise.
2691         * modules/hash-map (Depends-on): Likewise.
2692         * modules/hash-set (Depends-on): Likewise.
2693         * modules/lchmod (Depends-on): Likewise.
2694         * modules/libgmp-tests (Depends-on): Likewise.
2695         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
2696         * modules/linkedhash-map (Depends-on): Likewise.
2697         * modules/linkedhash-set (Depends-on): Likewise.
2698         * modules/long-options (Depends-on): Likewise.
2699         * modules/mbrtoc32 (Depends-on): Likewise.
2700         * modules/memchr2-tests (Depends-on): Likewise.
2701         * modules/memmem-tests (Depends-on): Likewise.
2702         * modules/memrchr-tests (Depends-on): Likewise.
2703         * modules/mktime-internal (Depends-on): Likewise.
2704         * modules/nstrftime (Depends-on): Likewise.
2705         * modules/opendirat (Depends-on): Likewise.
2706         * modules/parse-datetime (Depends-on): Likewise.
2707         * modules/quotearg-simple-tests (Depends-on): Likewise.
2708         * modules/same (Depends-on): Likewise.
2709         * modules/supersede (Depends-on): Likewise.
2710         * modules/supersede-tests (Depends-on): Likewise.
2711         * modules/time_rz (Depends-on): Likewise.
2712         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
2713         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
2714         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
2715         * modules/xalloc (Depends-on): Likewise.
2716         * modules/xnanosleep (Depends-on): Likewise.
2718 2020-09-05  Bruno Haible  <bruno@clisp.org>
2720         Fix "warning: array initialized from parenthesized string constant".
2721         * tests/test-memmem.c (main): Remove parentheses around string constant.
2722         * tests/test-c-strcasestr.c (main): Likewise.
2723         * tests/test-strcasestr.c (main): Likewise.
2725 2020-09-05  Bruno Haible  <bruno@clisp.org>
2727         argmatch tests: Fix ISO C compliance warning.
2728         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
2729         invocation.
2731 2020-09-05  Bruno Haible  <bruno@clisp.org>
2733         uniname/uniname: Fix -Wshadow warning.
2734         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
2735         * modules/uniname/uniname (Depends-on): Add c99.
2737 2020-09-05  Bruno Haible  <bruno@clisp.org>
2739         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
2740         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
2741         argument to size_t.
2742         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
2743         n to size_t.
2745 2020-09-05  Bruno Haible  <bruno@clisp.org>
2747         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
2748         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
2749         u32_uctomb): Change type of last argument to ptrdiff_t.
2750         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
2751         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
2752         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
2753         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
2754         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
2756 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2758         manywarnings: remove -Wchkp and -Wabi from C++ too
2759         Suggested by Reuben Thomas in:
2760         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
2761         At some point somebody should merge the many other manywarnings-c.m4
2762         changes into manywarnings-c++.m4 too, e.g.,
2763         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
2764         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2765         Remove -Wchkp, -Wabi.
2767 2020-08-30  Bruno Haible  <bruno@clisp.org>
2769         strerrorname_np: Add tests.
2770         * tests/test-strerrorname_np.c: New file.
2771         * modules/strerrorname_np-tests: New file.
2773         strerrorname_np: New module.
2774         * lib/string.in.h (strerrorname_np): New declaration.
2775         * lib/strerrorname_np.c: New file.
2776         * m4/strerrorname_np.m4: New file.
2777         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
2778         is declared.
2779         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
2780         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2781         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
2782         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2783         * modules/strerrorname_np: New file.
2784         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
2785         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
2786         the glibc 2.32 bug.
2788 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2790         perror, strerror_r: remove unportable tests
2791         Problem reported by Florian Weimer in:
2792         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
2793         * tests/test-perror2.c (main):
2794         * tests/test-strerror_r.c (main): Omit unportable tests.
2796 2020-08-26  Bruno Haible  <bruno@clisp.org>
2798         stdint, wchar, wctype-h: Change configure message.
2799         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
2800         enough..." instead of "checking whether wint_t is too small...".
2802 2020-08-26  Bruno Haible  <bruno@clisp.org>
2804         time_rz: Change configure message.
2805         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
2806         near extrema..." instead of "checking whether localtime loops forever
2807         near extrema...".
2809 2020-08-26  Bruno Haible  <bruno@clisp.org>
2811         stdint: Change configure message.
2812         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
2813         without ISO C predefines..." instead of "checking whether stdint.h
2814         predates C++11...".
2816 2020-08-26  Bruno Haible  <bruno@clisp.org>
2818         socketlib: Change configure message.
2819         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
2820         instead of "checking if we need to call WSAStartup in winsock2.h and
2821         -lws2_32...".
2823 2020-08-26  Bruno Haible  <bruno@clisp.org>
2825         include_next: Change configure message.
2826         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
2827         code line length is unlimited..." instead of "checking whether system
2828         header files limit the line length...".
2830 2020-08-26  Bruno Haible  <bruno@clisp.org>
2832         getcwd: Change configure message.
2833         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
2834         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
2835         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
2837 2020-08-26  Bruno Haible  <bruno@clisp.org>
2839         chdir-long: Change configure message.
2840         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
2841         system supports file names of any length..." instead of "checking
2842         whether this system has an arbitrary file name length limit...".
2843         Set gl_cv_have_unlimited_file_name_length instead of
2844         gl_cv_have_arbitrary_file_name_length_limit.
2845         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
2847 2020-08-26  Bruno Haible  <bruno@clisp.org>
2849         ceill: Change configure message.
2850         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
2851         instead of "checking whether ceill() breaks with small values...".
2853 2020-08-26  Bruno Haible  <bruno@clisp.org>
2855         iconv: Change configure message.
2856         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
2857         with its POSIX signature..." instead of "checking for iconv
2858         declaration...". Remove K&R C support.
2860 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
2862         getcwd: help the merge back into glibc
2863         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
2864         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
2865         The idea is to make it easier for Gnulib lib/getcwd.c to match
2866         glibc io/getcwd-generic.c.
2867         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
2868         Include not-cancel.h.
2869         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
2870         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
2871         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
2872         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
2873         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
2874         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
2875         (__getcwd_generic): Rename from __getcwd.
2876         Use the abovementioned macros for consistency with glibc.
2877         (weak_alias): Remove.
2879 2020-08-25  Bruno Haible  <bruno@clisp.org>
2881         verify: Avoid warnings when assume(0) is used.
2882         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
2883         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
2884         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
2885         the constant 0.
2886         * tests/test-verify.c (f): New function.
2887         (state): New type.
2888         (test_assume_expressions, test_assume_optimization,
2889         test_assume_noreturn): New functions.
2891 2020-08-25  Bruno Haible  <bruno@clisp.org>
2893         fstrcmp: Clarification regarding NOTE_ORDERED.
2894         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
2896 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2898         diffseq: new option NOTE_ORDERED
2899         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
2900         * NEWS: Mention this.
2901         * lib/diffseq.h (NOTE_ORDERED): New macro.
2902         (IF_LINT2): Remove; no longer needed.
2903         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
2904         subproblem and iterate to do the larger.
2906 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2908         sys_types: let Autoconf 2.70 do pid_t
2909         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
2910         only for Autoconf versions 2.69 and earlier, since 2.70
2911         will be fixed.
2913 2020-08-23  Bruno Haible  <bruno@clisp.org>
2915         tests: Don't assume that pid_t fits in an 'int'.
2916         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
2917         of 'int'.
2918         * tests/test-nonblocking-socket-main.c (main): Likewise.
2920         sys_types: Fix definition of pid_t on 64-bit MSVC.
2921         * m4/pid_t.m4: New file.
2922         * modules/sys_types (Files): Add it.
2923         * modules/dirent (Files): Likewise.
2924         * modules/fcntl-h (Files): Likewise.
2925         * modules/sched (Files): Likewise.
2926         * modules/signal-h (Files): Likewise.
2927         * modules/spawn (Files): Likewise.
2928         * modules/sys_stat (Files): Likewise.
2929         * modules/sys_wait (Files): Likewise.
2930         * modules/termios (Files): Likewise.
2931         * modules/unistd (Files): Likewise.
2933 2020-08-23  Bruno Haible  <bruno@clisp.org>
2935         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
2936         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
2937         program.
2939 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2941         intprops: be consistent about +X vs X+0
2942         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
2944         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
2945         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
2946         is a bit-field, on older GCC or non-GCC compilers where we do
2947         things ourselves instead of using __builtin_mul_overflow.
2948         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
2949         to applying sizeof to a bit-field.
2950         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
2951         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
2953 2020-08-23  Bruno Haible  <bruno@clisp.org>
2955         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
2956         Reported by Jörg Sonnenberger <joerg@netbsd.org>
2957         via Thomas Klausner <tk@giga.or.at> in
2958         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
2959         * lib/supersede.c (open_supersede): When opening an existing non-regular
2960         file on Solaris, use O_CREAT although it should not be necessary.
2962 2020-08-23  Bruno Haible  <bruno@clisp.org>
2964         verify: Make assume work on bit field expressions (regr. 2020-08-22).
2965         Reported by Benno Schulenberg <bensberg@telfort.nl> in
2966         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
2967         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
2968         variable.
2970 2020-08-23  Bruno Haible  <bruno@clisp.org>
2972         libc-config: Improve comments.
2973         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
2974         cannot use clang's __diagnose_if__ here.
2976 2020-08-22  Bruno Haible  <bruno@clisp.org>
2978         verify: Do use __builtin_assume on clang.
2979         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
2980         variable in a statement expression.
2982 2020-08-22  Bruno Haible  <bruno@clisp.org>
2984         sig2str: Add more signals.
2985         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
2987 2020-08-22  Bruno Haible  <bruno@clisp.org>
2989         doc: Update for OpenBSD 6.0, 6.7.
2990         * doc/*/*.texi: Update.
2991         * m4/printf.m4: Update comments and cross-compilation guesses.
2992         * m4/ceill.m4: Update comments.
2993         * m4/getcwd-abort-bug.m4: Likewise.
2994         * m4/ilogb.m4: Likewise.
2995         * m4/ilogbf.m4: Likewise.
2996         * m4/langinfo_h.m4: Likewise.
2997         * m4/modf.m4: Likewise.
2998         * m4/modff.m4: Likewise.
3000 2020-08-22  Bruno Haible  <bruno@clisp.org>
3002         doc: Mention sig2str module.
3003         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
3005 2020-08-21  Bruno Haible  <bruno@clisp.org>
3007         sigdescr_np: Add tests.
3008         * tests/test-sigdescr_np.c: New file.
3009         * modules/sigdescr_np-tests: New file.
3011         sigdescr_np: New module.
3012         * lib/string.in.h (sigdescr_np): New declaration.
3013         * lib/sigdescr_np.c: New file.
3014         * m4/sigdescr_np.m4: New file.
3015         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
3016         declared.
3017         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
3018         HAVE_SIGDESCR_NP.
3019         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
3020         HAVE_SIGDESCR_NP.
3021         * modules/sigdescr_np: New file.
3022         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
3023         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
3025 2020-08-20  Bruno Haible  <bruno@clisp.org>
3027         sigabbrev_np: Add tests.
3028         * tests/test-sigabbrev_np.c: New file.
3029         * modules/sigabbrev_np-tests: New file.
3031         sigabbrev_np: New module.
3032         * lib/string.in.h (sigabbrev_np): New declaration.
3033         * lib/sigabbrev_np.c: New file.
3034         * m4/sigabbrev_np.m4: New file.
3035         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
3036         declared.
3037         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
3038         HAVE_SIGABBREV_NP.
3039         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
3040         HAVE_SIGABBREV_NP.
3041         * modules/sigabbrev_np: New file.
3042         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
3043         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
3045 2020-08-20  Bruno Haible  <bruno@clisp.org>
3047         stdalign tests: Skip test with AIX xlclang.
3048         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
3050 2020-08-20  Bruno Haible  <bruno@clisp.org>
3052         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
3053         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
3054         workaround as for GCC versions < 4.9.
3056 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3058         Sync up ProjectQuirks comments and documentation
3059         Transform the ProjectQuirks comments into a docstring so that it can
3060         be accessed from python as ProjectQuirks.__doc__ and harmonize
3061         descriptions with the documentation.
3062         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
3063         Transform comments into a docstring.
3064         * doc/vcs-to-changelog.texi: Sync up description with comments.
3066         Split ProjectQuirks out into its own file
3067         ProjectQuirks is used by external quirks files and importing it from
3068         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
3069         is cleaner to put it in its own file anyway.
3070         * build-aux/vcstocl/projectquirks.py: A new file...
3071         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
3072         we move ProjectQuirks and import the file.
3074 2020-08-19  Bruno Haible  <bruno@clisp.org>
3076         uchar: Fix compilation errors in C++ mode on macOS.
3077         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
3078         system header file before attempting to use 'char16_t' and 'char32_t'.
3080 2020-08-19  Bruno Haible  <bruno@clisp.org>
3082         ansi-c++-opt: Work around an autoconf macro reordering problem.
3083         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
3084         section.
3086 2020-08-19  Bruno Haible  <bruno@clisp.org>
3088         math C++ tests: Fix compilation error in with GCC 10.
3089         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
3090         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
3091         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3093 2020-08-19  Bruno Haible  <bruno@clisp.org>
3095         uchar: Fix compilation errors in C++ mode on OpenBSD.
3096         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
3097         CXX_HAS_UCHAR_TYPES is 1.
3098         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
3099         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
3100         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
3102 2020-08-19  Bruno Haible  <bruno@clisp.org>
3104         Fix compilation errors in C++ mode on OpenBSD.
3105         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
3106         OpenBSD with clang, use the approach without C preprocessor macro.
3108 2020-08-18  Bruno Haible  <bruno@clisp.org>
3110         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
3111         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
3112         AC_LANG_POP.
3114 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3116         verify: avoid __built_assume on Clang
3117         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
3118         Clang 9 incorrectly diagnoses arguments as having side effects
3119         even when they do not.  I guess Clang 9 considers any function
3120         call as if it had a side effect here.
3122         libc-config: avoid Clang’s __diagnose_if__
3123         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
3124         For now, do not use __diagnose_if__ here, as this fails
3125         on Fedora 31 with Clang 9.0.1, with diagnostic
3126         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
3127         size than length of destination buffer
3128         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
3129         for functions that are not called?
3131         careadlinkat: speedup for GCC 10 with GCC_LINT
3132         Inspired by a suggestion by Bruno Haible in:
3133         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
3134         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
3135         (readlink_stk): New function, with most of the old careadlinkat
3136         contents and with a new STACK_BUF arg.  Inline it in GCC 10
3137         if GCC_LINT.
3138         (careadlinkat): Use the new function for everything but the
3139         stack buffer.
3141         * build-aux/gcc-warning.spec: Update comments.
3143 2020-08-17  Bruno Haible  <bruno@clisp.org>
3145         Assume autoconf >= 2.64.
3146         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
3148 2020-08-17  Bruno Haible  <bruno@clisp.org>
3150         Revert autoupdate's revert.
3151         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
3153 2020-08-17  Bruno Haible  <bruno@clisp.org>
3155         uchar C++ tests: Fix build error on FreeBSD 12.
3156         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
3157         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
3158         <cuchar> does not exist.
3160 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3162         time_rz: remove unused functions
3163         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
3165         time_rz: fix issues with mktime_z failures
3166         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
3167         Use a cheaper tm_yday test for failed mktime.
3169 2020-08-16  Bruno Haible  <bruno@clisp.org>
3171         intprops test: Strengthen on clang.
3172         * tests/test-intprops.c (VERIFY): Use verify_stmt.
3174 2020-08-16  Bruno Haible  <bruno@clisp.org>
3176         nstrftime: Guide inlining also on clang.
3177         * lib/nstrftime.c (iso_week_days): Inline also on clang.
3179 2020-08-16  Bruno Haible  <bruno@clisp.org>
3181         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
3182         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
3184 2020-08-16  Bruno Haible  <bruno@clisp.org>
3186         log2l: Disable MSVC workaround on clang.
3187         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
3189 2020-08-16  Bruno Haible  <bruno@clisp.org>
3191         argp: Emit a warning also with clang.
3192         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
3193         clang.
3195 2020-08-16  Bruno Haible  <bruno@clisp.org>
3197         libc-config: Enable __REDIRECT macro also on clang.
3198         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
3199         __ASMNAME2): Define on clang like on GCC.
3201 2020-08-16  Bruno Haible  <bruno@clisp.org>
3203         regex: Use initializer shorthand syntax also with clang.
3204         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
3205         with clang.
3207 2020-08-16  Bruno Haible  <bruno@clisp.org>
3209         regex: Use space optimization also with clang.
3210         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
3211         with clang.
3213 2020-08-16  Bruno Haible  <bruno@clisp.org>
3215         Use _Static_assert and static_assert primitives when present on clang.
3216         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
3217         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
3218         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
3220 2020-08-16  Bruno Haible  <bruno@clisp.org>
3222         Use 'throw ()' for optimization in C++ mode also on clang.
3223         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
3224         * lib/getopt-cdefs.in.h (__THROW): Likewise.
3225         * lib/md5.h (__THROW): Likewise.
3227 2020-08-16  Bruno Haible  <bruno@clisp.org>
3229         absolute-header: Add support for clang.
3230         * modules/absolute-header (Makefile.am): Include '__clang__' in the
3231         HAVE_INCLUDE_NEXT expression.
3233 2020-08-16  Bruno Haible  <bruno@clisp.org>
3235         Fix "warning: implicitly declaring library function 'strcasecmp'".
3236         * lib/argp-help.c: Include <strings.h>.
3238 2020-08-16  Bruno Haible  <bruno@clisp.org>
3240         stdio: Don't break attribute 'scanf' on clang.
3241         * lib/stdio.in.h (scanf): Treat clang like GCC.
3243 2020-08-16  Bruno Haible  <bruno@clisp.org>
3245         Use __restrict also on clang.
3246         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
3247         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
3248         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
3250 2020-08-16  Bruno Haible  <bruno@clisp.org>
3252         pthread-spin: Use GCC built-ins also on clang.
3253         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
3254         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
3255         also on clang.
3257 2020-08-16  Bruno Haible  <bruno@clisp.org>
3259         asyncsafe-spin tests: Update.
3260         * tests/test-asyncsafe-spin2.c: Update to match the change in
3261         lib/asyncsafe-spin.c from 2020-08-11.
3263 2020-08-16  Bruno Haible  <bruno@clisp.org>
3265         setenv: Use tree code also with clang.
3266         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
3268 2020-08-16  Bruno Haible  <bruno@clisp.org>
3270         math: Optimize signbit also on clang.
3271         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
3272         on clang.
3274 2020-08-16  Bruno Haible  <bruno@clisp.org>
3276         avltreehash-list, rbtreehash-list: Optimize also on clang.
3277         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
3278         __builtin_expect also on clang.
3280 2020-08-16  Bruno Haible  <bruno@clisp.org>
3282         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
3283         * lib/socket.c: Use WSASocketW, not WSASocketA.
3285         Fix "warning: format specifies type 'unsigned long'".
3286         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
3287         argument to match the format directive.
3289         Fix "warning: no case matching constant switch condition '0'".
3290         * tests/test-fcntl.c (check_flags): Add a 'default' case.
3292         Fix "warning: integer overflow in expression".
3293         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
3294         remove a 'long' overflow.
3296         Fix "warning: "getpagesize" redefined".
3297         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
3298         macro.
3300         Fix "warning: implicitly declaring library function 'strncasecmp'".
3301         * lib/strptime.c: Include <strings.h>.
3303         Fix "warning: 'snprintf' macro redefined".
3304         * lib/strerror_r.c (snprintf): Undefine before redefining.
3306         Fix "warning: address of array 'locale' will always evaluate to 'true'".
3307         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
3309         Fix "warning: '__stat64' macro redefined".
3310         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
3312         Fix "warning: 'format' attribute argument not supported: rpl_printf".
3313         * lib/stdio.in.h (printf): Treat clang like GCC.
3315         Fix "warning: attribute declaration must precede definition" with clang.
3316         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
3317         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
3318         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
3319         on non-glibc systems.
3320         * lib/netdb.in.h (gai_strerror): Likewise.
3321         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
3322         * lib/sys_stat.in.h (fstat): Likewise.
3323         * lib/utime.in.h (utime): Likewise.
3325         Fix undesired warnings.
3326         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
3327         clang.
3329 2020-08-16  Bruno Haible  <bruno@clisp.org>
3331         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
3332         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
3333         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
3334         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
3335         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
3337 2020-08-16  Bruno Haible  <bruno@clisp.org>
3339         Don't use Autoconf quadrigraphs.
3340         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
3341         Autoconf quadrigraph.
3342         * m4/free.m4 (gl_FUNC_FREE): Likewise.
3343         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
3344         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
3345         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
3346         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
3347         * m4/math_h.m4 (gl_MATH_H): Likewise.
3348         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3350 2020-08-16  Bruno Haible  <bruno@clisp.org>
3352         Fix quoting of AC_LANG_PROGRAM arguments.
3353         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
3354         arguments through [[...]].
3355         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
3356         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3357         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3358         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
3359         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
3360         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3361         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
3362         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3363         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3364         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3365         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3366         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
3367         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3369 2020-08-16  Bruno Haible  <bruno@clisp.org>
3371         Assume autoconf >= 2.64.
3372         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
3373         * DEPENDENCIES: Require Autoconf 2.64 or newer.
3374         * NEWS: Mention the changed requirement.
3375         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
3376         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
3377         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
3378         variables.
3379         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3380         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3381         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3382         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
3383         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
3384         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
3385         Likewise.
3386         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
3387         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
3388         * m4/configmake.m4: Update comment.
3390 2020-08-16  Bruno Haible  <bruno@clisp.org>
3392         sys_ioctl: Simplify.
3393         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
3394         AC_INCLUDES_DEFAULT.
3396 2020-08-16  Bruno Haible  <bruno@clisp.org>
3398         Fix quoting of AC_LANG_SOURCE arguments.
3399         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
3400         GL_NOCRASH expansion.
3401         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
3402         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3403         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3404         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3405         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3407 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3409         nstrftime: be more predictable about errno
3410         This aligns nstrftime better with draft POSIX 202x strftime.
3411         * lib/nstrftime.c: Include errno.h.
3412         (width_add, __strftime_internal): Set errno on failure,
3413         and preserve it on success.  Check for mktime_z failure.
3414         * modules/nstrftime (Depends-on): Add errno.
3415         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
3416         * tests/test-nstrftime.c: Include intprops.h, limits.h.
3417         (errno_test): New test function.
3418         (main): Call it.
3420 2020-08-15  Bruno Haible  <bruno@clisp.org>
3422         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
3423         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
3424         from dependency analysis first.
3426 2020-08-15  Bruno Haible  <bruno@clisp.org>
3428         Determine asm output option and filename suffix for MSVC/clang.
3429         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
3430         clang-cl.
3432 2020-08-15  Bruno Haible  <bruno@clisp.org>
3434         doc: Update for MSVC/clang.
3435         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
3436         that MSVC 14 does not have.
3438 2020-08-15  Bruno Haible  <bruno@clisp.org>
3440         Revert autoupdate's revert.
3441         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
3443 2020-08-15  Bruno Haible  <bruno@clisp.org>
3445         frexpl: Fix configuration test result on MSVC.
3446         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
3447         zero.
3449 2020-08-15  Bruno Haible  <bruno@clisp.org>
3451         Support compiling without -loldnames on native Windows.
3452         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
3453         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
3454         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3455         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3456         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3457         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3458         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
3459         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
3460         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3461         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
3462         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
3463         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
3464         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3465         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
3466         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
3467         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
3468         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3469         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3470         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
3471         Likewise.
3472         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
3473         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3474         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
3475         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3476         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3477         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
3478         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
3479         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3480         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3481         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
3482         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3483         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
3484         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3485         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3486         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
3487         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3488         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3489         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3490         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3491         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3492         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
3493         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3494         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3495         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3496         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3497         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3498         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3499         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
3500         test for getcwd.
3501         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
3502         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
3503         with GL_MDA_DEFINES.
3504         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
3505         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
3506         prefixed symbol.
3507         * lib/search.in.h (lfind, lsearch): Likewise.
3508         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
3509         Likewise.
3510         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
3511         * lib/string.in.h (memccpy, strdup): Likewise.
3512         * lib/sys_stat.in.h (chmod, umask): Likewise.
3513         * lib/time.in.h (tzset): Likewise.
3514         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
3515         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
3516         read, rmdir, swab, unlink, write): Likewise.
3517         * lib/utime.in.h (utime): Likewise.
3518         * lib/wchar.in.h (wcsdup): Likewise.
3519         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
3520         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
3521         rpl_-prefixed macro.
3522         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
3523         * lib/close.c (close_nothrow): On native Windows, use _close.
3524         * lib/creat.c (orig_creat): On native Windows, use _creat.
3525         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
3526         * lib/dup2.c (dup2_nothrow): Use _dup2.
3527         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
3528         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
3529         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
3530         * lib/open.c (orig_open): On native Windows, use _open.
3531         * lib/read.c (read_nothrow): Use _read.
3532         * lib/rmdir.c: On native Windows, use _rmdir.
3533         * lib/unlink.c: On native Windows, use _unlink.
3534         * lib/write.c (write_nothrow): Use _write.
3535         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
3536         undefined symbol.
3537         * lib/sys_socket.in.h (close): Likewise.
3538         * lib/sys_time.in.h (close): Likewise.
3539         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
3541 2020-08-15  Bruno Haible  <bruno@clisp.org>
3543         Fix "unknown pragma ignored" warnings with clang on native Windows.
3544         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
3545         * lib/cbrtf.c: Likewise.
3546         * lib/ceil.c: Likewise.
3547         * lib/floor.c: Likewise.
3548         * lib/fma.c: Likewise.
3549         * lib/fmod.c: Likewise.
3550         * lib/rint.c: Likewise.
3551         * lib/round.c: Likewise.
3552         * lib/trunc.c: Likewise.
3553         * tests/test-ceil2.c: Likewise.
3554         * tests/test-ceilf2.c: Likewise.
3555         * tests/test-floor2.c: Likewise.
3556         * tests/test-floorf2.c: Likewise.
3557         * tests/test-trunc2.c: Likewise.
3558         * tests/test-truncf2.c: Likewise.
3559         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3560         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3562 2020-08-15  Bruno Haible  <bruno@clisp.org>
3564         Fix compilation errors in C++ mode with clang on native Windows.
3565         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
3566         non-glibc systems.
3567         * lib/sched.in.h (sched_yield): Likewise.
3569 2020-08-14  Bruno Haible  <bruno@clisp.org>
3571         stdnoreturn: Work around problem with MSVC/clang.
3572         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
3573         system header after <stdnoreturn.h>.
3574         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
3576 2020-08-14  Bruno Haible  <bruno@clisp.org>
3578         utime-h: Generate an utime.h file always.
3579         * modules/utime-h (Makefile.am): Generate utime.h always.
3580         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
3581         GL_GENERATE_UTIME_H.
3583 2020-08-14  Bruno Haible  <bruno@clisp.org>
3585         mktime, mktime-internal: Remove obsolete code.
3586         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
3588 2020-08-14  Bruno Haible  <bruno@clisp.org>
3590         getcwd: Remove obsolete code.
3591         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
3592         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3594 2020-08-14  Bruno Haible  <bruno@clisp.org>
3596         tzset: Assume the function exists.
3597         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
3598         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
3599         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
3600         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
3601         HAVE_TZSET.
3602         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
3603         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
3605         nstrftime: Assume tzset exists.
3606         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
3607         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
3608         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
3610         mktime, mktime-internal: Assume tzset exists.
3611         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
3612         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
3614 2020-08-14  Bruno Haible  <bruno@clisp.org>
3616         strdup: Assume the function exists.
3617         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
3618         whether strdup exists.
3619         * modules/strdup (Files): Remove lib/strdup.c.
3620         (configure.ac): Don't compile strdup.c.
3621         * modules/strdup-posix (Depends-on, configure.ac): Don't test
3622         ac_cv_func_strdup.
3623         * doc/posix-functions/strdup.texi: Update.
3624         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
3625         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
3626         (Depends-on): Remove unistr/u8-strlen.
3628 2020-08-13  Bruno Haible  <bruno@clisp.org>
3630         sys_random: Work around an uClibc bug.
3631         Reported by akater <nuclearspace@gmail.com>
3632         via Stefan Kangas <stefan@marxist.se>
3633         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
3634         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
3635         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
3636         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
3637         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
3639 2020-08-12  Bruno Haible  <bruno@clisp.org>
3641         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
3642         Reported by Florian Weimer in
3643         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
3644         * lib/gen-uni-tables.c (output_predicate): Change the element type of
3645         the level3 array to 'unsigned int'.
3646         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
3647         * lib/unictype/categ_*.h: Regenerated.
3648         * lib/unictype/ctype_*.h: Regenerated.
3649         * lib/unictype/pr_*.h: Regenerated.
3650         * lib/unictype/sy_*.h: Regenerated.
3651         * lib/unicase/cased.h: Regenerated.
3652         * lib/unicase/ignorable.h: Regenerated.
3654 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3656         stdint: port intptr_t to more-recent MinGW
3657         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
3658         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
3659         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
3660         Apparently those two macros were removed in mingwrt-3.22
3661         dated 2016-07-14.
3663 2020-08-12  Bruno Haible  <bruno@clisp.org>
3665         thread-optim: Export function-like macros only.
3666         Suggested by Paul Eggert.
3667         * lib/thread-optim.h (gl_multithreaded): New macro.
3668         (IF_MT_DECL, IF_MT): Remove macros.
3669         * doc/multithread.texi (Multithreading Optimizations): Add a small
3670         example.
3671         * lib/fatal-signal.c: Update all uses.
3672         * lib/clean-temp.c: Likewise.
3673         * lib/localename.c: Likewise.
3674         * modules/localename (Depends-on): Add stdbool.
3676 2020-08-12  Bruno Haible  <bruno@clisp.org>
3678         Revert autoupdate's revert.
3679         * config/srclist.txt: Mark regex.h as needing sync with glibc.
3681 2020-08-11  Bruno Haible  <bruno@clisp.org>
3683         thread-optim: Fix a compiler warning.
3684         * lib/thread-optim.h (IF_MT_DECL): Define differently.
3686 2020-08-11  Bruno Haible  <bruno@clisp.org>
3688         Use __restrict also on clang.
3689         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
3690         (__restrict_arr): On clang, define like on GCC.
3691         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
3692         (_Restrict_arr_): Use _Restrict_ also on clang.
3693         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
3694         (_Restrict_arr_): Use _Restrict_ also on clang.
3696 2020-08-11  Bruno Haible  <bruno@clisp.org>
3698         Use flexible array syntax also on clang.
3699         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
3700         define like for GCC 3.
3702 2020-08-11  Bruno Haible  <bruno@clisp.org>
3704         fcntl: On native Windows, use _setmode, not setmode.
3705         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
3706         * lib/binary-io.h: Update comment.
3707         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
3708         * tests/test-dup2.c: Likewise.
3709         * tests/test-dup-safer.c: Likewise.
3710         * tests/test-fcntl.c: Likewise.
3712 2020-08-11  Bruno Haible  <bruno@clisp.org>
3714         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
3715         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
3716         * lib/spawn-pipe.c (create_pipe): Likewise.
3717         * tests/test-nonblocking-pipe-main.c (main): Likewise.
3718         * tests/test-nonblocking-socket-main.c (main): Likewise.
3719         * lib/wait-process.c: Update comment.
3720         * doc/posix-functions/fork.texi: Update.
3722 2020-08-11  Bruno Haible  <bruno@clisp.org>
3724         asyncsafe-spin: Use GCC built-ins also on clang.
3725         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
3726         the newer GCC built-ins also on clang.
3728 2020-08-11  Bruno Haible  <bruno@clisp.org>
3730         Use expression statements also on clang.
3731         * lib/cdefs.h (__extension__): Don't define to empty on clang.
3732         * lib/obstack.h (__extension__): Likewise.
3733         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
3734         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
3735         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
3736         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
3737         obstack_finish, obstack_free): Enable as optimized macros also on clang.
3738         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
3740 2020-08-10  Bruno Haible  <bruno@clisp.org>
3742         Use many __attribute__s with clang.
3743         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
3744         on clang.
3745         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
3746         New macros.
3747         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
3748         on clang.
3749         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
3750         also on older clang versions.
3751         (__attribute__): Don't define to empty on clang.
3752         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
3753         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
3754         (__attribute_const__): Use __attribute__ __const__ also on clang.
3755         (__attribute_used__): Use __attribute__ __used__ also on clang.
3756         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
3757         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
3758         clang.
3759         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
3760         clang.
3761         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
3762         also on clang.
3763         (__nonnull): Use __attribute__ __nonnull__ also on clang.
3764         (__attribute_warn_unused_result__): Use __attribute__
3765         __warn_unused_result__ also on clang.
3766         (__always_inline): Use __attribute__ __always_inline__ also on clang.
3767         (__attribute_artificial__): Use __attribute__ __artificial__ also on
3768         clang >= 7.
3769         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
3770         clang versions.
3771         (_Noreturn): Don't redefine on clang >= 3.5.
3772         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
3773         also on clang.
3774         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
3775         on clang.
3776         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3777         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3778         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3779         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
3780         also on clang.
3781         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3782         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
3783         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
3784         also on clang.
3785         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
3786         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
3787         __attribute__ __noreturn__ also on clang.
3788         * lib/obstack.h (__attribute_noreturn__): Likewise.
3789         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
3790         clang.
3791         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
3792         always_inline also on clang.
3793         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
3794         clang.
3796 2020-08-10  Bruno Haible  <bruno@clisp.org>
3798         c-ldtoastr tests: Fix test failure.
3799         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
3800         is longer than 'double'.
3802 2020-08-10  Bruno Haible  <bruno@clisp.org>
3804         Revert autoupdate's revert.
3805         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
3807 2020-08-09  Bruno Haible  <bruno@clisp.org>
3809         string: Fix build error in C++ mode with clang (regression from today).
3810         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
3811         parameters, one for GCC, one for clang.
3812         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
3813         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
3814         as return type.
3816 2020-08-09  Bruno Haible  <bruno@clisp.org>
3818         ftruncate: Use _chsize, not chsize.
3819         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
3820         * lib/ftruncate.c: Test HAVE__CHSIZE.
3821         (chsize_nothrow): Use _chsize, not chsize.
3823 2020-08-09  Bruno Haible  <bruno@clisp.org>
3825         Silence warnings from clang 10 with -Wimplicit-fallthrough.
3826         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
3827         clang >= 10.
3828         * lib/fnmatch.c (FALLTHROUGH): Likewise.
3829         * lib/fts.c (FALLTHROUGH): Likewise.
3830         * tests/macros.h (FALLTHROUGH): Likewise.
3831         * lib/regex_internal.h (FALLTHROUGH): Likewise.
3832         * config/srclist.txt: Mark it as needing sync with glibc.
3834 2020-08-09  Bruno Haible  <bruno@clisp.org>
3836         stdbool tests: Enable the stricter tests also on clang.
3837         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
3838         (e): Enable the address-to-bool conversion test also on clang.
3840 2020-08-09  Bruno Haible  <bruno@clisp.org>
3842         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
3843         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
3845 2020-08-09  Bruno Haible  <bruno@clisp.org>
3847         Use attribute __aligned__ with clang.
3848         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
3849         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
3851 2020-08-09  Bruno Haible  <bruno@clisp.org>
3853         Use __alignof__ with clang.
3854         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
3855         on clang.
3856         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
3857         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
3858         clang.
3859         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
3860         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
3861         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
3862         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
3864 2020-08-09  Bruno Haible  <bruno@clisp.org>
3866         ignore-value: Simplify on clang.
3867         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
3868         workaround.
3870 2020-08-09  Bruno Haible  <bruno@clisp.org>
3872         Use __typeof__ with clang.
3873         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
3874         "clang -std=gnu99".
3875         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
3876         * tests/test-stdint.c (verify_same_types): Enable the check also on
3877         clang.
3879 2020-08-09  Bruno Haible  <bruno@clisp.org>
3881         Add ability to emit user-defined warnings and errors with clang.
3882         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
3883         _GL_ATTRIBUTE_WARNING using an attribute for clang.
3884         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
3885         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
3886         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
3887         attribute for clang.
3889 2020-08-09  Bruno Haible  <bruno@clisp.org>
3891         intprops: Fix typo in comment.
3892         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
3894 2020-08-09  Bruno Haible  <bruno@clisp.org>
3896         Use __builtin_signbit* with clang.
3897         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
3898         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
3899         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
3900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
3901         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
3902         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
3903         not REPLACE_SIGNBIT_USING_GCC.
3905 2020-08-09  Bruno Haible  <bruno@clisp.org>
3907         Use __builtin_isnan with clang.
3908         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
3909         not __builtin_isnanf. Also on clang.
3910         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
3911         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
3912         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
3913         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
3914         built-in.
3915         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
3916         not __builtin_isnanl. Also on clang.
3917         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
3918         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
3919         * lib/math.in.h (__has_builtin): Remove macro.
3920         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
3921         __builtin_isnanf. Also on clang.
3922         (isnand, gl_isnan_d): With clang, use the GCC built-in.
3923         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
3924         __builtin_isnanl. Also on clang.
3925         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
3926         on clang.
3928 2020-08-09  Bruno Haible  <bruno@clisp.org>
3930         thread-optim: Fix logic error.
3931         Reported by Paul Eggert.
3932         * lib/thread-optim.h (IF_MT): Fix logic error.
3934 2020-08-08  Bruno Haible  <bruno@clisp.org>
3936         localename: Use module 'thread-optim'.
3937         * lib/localename.c: Include thread-optim.h.
3938         (struniq): Use IF_MT macro.
3939         * modules/localename (Depends-on): Add thread-optim.
3941         clean-temp: Use module 'thread-optim'.
3942         * lib/clean-temp.c: Include thread-optim.h.
3943         (register_temporary_file, unregister_temporary_file, create_temp_dir,
3944         register_temp_file, unregister_temp_file, register_temp_subdir,
3945         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
3946         close_temp, fclose_variant_temp): Use IF_MT macro.
3947         * modules/clean-temp (Depends-on): Add thread-optim.
3949         fatal-signal: Use module 'thread-optim'.
3950         * lib/fatal-signal.c: Include thread-optim.h.
3951         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
3952         macro.
3953         * modules/fatal-signal (Depends-on): Add thread-optim.
3955 2020-08-08  Bruno Haible  <bruno@clisp.org>
3957         New module 'thread-optim'.
3958         * lib/thread-optim.h: New file.
3959         * modules/thread-optim: New file.
3960         * doc/multithread.texi (Multithreading Optimizations): New section.
3962 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
3964         doc: more updates for glibc 2.32
3965         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
3966         * doc/posix-functions/fchmodat.texi: Update.
3968 2020-08-07  Bruno Haible  <bruno@clisp.org>
3970         doc: Update for glibc 2.32.
3971         * doc/glibc-functions/__libc_single_threaded.texi: New file.
3972         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
3973         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
3974         * doc/glibc-functions/sigabbrev_np.texi: New file.
3975         * doc/glibc-functions/sigdescr_np.texi: New file.
3976         * doc/glibc-functions/strerrordesc_np.texi: New file.
3977         * doc/glibc-functions/strerrorname_np.texi: New file.
3978         * doc/gnulib.texi: Include them.
3979         (Glibc sys/single_threaded.h): New section.
3980         * doc/pastposix-functions/h_errno.texi: Update.
3981         * doc/posix-functions/*.texi: Likewise.
3982         * doc/glibc-functions/*.texi: Likewise.
3984 2020-08-07  Bruno Haible  <bruno@clisp.org>
3986         alloca: No need to compile alloca.c with clang.
3987         * lib/alloca.c: Skip all code with clang.
3989         Use __builtin_alloca with clang.
3990         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
3992 2020-08-06  Bruno Haible  <bruno@clisp.org>
3994         Use __builtin_assume with clang.
3995         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
3996         (assume): Use __builtin_assume when available.
3998 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4000         libgmp: add <gmp/gmp.h> support
4001         * m4/libgmp.m4 (gl_LIBGMP):
4002         * modules/libgmp (configure.ac, Makefile.am):
4003         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
4004         ‘#include <gmp.h>’.
4006 2020-08-06  Bruno Haible  <bruno@clisp.org>
4008         Consider that clang defines __OPTIMIZE__ like GCC does.
4009         * lib/streq.h: Define the inline functions also on clang.
4010         * lib/c-strcaseeq.h: Likewise.
4011         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
4012         the GCC workaround to clang.
4014 2020-08-06  Bruno Haible  <bruno@clisp.org>
4016         safe-alloc: Remove unused code.
4017         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
4019 2020-08-06  Bruno Haible  <bruno@clisp.org>
4021         Use __builtin_expect with clang everywhere.
4022         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
4023         also on clang.
4025 2020-08-05  Bruno Haible  <bruno@clisp.org>
4027         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
4028         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
4029         built-in also on clang.
4030         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
4031         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
4033 2020-08-05  Bruno Haible  <bruno@clisp.org>
4035         Use __builtin_clz{,l,ll} with clang, also on Windows.
4036         * lib/integer_length.c: With clang, use the GCC built-in, not
4037         <intrin.h>.
4038         * lib/integer_length_l.c: Likewise.
4039         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
4040         also on clang.
4041         * lib/vasnprintf.c (divide): Likewise.
4043 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
4045         Update srclist.txt as per recent glibc changes
4046         * config/srclist.txt: Uncomment lines to reflect recent merges
4047         from Gnulib to glibc.
4049 2020-08-03  Bruno Haible  <bruno@clisp.org>
4051         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
4052         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
4054 2020-08-03  Bruno Haible  <bruno@clisp.org>
4056         integer_length_ll: Optimize for MSVC in 64-bit mode.
4057         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
4058         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4060 2020-08-03  Bruno Haible  <bruno@clisp.org>
4062         integer_length_ll: Optimize for MSVC in 32-bit mode.
4063         * lib/integer_length_l.c: Include <intrin.h>.
4064         (integer_length): Define as inline function, like in
4065         lib/integer_length.c.
4067 2020-08-03  Bruno Haible  <bruno@clisp.org>
4069         integer_length: Optimize for MSVC.
4070         * lib/integer_length.c: Include <intrin.h>.
4071         (integer_length): With MSVC, use the _BitScanReverse built-in.
4073 2020-08-03  Bruno Haible  <bruno@clisp.org>
4075         ffsll: Optimize for MSVC in 64-bit mode.
4076         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4077         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
4078         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
4080 2020-08-03  Bruno Haible  <bruno@clisp.org>
4082         ffsll: Optimize for MSVC in 32-bit mode.
4083         * lib/ffsl.h: Include <intrin.h>.
4084         (ffs): Define as inline function, like in lib/ffs.c.
4086 2020-08-03  Bruno Haible  <bruno@clisp.org>
4088         ffs: Optimize for MSVC.
4089         * lib/ffs.c: Include <intrin.h>.
4090         (ffs): With MSVC, use the _BitScanForward built-in.
4092 2020-08-03  Bruno Haible  <bruno@clisp.org>
4094         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
4095         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
4096         variable.
4098 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
4100         fopen: Avoid undesired interactions with glibc headers.
4101         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
4102         __need_FILE, as the latter does not work with glibc.
4104 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
4106         fcntl: document some F_SETLK errno variations
4107         * doc/posix-functions/fcntl.texi (fcntl): Document
4108         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
4110 2020-08-02  Bruno Haible  <bruno@clisp.org>
4112         oset: Add an 'iterator_atleast' operation.
4113         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
4114         extracted from gl_array_search_atleast.
4115         (gl_array_search_atleast): Use it.
4116         (gl_array_iterator_atleast): New function.
4117         (gl_array_oset_implementation): Use it.
4118         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
4119         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
4120         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
4121         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
4122         member.
4123         (gl_oset_iterator_atleast): New function.
4124         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
4125         (gl_OSet::iterator): Add another auxiliary constructor.
4126         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
4127         New functions.
4128         (main): Test also gl_oset_iterator_atleast.
4129         * tests/test-avltree_oset.c (is_at_least): New function.
4130         (main): Test also gl_oset_iterator_atleast.
4131         * tests/test-rbtree_oset.c (is_at_least): New function.
4132         (main): Test also gl_oset_iterator_atleast.
4133         * tests/test-oset-c++.cc (is_at_most): New function.
4134         (main): Test also gl_OSet::begin_atleast.
4136 2020-08-02  Bruno Haible  <bruno@clisp.org>
4138         oset-c++, omap-c++: Remove restriction for search_atleast method.
4139         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
4140         a different type than the element.
4141         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
4142         a different type than the key.
4144 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
4146         gnumakefile: say ‘$(MAKE)’ not ‘make’
4147         * top/GNUmakefile (abort-due-to-no-makefile):
4148         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
4149         This change is backported from Autoconf.
4151 2020-08-01  Bruno Haible  <bruno@clisp.org>
4153         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
4154         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
4155         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4156         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
4157         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
4158         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
4160 2020-08-01  Bruno Haible  <bruno@clisp.org>
4162         libtextstyle-optional: Update tests.
4163         * modules/libtextstyle-optional-tests (configure.ac): Invoke
4164         gl_LIBTEXTSTYLE_OPTIONAL.
4166 2020-08-01  Bruno Haible  <bruno@clisp.org>
4168         parse-datetime: Fix wrong #line statements.
4169         * modules/parse-datetime (Makefile.am): Correct #line statements also in
4170         parse-datetime-gen.h.
4172 2020-08-01  Bruno Haible  <bruno@clisp.org>
4174         libtextstyle[-optional]: Allow requesting a minimum version.
4175         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
4176         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
4177         gl_LIBTEXTSTYLE_SEARCH): New macros.
4178         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
4179         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
4180         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
4181         * modules/libtextstyle-optional (configure.ac): Don't invoke
4182         gl_LIBTEXTSTYLE_OPTIONAL.
4183         * NEWS: Mention the changes.
4185 2020-07-31  Bruno Haible  <bruno@clisp.org>
4187         _GL_CMP: Improve documentation.
4188         Reported by Paul Eggert in
4189         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
4190         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
4191         passed.
4193 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4195         largefile: sync with Autoconf master
4196         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
4197         Avoid undefined behavior on platforms where off_t is 32 bits.
4198         See: https://bugs.debian.org/742780
4200         alloca: sync with Autoconf master
4201         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4202         Do not define if Autoconf 2.70 or later, since Autoconf master
4203         now matches us.
4205 2020-07-30  Bruno Haible  <bruno@clisp.org>
4207         unicodeio: Add comment.
4208         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
4209         different iconv behaviours.
4211 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4213         Work around some Oracle Studio attribute bugs
4214         These were discovered when building bleeding-edge Emacs with
4215         Oracle Studio.
4216         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
4217         Port to Oracle Studio 12.6, which mishandles __attribute__
4218         ((__cold__)) and __attribute__ ((__may_alias__)) even though
4219         __has_attribute says they work.
4221 2020-07-29  Bruno Haible  <bruno@clisp.org>
4223         unicodeio: Fix wrong result on musl libc.
4224         Reported by A. Wilcox <awilfox@adelielinux.org> in
4225         <https://www.openwall.com/lists/musl/2020/07/29/2>.
4226         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
4227         on musl libc.
4228         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
4229         * modules/unicodeio (Files): Add m4/musl.m4.
4231 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
4233         fsusage, regex, stat-size: remove Cray support
4234         As near as I can make out this is actually support for UNICOS/mp,
4235         last released 2005, and Cray hasn’t supported that for years.
4236         * config/srclist.txt: Comment out regex.h for now.
4237         * lib/fsusage.c (get_fs_usage):
4238         * lib/regex.h (re_comp, re_exec):
4239         * lib/stat-size.h (ST_NBLOCKSIZE):
4240         Don’t worry about _CRAY.
4242 2020-07-29  Bruno Haible  <bruno@clisp.org>
4244         parse-datetime: Fix compilation error with bison 3.7.
4245         * modules/parse-datetime (Makefile.am): Create a generated header file
4246         parse-datetime-gen.h in the source directory. Correct #include and
4247         #line statements during preprocessing.
4249 2020-07-28  Bruno Haible  <bruno@clisp.org>
4251         fopen-gnu: Create files correctly (regression from 2020-05-24).
4252         * lib/fopen.c (rpl_open): Pass a third argument to open().
4254 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
4256         xalloc-die: don’t depend on xalloc
4257         This removes a circular dependency, as xalloc depends on xalloc-die.
4258         * modules/xalloc-die (Files): Add lib/xalloc.h.
4259         (Depends-on): Remove xalloc.
4260         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
4262         dfa-tests: port to MSVC
4263         Problem reported by Gisle Vanem in:
4264         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
4265         Also, remove an unnecessary dependency on getprogname.
4266         * modules/dfa-tests (Depends-on): Remove getprogname.
4267         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
4268         (exit_status): New static var.
4269         (dfawarn): Set it instead of exiting.
4270         Do not declare as _Noreturn, to pacify MSVC.
4271         (main): Return exit_status.
4273 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
4275         argz: pacify MSVC
4276         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
4277         Problem reported by Gisle Vanem.
4279         libgmp: remove dependency on havelib
4280         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
4281         use the more-traditional AC_SEARCH_LIBS approach.
4282         This should work better with GNU Emacs configuration,
4283         which uses pkg-config instead of a havelib-style approach.
4284         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
4285         * modules/libgmp (Depends-on): Remove havelib.
4287         libgmp: remove HAVE_GMP, LIB_GMP
4288         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
4289         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
4291 2020-07-26  Bruno Haible  <bruno@clisp.org>
4293         inttypes: Remove support for AIX 4.
4294         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
4295         * m4/inttypes-pri.m4: Remove file.
4296         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
4297         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
4298         * modules/inttypes-incomplete (Makefile.am): Don't substitute
4299         PRI_MACROS_BROKEN.
4300         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
4302 2020-07-26  Bruno Haible  <bruno@clisp.org>
4304         gettimeofday: Remove workaround for Mac OS X 10.0.
4305         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
4306         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
4307         * lib/gettimeofday.c: Don't include localtime-buffer.h.
4308         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4309         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4310         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
4311         * modules/localtime-buffer: Remove file.
4312         * lib/localtime-buffer.h: Remove file.
4313         * lib/localtime-buffer.c: Remove file.
4314         * m4/localtime-buffer.m4: Remove file.
4315         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
4317 2020-07-26  Bruno Haible  <bruno@clisp.org>
4319         tzset: Remove workaround for Solaris 2.6.
4320         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
4321         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
4322         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
4323         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
4324         * lib/localtime-buffer.c: Likewise.
4325         * lib/localtime.c: Likewise.
4326         * lib/tzset.c: Don't include localtime-buffer.h.
4327         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
4328         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
4329         is 1.
4330         * modules/tzset (Depends-on): Remove localtime-buffer.
4332 2020-07-26  Bruno Haible  <bruno@clisp.org>
4334         expl: Simplify autoconf test.
4335         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
4336         with small values..." test into the "checking whether expl works..."
4337         test.
4339 2020-07-26  Bruno Haible  <bruno@clisp.org>
4341         alloca: Remove Cray-2 and Cray Y-MP support.
4342         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
4343         Enable also on Autoconf >= 2.69.
4344         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
4345         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
4346         i00afunc): Remove.
4348 2020-07-25  Bruno Haible  <bruno@clisp.org>
4350         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
4351         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
4353 2020-07-25  Bruno Haible  <bruno@clisp.org>
4355         sigprocmask: Small autoconf macro improvement.
4356         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
4357         user to override the value of gl_cv_func_sigprocmask.
4358         * m4/gnulib-common.m4 (gl_SILENT): New macro.
4360 2020-07-25  Bruno Haible  <bruno@clisp.org>
4362         Small autoconf macro improvements.
4363         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
4364         override the value of gl_cv_func_working_mktime.
4365         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
4366         compiler produces multi-arch binaries..." in the configure output.
4367         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
4368         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
4370 2020-07-25  Bruno Haible  <bruno@clisp.org>
4372         doc: Update for NetBSD 7.1, 8.0, 9.0.
4373         * doc/*/*.texi: Update.
4374         * m4/exp2l.m4: Update comments.
4375         * m4/expl.m4: Likewise.
4376         * m4/ilogb.m4: Likewise.
4377         * m4/ilogbf.m4: Likewise.
4378         * m4/log10l.m4: Likewise.
4379         * m4/logl.m4: Likewise.
4380         * m4/printf.m4: Likewise.
4381         * m4/rintl.m4: Likewise.
4382         * m4/wcwidth.m4: Likewise.
4384 2020-07-24  Bruno Haible  <bruno@clisp.org>
4386         doc: Update for Mac OS X 10.13.
4387         * doc/*/*.texi: Update.
4388         * m4/expm1l.m4: Update comments.
4389         * m4/getgroups.m4: Likewise.
4390         * m4/getlogin_r.m4: Likewise.
4391         * m4/linkat.m4: Likewise.
4392         * m4/printf.m4: Likewise.
4394 2020-07-24  Bruno Haible  <bruno@clisp.org>
4396         doc: Update for Cygwin 2.9.0.
4397         * doc/*/*.texi: Update.
4399 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4401         parse-datetime: modernize doc
4402         * doc/parse-datetime.texi: Use more-current examples.
4403         Don’t lead with 32-bit time_t, as it’s on its way out.
4404         Capitalize “Epoch” to be consistent with POSIX.
4406         timespec: remove dependence on ‘verify’
4407         * lib/timespec.h: Do not include verify.h; no longer needed.
4408         * modules/timespec (Depends-on): Remove ‘verify’.
4410         Optimize a few more three-valued comparisons
4411         * lib/timespec.h (timespec_cmp, timespec_sign):
4412         * lib/utimecmp.c (utimecmpat):
4413         Avoid conditional branches by using _GL_CMP.
4415         Fix _GL_CMP parenthesization typo
4416         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
4418 2020-07-24  Bruno Haible  <bruno@clisp.org>
4420         dfa: Revert breaking gawk.
4421         Reported by Arnold Robbins <arnold@skeeve.com>.
4422         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
4424 2020-07-23  Bruno Haible  <bruno@clisp.org>
4426         Optimize three-valued comparison between integers.
4427         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
4428         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
4429         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
4430         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
4431         * lib/dfa.c (compare): Likewise.
4432         * lib/fts.c (fts_compare_ino): Likewise.
4433         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
4434         * lib/mbscasecmp.c (mbscasecmp): Likewise.
4435         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
4436         * lib/memcasecmp.c (memcasecmp): Likewise.
4437         * lib/memcmp2.c (memcmp2): Likewise.
4438         * lib/savedir.c (direntry_cmp_inode): Likewise.
4439         * lib/strcasecmp.c (strcasecmp): Likewise.
4440         * lib/strncasecmp.c (strncasecmp): Likewise.
4441         * lib/unistr/u-cmp2.h (FUNC): Likewise.
4443 2020-07-23  Bruno Haible  <bruno@clisp.org>
4445         lchmod: Use /proc on Cygwin.
4446         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
4448 2020-07-23  Ken Brown  <kbrown@cornell.edu>
4450         fchmodat: Use /proc on Cygwin
4451         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
4453 2020-07-21  Bruno Haible  <bruno@clisp.org>
4455         aligned-malloc: Optionally use aligned_alloc.
4456         * lib/aligned-malloc.h: Verify the alignment.
4457         (aligned_malloc): Use aligned_alloc as an alternative.
4458         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
4459         * doc/posix-functions/aligned_alloc.texi: Mention the modules
4460         'aligned-malloc' and 'pagealign_alloc'.
4462 2020-07-21  Bruno Haible  <bruno@clisp.org>
4464         aligned-malloc: Add tests.
4465         * tests/test-aligned-malloc.c: New file.
4466         * modules/aligned-malloc-tests: New file.
4468         aligned-malloc: New module.
4469         * lib/aligned-malloc.h: New file.
4470         * m4/malloc-align.m4: New file.
4471         * modules/aligned-malloc: New file.
4472         * doc/posix-functions/posix_memalign.texi: Mention the new module.
4473         * doc/glibc-functions/memalign.texi: Likewise.
4475 2020-07-21  Bruno Haible  <bruno@clisp.org>
4477         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
4478         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
4479         sure PRIPTR_PREFIX is defined to "ll", not "l".
4481 2020-07-21  Bruno Haible  <bruno@clisp.org>
4483         printf-posix: Make an autoconf test more future-proof.
4484         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
4485         using uintptr_t.
4487 2020-07-20  Bruno Haible  <bruno@clisp.org>
4489         list, oset, omap: Relicense some of the container modules under LGPLv2+.
4490         * modules/list (License): Change to LGPLv2+.
4491         * modules/array-list (License): Likewise.
4492         * modules/carray-list (License): Likewise.
4493         * modules/linked-list (License): Likewise.
4494         * modules/avltree-list (License): Likewise.
4495         * modules/rbtree-list (License): Likewise.
4496         * modules/oset (License): Likewise.
4497         * modules/array-oset (License): Likewise.
4498         * modules/avltree-oset (License): Likewise.
4499         * modules/rbtree-oset (License): Likewise.
4500         * modules/omap (License): Likewise.
4501         * modules/array-omap (License): Likewise.
4502         * modules/avltree-omap (License): Likewise.
4503         * modules/rbtree-omap (License): Likewise.
4505 2020-07-20  Bruno Haible  <bruno@clisp.org>
4507         oset: Add an 'update' operation.
4508         * lib/gl_array_oset.c (gl_array_update): New function.
4509         (gl_array_oset_implementation): Use it.
4510         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4511         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4512         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
4513         extracted from gl_tree_nx_add_before.
4514         (gl_tree_nx_add_before): Invoke it.
4515         (gl_tree_add_node_after): New function, extracted from
4516         gl_tree_nx_add_after.
4517         (gl_tree_nx_add_after): Invoke it.
4518         (gl_tree_remove_node_no_free): New function, extracted from
4519         gl_tree_remove_node.
4520         (gl_tree_remove_node): Invoke it.
4521         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
4522         extracted from gl_tree_nx_add_before.
4523         (gl_tree_nx_add_before): Invoke it.
4524         (gl_tree_add_node_after): New function, extracted from
4525         gl_tree_nx_add_after.
4526         (gl_tree_nx_add_after): Invoke it.
4527         (gl_tree_remove_node_no_free): New function, extracted from
4528         gl_tree_remove_node.
4529         (gl_tree_remove_node): Invoke it.
4530         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
4531         from gl_tree_iterator_next.
4532         (gl_tree_iterator_next): Invoke it.
4533         (gl_tree_prev_node, gl_tree_update): New functions.
4534         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4535         (gl_avltree_oset_implementation): Use gl_tree_update.
4536         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4537         (gl_rbtree_oset_implementation): Use gl_tree_update.
4538         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
4539         (gl_oset_update): New function.
4540         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
4541         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
4542         * modules/rbtree-oset (configure.ac): Likewise.
4543         * tests/test-oset-update.h: New file.
4544         * tests/test-array_oset.c: Include test-oset-update.h.
4545         (main): Invoke test_update.
4546         * tests/test-avltree_oset.c: Likewise.
4547         * tests/test-rbtree_oset.c: Likewise.
4548         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
4549         * modules/avltree-oset-tests (Files): Likewise.
4550         * modules/rbtree-oset-tests (Files): Likewise.
4551         * tests/test-oset-c++.cc (action): New function.
4552         (main): Test the 'update' member function.
4554 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4556         md5, sha1, sha256, sha512: pacify Autoconf 2.70
4557         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
4558         shell if, so that the argument to AC_CHECK_HEADERS is
4559         a simple string that does not require shell evaluation.
4560         This fixes a warning generated by Autoconf 2.69b.
4562 2020-07-12  Bruno Haible  <bruno@clisp.org>
4564         libgmp: Avoid warning when --without-libgmp is used.
4565         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
4566         GCC >= 8, not for GCC >= 4.6.
4568 2020-07-12  Bruno Haible  <bruno@clisp.org>
4570         libgmp: Link to the correct shared library.
4571         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
4572         * modules/libgmp (Depends-on): Add havelib.
4573         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
4574         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
4576 2020-07-12  Bruno Haible  <bruno@clisp.org>
4578         libgmp tests: Add some safety checks.
4579         * modules/libgmp-tests (Depends-on): Add verify.
4580         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
4581         (main): Verify that gmp.h and libgmp versions match.
4583 2020-07-10  Bruno Haible  <bruno@clisp.org>
4585         unicodeio: Fix wrong result on NetBSD.
4586         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4587         characters also on NetBSD.
4589 2020-07-09  Bruno Haible  <bruno@clisp.org>
4591         unicodeio: Fix wrong result on Solaris 11.
4592         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
4593         via Akim Demaille <akim.demaille@gmail.com> in
4594         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
4595         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4596         characters on Solaris.
4597         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
4598         UTF-8 output or the specified fallback.
4600 2020-07-08  Bruno Haible  <bruno@clisp.org>
4602         unicodeio: Add tests.
4603         * tests/test-unicodeio.c: New file.
4604         * tests/test-unicodeio1.sh: New file.
4605         * tests/test-unicodeio2.sh: New file.
4606         * tests/test-unicodeio3.sh: New file.
4607         * modules/unicodeio-tests: New file.
4609 2020-07-08  Bruno Haible  <bruno@clisp.org>
4611         unicodeio: Document link requirements.
4612         * modules/unicodeio (Link): New section.
4614 2020-07-07  Bruno Haible  <bruno@clisp.org>
4616         doc: Remove support for some very old platforms.
4617         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
4618         * doc/posix-functions/memcpy.texi: Likewise.
4619         * doc/posix-functions/memmove.texi: Likewise.
4620         * doc/posix-functions/memset.texi: Likewise.
4621         * doc/posix-functions/getcwd.texi: Likewise.
4623         memchr: Remove support for some very old platforms.
4624         * m4/memchr-obsolete.m4: Remove file.
4625         * modules/memchr-obsolete: Remove file.
4626         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
4627         absent. Don't define HAVE_MEMCHR.
4628         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
4629         * modules/memchr (Depends-on): Remove memchr-obsolete.
4630         (configure.ac): Assume HAVE_MEMCHR is 1.
4631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4632         HAVE_MEMCHR.
4633         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
4634         * doc/posix-functions/memchr.texi: Don't mention module
4635         'memchr-obsolete'.
4636         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
4637         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
4638         * modules/strnlen (Depends-on): Remove memchr-obsolete.
4640         dup2: Remove support for some very old platforms.
4641         * m4/dup2-obsolete.m4: Remove file.
4642         * modules/dup2-obsolete: Remove file.
4643         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
4644         Don't define HAVE_DUP2.
4645         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
4646         * lib/dup2.c: Likewise.
4647         * modules/dup2 (Depends-on, configure.ac): Likewise.
4648         (Depends-on): Remove dup2-obsolete.
4649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
4650         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
4651         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
4653 2020-07-07  Bruno Haible  <bruno@clisp.org>
4655         canonicalize: Trim module dependencies.
4656         * lib/hash-triple.h: Group declarations.
4657         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
4658         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
4659         (STREQ): Remove macro.
4660         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
4661         * modules/hash-triple-simple: New file, based on modules/hash-triple.
4662         * modules/hash-triple (Files): Remove lib/hash-triple.h.
4663         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
4664         * modules/canonicalize (Depends-on): Remove hash-triple. Add
4665         hash-triple-simple.
4666         * modules/file-set (Depends-on): Likewise.
4668 2020-07-07  Bruno Haible  <bruno@clisp.org>
4670         Clarify dependencies to double-slash-root.
4671         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
4672         (Depends-on): Add double-slash-root.
4673         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
4674         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
4676 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4678         libgmp: new module
4679         The idea is to let programs simply include <gmp.h>, and
4680         so long as they live within the mini-gmp subset they need
4681         not worry about whether the GMP libraries are installed.
4682         * MODULES.html.sh: Mention it.
4683         * config/srclist.txt: Mention files copied from GMP source.
4684         * config/srclistvars.sh (GMP): New var.
4685         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
4686         * modules/libgmp-tests, tests/test-libgmp.c: New files.
4687         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
4689 2020-07-05  Bruno Haible  <bruno@clisp.org>
4691         mkancesdirs: Trim module dependencies.
4692         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
4693         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
4695 2020-07-05  Bruno Haible  <bruno@clisp.org>
4697         getprogname: Trim module dependencies.
4698         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
4699         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
4700         basename-lgpl.
4702 2020-07-05  Bruno Haible  <bruno@clisp.org>
4704         filenamecat-lgpl: Trim module dependencies.
4705         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
4706         dirname.h.
4707         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
4708         basename-lgpl, filename.
4710 2020-07-05  Bruno Haible  <bruno@clisp.org>
4712         backupfile, backup-rename: Trim module dependencies.
4713         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
4714         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
4715         basename-lgpl.
4716         * modules/backup-rename (Depends-on): Likewise.
4718 2020-07-05  Bruno Haible  <bruno@clisp.org>
4720         argp: Trim module dependencies.
4721         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
4722         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
4724 2020-07-05  Bruno Haible  <bruno@clisp.org>
4726         basename-lgpl: New module.
4727         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
4728         lib/basename-lgpl.c.
4729         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
4730         <stdbool.h>, filename.h.
4731         (last_component): Rename a local variable.
4732         * lib/dirname.h: Include basename-lgpl.h.
4733         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
4734         (last_component, base_len): Remove declarations.
4735         * modules/basename-lgpl: New file.
4736         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
4737         (Depends-on): Add basename-lgpl. Remove double-slash-root.
4738         (Makefile.am): Don't compile basename-lgpl.c.
4739         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
4740         not 'dirname'.
4742 2020-07-05  Bruno Haible  <bruno@clisp.org>
4744         dirname, dirname-lgpl: Simplify.
4745         * m4/dirname.m4: Remove file.
4746         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
4747         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
4748         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
4750 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
4752         tests: avoid shadowing warning
4753         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
4755 2020-07-05  Bruno Haible  <bruno@clisp.org>
4757         supersede: Add tests.
4758         * tests/test-supersede.c: New file.
4759         * tests/test-supersede-open.h: New file.
4760         * tests/test-supersede-fopen.h: New file.
4761         * modules/supersede-tests: New file.
4763         supersede: New module.
4764         * lib/supersede.h: New file.
4765         * lib/supersede.c: New file.
4766         * m4/supersede.m4: New file.
4767         * modules/supersede: New file.
4769 2020-07-05  Bruno Haible  <bruno@clisp.org>
4771         Add some copyright headers.
4772         * lib/dev-ino.h: Add copyright header.
4773         * lib/di-set.h: Likewise.
4774         * lib/fchown-stub.c: Likewise.
4775         * lib/file-set.h: Likewise.
4776         * lib/hash-triple.h: Likewise.
4777         * lib/idcache.h: Likewise.
4778         * lib/ino-map.h: Likewise.
4779         * lib/mkancesdirs.h: Likewise.
4780         * lib/scratch_buffer.h: Likewise.
4781         * lib/se-context.in.h: Likewise.
4782         * lib/stdopen.h: Likewise.
4783         * lib/userspec.h: Likewise.
4785 2020-07-04  Bruno Haible  <bruno@clisp.org>
4787         getrandom: Relicense under LGPLv2+.
4788         Paul Eggert's approval is in
4789         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
4790         * modules/getrandom (License): Change to LGPLv2+.
4792 2020-07-04  Bruno Haible  <bruno@clisp.org>
4794         getumask: Add tests.
4795         * tests/test-getumask.c: New file.
4796         * modules/getumask-tests: New file.
4798         getumask: New module.
4799         * lib/sys_stat.in.h (getumask): New declaration.
4800         * lib/getumask.c: New file.
4801         * m4/getumask.m4: New file.
4802         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
4803         declared.
4804         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
4805         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
4806         HAVE_GETUMASK.
4807         * modules/getumask: New file.
4808         * tests/test-sys_stat-c++.cc (getumask): Check signature.
4809         * doc/glibc-functions/getumask.texi: New file.
4810         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
4812 2020-07-04  Bruno Haible  <bruno@clisp.org>
4814         clean-temp: Add support for temporary files with given mode.
4815         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
4816         * lib/clean-temp.c (struct try_create_file_params): New type.
4817         (try_create_file): New function.
4818         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
4819         gen_tempname.
4821 2020-07-04  Bruno Haible  <bruno@clisp.org>
4823         clean-temp: Document limitations.
4824         * lib/clean-temp.h: Document limitations.
4826 2020-07-04  Bruno Haible  <bruno@clisp.org>
4828         clean-temp: Add support for temporary files with unpredictable names.
4829         * lib/clean-temp.h (gen_register_open_temp): New declaration.
4830         * lib/clean-temp.c: Include tempname.h.
4831         (gen_register_open_temp): New function.
4832         * modules/tempname (configure.ac): Define a module indicator.
4834 2020-07-04  Bruno Haible  <bruno@clisp.org>
4836         clean-temp: Add support for temporary files anywhere in the file system.
4837         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
4838         cleanup_temporary_file): New declarations.
4839         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
4840         variables.
4841         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
4842         (dir_cleanup_list): Renamed from cleanup_list.
4843         (cleanup_action): Process the file_cleanup_list as well.
4844         (do_init_clean_temp): New function.
4845         (clean_temp_once): New variable.
4846         (init_clean_temp): New function.
4847         (create_temp_dir): Invoke it.
4848         (register_temporary_file, unregister_temporary_file,
4849         cleanup_temporary_file): New functions.
4850         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
4851         argument.
4853 2020-07-04  Bruno Haible  <bruno@clisp.org>
4855         clean-temp: Improve comments.
4856         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
4857         fwriteerror_temp, close_stream_temp): Clarify intended use.
4858         * lib/clean-temp.c: Likewise.
4860 2020-07-04  Bruno Haible  <bruno@clisp.org>
4862         clean-temp: Make multithread-safe, part 2.
4863         * lib/fatal-signal.h: Include <signal.h>.
4864         (get_fatal_signal_set): New declaration.
4865         * lib/fatal-signal.c (get_fatal_signal_set): New function.
4866         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
4867         (struct closeable_fd): New type.
4868         (fatal_signal_set): New variable.
4869         (init_fatal_signal_set): New function.
4870         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
4871         (cleanup_action): Invoke asyncsafe_close instead of close.
4872         (create_temp_dir): Invoke init_fatal_signal_set.
4873         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
4874         element.
4875         (unregister_fd): Remove function.
4876         (close_temp): Cleanup descriptors list on the fly. Invoke
4877         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
4878         (fclose_variant_temp): New function.
4879         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
4880         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
4882 2020-07-04  Bruno Haible  <bruno@clisp.org>
4884         clean-temp: Make multithread-safe, part 1.
4885         * lib/clean-temp.c: Include glthread/lock.h.
4886         (cleanup_list_lock): New variable.
4887         (register_temp_file, unregister_temp_file, register_temp_subdir,
4888         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
4889         (create_temp_dir): Likewise. Don't free the old array.
4890         (descriptors_lock): New variable.
4891         (register_fd, unregister_fd): Use it.
4892         * modules/clean-temp (Depends-on): Add lock.
4894 2020-07-04  Bruno Haible  <bruno@clisp.org>
4896         fatal-signal: Make multithread-safe.
4897         * lib/fatal-signal.c (init_fatal_signals): Add comment.
4898         (do_init_fatal_signal_set): New function, extracted from
4899         init_fatal_signal_set.
4900         (fatal_signal_set_once): New variable.
4901         (init_fatal_signal_set): Use gl_once.
4903 2020-07-03  Bruno Haible  <bruno@clisp.org>
4905         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
4906         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
4907         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
4908         <bcrypt.h>.
4910 2020-07-03  Bruno Haible  <bruno@clisp.org>
4912         dfa tests: Follow common file naming conventions.
4913         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
4914         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
4915         * tests/test-dfa-invalid-char-class.sh: Renamed from
4916         tests/dfa-invalid-char-class.sh. Update.
4917         * modules/dfa-tests (Files, Makefile.am): Update.
4919 2020-07-03  Bruno Haible  <bruno@clisp.org>
4921         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
4922         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
4923         the GCC extended asm syntax also for the Sun Studio 12 compilers.
4925 2020-07-03  Bruno Haible  <bruno@clisp.org>
4927         asyncsafe-spin: Reduce code duplication.
4928         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
4929         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
4930         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
4932 2020-07-03  Bruno Haible  <bruno@clisp.org>
4934         lchmod: Simplify after 2020-02-22 change.
4935         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
4937 2020-07-03  Bruno Haible  <bruno@clisp.org>
4939         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
4940         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
4942 2020-07-03  Bruno Haible  <bruno@clisp.org>
4944         dfa: Make sure the compiler does not barf on 'inline'.
4945         * modules/dfa (configure.ac): Require AC_C_INLINE.
4947 2020-07-03  Bruno Haible  <bruno@clisp.org>
4949         bitset: Make sure the compiler does not barf on 'inline'.
4950         * modules/bitset (configure.ac): New section.
4952 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
4954         manywarnings: improve port to GCC 10.1
4955         * build-aux/gcc-warning.spec: Also list warnings that are default
4956         or are enabled by already-given flags.  This lets us speed up
4957         checking for attributes, and makes the generated compilation
4958         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
4959         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
4960         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
4961         to shell variables that may have long values.
4962         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
4963         consequences of other flags, to speed up checking and
4964         shorten commands.
4966         tests: pacify gcc -fanalyzer on zerosize_ptr
4967         * tests/test-memcasecmp.c (main):
4968         * tests/test-memchr.c (main):
4969         * tests/test-memchr2.c (main):
4970         * tests/test-memcmp.c (main):
4971         * tests/test-memmem.c (main):
4972         * tests/test-memrchr.c (main):
4973         * tests/unistr/test-chr.h (main):
4974         * tests/unistr/test-cmp.h (test_cmp):
4975         Check whether zerosize_ptr returns NULL before using it.
4976         This pacifies GCC 10.1’s new fanalyzer option, and matches
4977         other uses of zerosize_ptr.
4979 2020-07-01  Bruno Haible  <bruno@clisp.org>
4981         asyncsafe-spin: Add tests.
4982         * tests/test-asyncsafe-spin1.c: New file.
4983         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
4984         tests/test-pthread-spin.c.
4985         * modules/asyncsafe-spin-tests: New file.
4987 2020-07-01  Bruno Haible  <bruno@clisp.org>
4989         asyncsafe-spin: New module.
4990         * lib/asyncsafe-spin.h: New file.
4991         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
4992         * modules/asyncsafe-spin: New file.
4994 2020-07-01  Bruno Haible  <bruno@clisp.org>
4996         windows-spin: Fix race condition on multiprocessor systems.
4997         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
4999 2020-07-01  Bruno Haible  <bruno@clisp.org>
5001         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
5002         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5003         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
5004         an implementation based on other GCC built-ins.
5006 2020-07-01  Bruno Haible  <bruno@clisp.org>
5008         pthread-spin: Optimize fallback for GCC versions >= 4.7.
5009         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5010         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
5011         lock byte.
5013 2020-07-01  Bruno Haible  <bruno@clisp.org>
5015         pthread-spin: Add error checking.
5016         * lib/pthread-spin.c: Include <stdbool.h>.
5017         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
5018         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
5019         the unlocks.
5020         * modules/pthread-spin (Depends-on): Add stdbool.
5022 2020-07-01  Bruno Haible  <bruno@clisp.org>
5024         pthread-spin: Add tests.
5025         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
5026         * modules/pthread-spin-tests: New file.
5028 2020-07-01  Bruno Haible  <bruno@clisp.org>
5030         tests: Reduce code duplication.
5031         * tests/atomic-int-posix.h: New file, extracted from
5032         tests/test-pthread-mutex.c.
5033         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
5034         * tests/test-pthread-rwlock.c: Likewise.
5035         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
5036         * modules/pthread-rwlock-tests (Files): Likewise.
5038 2020-07-01  Bruno Haible  <bruno@clisp.org>
5040         tests: Refactor.
5041         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
5042         * tests/test-mtx.c: Include it. Remove the corresponding code.
5043         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
5045 2020-07-01  Bruno Haible  <bruno@clisp.org>
5047         tests: Refactor.
5048         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
5049         * tests/test-lock.c: Include it. Remove the corresponding code.
5050         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
5052 2020-06-29  Bruno Haible  <bruno@clisp.org>
5054         sys_socket: Don't define socklen_t if it is already defined on mingw.
5055         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
5056         <https://savannah.gnu.org/bugs/?57725>,
5057         by Rahul Das <bokul_4u@yahoo.com> in
5058         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
5059         and by Eli Zaretskii <eliz@gnu.org> in
5060         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
5061         * lib/sys_socket.in.h (socklen_t): Remove definition.
5063 2020-06-29  Bruno Haible  <bruno@clisp.org>
5065         alloca-opt: Fix warning on mingw.
5066         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
5067         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
5068         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
5069         whether alloca is defined.
5071 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
5073         getrandom: do not depend on ‘open’ on mingw
5074         Similarly for at-internal, getloadavg.  These modules do not call
5075         the ‘open’ function when they are compiled on mingw.  On mingw,
5076         this avoids having to compile open.c when building Emacs, which
5077         does its own thing with ‘open’.
5078         * modules/at-internal, modules/getloadavg, modules/getrandom:
5079         (Depends-on): Don’t depend on ‘open’ on mingw.
5080         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
5081         * modules/getloadavg (Depends-on):
5082         Depend on intprops, open, stdbool, stdlib only if compiling
5083         getloadavg.c.
5085 2020-06-28  Bruno Haible  <bruno@clisp.org>
5087         doc: Add a note about sigprocmask vs. pthread_sigmask.
5088         * doc/posix-functions/sigprocmask.texi: Add note.
5090 2020-06-28  Bruno Haible  <bruno@clisp.org>
5092         getrandom: Fix compilation errors on older versions of mingw.
5093         Reported by Eli Zaretskii <eliz@gnu.org> in
5094         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
5095         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
5096         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
5097         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
5098         BCryptGenRandom ourselves.
5100 2020-06-28  Bruno Haible  <bruno@clisp.org>
5102         clean-temp: Fix wrong errno in error message.
5103         * lib/clean-temp.c (create_temp_dir): Save errno around
5104         unblock_fatal_signals call.
5106 2020-06-27  Bruno Haible  <bruno@clisp.org>
5108         fatal-signal: Make multithread-safe.
5109         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
5111 2020-06-27  Bruno Haible  <bruno@clisp.org>
5113         clean-temp: Don't force deletion of temporary files on native Windows.
5114         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
5115         argument.
5116         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
5117         * NEWS: Mention the change.
5118         * lib/javacomp.c (write_temp_file): Update.
5120 2020-06-27  Bruno Haible  <bruno@clisp.org>
5122         fatal-signal: Make multithread-safe.
5123         * lib/fatal-signal.c: Include glthread/lock.h.
5124         (at_fatal_signal_lock): New variable.
5125         (at_fatal_signal): Use it.
5126         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
5127         (block_fatal_signals, unblock_fatal_signals): Use them.
5128         * modules/fatal-signal (Depends-on): Add lock.
5130 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
5132         getloadavg: don’t depend on fopen-gnu
5133         This is for Emacs, which does not need fopen-gnu for anything else,
5134         and which would need it only on a NetBSD platform where getloadavg
5135         does not work (does that even happen?).
5136         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
5137         * modules/getloadavg (Depends-on): Remove fopen-gnu.
5139         * tests/test-getloadavg.c (main): Fix typo.
5141 2020-06-27  Bruno Haible  <bruno@clisp.org>
5143         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
5144         * modules/tempname (Link): New section.
5145         * modules/mkdtemp (Link): Likewise.
5146         * modules/clean-temp (Link): Likewise.
5147         * modules/mkstemp (Link): Likewise.
5148         * modules/stdlib-safer (Link): Likewise.
5149         * modules/mkstemps (Link): Likewise.
5150         * modules/mkostemp (Link): Likewise.
5151         * modules/mkostemps (Link): Likewise.
5152         * modules/tmpfile (Link): Likewise.
5153         * modules/tmpfile-safer (Link): Likewise.
5154         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
5155         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
5156         $(LIB_GETRANDOM).
5157         * NEWS: Mention the changes.
5159 2020-06-27  Bruno Haible  <bruno@clisp.org>
5161         fopen-gnu: Simplify code.
5162         * lib/fopen.c: Include <stdbool.h>.
5163         (rpl_fopen): Use a single variable open_flags instead of
5164         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
5165         * modules/fopen (Depends-on): Add stdbool.
5167 2020-06-26  Bruno Haible  <bruno@clisp.org>
5169         canonicalize: Improve documentation.
5170         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
5171         return convention.
5173 2020-06-26  Bruno Haible  <bruno@clisp.org>
5175         xgetcwd: Improve documentation.
5176         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
5178 2020-06-26  Bruno Haible  <bruno@clisp.org>
5180         getcwd: Improve documentation.
5181         * lib/getcwd.c (__getcwd): Document the failure return convention.
5183 2020-06-26  Bruno Haible  <bruno@clisp.org>
5185         fchdir: Improve documentation.
5186         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
5187         convention.
5189 2020-06-26  Bruno Haible  <bruno@clisp.org>
5191         filenamecat-lgpl: Set errno upon failure.
5192         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
5193         return convention.
5194         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
5196 2020-06-26  Bruno Haible  <bruno@clisp.org>
5198         areadlink-with-size: Set errno upon failure.
5199         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
5200         fails.
5201         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
5203 2020-06-26  Bruno Haible  <bruno@clisp.org>
5205         copy-file: Shrink dependencies.
5206         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
5207         qcopy-acl.
5209 2020-06-26  Bruno Haible  <bruno@clisp.org>
5211         doc: Mention declaration fixes implemented by some modules.
5212         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
5213         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
5214         declaration appear in <unistd.h>.
5215         * doc/posix-functions/dup.texi: Likewise.
5216         * doc/posix-functions/dup2.texi: Likewise.
5217         * doc/posix-functions/gethostname.texi: Likewise.
5218         * doc/posix-functions/isatty.texi: Likewise.
5219         * doc/posix-functions/lseek.texi: Likewise.
5220         * doc/posix-functions/unlink.texi: Likewise.
5221         * doc/posix-functions/read.texi: Mention the module 'read'.
5222         * doc/posix-functions/write.texi: Mention the effects of the module
5223         'write'.
5225 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
5227         c-dtoastr, c-ldtoastr: new modules
5228         These modules provide the same functionality as the modules
5229         dtoastr and ldtoastr except for the formatting taking place in the
5230         C locale.
5231         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
5232         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
5233         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
5234         defined.  Use c_snprintf and c_strtod/c_strtold instead of
5235         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
5236         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
5237         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
5238         modules/c-ldtoastr-tests: New files.
5239         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
5240         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
5242 2020-06-21  Bruno Haible  <bruno@clisp.org>
5244         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
5245         * lib/tzset.c: Include <stdlib.h>, <string.h>.
5247 2020-06-16  Bruno Haible  <bruno@clisp.org>
5249         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
5250         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
5252 2020-06-16  Bruno Haible  <bruno@clisp.org>
5254         thread, thrd: Avoid a compiler warning.
5255         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
5257 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
5259         windows-thread: Avoid a compiler warning.
5260         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
5261         void.
5262         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
5264 2020-06-15  Bruno Haible  <bruno@clisp.org>
5266         unictype/joininggroup-name: Fix warning on 64-bit mingw.
5267         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
5268         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
5269         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
5270         first.
5272 2020-06-06  Bruno Haible  <bruno@clisp.org>
5274         calloc-gnu tests: Avoid a test failure with clang.
5275         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
5276         'volatile', to defeat compiler optimizations.
5278 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5280         getloadavg: fix double-increment bug
5281         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
5282         Linux without glibc, Android, Cygwin.  This fixes a bug I
5283         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
5284         Problem and fix reported by Semen Verchenko in:
5285         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
5287         tempname: use getrandom, not getentropy
5288         This removes a dependency, as getentropy depends on getrandom.
5289         * lib/tempname.c: Include sys/random.h instead of unistd.h.
5290         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
5291         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
5293 2020-06-01  Bruno Haible  <bruno@clisp.org>
5295         doc: New chapter 'Multithreading'.
5296         * doc/multithread.texi: New file.
5297         * doc/gnulib.texi: Include it.
5299 2020-06-01  Bruno Haible  <bruno@clisp.org>
5301         doc: Move 'Running self-tests under valgrind' section.
5302         * doc/gnulib.texi (Build Infrastructure Modules): Include
5303         valgrind-tests.texi here...
5304         (Miscellaneous Notes): ... not here.
5306 2020-06-01  Bruno Haible  <bruno@clisp.org>
5308         doc: Move 'Visual Studio Compatibility' section.
5309         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
5310         here...
5311         (Build Infrastructure Modules): ... not here.
5313 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5315         doc: improve randomness discussion
5316         Inspired by comments from Jeffrey Walton in:
5317         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
5318         * doc/glibc-functions/getentropy.texi (getentropy):
5319         * doc/glibc-functions/getrandom.texi (getrandom):
5320         Improve discussion of problems with "random" data,
5321         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
5323 2020-06-01  Bruno Haible  <bruno@clisp.org>
5325         doc: Fix Texinfo syntax error.
5326         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
5328 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
5330         doc: Change '.' to '@.' where appropriate.
5331         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
5332         * doc/glibc-functions/fstatfs.texi: Likewise.
5333         * doc/glibc-functions/fts_children.texi: Likewise.
5334         * doc/glibc-functions/fts_read.texi: Likewise.
5335         * doc/glibc-functions/getdirentries.texi: Likewise.
5336         * doc/glibc-functions/mkostemp.texi: Likewise.
5337         * doc/glibc-functions/mkostemps.texi: Likewise.
5338         * doc/glibc-functions/mkstemps.texi: Likewise.
5339         * doc/glibc-functions/preadv.texi: Likewise.
5340         * doc/glibc-functions/pwritev.texi: Likewise.
5341         * doc/glibc-functions/sendfile.texi: Likewise.
5342         * doc/glibc-functions/statfs.texi: Likewise.
5343         * doc/gnulib-intro.texi: Likewise.
5344         * doc/gnulib-tool.texi: Likewise.
5345         * doc/intprops.texi: Likewise.
5346         * doc/lib-symbol-visibility.texi: Likewise.
5347         * doc/licenses-texi.texi: Likewise.
5348         * doc/pastposix-functions/bcmp.texi: Likewise.
5349         * doc/pastposix-functions/bcopy.texi: Likewise.
5350         * doc/pastposix-functions/bzero.texi: Likewise.
5351         * doc/pastposix-functions/ecvt.texi: Likewise.
5352         * doc/pastposix-functions/fcvt.texi: Likewise.
5353         * doc/pastposix-functions/ftime.texi: Likewise.
5354         * doc/pastposix-functions/gcvt.texi: Likewise.
5355         * doc/pastposix-functions/getwd.texi: Likewise.
5356         * doc/pastposix-functions/index.texi: Likewise.
5357         * doc/pastposix-functions/mktemp.texi: Likewise.
5358         * doc/pastposix-functions/rindex.texi: Likewise.
5359         * doc/pastposix-functions/wcswcs.texi: Likewise.
5360         * doc/posix-functions/aio_cancel.texi: Likewise.
5361         * doc/posix-functions/aio_error.texi: Likewise.
5362         * doc/posix-functions/aio_fsync.texi: Likewise.
5363         * doc/posix-functions/aio_read.texi: Likewise.
5364         * doc/posix-functions/aio_return.texi: Likewise.
5365         * doc/posix-functions/aio_suspend.texi: Likewise.
5366         * doc/posix-functions/aio_write.texi: Likewise.
5367         * doc/posix-functions/creat.texi: Likewise.
5368         * doc/posix-functions/ctime.texi: Likewise.
5369         * doc/posix-functions/daylight.texi: Likewise.
5370         * doc/posix-functions/fgetpos.texi: Likewise.
5371         * doc/posix-functions/fopen.texi: Likewise.
5372         * doc/posix-functions/freopen.texi: Likewise.
5373         * doc/posix-functions/fseeko.texi: Likewise.
5374         * doc/posix-functions/fsetpos.texi: Likewise.
5375         * doc/posix-functions/fstatat.texi: Likewise.
5376         * doc/posix-functions/fstatvfs.texi: Likewise.
5377         * doc/posix-functions/ftello.texi: Likewise.
5378         * doc/posix-functions/ftruncate.texi: Likewise.
5379         * doc/posix-functions/getrlimit.texi: Likewise.
5380         * doc/posix-functions/lio_listio.texi: Likewise.
5381         * doc/posix-functions/localtime.texi: Likewise.
5382         * doc/posix-functions/lseek.texi: Likewise.
5383         * doc/posix-functions/mkstemp.texi: Likewise.
5384         * doc/posix-functions/mktime.texi: Likewise.
5385         * doc/posix-functions/open.texi: Likewise.
5386         * doc/posix-functions/openat.texi: Likewise.
5387         * doc/posix-functions/opendir.texi: Likewise.
5388         * doc/posix-functions/pread.texi: Likewise.
5389         * doc/posix-functions/pwrite.texi: Likewise.
5390         * doc/posix-functions/readdir.texi: Likewise.
5391         * doc/posix-functions/readdir_r.texi: Likewise.
5392         * doc/posix-functions/scandir.texi: Likewise.
5393         * doc/posix-functions/seekdir.texi: Likewise.
5394         * doc/posix-functions/setrlimit.texi: Likewise.
5395         * doc/posix-functions/statvfs.texi: Likewise.
5396         * doc/posix-functions/strftime.texi: Likewise.
5397         * doc/posix-functions/telldir.texi: Likewise.
5398         * doc/posix-functions/timezone.texi: Likewise.
5399         * doc/posix-functions/tmpfile.texi: Likewise.
5400         * doc/posix-functions/truncate.texi: Likewise.
5401         * doc/posix-functions/tzname.texi: Likewise.
5402         * doc/posix-functions/wcsftime.texi: Likewise.
5403         * doc/windows-sockets.texi: Likewise.
5405 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5407         getrandom-tests: do not assume GRND_RANDOM yields short read
5408         * tests/test-getrandom.c (main): Omit assertion that
5409         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
5410         when b’s size is 100000.  This assertion fails with Linux kernel
5411         5.6.13, as that kernel ignores the GRND_RANDOM flag.
5412         The separate blocking pool is going away in the Linux kernel, and
5413         they’ve added a flag GRND_INSECURE instead; see:
5414         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
5415         The assertion was iffy anyway; what’s to prevent a kernel from
5416         lazily filling a large buffer with random bytes?
5418         read-file-test: pacify --enable-gcc-warnings
5419         * tests/test-read-file.c (test_read_file): Now static.
5421         tempname: merge from glibc and coreutils
5422         Also, merge in Gnulib’s more-recent methods of making it easier
5423         to share between Gnulib and glibc, and fix a few randomness
5424         glitches.
5425         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
5426         (__set_errno): Remove; libc-config.h does that for us.
5427         Do not include <sys/time.h>.
5428         (__secure_getenv) [_LIBC]: New macro.
5429         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
5430         (RANDOM_BITS): Rewrite.
5431         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
5432         (random_value): New typedef.
5433         (try_file, try_dir, try_nocreate): Move up.
5434         (gen_tempname_len, try_tempname_len): New functions.
5435         (gen_tempname_len): Use a constant array rather than a switch.
5436         (try_tempname_len): Don’t assume string length fits in int.
5437         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
5438         has enough entropy (it’s a bit short).
5439         (__gen_tempname): Rewrite in terms of gen_tempname_len.
5440         (__try_tempname): Rewrite in terms of try_tempname_len.
5441         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
5442         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
5443         Add getentropy, libc-config.
5445 2020-05-31  Bruno Haible  <bruno@clisp.org>
5447         getrandom, getentropy: Mention the crypto/gc-random module.
5448         Suggested by Simon Josefsson in
5449         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
5450         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
5451         crypto/gc-random module.
5452         * doc/glibc-functions/getentropy.texi: Likewise.
5454 2020-05-31  Bruno Haible  <bruno@clisp.org>
5456         getentropy: Enhance tests.
5457         * tests/test-getentropy.c (main): Add one more test.
5458         * tests/test-unistd-c++.cc: Check the signature of getentropy.
5460 2020-05-31  Bruno Haible  <bruno@clisp.org>
5462         getentropy: Work around a macOS and Solaris problem.
5463         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
5464         'getentropy' module.
5465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5466         UNISTD_H_HAVE_SYS_RANDOM_H.
5467         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
5468         UNISTD_H_HAVE_SYS_RANDOM_H.
5469         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
5470         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
5471         problem. List more platforms.
5473 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5475         fnmatch: merge from glibc
5476         Also, merge in Gnulib’s more-recent methods of making it easier
5477         to share between Gnulib and glibc.
5478         * lib/fnmatch.c: Reorder includes to match glibc better.
5479         Include libc-config.h instead of config.h.
5480         Include alloca.h only if _LIBC || HAVE_ALLOCA.
5481         Do not include "../locale/elem-hash.h" if _LIBC.
5482         Define macros for btowc, etc. if _LIBC.  All uses simplified.
5483         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
5484         Include intprops.h, since glibc has it now.
5485         (SIZE_MAX): Remove; use (size_t) -1 instead.
5486         Omit the "Comment out all this code" ifdef, since Gnulib
5487         has never really needed it.
5488         (STREQ): Remove; no longer used.
5489         (__libc_use_alloca, alloca, alloca_account): Define as
5490         needed if !_LIBC.
5491         (ISWCTYPE): Remove; all uses replaced by iswctype.
5492         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
5493         (internal_function): Remove.  All uses removed.
5494         (STRUCT): New macro.
5495         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
5496         (WMEMCMP): New macro.
5497         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
5498         and <locale/weightwc.h>.
5499         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
5500         __builtin_expect.  Check for integer overflow more
5501         systematically.  Account for alloca storage better when
5502         recursive.  Use strnlen instead of strlen for efficiency.
5503         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
5504         (struct STRUCT): New type.
5505         (FCT, EXT): New ENDS and ALLOCA_USED args.
5506         All callers changed.
5507         (FCT): Prefer __glibc_unlikely to __builtin_expect.
5508         Simplify by assuming WIDE_CHAR_SUPPORT.
5509         Copy _LIBC code from glibc without worrying Gnulib compatibility.
5510         Cast cold to UCHAR to avoid signedness warning.
5511         (END): Check for invalid pattern.
5512         (EXT): Improve alloca/malloc checking (taken from glibc),
5513         and improve it some more by using intprops.h and checking
5514         for integer overflow and using bool for booleans.
5515         * lib/libc-config.h (compat_symbol): New macro.
5516         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
5517         acceptable to non-GCC when a trailing semicolon is added.
5518         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
5519         libc-config, strnlen.  Remove alloca.
5521 2020-05-31  Bruno Haible  <bruno@clisp.org>
5523         getrandom: Doc and test tweaks.
5524         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
5525         it sets errno when failing.
5526         * tests/test-getrandom.c (main): Disable the high-quality check on those
5527         platforms on which it fails.
5528         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
5529         Cygwin to the list of platforms that don't have the function. Add a note
5530         about the quality of the result.
5531         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
5532         declaration; this is fixed by module 'getrandom'.
5534 2020-05-31  Bruno Haible  <bruno@clisp.org>
5536         getrandom: Add support for native Windows.
5537         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
5538         <wincrypt.h>.
5539         (CRYPT_VERIFY_CONTEXT): New macro.
5540         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
5541         'A'.
5542         (GetProcAddress): New macro.
5543         (BCryptGenRandomFuncType): New type.
5544         (BCryptGenRandomFunc, initialized): New variables.
5545         (initialize): New function.
5546         (getrandom): On native Windows, use <bcrypt.h> API when available, and
5547         <wincrypt.h> API as fallback.
5548         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
5549         * modules/getrandom (Link): New section.
5550         * modules/getentropy (Link): Likewise.
5551         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
5552         $(LIB_GETRANDOM).
5553         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
5554         $(LIB_GETRANDOM).
5555         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
5556         against $(LIB_GETRANDOM).
5557         * doc/glibc-functions/getrandom.texi: Mention the native Windows
5558         support.
5560 2020-05-31  Bruno Haible  <bruno@clisp.org>
5562         getrandom: Simplify the determination of the random number devices.
5563         Suggested by Paul Eggert in
5564         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
5565         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
5566         macros.
5567         * modules/getrandom (Depends-on): Remove crypto/gc-random.
5569 2020-05-31  Bruno Haible  <bruno@clisp.org>
5571         crypto/gc-random: Fix list of crypto devices for Solaris.
5572         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
5574 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
5576         list: fix GCC warnings
5577         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
5578         (gl_tree_next_node, gl_tree_node_nx_set_value)
5579         (gl_tree_previous_node, gl_tree_next_node):
5580         Mark unused arguments.
5581         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
5582         * lib/gl_anylinked_list2.h (gl_linked_node_value)
5583         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
5585         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
5586         the same variable name in nested scopes.
5588 2020-05-31  Bruno Haible  <bruno@clisp.org>
5590         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
5591         Reported by Akim Demaille in
5592         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
5593         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
5594         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
5595         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
5596         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
5597         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
5599 2020-05-30  Bruno Haible  <bruno@clisp.org>
5601         wmemchr: Relicense under LGPLv2+.
5602         * modules/wmemchr (License): Set to LGPLv2+.
5604 2020-05-30  Bruno Haible  <bruno@clisp.org>
5606         wmempcpy: New module.
5607         Reported by Paul Eggert in
5608         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
5609         * lib/wchar.in.h (wmempcpy): New declaration.
5610         * lib/wmempcpy.c: New file.
5611         * m4/wmempcpy.m4: New file.
5612         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
5613         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
5614         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
5615         HAVE_WMEMPCPY.
5616         * modules/wmempcpy: New file.
5617         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
5618         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
5619         * modules/mempcpy (Description): Fix typo.
5621 2020-05-30  Bruno Haible  <bruno@clisp.org>
5623         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
5624         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
5626 2020-05-30  Bruno Haible  <bruno@clisp.org>
5628         sys_random: Work around macOS bug.
5629         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
5630         <stdlib.h> before <sys/random.h>.
5631         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
5632         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
5633         first.
5634         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
5636 2020-05-30  Bruno Haible  <bruno@clisp.org>
5638         getrandom: Override incompatible system function on Solaris 11.
5639         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
5640         * lib/getrandom.c (getrandom): When the system has getrandom, just
5641         invoke it.
5642         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
5643         system's getrandom function's prototype is not the expected one.
5644         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
5645         REPLACE_GETRANDOM.
5646         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
5647         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
5648         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
5649         EAGAIN.
5650         * doc/glibc-functions/getrandom.texi: Mention the new module and the
5651         Solaris problem.
5653 2020-05-30  Bruno Haible  <bruno@clisp.org>
5655         sys_random: Add C++ tests.
5656         * tests/test-sys_random-c++.cc: New file.
5657         * modules/sys_random-c++-tests: New file.
5658         * modules/sys_random-tests (Depends-on): Depend on it.
5660         sys_random: Add tests.
5661         * tests/test-sys_random.c: New file.
5662         * modules/sys_random-tests: New file.
5664         sys_random: New module.
5665         * lib/sys_random.in.h: Use the common idioms for overridable header
5666         files.
5667         * m4/sys_random_h.m4: New file.
5668         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
5669         * modules/sys_random: New file.
5670         * modules/getrandom (Files): Remove lib/sys_random.in.h.
5671         (Depends-on): Add sys_random.
5672         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
5673         gl_UNISTD_MODULE_INDICATOR.
5674         (Makefile.am): Don't generate sys/random.h here.
5675         * doc/glibc-headers/sys_random.texi: New file.
5676         * doc/gnulib.texi: Include it.
5678 2020-05-30  Bruno Haible  <bruno@clisp.org>
5680         unistd: Remove conflicting declaration of getrandom().
5681         * lib/unistd.in.h (getrandom): Remove declaration.
5682         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
5683         declared.
5684         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
5685         HAVE_GETRANDOM.
5686         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
5687         HAVE_GETRANDOM.
5689 2020-05-30  Bruno Haible  <bruno@clisp.org>
5691         getrandom: Add tests.
5692         * tests/test-getrandom.c: New file.
5693         * modules/getrandom-tests: New file.
5695 2020-05-30  Bruno Haible  <bruno@clisp.org>
5697         crypto/gc-random: Fix link error on MSVC.
5698         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
5699         * modules/crypto/gc-random (Link): New section.
5700         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
5701         $(LIB_GC_RANDOM).
5703 2020-05-30  Bruno Haible  <bruno@clisp.org>
5705         Don't assume that UNICODE is not defined.
5706         Many Windows API functions are defined differently (redirecting to a
5707         function with suffix 'W') if the application defines the macro UNICODE
5708         than by default (redirecting to a function with suffix 'A').
5709         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
5710         variant with suffix 'A'.
5711         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
5712         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
5713         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
5714         * lib/getlogin.c (GetUserName): Likewise.
5715         * lib/getlogin_r.c (GetUserName): Likewise.
5716         * lib/gettimeofday.c (LoadLibrary): Likewise.
5717         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
5718         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
5719         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
5720         * lib/mountlist.c (GetDriveType): Likewise.
5721         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
5722         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
5723         Likewise.
5724         * lib/physmem.c (GetModuleHandle): Likewise.
5725         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5726         PeekMessage, DispatchMessage): Likewise.
5727         * lib/progreloc.c (GetModuleFileName): Likewise.
5728         * lib/putenv.c (SetEnvironmentVariable): Likewise.
5729         * lib/read.c (GetNamedPipeHandleState): Likewise.
5730         * lib/readdir.c (FindNextFile): Likewise.
5731         * lib/relocatable.c (GetModuleFileName): Likewise.
5732         * lib/rename.c (MoveFileEx): Likewise.
5733         * lib/rewinddir.c (FindFirstFile): Likewise.
5734         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5735         PeekMessage, DispatchMessage): Likewise.
5736         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
5737         * lib/socket.c (WSASocket): Likewise.
5738         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
5739         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
5740         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
5741         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
5742         * lib/tmpdir.c (GetTempPath): Likewise.
5743         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
5744         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
5745         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
5746         * lib/windows-cond.c (CreateEvent): Likewise.
5747         * lib/windows-rwlock.c (CreateEvent): Likewise.
5748         * lib/windows-timedmutex.c (CreateEvent): Likewise.
5749         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
5750         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
5751         * lib/write.c (GetNamedPipeHandleState): Likewise.
5753 2020-05-30  Bruno Haible  <bruno@clisp.org>
5755         physmem: Fix compilation errors on MSVC.
5756         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
5757         * modules/physmem (Depends-on): Add unistd.
5759 2020-05-29  Bruno Haible  <bruno@clisp.org>
5761         gnulib-tool: Fix link errors with a particular set of modules on mingw.
5762         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
5763         LDADD a second time, after the second occurrence of libtests.a.
5764         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
5766 2020-05-29  Bruno Haible  <bruno@clisp.org>
5768         fnmatch: Rely on more gnulib modules.
5769         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
5770         wmempcpy, mempcpy.
5771         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
5772         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
5773         HAVE_MEMPCPY are all 1.
5774         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
5775         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
5777 2020-05-29  Bruno Haible  <bruno@clisp.org>
5779         Avoid dynamic lookup of Windows API functions when possible.
5780         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
5781         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
5782         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
5783         (use_win32_p): Define differently.
5784         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
5785         CreateHardLinkFunc, initialized, initialize): Don't define in a build
5786         for Windows XP or higher.
5788 2020-05-29  Daiki Ueno  <ueno@gnu.org>
5790         read-file: disable buffering if RF_SENSITIVE is set
5791         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
5792         Suggested by Glenn Strauss.
5793         (fread_file): Suggest calling setvbuf before calling this
5794         function.  Suggested by Bruno Haible.
5796 2020-05-29  Bruno Haible  <bruno@clisp.org>
5798         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
5799         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
5800         program.
5801         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
5802         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
5803         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
5804         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
5806 2020-05-29  Bruno Haible  <bruno@clisp.org>
5808         Fix compilation error on native Windows (regression from 2020-05-28).
5809         Reported by Daiki Ueno.
5810         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
5811         macro when not using dynamic loading.
5812         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
5813         QueryFullProcessImageNameFunc): Likewise.
5814         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
5815         GetFinalPathNameByHandleFunc): Likewise.
5817 2020-05-29  Daiki Ueno  <ueno@gnu.org>
5819         fopen-gnu-tests: fix "\x" escape usage
5820         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
5822 2020-05-28  Bruno Haible  <bruno@clisp.org>
5824         Avoid dynamic loading of Windows API functions when possible.
5825         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
5826         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
5827         * lib/gettimeofday.c (GetProcAddress,
5828         GetSystemTimePreciseAsFileTimeFuncType,
5829         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
5830         define in a build for Windows 8 or higher.
5831         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
5832         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
5833         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
5834         in a build for Windows Vista or higher.
5835         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
5836         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
5837         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
5839 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
5841         explicit_bzero-tests: improve -Wmissing-declarations pacification
5842         * tests/test-explicit_bzero.c: Now noinline.
5843         Suggested by Bruno Haible in:
5844         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
5846 2020-05-28  Bruno Haible  <bruno@clisp.org>
5848         Fix build errors due to read-file changes (regression from 2020-05-27).
5849         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
5850         invocation.
5851         * tests/test-sameacls.c (main): Likewise.
5852         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
5853         read_binary_file.
5854         * tests/test-pipe-filter-ii1.c (main): Likewise.
5856 2020-05-28  Bruno Haible  <bruno@clisp.org>
5858         fts: Make more robust in multithreaded applications.
5859         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
5860         * modules/fts (Depends-on): Add 'open'.
5862 2020-05-28  Bruno Haible  <bruno@clisp.org>
5864         relocatable-prog: Make more robust in multithreaded applications.
5865         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
5866         relocatable-prog-wrapper.
5867         (find_executable): Pass an O_CLOEXEC flag to open().
5868         * modules/relocatable-prog (Depends-on): Add 'open'.
5870 2020-05-28  Bruno Haible  <bruno@clisp.org>
5872         getloadavg: Make more robust in multithreaded applications.
5873         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
5874         Simplify use of O_CLOEXEC.
5875         * modules/getloadavg (Depends-on): Add 'open'.
5877 2020-05-28  Bruno Haible  <bruno@clisp.org>
5879         vma-iter: Make more robust in multithreaded applications.
5880         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
5881         open().
5882         * modules/vma-iter (Depends-on): Add 'open'.
5884 2020-05-28  Bruno Haible  <bruno@clisp.org>
5886         truncate: Make more robust in multithreaded applications.
5887         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
5889 2020-05-28  Bruno Haible  <bruno@clisp.org>
5891         pagealign_alloc: Make more robust in multithreaded applications.
5892         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
5893         open().
5894         * modules/pagealign_alloc (Depends-on): Add 'open'.
5896 2020-05-28  Bruno Haible  <bruno@clisp.org>
5898         openat: Make more robust in multithreaded applications.
5899         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
5901 2020-05-28  Bruno Haible  <bruno@clisp.org>
5903         at-internal: Make more robust in multithreaded applications.
5904         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
5905         open().
5907 2020-05-28  Bruno Haible  <bruno@clisp.org>
5909         mountlist: Make more robust in multithreaded applications.
5910         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
5911         open().
5912         * modules/mountlist (Depends-on): Add 'open'.
5914 2020-05-28  Bruno Haible  <bruno@clisp.org>
5916         login_tty: Make more robust in multithreaded applications.
5917         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
5918         * modules/login_tty (Depends-on): Add 'open'.
5920 2020-05-28  Bruno Haible  <bruno@clisp.org>
5922         javacomp: Make more robust in multithreaded applications.
5923         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
5924         open().
5925         * modules/javacomp (Depends-on): Add 'open'.
5927 2020-05-28  Bruno Haible  <bruno@clisp.org>
5929         getprogname: Make more robust in multithreaded applications.
5930         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
5931         * modules/getprogname (Depends-on): Add 'open'.
5933 2020-05-28  Bruno Haible  <bruno@clisp.org>
5935         get_progname_of: Make more robust in multithreaded applications.
5936         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
5937         open().
5938         * modules/get_progname_of (Depends-on): Add 'open'.
5940 2020-05-28  Bruno Haible  <bruno@clisp.org>
5942         get_ppid_of: Make more robust in multithreaded applications.
5943         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
5944         * modules/get_ppid_of (Depends-on): Add 'open'.
5946 2020-05-28  Bruno Haible  <bruno@clisp.org>
5948         get-rusage-as: Make more robust in multithreaded applications.
5949         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
5950         flag to open().
5951         * modules/get-rusage-as (Depends-on): Add 'open'.
5953 2020-05-28  Bruno Haible  <bruno@clisp.org>
5955         crypto/gc: Make more robust in multithreaded applications.
5956         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
5957         * modules/crypto/gc (Depends-on): Add 'open'.
5959 2020-05-28  Bruno Haible  <bruno@clisp.org>
5961         copy-file: Make more robust in multithreaded applications.
5962         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
5963         open().
5965 2020-05-28  Bruno Haible  <bruno@clisp.org>
5967         chown: Make more robust in multithreaded applications.
5968         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
5970 2020-05-28  Bruno Haible  <bruno@clisp.org>
5972         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
5973         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
5975 2020-05-28  Daiki Ueno  <ueno@gnu.org>
5977         fopen-gnu: make 'b' flag can be used with 'e' on Windows
5978         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
5979         specified on Windows.
5980         * tests/test-fopen-gnu.c (DATA): New define.
5981         (main): Add test for reading binary files with an 'e' flag.
5983 2020-05-27  Bruno Haible  <bruno@clisp.org>
5985         Don't assume that UNICODE is not defined.
5986         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
5987         differently if the application defines the macro UNICODE.
5988         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
5989         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
5990         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
5991         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
5992         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
5994 2020-05-27  Bruno Haible  <bruno@clisp.org>
5996         Improve pattern for defining _WIN32_WINNT.
5997         Newer versions of the Windows API may not only add, but also remove API
5998         functions. Therefore, when the user is e.g. building for Windows 10, we
5999         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
6000         use of APIs that were present in Windows 8 but removed in Windows 10.
6001         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
6002         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
6003         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
6004         * lib/sethostname.c (_WIN32_WINNT): Likewise.
6005         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
6007 2020-05-27  Bruno Haible  <bruno@clisp.org>
6009         javacomp: Make more robust in multithreaded applications.
6010         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
6011         * modules/javacomp (Depends-on): Add fopen-gnu.
6013 2020-05-27  Bruno Haible  <bruno@clisp.org>
6015         mountlist: Make more robust in multithreaded applications.
6016         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
6017         to fopen.
6018         * modules/mountlist (Depends-on): Add fopen-gnu.
6020 2020-05-27  Bruno Haible  <bruno@clisp.org>
6022         sethostname: Make more robust in multithreaded applications.
6023         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
6024         * modules/sethostname (Depends-on): Add fopen-gnu.
6026 2020-05-27  Bruno Haible  <bruno@clisp.org>
6028         readutmp: Make more robust in multithreaded applications.
6029         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
6030         * modules/readutmp (Depends-on): Add fopen-gnu.
6032 2020-05-27  Bruno Haible  <bruno@clisp.org>
6034         getpass: Make more robust in multithreaded applications.
6035         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
6036         * modules/getpass (Depends-on): Add fopen-gnu.
6038 2020-05-27  Bruno Haible  <bruno@clisp.org>
6040         getloadavg: Make more robust in multithreaded applications.
6041         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
6042         * modules/getloadavg (Depends-on): Add fopen-gnu.
6044 2020-05-27  Bruno Haible  <bruno@clisp.org>
6046         exclude: Make more robust in multithreaded applications.
6047         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
6048         * modules/exclude (Depends-on): Add fopen-gnu.
6050 2020-05-27  Bruno Haible  <bruno@clisp.org>
6052         bitset: Make more robust in multithreaded applications.
6053         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
6054         'e' flag to fopen.
6055         * modules/bitset (Depends-on): Add fopen-gnu.
6057 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6059         read-file: add RF_SENSITIVE flag
6060         * lib/read-file.h (RF_SENSITIVE): New define.
6061         * lib/read-file.c (fread_file, read_file): Take into account of
6062         RF_SENSITIVE flag.
6063         * modules/read-file (Depends-on): Add explicit_bzero.
6064         This adds an alternative behavior of those functions to explicitly
6065         clear the internal memory block when it becomes unused.  This is
6066         useful for reading sensitive information from a file.
6068 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6070         read-file: add flags to modify reading behavior
6071         * lib/read-file.h (RF_BINARY): New define.
6072         (fread_file, read_file): Take FLAGS argument.
6073         (read_binary_file): Remove.
6074         * lib/read-file.c (internal_read_file): Merge into ...
6075         (read_file): ... here.
6076         * modules/read-file-tests (Files): Add "tests/macros.h".
6077         * tests/test-read-file.c (main): Refactor using ASSERT macro.
6078         * NEWS: Mention this change.
6080 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
6082         doc/gnulib-intro.texi: add missing "to" in sentence
6083         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
6084         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
6085         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
6087 2020-05-26  Bruno Haible  <bruno@clisp.org>
6089         count-one-bits: Fix MSVC specific code.
6090         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6091         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
6092         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
6093         using GCC.
6094         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
6095         (__popcnt64): In 32-bit mode, define as an inline function.
6096         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
6098 2020-05-26  Bruno Haible  <bruno@clisp.org>
6100         argz: Avoid name clashes through argz.h.
6101         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6102         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
6103         * lib/argz.h: Don't use __ prefixed identifiers.
6104         (const): Remove definition.
6105         (argz_next): Remove inline definitions.
6107 2020-05-26  Daiki Ueno  <ueno@gnu.org>
6109         read-file: make use of fopen-gnu
6110         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
6111         (read_binary_file): Likewise.
6112         * modules/read-file (Depends-on): Add fopen-gnu.
6114 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6116         getentropy, getrandom: new modules
6117         * MODULES.html.sh (func_all_modules):
6118         * lib/unistd.in.h (getentropy, getrandom):
6119         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
6120         * modules/unistd (unistd.h):
6121         Add support for getentropy, getrandom.
6122         * doc/glibc-functions/getentropy.texi (getentropy):
6123         * doc/glibc-functions/getrandom.texi (getrandom):
6124         These are now fixed on some platforms.
6125         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
6126         * m4/getentropy.m4, m4/getrandom.m4:
6127         * modules/getentropy, modules/getentropy-tests:
6128         * modules/getrandom, modules/getrandom-tests:
6129         * tests/test-getentropy.c, tests/test-getrandom.c:
6130         New files.
6132 2020-05-25  Bruno Haible  <bruno@clisp.org>
6134         Add missing C99 dependencies.
6135         Reported by Paul Smith <psmith@gnu.org> in
6136         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
6137         * modules/assert (Depends-on): Add c99.
6138         * modules/filenamecat-lgpl (Depends-on): Likewise.
6139         * modules/libc-config (Depends-on): Likewise.
6140         * modules/mktime (Depends-on): Likewise.
6141         * modules/random_r (Depends-on): Likewise.
6142         * modules/regex (Depends-on): Likewise.
6143         * modules/scratch_buffer (Depends-on): Likewise.
6144         * modules/timespec-add (Depends-on): Likewise.
6145         * modules/timespec-sub (Depends-on): Likewise.
6146         * modules/verify (Depends-on): Likewise.
6148 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6150         explicit_bzero-tests: pacify -Wmissing-declarations
6151         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
6152         Now static.
6154 2020-05-24  Bruno Haible  <bruno@clisp.org>
6156         fopen-gnu: Add tests.
6157         * tests/test-fopen-gnu.c: New file.
6158         * modules/fopen-gnu-tests: New file.
6160         fopen-gnu: New module.
6161         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
6162         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
6163         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
6164         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
6165         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
6166         * modules/fopen-gnu: New file.
6167         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
6169 2020-05-24  Bruno Haible  <bruno@clisp.org>
6171         open, openat: Really support O_CLOEXEC.
6172         * lib/open.c (open): When have_cloexec is still undecided, do pass a
6173         O_CLOEXEC flag to orig_open.
6174         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
6175         pass a O_CLOEXEC flag to orig_openat.
6176         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
6177         * modules/open-tests (Depends-on): Add fcntl.
6178         * modules/openat-tests (Depends-on): Likewise.
6179         * modules/fcntl-safer-tests (Depends-on): Likewise.
6181 2020-05-24  Bruno Haible  <bruno@clisp.org>
6183         fopen: Fix the trailing slash workaround.
6184         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
6185         write access. Pass the right flags to open().
6186         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
6188 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6190         assure: new macro ‘affirm’
6191         * lib/assure.h: Include verify.h.
6192         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
6193         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
6194         and commentary by Bruno Haible in:
6195         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
6196         * modules/assure (Depends-on:): Add verify.
6198 2020-05-23  Bruno Haible  <bruno@clisp.org>
6200         calloc-gnu: Make test work in non-flat address spaces.
6201         Uses code by Paul Eggert.
6202         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
6203         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
6205 2020-05-23  Bruno Haible  <bruno@clisp.org>
6207         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
6208         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
6209         AC_RUN_IFELSE invocations.
6211 2020-05-23  Bruno Haible  <bruno@clisp.org>
6213         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
6214         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
6215         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
6216         don't have it.
6217         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6218         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
6219         don't have it.
6220         * lib/isnanf-nolibm.h (__has_builtin): New macro.
6221         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
6222         it.
6223         * lib/isnanl-nolibm.h (__has_builtin): New macro.
6224         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
6225         it.
6226         * lib/math.in.h (__has_builtin): New macro.
6227         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
6228         it.
6229         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
6230         it.
6231         (isnan): Don't use the builtins on clang versions that don't have
6232         __builtin_isnanf and __builtin_isnanl.
6234 2020-05-23  Bruno Haible  <bruno@clisp.org>
6236         calloc-gnu: Avoid wrong configure results with clang.
6237         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
6238         'volatile', to defeat compiler optimizations.
6240 2020-05-23  Bruno Haible  <bruno@clisp.org>
6242         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
6243         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
6244         'long double' values by reference, with values taken from a statically
6245         allocated array.
6247 2020-05-23  Bruno Haible  <bruno@clisp.org>
6249         findprog-in: Ignore directories.
6250         Reported by Frederick Eaton via Dmitry Goncharov in
6251         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
6252         * lib/findprog-in.c (find_in_given_path): When the file found is a
6253         directory, set errno to EACCES and, during a PATH search, continue
6254         searching.
6255         * modules/findprog-in (Depends-on): Add sys_stat, stat.
6257 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6259         verify: document ‘assume’ better
6260         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
6262 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
6264         gendocs: Clarify licenses for templates.
6265         * doc/gendocs_template: Add a GNU All-Permissive license notice
6266         and bump Parent-Version.
6267         * doc/gendocs_template_min: Add a GNU All-Permissive license
6268         notice and copy the explanatory comment about the license notice
6269         at the bottom from gendocs_template.
6271 2020-05-21  Bruno Haible  <bruno@clisp.org>
6273         group-member: Relicense under LGPLv2+.
6274         Jim Meyering's approval is in
6275         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
6276         Paul Eggert's approval is in
6277         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
6278         Eric Blake's approval is in
6279         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
6280         * modules/group-member (License): Change to LGPLv2+.
6282 2020-05-21  Bruno Haible  <bruno@clisp.org>
6284         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
6285         Reported by Tim Rühsen in
6286         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6287         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
6289 2020-05-21  Bruno Haible  <bruno@clisp.org>
6291         regex: Avoid wrong configure results with "clang -fsanitize=leak".
6292         Reported by Tim Rühsen in
6293         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6294         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
6295         before returning with status 0.
6297 2020-05-21  Bruno Haible  <bruno@clisp.org>
6299         glob: Avoid wrong configure results with "clang -fsanitize=leak".
6300         Reported by Tim Rühsen in
6301         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6302         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
6304 2020-05-21  Bruno Haible  <bruno@clisp.org>
6306         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
6307         Reported by Tim Rühsen in
6308         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6309         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
6310         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
6311         respectively.
6313 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
6315         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
6316         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
6318 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6320         ftoastr: fix ifndef typo
6321         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
6323 2020-05-19  Bruno Haible  <bruno@clisp.org>
6325         havelib: Tweak documentation.
6326         * doc/havelib.texi (Searching for Libraries): Fix typo.
6328 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6330         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
6331         This was needed earlier because modules had to import the main script,
6332         but that is no longer true.  Rename the script so that it is
6333         consistent with all other scripts in gnulib and uses hyphens.
6334         * build-aux/vcs_to_changelog.py: Rename to...
6335         * build-aux/vcs-to-changelog.py: ... this.
6336         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
6337         * modules/vcs-to-changelog: Likewise.
6339 2020-05-17  Bruno Haible  <bruno@clisp.org>
6341         Clarify intended usage of the license file modules.
6342         Reported by Asher Gordon <AsDaGo@posteo.net> in
6343         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
6344         * doc/licenses-texi.texi (License Texinfo sources): Mention the
6345         GNU AGPL. Explain the intended usage of the modules.
6346         * modules/fdl (Notice): Discourage use as a module.
6347         * modules/fdl-1.3 (Notice): Likewise.
6349 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
6351         hash: add hash_xinsert
6352         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
6354 2020-05-16  Bruno Haible  <bruno@clisp.org>
6356         findprog-lgpl: Fix link error (existing since 2008-09-02).
6357         * modules/findprog-lgpl (Makefile.am): Arrange to compile
6358         findprog-lgpl.c, not findprog.c.
6359         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
6360         XNMALLOC.
6362 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
6364         c-stack: pacify -Wunused-result when DEBUG
6365         Problem reported by Marc Nieper-Wißkirchen in:
6366         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
6367         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
6368         Explicitly ignore write failures.
6370 2020-05-13  Jim Meyering  <meyering@fb.com>
6372         announce-gen: improve a comment
6373         * build-aux/announce-gen: Improve comment.
6375 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
6377         xalloc: pacify -Wanalyzer-possible-null-argument
6378         Problem reported for GCC 10.1.0 by Bruno Haible in:
6379         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
6380         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
6381         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
6382         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
6384 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
6386         careadlinkat: fix GCC 10 workaround
6387         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6388         Massage the code so that it’s closer to what it was before
6389         the GCC 10.1.0 workaround was introduced.  This fixes
6390         a loop when !buffer and the bug workaround is in effect.
6391         Remove unnecessary casts.  Defend in a different way
6392         against (buffer && !buffer_size), by adding at least 1
6393         to buf_size each time through the loop.
6395 2020-05-10  Bruno Haible  <bruno@clisp.org>
6397         doc: Mark HP-UX as unsupported.
6398         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
6400 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6402         careadlinkat: limit GCC workaround
6403         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
6404         10.1.0 and later, since the workaround is pretty bad and the GCC
6405         bug should get fixed.
6407 2020-05-10  Bruno Haible  <bruno@clisp.org>
6409         havelib: Enhance documentation.
6410         * doc/havelib.texi (Searching for Libraries): Mention the bad
6411         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
6413 2020-05-10  Bruno Haible  <bruno@clisp.org>
6415         attribute: Clarify list of attributes.
6416         * lib/attribute.h: Reorder the list of attributes, and group them by
6417         purpose.
6419 2020-05-10  Bruno Haible  <bruno@clisp.org>
6421         string: Fix compilation error in C++ mode.
6422         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
6423         _GL_WARN_ON_USE.
6424         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
6425         instead of _GL_WARN_ON_USE.
6427 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
6429         announce-gen: add support for dist-lzip
6430         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
6432 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6434         manywarnings: port to GCC 10.1
6435         * build-aux/gcc-warning.spec:
6436         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
6437         Add GCC 10.1.0 warnings.
6439         careadlinkat: pacify -Wreturn-local-addr
6440         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6441         Pacify gcc 10’s -Wreturn-local-addr option.
6442         Simplify some of the later code.
6444 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6446         attribute: remove ATTRIBUTE_DEPRECATED
6447         * lib/attribute.h: Improve recently-added comments, mostly
6448         by shortening them (use active voice, etc.).
6449         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
6450         Problem reported by Bruno Haible in:
6451         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
6453 2020-05-09  Bruno Haible  <bruno@clisp.org>
6455         attribute: Add comments.
6456         * lib/attribute.h: Document each macro.
6458 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
6460         bitset: use the attribute module
6461         * modules/bitset: Depend on 'attribute'.
6462         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
6463         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
6464         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
6465         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
6467 2020-05-09  Bruno Haible  <bruno@clisp.org>
6469         c-stack: Fix warning when DEBUG is enabled.
6470         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6471         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
6472         * lib/c-stack.c: Include <stdio.h>.
6474 2020-05-09  Bruno Haible  <bruno@clisp.org>
6476         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
6477         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
6478         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6479         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6480         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6481         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6482         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6483         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6484         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6485         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
6486         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6487         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6488         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6490 2020-05-09  Bruno Haible  <bruno@clisp.org>
6492         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
6493         Reported by Akim Demaille in
6494         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
6495         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
6496         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6497         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6499 2020-05-09  Bruno Haible  <bruno@clisp.org>
6501         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
6502         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
6503         that usually comes from m4/gnulib-common.m4.
6504         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6506 2020-05-09  Bruno Haible  <bruno@clisp.org>
6508         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
6509         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
6510         that usually comes from m4/gnulib-common.m4.
6511         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6512         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6513         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6515 2020-05-09  Bruno Haible  <bruno@clisp.org>
6517         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
6518         * lib/uchar.in.h (char16_t): Define as macro if
6519         GNULIB_OVERRIDES_CHAR16_T.
6520         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
6521         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
6522         (gl_UCHAR_H): Invoke them.
6523         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
6524         GNULIB_OVERRIDES_CHAR32_T.
6525         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
6526         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
6527         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
6528         GNULIB_OVERRIDES_CHAR32_T.
6530 2020-05-09  Bruno Haible  <bruno@clisp.org>
6532         Macro tweaks.
6533         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
6534         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
6536 2020-05-08  Bruno Haible  <bruno@clisp.org>
6538         c32rtomb: Avoid compilation failure on Haiku.
6539         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
6540         inline definitions.
6541         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
6543 2020-05-08  Bruno Haible  <bruno@clisp.org>
6545         mbrtoc32: Avoid compilation failure on Haiku.
6546         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
6547         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
6548         AC_CHECK_FUNCS_ONCE.
6549         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
6551 2020-05-08  Bruno Haible  <bruno@clisp.org>
6553         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
6554         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
6556 2020-05-08  Bruno Haible  <bruno@clisp.org>
6558         list: Update documentation.
6559         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6560         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
6561         * doc/containers.texi (Container data types): Document the new list
6562         operations and their complexity.
6564 2020-05-08  Bruno Haible  <bruno@clisp.org>
6566         ignore-value tests: Use module 'attribute'.
6567         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
6568         * tests/test-ignore-value.c: Include attribute.h.
6569         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
6570         * modules/ignore-value-tests (Depends-on): Add attribute.
6572 2020-05-08  Bruno Haible  <bruno@clisp.org>
6574         uniname/uniname: Use module 'attribute'.
6575         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
6576         * lib/uniname/uninames.h: Regenerated.
6577         * lib/uniname/uniname.c: Include attribute.h.
6578         * modules/uniname/uniname (Depends-on): Add attribute.
6580 2020-05-08  Bruno Haible  <bruno@clisp.org>
6582         c32rtomb: Use module 'attribute'.
6583         * lib/c32rtomb.c: Include attribute.h.
6584         (FALLTHROUGH): Remove macro.
6585         * modules/c32rtomb (Depends-on): Add attribute.
6587 2020-05-08  Bruno Haible  <bruno@clisp.org>
6589         xsize: Use module 'attribute'.
6590         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
6591         * modules/xsize (Depends-on): Add attribute.
6593 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
6595         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
6597         * lib/attribute.h: Minor style fixes.
6599         Fix version-etc glitch on OpenIndiana
6600         Problem reported by Mats Erik Andersson in:
6601         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
6602         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
6603         that now clashes with gnulib-common.h.  All uses changed.
6605 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
6607         attribute: new module
6608         This simplifies use of GCC and C2X attributes like ‘deprecated’.
6609         * MODULES.html.sh: Add attribute.
6610         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
6611         * doc/gnulib.texi (Particular Modules): Add Attributes.
6612         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
6613         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
6614         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
6615         * lib/vasnprintf.c:
6616         Include attribute.h, and let it define FALLTHROUGH.
6617         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
6618         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
6619         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
6620         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
6621         This is a copy since Gawk doesn’t use Gnulib.
6622         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
6623         is incompatible with gl_COMMON_BODY’s.  All uses changed.
6624         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
6625         Keep the existing FALLTHROUGH definition since Glibc might use it,
6626         and it does no harm to Gnulib’s FALLTHROUGH.
6627         * lib/fts_.h, lib/inttostr.h:
6628         (__GNUC_PREREQ): Remove; no longer needed.
6629         (__attribute_warn_unused_result__): Remove.  All uses
6630         replaced by _GL_ATTRIBUTE_NODISCARD.
6631         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
6632         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
6633         __attribute__ ((__warn_unused_result__)), for forward
6634         compatibility to C2X.
6635         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
6636         _GL_ATTRIBUTE_NODISCARD.
6637         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
6638         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
6639         replaced by gl_COMMON_BODY’s implementation, which has a
6640         slightly different signature.
6641         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
6642         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
6643         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
6644         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
6645         No doubt all uses should be replaced, at some point.
6646         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
6647         (_Noreturn): Use it.
6648         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
6649         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
6650         (_GL_ATTRIBUTE_COLD)
6651         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
6652         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
6653         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
6654         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
6655         (_GL_ATTRIBUTE_MAYBE_UNUSED)
6656         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
6657         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
6658         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
6659         (_GL_ATTRIBUTE_RETURNS_NONNULL)
6660         (_GL_ATTRIBUTE_SENTINEL): New macros.
6661         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
6662         * modules/fnmatch, modules/freopen-safer, modules/fts:
6663         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
6664         * modules/quotearg, modules/savewd:
6665         * modules/unistdio/u16-u16-vasnprintf:
6666         * modules/unistdio/u16-vasnprintf:
6667         * modules/unistdio/u32-u32-vasnprintf:
6668         * modules/unistdio/u32-vasnprintf:
6669         * modules/unistdio/u8-u8-vasnprintf:
6670         * modules/unistdio/u8-vasnprintf:
6671         * modules/unistdio/ulc-vasnprintf:
6672         * modules/unistr/u8-uctomb, modules/vasnprintf:
6673         (Depends-on:): Add attribute module.
6675 2020-05-03  Bruno Haible  <bruno@clisp.org>
6677         bison: Fix today's commit.
6678         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
6680 2020-05-03  Bruno Haible  <bruno@clisp.org>
6682         list-c++: Add get_first, get_last, set_first, set_last operations.
6683         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
6684         set_first, set_last.
6685         * lib/gl_list.h: Tweak comments.
6687 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
6689         bison: rely on bison's %require to check a version requirement
6690         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
6691         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
6692         enough of not.
6693         So far it is the only know Yacc tool that supports '%require'.
6694         Other yaccs will actually even choke on seeing the -o option after the
6695         input file name.
6696         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
6698 2020-05-02  Bruno Haible  <bruno@clisp.org>
6700         list: Add get_first, get_last, set_first, set_last operations.
6701         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
6702         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
6703         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
6705 2020-05-02  Bruno Haible  <bruno@clisp.org>
6707         list: Remove redundant code for remove_first and remove_last operations.
6708         * lib/gl_list.h (struct gl_list_implementation): Remove fields
6709         remove_first, remove_last.
6710         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
6711         * lib/gl_array_list.c: Revert last change.
6712         * lib/gl_carray_list.c: Likewise.
6713         * lib/gl_anylinked_list2.h: Likewise.
6714         * lib/gl_linked_list.c: Likewise.
6715         * lib/gl_linkedhash_list.c: Likewise.
6716         * lib/gl_anytree_list2.h: Likewise.
6717         * lib/gl_avltree_list.c: Likewise.
6718         * lib/gl_avltreehash_list.c: Likewise.
6719         * lib/gl_rbtree_list.c: Likewise.
6720         * lib/gl_rbtreehash_list.c: Likewise.
6721         * lib/gl_sublist.c: Likewise.
6723 2020-05-02  Bruno Haible  <bruno@clisp.org>
6725         bison-i18n: Add support for cross-compilation.
6726         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
6727         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
6728         via Akim Demaille <akim@lrde.epita.fr>.
6729         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
6730         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
6731         Don't use bison's --print-localedir option when cross-compiling.
6732         Also, fix an error message and a comment.
6734 2020-05-01  Bruno Haible  <bruno@clisp.org>
6736         list: Add remove_first and remove_last operations.
6737         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6738         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
6739         * lib/gl_list.h (struct gl_list_implementation): Add fields
6740         remove_first, remove_last.
6741         (gl_list_remove_first, gl_list_remove_last): New functions.
6742         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
6743         functions, based on gl_array_remove_at.
6744         (gl_array_list_implementation): Implement the new operations.
6745         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
6746         New functions, based on gl_carray_remove_at.
6747         (gl_carray_list_implementation): Implement the new operations.
6748         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
6749         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
6750         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
6751         new operations.
6752         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
6753         Likewise.
6754         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
6755         New functions, based on gl_tree_remove_at.
6756         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
6757         new operations.
6758         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6759         Likewise.
6760         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
6761         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
6762         Likewise.
6763         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
6764         New functions, based on gl_sublist_remove_at.
6765         (gl_sublist_list_implementation): Implement the new operations.
6766         * lib/gl_list.hh (class gl_List): Add methods remove_first,
6767         remove_last.
6768         * tests/test-array_list.c (main): Test also gl_list_remove_first and
6769         gl_list_remove_last.
6770         * tests/test-avltree_list.c (main): Likewise.
6771         * tests/test-avltreehash_list.c (main): Likewise.
6772         * tests/test-carray_list.c (main): Likewise.
6773         * tests/test-linked_list.c (main): Likewise.
6774         * tests/test-linkedhash_list.c (main): Likewise.
6775         * tests/test-rbtree_list.c (main): Likewise.
6776         * tests/test-rbtreehash_list.c (main): Likewise.
6778 2020-05-01  Bruno Haible  <bruno@clisp.org>
6780         parse-datetime: Fix a build failure with an older bison version.
6781         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
6782         parse-datetime.tab.c if a suitable version of bison was not found.
6784 2020-05-01  Bruno Haible  <bruno@clisp.org>
6786         bison: New module.
6787         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
6788         m4/parse-datetime.m4.
6789         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
6790         * modules/bison: New file.
6791         * modules/parse-datetime (Files): Remove m4/bison.m4.
6792         (Depends-on): Add bison.
6794 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
6796         Update users.txt.
6797         * users.txt: Add poke.
6799 2020-04-28  Bruno Haible  <bruno@clisp.org>
6801         posix_spawn_file_actions_addfchdir tests: Enhance test.
6802         * tests/test-posix_spawn5.c: Include findprog.h.
6803         (test): New function, extracted from main.
6804         (main): Invoke it. Also, invoke it with a program name such as
6805         "bin/pwd".
6806         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
6807         findprog.
6809 2020-04-28  Bruno Haible  <bruno@clisp.org>
6811         posix_spawn_file_actions_addchdir tests: Enhance test.
6812         * tests/test-posix_spawn4.c: Include findprog.h.
6813         (test): New function, extracted from main.
6814         (main): Invoke it. Also, invoke it with a program name such as
6815         "bin/pwd".
6816         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
6817         findprog.
6819 2020-04-28  Bruno Haible  <bruno@clisp.org>
6821         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
6822         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
6823         access elements of the wrong union member.
6825 2020-04-27  Bruno Haible  <bruno@clisp.org>
6827         getdate: Remove deprecated module.
6828         * modules/getdate: Remove file.
6829         * doc/getdate.texi: Remove file.
6830         * lib/getdate.h: Remove file.
6831         * NEWS: Mention the removal.
6833 2020-04-27  Bruno Haible  <bruno@clisp.org>
6835         realloc: Remove deprecated module.
6836         * modules/realloc: Remove file.
6837         * NEWS: Mention the removal.
6839 2020-04-27  Bruno Haible  <bruno@clisp.org>
6841         calloc: Remove deprecated module.
6842         * modules/calloc: Remove file.
6843         * NEWS: Mention the removal.
6845 2020-04-27  Bruno Haible  <bruno@clisp.org>
6847         malloc: Remove deprecated module.
6848         * modules/malloc: Remove file.
6849         * NEWS: Mention the removal.
6851 2020-04-27  Bruno Haible  <bruno@clisp.org>
6853         fnmatch-posix: Remove deprecated module.
6854         * modules/fnmatch-posix: Remove file.
6855         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
6856         * NEWS: Mention the removal.
6858 2020-04-27  Bruno Haible  <bruno@clisp.org>
6860         pipe: Remove deprecated module.
6861         * modules/pipe: Remove file.
6862         * lib/pipe.h: Remove file.
6863         * NEWS: Mention the removal.
6865 2020-04-27  Bruno Haible  <bruno@clisp.org>
6867         getopt: Remove deprecated module.
6868         * modules/getopt: Remove file.
6869         * NEWS: Mention the removal.
6871 2020-04-27  Bruno Haible  <bruno@clisp.org>
6873         remove-dest-slash: Remove deprecated module.
6874         * modules/rename-dest-slash: Remove file.
6875         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
6876         Update.
6877         * NEWS: Mention the removal.
6879 2020-04-27  Bruno Haible  <bruno@clisp.org>
6881         unictype/bidicategory-*: Remove deprecated modules.
6882         * modules/unictype/bidicategory-all: Remove file.
6883         * modules/unictype/bidicategory-byname: Remove file.
6884         * modules/unictype/bidicategory-name: Remove file.
6885         * modules/unictype/bidicategory-of: Remove file.
6886         * modules/unictype/bidicategory-test: Remove file.
6887         * MODULES.html.sh (Unicode string functions): Update.
6888         * NEWS: Mention the removals.
6890 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6892         Tune fts for FTS_LOGICAL+FTS_NOSTAT
6893         From a suggestion by Askar Safin in:
6894         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
6895         * lib/fts.c (fts_build): If file types are known, optimize
6896         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
6897         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
6898         non-directories.
6900 2020-04-19  Bruno Haible  <bruno@clisp.org>
6902         vasnprintf: Add support for printing wide characters using escapes.
6903         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
6904         (wctomb_fallback): New function.
6905         (local_wctomb): New function.
6906         (local_wcrtomb): New function or macro.
6907         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
6908         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
6909         %lc.
6911 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
6913         fts: remove NOSTAT_LEAF_OPTIMIZATION
6914         It caused ‘find’ and ‘du’ to dump core, and it was useful
6915         only for obsolescent Linux filesystems anyway.  Problem reported in:
6916         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
6917         Quite possibly there is still a serious underlying fts bug with
6918         tight-loop-check and mutating file systems, but if so this patch
6919         should cause the bug to be triggered less often.
6920         * lib/fts.c (enum leaf_optimization): Remove
6921         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
6922         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
6923         (leaf_optimization): Remove special cases for ReiserFS and XFS.
6924         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
6925         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
6926         Remove.  All uses removed.
6928 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6930         explicit_bzero: Improve code style.
6931         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
6933 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6935         explicit_bzero: On native Windows, use SecureZeroMemory().
6936         * lib/explicit_bzero.c: Include <windows.h>.
6937         (explicit_bzero): On native Windows, use SecureZeroMemory.
6939 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6941         explicit_bzero: Use memset_s() when available.
6942         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
6943         (explicit_bzero): Use memset_s when available.
6944         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
6946 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6948         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
6949         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
6950         free() that overwrite the memory with canaries.
6952 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
6954         bootstrap: recommend git submodule update --init
6955         Reported by Bruno Haible.
6956         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
6957         * build-aux/bootstrap: recommand "git submodule update --init"
6958         rather than "git submodule init".
6960 2020-04-12  Bruno Haible  <bruno@clisp.org>
6962         explicit_bzero: Add tests.
6963         * tests/test-explicit_bzero.c: New file.
6964         * modules/explicit_bzero-tests: New file.
6966 2020-04-11  Bruno Haible  <bruno@clisp.org>
6968         explicit_bzero: Relicense under LGPLv2+.
6969         Approved by Paul Eggert.
6970         * modules/explicit_bzero (License): Change to LGPLv2+.
6972 2020-04-10  Bruno Haible  <bruno@clisp.org>
6974         findprog, relocatable-prog: Ignore directories during PATH search.
6975         Reported by Frederick Eaton via Dmitry Goncharov in
6976         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
6978         * lib/findprog.c (find_in_path): When the file found in a PATH element
6979         is a directory, continue searching.
6980         * modules/findprog (Depends-on): Add sys_stat, stat.
6981         * modules/findprog-lgpl (Depends-on): Likewise.
6983         * lib/progreloc.c (maybe_executable): When the file found in a PATH
6984         element is a directory, continue searching.
6985         * lib/relocwrapper.c: Update comments.
6986         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
6987         (configure.ac-early): New section.
6989 2020-04-10  Bruno Haible  <bruno@clisp.org>
6991         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
6992         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
6993         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
6994         * MODULES.html.sh: In a git-less tarball, use the date of the first
6995         ChangeLog entry.
6997 2020-04-04  Bruno Haible  <bruno@clisp.org>
6999         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
7000         * m4/gettext.m4: Fix comments regarding the gettext library.
7001         * m4/intl-thread-locale.m4: Likewise.
7002         * m4/intlmacosx.m4: Likewise.
7003         * m4/lcmessage.m4: Likewise.
7004         * m4/nls.m4: Likewise.
7005         * m4/po.m4: Likewise.
7006         * m4/progtest.m4: Likewise.
7008 2020-04-04  Jim Meyering  <meyering@fb.com>
7010         maint: remove a stray inter-word space in a 6x-repeated comment
7011         Induce the changes by running this:
7012           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
7013         * build-aux/announce-gen: Change "by  perl" to "by perl".
7014         * build-aux/gitlog-to-changelog: Likewise.
7015         * build-aux/prefix-gnulib-mk: Likewise.
7016         * build-aux/update-copyright: Likewise.
7017         * build-aux/useless-if-before-free: Likewise.
7018         * tests/test-update-copyright.sh: Likewise.
7020 2020-03-28  Bruno Haible  <bruno@clisp.org>
7022         Use module 'filename' instead of module 'dosname'.
7024         * lib/at-func.c: Include filename.h instead of dosname.h.
7025         * lib/unlinkat.c: Likewise.
7026         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
7027         * modules/areadlinkat-with-size (Depends-on): Likewise.
7028         * modules/faccessat (Depends-on): Likewise.
7029         * modules/fchmodat (Depends-on): Likewise.
7030         * modules/fchownat (Depends-on): Likewise.
7031         * modules/fstatat (Depends-on): Likewise.
7032         * modules/mkdirat (Depends-on): Likewise.
7033         * modules/mkfifoat (Depends-on): Likewise.
7034         * modules/readlinkat (Depends-on): Likewise.
7035         * modules/selinux-at (Depends-on): Likewise.
7036         * modules/symlinkat (Depends-on): Likewise.
7037         * modules/unlinkat (Depends-on): Likewise.
7038         * modules/utimensat (Depends-on): Likewise.
7040         * lib/at-func2.c: Include filename.h instead of dosname.h.
7041         * modules/linkat (Depends-on): Add filename. Remove dosname.
7042         * modules/renameatu (Depends-on): Likewise.
7044         * lib/canonicalize.c: Include filename.h instead of dosname.h.
7045         * lib/canonicalize-lgpl.c: Likewise.
7046         * modules/canonicalize (Depends-on): Add filename.
7047         * modules/canonicalize-lgpl (Depends-on): Likewise.
7049         * lib/dirname.h: Include filename.h instead of dosname.h.
7050         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
7052         * lib/fchdir.c: Include filename.h instead of dosname.h.
7053         * modules/fchdir (Depends-on): Add filename. Remove dosname.
7055         * lib/openat.c: Include filename.h instead of dosname.h.
7056         * modules/openat (Depends-on): Add filename. Remove dosname.
7058         * lib/rmdir.c: Include filename.h instead of dosname.h.
7059         * modules/rmdir (Depends-on): Add filename. Remove dosname.
7061         * lib/savewd.c: Include filename.h instead of dosname.h.
7062         * modules/savewd (Depends-on): Add filename. Remove dosname.
7064         * lib/unlink.c: Include filename.h instead of dosname.h.
7065         * modules/unlink (Depends-on): Add filename. Remove dosname.
7067         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
7068         * lib/relocwrapper.c: Update comments.
7070         * modules/lstat (Depends-on): Remove dosname.
7072 2020-03-28  Bruno Haible  <bruno@clisp.org>
7074         dosname: Redirect to 'filename'.
7075         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7076         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
7077         * lib/dosname.h: Remove all definitions. Just include filename.h.
7078         * modules/dosname (Status, Notice): Mark as deprecated.
7079         (Depends-on): Add 'filename'.
7081 2020-03-28  Bruno Haible  <bruno@clisp.org>
7083         dosname: Change IS_RELATIVE_FILE_NAME.
7084         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
7085         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
7086         * NEWS: Mention the change.
7088 2020-03-28  Bruno Haible  <bruno@clisp.org>
7090         filename: Copy some definitions from module 'dosname'.
7091         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
7092         (HAS_DEVICE): Document macro.
7093         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
7094         (IS_ABSOLUTE_FILE_NAME): Consider
7095         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
7096         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
7097         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
7098         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
7099         IS_PATH_WITH_DIR.
7100         (DllMain): Update.
7101         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
7102         IS_PATH_WITH_DIR.
7103         (find_executable): Update.
7104         * NEWS: Document the deprecations.
7106 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
7108         getopt-posix: port __GETOPT_PREFIX to macOS
7109         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
7110         Define to work around a problem with asm on macOS (Bug#40205).
7112 2020-03-22  Bruno Haible  <bruno@clisp.org>
7114         MODULES.html.sh: Add support for reproducible builds.
7115         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
7116         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
7117         * MODULES.html.sh: Print the date of the last gnulib commit, not the
7118         current date.
7120 2020-03-22  Bruno Haible  <bruno@clisp.org>
7122         Several modules: Depend on stat.
7123         * modules/acl-permissions (Depends-on): Add stat.
7124         * modules/canonicalize (Depends-on): Likewise.
7125         * modules/file-has-acl (Depends-on): Likewise.
7126         * modules/fstat (Depends-on): Likewise.
7127         * modules/fstatat (Depends-on): Likewise.
7128         * modules/glob (Depends-on): Likewise.
7129         * modules/javacomp (Depends-on): Likewise.
7130         * modules/linkat (Depends-on): Likewise.
7131         * modules/mkdir (Depends-on): Likewise.
7132         * modules/pt_chown (Depends-on): Likewise.
7133         * modules/ptsname_r (Depends-on): Likewise.
7134         * modules/readlinkat (Depends-on): Likewise.
7135         * modules/rename (Depends-on): Likewise.
7136         * modules/renameatu (Depends-on): Likewise.
7137         * modules/tmpdir (Depends-on): Likewise.
7138         * modules/utimens (Depends-on): Likewise.
7139         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
7140         * modules/same (Depends-on): Remove stat.
7142 2020-03-22  Bruno Haible  <bruno@clisp.org>
7144         acl-permissions: Improve autoconf macro.
7145         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
7146         more reliably.
7148 2020-03-22  Bruno Haible  <bruno@clisp.org>
7150         file-has-acl: Fix module description.
7151         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
7152         (Depends-on): Depend on acl-permissions unconditionally.
7154 2020-03-21  Bruno Haible  <bruno@clisp.org>
7156         unlink: Ensure errno also on native Windows.
7157         * modules/unlink (Depends-on): Add malloc-posix.
7159 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
7161         unlink: fix malloc errno typo
7162         Problem reported by Tim Rühsen in:
7163         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
7164         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
7166 2020-03-16  Bruno Haible  <bruno@clisp.org>
7168         *printf-posix: Fix m4 error (regression from 2020-03-08).
7169         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
7170         brackets in AC_COMPILE_IFELSE invocation.
7172 2020-03-08  Bruno Haible  <bruno@clisp.org>
7174         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
7175         * modules/crypto/af_alg (Depends-on): Add fstat.
7176         * modules/renameatu (Depends-on): Likewise.
7177         * modules/same (Depends-on): Likewise.
7178         * modules/term-style-control (Depends-on): Likewise.
7180 2020-03-08  Bruno Haible  <bruno@clisp.org>
7182         *printf-posix: Document why it's overridden on some glibc systems.
7183         Reported by Adrian Bunk <bunk@stusta.de> in
7184         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
7185         * doc/posix-functions/*printf.texi: Document the problem with the %n
7186         directive on some glibc systems.
7187         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
7188         the cross-compilation guesses accordingly.
7190 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7192         open, openat: port to (O_RDWR | O_RDONLY) != 0
7193         Potential portability problem reported by Dan Gohman in:
7194         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
7195         * lib/open.c (open):
7196         * lib/openat.c (rpl_openat):
7197         Don’t assume O_RDONLY is disjoint from O_RDWR.
7199 2020-03-07  Bruno Haible  <bruno@clisp.org>
7201         openat: Fix theoretically possible issue on GNU/Hurd.
7202         Reported by Dan Gohman <sunfish@mozilla.com> in
7203         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
7204         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
7205         ignore the bits that are also set in O_RDONLY.
7207 2020-02-24  Bruno Haible  <bruno@clisp.org>
7209         getloadavg: Don't use /usr/local when cross-compiling on AIX.
7210         Reported by Jens Rehsack <sno@netbsd.org> in
7211         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
7212         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
7213         cross-compiling.
7215 2020-02-24  Bruno Haible  <bruno@clisp.org>
7217         fcntl: Add witness of gnulib override.
7218         Reported by Jens Rehsack <sno@netbsd.org> in
7219         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
7220         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
7221         macros.
7223 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
7225         Update users.txt.
7226         * users.txt: Add datamash, time.
7228 2020-02-23  Bruno Haible  <bruno@clisp.org>
7230         uni*/base: Use 'restrict'.
7231         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
7232         from lib/regex.h.
7233         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
7234         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
7235         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
7236         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
7237         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
7238         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
7239         '_UC_RESTRICT'.
7240         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
7241         u32_conv_to_encoding): Use '_UC_RESTRICT'.
7242         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
7243         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
7244         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
7245         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
7246         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
7247         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
7248         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
7249         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
7250         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
7251         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
7252         '_UC_RESTRICT'.
7253         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
7254         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
7255         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
7256         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
7257         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
7258         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
7259         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
7260         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
7262 2020-02-23  Bruno Haible  <bruno@clisp.org>
7264         glob, spawn: Use improved '_Restrict_' definition.
7265         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
7266         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
7268 2020-02-23  Bruno Haible  <bruno@clisp.org>
7270         crypto/gc: Use 'restrict'.
7271         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
7272         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
7274         crypto/hmac-*: Use 'restrict'.
7275         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
7276         'restrict'.
7277         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
7278         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
7279         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
7280         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
7282         crypto/sm3: Use 'restrict'.
7283         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
7284         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
7286         crypto/*-buffer: Use 'restrict'.
7287         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
7288         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
7290         crypto/sha512-buffer: Use 'restrict'.
7291         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
7292         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
7293         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
7295         crypto/sha256-buffer: Use 'restrict'.
7296         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
7297         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
7298         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
7300         crypto/sha1-buffer: Use 'restrict'.
7301         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
7302         'restrict'.
7303         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
7305         crypto/md5-buffer: Use 'restrict'.
7306         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
7307         'restrict'.
7308         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
7310         crypto/md4: Use 'restrict'.
7311         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
7312         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
7314         crypto/md2: Use 'restrict'.
7315         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
7316         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
7318         crypto/rijndael: Use 'restrict'.
7319         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
7320         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
7321         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
7323         crypto/arctwo: Use 'restrict'.
7324         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
7325         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
7327         crypto/arcfour: Use 'restrict'.
7328         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
7329         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
7331         careadlinkat: Use 'restrict'.
7332         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
7333         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
7334         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
7336         regex-quote: Use 'restrict'.
7337         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
7338         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
7340         system-quote: Use 'restrict'.
7341         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
7342         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
7344         sh-quote: Use 'restrict'.
7345         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
7346         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
7348         quotearg: Use 'restrict'.
7349         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
7350         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
7352         parse-datetime: Use 'restrict'.
7353         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
7354         'restrict'.
7355         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
7357         nstrftime: Use 'restrict'.
7358         * lib/strftime.h (nstrftime): Use 'restrict'.
7359         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
7361         mbstok_r: Use 'restrict'.
7362         * lib/string.in.h (mbstok_r): Use 'restrict'.
7364         xmemcoll: Use 'restrict'.
7365         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
7366         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
7368         memcoll: Use 'restrict'.
7369         * lib/memcoll.h (memcoll): Use 'restrict'.
7370         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
7372         vasnprintf: Use 'restrict'.
7373         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
7374         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
7376         c-vasnprintf: Use 'restrict'.
7377         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
7378         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
7380         c-vsnprintf: Use 'restrict'.
7381         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
7382         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
7384         c-snprintf: Use 'restrict'.
7385         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
7386         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
7388         astrxfrm: Use 'restrict'.
7389         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
7390         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
7392         amemxfrm: Use 'restrict'.
7393         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
7394         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
7396 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7398         fchmodat, lchmod: simplify
7399         It appears that we may have overengineered lchmod and fchmodat,
7400         in that the code was prepared for some hypothetical platforms but
7401         was so complicated that it was hard to understand.  I attempted to
7402         improve the situation by simplifying the code when this
7403         simplification should not hurt on real platforms; we can re-add
7404         complexity later to port to platforms I didn’t know about.
7405         * lib/fchmodat.c (fchmodat):
7406         * lib/lchmod.c (lchmod):
7407         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
7408         around the /proc code that needs it.
7409         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
7410         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
7411         Do not include <config.h> twice.
7412         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
7413         lchmod on any known hosts.
7414         (lchmod): Do not defer to fchmodat, so that the lchmod module
7415         need not depend on the fchmodat module (which is a circular
7416         dependency).  Do not use openat, since ‘open’ suffices.
7417         Coalesce calls to lchmod/chmod.
7418         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
7419         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
7420         * modules/lchmod (Depends-on, configure.ac):
7421         * modules/sys_stat (Depends-on):
7422         Do not worry about replacing lchmod, since that shouldn’t happen.
7423         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
7424         Do not worry about whether lchmod works on non-symlinks,
7425         since every known lchmod works on non-symlinks.
7426         * modules/lchmod (Depends-on):
7427         Remove circular dependency on fchmodat.
7429 2020-02-22  Bruno Haible  <bruno@clisp.org>
7431         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
7432         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
7433         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
7435 2020-02-22  Bruno Haible  <bruno@clisp.org>
7437         Use 'restrict' in all POSIX function declarations.
7438         * lib/iconv.in.h (iconv): Use 'restrict'.
7439         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
7440         * lib/monetary.in.h (strfmon_l): Likewise.
7441         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
7442         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
7443         pthread_mutex_timedlock, pthread_rwlock_init,
7444         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
7445         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
7446         * lib/search.in.h (tdelete): Likewise.
7447         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
7448         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
7449         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
7450         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
7451         Likewise.
7452         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
7453         strtoull): Likewise.
7454         * lib/string.in.h (strncat): Likewise.
7455         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
7456         recvfrom): Likewise.
7457         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
7458         * lib/time.in.h (strftime): Likewise.
7459         * lib/unistd.in.h (readlink, readlinkat): Likewise.
7460         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
7461         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
7462         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
7463         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
7464         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
7465         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
7466         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7467         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7468         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7469         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7470         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7471         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7472         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7473         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7474         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
7475         other *_h.m4 files.
7476         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
7478 2020-02-22  Bruno Haible  <bruno@clisp.org>
7480         Update NEWS.
7481         * NEWS: Mention the last change.
7483 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7485         chmodat, chownat: new modules
7486         These are split from fchmodat, fchownat.  GNU Emacs needs the
7487         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
7488         lchmodat.  Split the latter two into a new module chmodat.
7489         Similarly for fchownat.  This the same basic idea for why statat
7490         was split from fstatat on 2013-01-23.
7491         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
7492         Rename from FCHMODAT_INLINE.  All uses changed.
7493         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
7494         Rename from FCHOWNAT_INLINE.  All uses changed.
7495         * lib/openat.h:
7496         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
7497         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
7498         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
7499         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
7500         (configure.ac): Remove fchmodat module indicator.
7501         (Makefile.am): Omit chmodat.c.
7502         (Maintainer): Add self.
7503         * modules/fchownat: Similarly, but for chown.
7504         * tests/test-fchownat.c (BASE): Don't define if already defined.
7505         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
7507 2020-02-22  Bruno Haible  <bruno@clisp.org>
7509         users.txt: Add groff.
7510         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
7511         * users.txt: Add groff.
7513 2020-02-22  Bruno Haible  <bruno@clisp.org>
7515         gnulib-tool: Ensure copied files are writable.
7516         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
7517         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
7518         * gnulib-tool (func_ensure_writable): New function.
7519         (func_ln_s, func_hardlink, func_lookup_file, func_import,
7520         func_create_testdir, copy-file): Invoke it after copying a file.
7522 2020-02-22  Bruno Haible  <bruno@clisp.org>
7524         users.txt: Update.
7525         * users.txt: Update URLs to projects that have moved or switched to git.
7526         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
7527         over the summary view. Add gawk.
7529 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
7531         largefile: remove _DARWIN_USE_64_BIT_INODE
7532         It’s not needed in currently-supported macOS versions, and was
7533         problematic anyway in MacOS X 10.5 which was the only version that
7534         could use it.  Problem reported by Peter Eisentraut in:
7535         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
7536         * m4/largefile.m4 (AC_SYS_LARGEFILE):
7537         Don’t define _DARWIN_USE_64_BIT_INODE.
7538         This syncs with Autoconf master.
7540         Add ‘extern "C"’ to count-one-bits.h etc.
7541         This ports these .h files to C++.
7542         Problem reported by Simon Marchi in:
7543         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
7544         * lib/count-leading-zeros.h, lib/count-one-bits.h:
7545         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
7547 2020-02-19  Bruno Haible  <bruno@clisp.org>
7549         uninorm/decompose-internal: Avoid "no previous prototype" warning.
7550         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7551         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
7552         * lib/array-mergesort.h: Accept an optional macro definition
7553         STATIC_FROMTO.
7554         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
7556 2020-02-16  Bruno Haible  <bruno@clisp.org>
7558         fchmodat: Make more future-proof.
7559         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
7560         NEED_FCHMODAT_NONSYMLINK_FIX.
7561         (gl_PREREQ_FCHMODAT): New macro.
7562         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
7563         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
7564         without lchmod function.
7565         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
7567 2020-02-16  Bruno Haible  <bruno@clisp.org>
7569         lchmod: Make more future-proof.
7570         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
7571         (gl_PREREQ_LCHMOD): New macro.
7572         * lib/lchmod.c (orig_lchmod): New function.
7573         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
7574         Return EOPNOTSUPP only on Linux and on platforms without lchmod
7575         function.
7576         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
7578         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
7579         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
7581 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7583         xnanosleep: prefer pause, and get remaining time
7584         Problem reported by Vladimir Panteleev in:
7585         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
7586         * lib/xnanosleep.c: Include intprops.h, unistd.h.
7587         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
7588         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
7589         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
7590         * modules/xnanosleep (Depends-on): Add intprops, unistd.
7592 2020-02-16  Bruno Haible  <bruno@clisp.org>
7594         lchmod: Improve cross-compilation guess.
7595         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
7596         cross-compiling, guess depending on the platform.
7598 2020-02-16  Bruno Haible  <bruno@clisp.org>
7600         fstrcmp: Add API to clean up resources.
7601         Reported by Akim Demaille <akim@lrde.epita.fr> in
7602         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
7603         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
7604         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
7606 2020-02-14  Bruno Haible  <bruno@clisp.org>
7608         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
7609         Reported by Christian Biesinger in
7610         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
7611         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
7612         corresponding module is not enabled.
7613         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
7614         prototype if the corresponding module is not enabled.
7616 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
7618         fchmodat, lchmod: port to buggy Linux filesystems
7619         Problem reported by Florian Weimer in:
7620         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
7621         * lib/fchmodat.c (fchmodat):
7622         * lib/lchmod.c (lchmod):
7623         Don’t assume that chmod on the O_PATH-opened fd will do
7624         the right thing on a symbolic link.
7625         * lib/fchmodat.c (fchmodat):
7626         Don’t attempt to special-case
7627         any flag value other than AT_SYMLINK_NOFOLLOW.
7629 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
7631         lchmod: pacify Coverity CID 1491216
7632         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
7633         not complain about unreachable code at the ‘struct stat st;’
7634         declaration.
7636 2020-02-10  Bruno Haible  <bruno@clisp.org>
7638         copysignf: Fix link error on HP-UX with cc.
7639         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
7640         HP-UX, set COPYSIGNF_LIBM to -lm.
7642 2020-02-10  Bruno Haible  <bruno@clisp.org>
7644         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
7645         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
7646         with $(LIB_SEMAPHORE).
7647         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
7648         with $(LIB_SEMAPHORE).
7650 2020-02-10  Bruno Haible  <bruno@clisp.org>
7652         ptsname_r-tests: Avoid unused function warning.
7653         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
7655 2020-02-08  Bruno Haible  <bruno@clisp.org>
7657         lchmod: Add tests.
7658         * tests/test-lchmod.c: New file.
7659         * modules/lchmod-tests: New file.
7661 2020-02-08  Bruno Haible  <bruno@clisp.org>
7663         lchmod: Ensure declaration on HP-UX.
7664         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
7665         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
7667 2020-02-08  Bruno Haible  <bruno@clisp.org>
7669         fchmodat: Strengthen tests.
7670         * tests/test-fchmodat.c (BASE): New macro.
7671         (main): Use it, to avoid conflicts with other unit tests. Verify that
7672         fchmodat changed the file permission bits.
7674 2020-02-08  Bruno Haible  <bruno@clisp.org>
7676         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
7677         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
7678         '#undef __need_system_sys_stat_h'.
7680 2020-02-08  Bruno Haible  <bruno@clisp.org>
7682         fchmodat: Improve cross-compilation guesses.
7683         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
7684         cross-compiling, guess depending on the platform.
7685         * doc/posix-functions/fchmodat.texi: Clarify.
7687 2020-02-08  Bruno Haible  <bruno@clisp.org>
7689         Fix compilation errors in a testdir created with --with-c++-tests.
7690         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
7691         since it does not work any more with g++ >= 4.4.
7693 2020-02-08  Bruno Haible  <bruno@clisp.org>
7695         doc: Update for glibc 2.31.
7696         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
7697         * doc/gnulib.texi: Include it.
7698         * doc/pastposix-functions/h_errno.texi: Update.
7699         * doc/posix-functions/*.texi: Likewise.
7701 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
7703         mountlist: consider smb3 file systems as remote
7704         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
7705         "smb3" as remote.
7707 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7709         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
7710         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
7711         they act like chmod on non-symlinks.
7712         * NEWS:
7713         * doc/glibc-functions/lchmod.texi (lchmod):
7714         * doc/posix-functions/fchmodat.texi (fchmodat):
7715         Mention this.
7716         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
7717         config.h, and undef it after including sys/stat.h the first time.
7718         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
7719         sys/stat.h a second time after defining orig_fchmodat.
7720         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
7721         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
7722         * lib/lchmod.c: New file.
7723         * lib/sys_stat.in.h (fchmodat, lchmod):
7724         Support replacing these functions.
7725         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
7726         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
7727         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
7728         Test that lchmod works on non-symlinks.
7729         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
7730         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
7731         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
7732         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
7733         * modules/lchmod (Files): Add lib/lchmod.c.
7734         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
7735         (configure.ac): Compile lchmod.c if needed.
7736         (lib_SOURCES): Add lchmod.c.
7737         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
7738         and REPLACE_LCHMOD.
7739         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
7740         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
7742 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
7744         mountlist: Consider AFS filesystems as remote
7745         df --local relies on the ME_REMOTE macro to determine if a given
7746         mount entry should be considered "local".  There is special logic
7747         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
7748         kernel's kafs module or AuriStorFS is treated as a local mount.
7749         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
7750         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
7752 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7754         Port _Noreturn to older Clang
7755         Problem reported by Jeffery Walton in:
7756         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
7757         * lib/_Noreturn.h (_Noreturn):
7758         * m4/gnulib-common.m4 (gl_COMMON_BODY):
7759         Assume _Noreturn works in Clang 3.5 and later.
7760         It is documented to work in Clang 3.5:
7761         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
7762         and is not documented in Clang 3.4:
7763         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
7764         Apple sets __clang_version__ to a different value, so use
7765         __apple_build_version__ there.  See:
7766         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
7768 2020-02-04  Pádraig Brady  <P@draigBrady.com>
7770         test-canonicalize: avoid unused function warning
7771         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
7772         with the same guard as that used to protect usage of the null_ptr
7773         function, so that one doesn't get a -Wunused warning.
7774         * tests/test-canonicalize-lgpl.c: Likewise.
7776 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
7778         libc-config: port to Apple’s Clang variant
7779         * lib/libc-config.h (__glibc_clang_prereq):
7780         Port to Apple’s Clang variant, which uses a different
7781         numbering scheme for __clang_major__.
7783 2020-02-02  Bruno Haible  <bruno@clisp.org>
7785         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
7786         * doc/containers.texi: Document these new modules.
7788 2020-02-02  Bruno Haible  <bruno@clisp.org>
7790         omap-c++: Add tests.
7791         * tests/test-omap-c++.cc: New file.
7792         * modules/omap-c++-tests: New file.
7794         omap-c++: New module.
7795         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
7796         * modules/omap-c++: New file.
7798 2020-02-02  Bruno Haible  <bruno@clisp.org>
7800         map-c++: Add tests.
7801         * tests/test-map-c++.cc: New file.
7802         * modules/map-c++-tests: New file.
7804         map-c++: New module.
7805         * lib/gl_map.hh: New file, based on lib/gl_map.h.
7806         * modules/map-c++: New file.
7808 2020-02-02  Bruno Haible  <bruno@clisp.org>
7810         oset-c++: Add tests.
7811         * tests/test-oset-c++.cc: New file.
7812         * modules/oset-c++-tests: New file.
7814         oset-c++: New module.
7815         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
7816         * modules/oset-c++: New file.
7818 2020-02-02  Bruno Haible  <bruno@clisp.org>
7820         set-c++: Add tests.
7821         * tests/test-set-c++.cc: New file.
7822         * modules/set-c++-tests: New file.
7824         set-c++: New module.
7825         * lib/gl_set.hh: New file, based on lib/gl_set.h.
7826         * modules/set-c++: New file.
7828 2020-02-02  Bruno Haible  <bruno@clisp.org>
7830         list-c++: Add tests.
7831         * tests/test-list-c++.cc: New file.
7832         * modules/list-c++-tests: New file.
7834         list-c++: New module.
7835         * lib/gl_list.hh: New file, based on lib/gl_list.h.
7836         * modules/list-c++: New file.
7838 2020-02-02  Bruno Haible  <bruno@clisp.org>
7840         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
7841         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
7842         '_Noreturn'.
7843         * lib/sigpipe-die.h (sigpipe_die): Likewise.
7845 2020-02-02  Pádraig Brady  <P@draigBrady.com>
7847         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
7848         On x86_64 with glibc-2.30, gcc 9.2 is giving:
7849           error: argument 2 value '18446744073709551615'
7850           exceeds maximum object size 9223372036854775807
7851           [-Werror=alloc-size-larger-than=]
7852         The details of this restriction are discussed at:
7853         https://stackoverflow.com/q/42574890/4421
7854         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
7856 2020-02-02  Pádraig Brady  <P@draigBrady.com>
7858         sysctl.h: avoid including on glibc
7859         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
7860         * lib/physmem.c: Likewise.
7862 2020-02-02  Bruno Haible  <bruno@clisp.org>
7864         list, set, oset, map, omap: Avoid imperative voice in documentation.
7865         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
7866         in the specification of functions.
7867         * lib/gl_set.h: Likewise.
7868         * lib/gl_oset.h: Likewise.
7869         * lib/gl_map.h: Likewise.
7870         * lib/gl_omap.h: Likewise.
7871         * lib/gl_*.h: Likewise.
7873 2020-02-01  Bruno Haible  <bruno@clisp.org>
7875         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
7876         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
7877         does.
7879 2020-01-29  Bruno Haible  <bruno@clisp.org>
7881         array-map, hash-map, linkedhash-map: Fix module description.
7882         * modules/array-map (Description): Fix description.
7883         * modules/hash-map (Description): Likewise.
7884         * modules/linkedhash-map (Description): Likewise.
7886 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7888         dfa: do not depend on isblank
7889         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
7890         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
7891         * modules/dfa (Depends-on): Remove isblank.
7892         * modules/isblank: Add a module indicator, for lib/dfa.c.
7894         dfa: do not assume 64-bit int
7895         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
7896         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
7897         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
7898         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
7899         Fall back to 32-bit words.
7900         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
7901         of 4 64-bit args.  All uses changed.
7903 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7905         regex: remove limits-h dependency
7906         * modules/regex (Depends-on): Remove limits-h, since the
7907         code no longer depends on ULONG_WIDTH already being defined.
7909         regex: port to non-GCC pre-IEC-60559
7910         Problem reported by Arnold Robbins in:
7911         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
7912         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
7914 2020-01-25  Bruno Haible  <bruno@clisp.org>
7916         c32isxdigit: Add tests.
7917         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
7918         * tests/test-c32isxdigit.sh: New file.
7919         * modules/c32isxdigit-tests: New file.
7921         c32isxdigit: New module.
7922         * lib/c32isxdigit.c: New file.
7923         * modules/c32isxdigit: New file.
7924         * doc/posix-functions/iswxdigit.texi: Mention the new module.
7926 2020-01-25  Bruno Haible  <bruno@clisp.org>
7928         c32isupper: Add tests.
7929         * tests/test-c32isupper.c: New file.
7930         * tests/test-c32isupper.sh: New file.
7931         * modules/c32isupper-tests: New file.
7933         c32isupper: New module.
7934         * lib/c32isupper.c: New file.
7935         * modules/c32isupper: New file.
7936         * doc/posix-functions/iswupper.texi: Mention the new module.
7938 2020-01-25  Bruno Haible  <bruno@clisp.org>
7940         c32isspace: Add tests.
7941         * tests/test-c32isspace.c: New file.
7942         * tests/test-c32isspace.sh: New file.
7943         * modules/c32isspace-tests: New file.
7945         c32isspace: New module.
7946         * lib/c32isspace.c: New file.
7947         * modules/c32isspace: New file.
7948         * doc/posix-functions/iswspace.texi: Mention the new module.
7950 2020-01-25  Bruno Haible  <bruno@clisp.org>
7952         c32ispunct: Add tests.
7953         * tests/test-c32ispunct.c: New file.
7954         * tests/test-c32ispunct.sh: New file.
7955         * modules/c32ispunct-tests: New file.
7957         c32ispunct: New module.
7958         * lib/c32ispunct.c: New file.
7959         * modules/c32ispunct: New file.
7960         * doc/posix-functions/iswpunct.texi: Mention the new module.
7962 2020-01-25  Bruno Haible  <bruno@clisp.org>
7964         c32isprint: Add tests.
7965         * tests/test-c32isprint.c: New file.
7966         * tests/test-c32isprint.sh: New file.
7967         * modules/c32isprint-tests: New file.
7969         c32isprint: New module.
7970         * lib/c32isprint.c: New file.
7971         * modules/c32isprint: New file.
7972         * doc/posix-functions/iswprint.texi: Mention the new module.
7974 2020-01-25  Bruno Haible  <bruno@clisp.org>
7976         c32islower: Add tests.
7977         * tests/test-c32islower.c: New file.
7978         * tests/test-c32islower.sh: New file.
7979         * modules/c32islower-tests: New file.
7981         c32islower: New module.
7982         * lib/c32islower.c: New file.
7983         * modules/c32islower: New file.
7984         * doc/posix-functions/iswlower.texi: Mention the new module.
7986 2020-01-25  Bruno Haible  <bruno@clisp.org>
7988         c32isgraph: Add tests.
7989         * tests/test-c32isgraph.c: New file.
7990         * tests/test-c32isgraph.sh: New file.
7991         * modules/c32isgraph-tests: New file.
7993         c32isgraph: New module.
7994         * lib/c32isgraph.c: New file.
7995         * modules/c32isgraph: New file.
7996         * doc/posix-functions/iswgraph.texi: Mention the new module.
7998 2020-01-25  Bruno Haible  <bruno@clisp.org>
8000         c32isdigit: Add tests.
8001         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
8002         * tests/test-c32isdigit.sh: New file.
8003         * modules/c32isdigit-tests: New file.
8005         c32isdigit: New module.
8006         * lib/c32isdigit.c: New file.
8007         * modules/c32isdigit: New file.
8008         * doc/posix-functions/iswdigit.texi: Mention the new module.
8010 2020-01-25  Bruno Haible  <bruno@clisp.org>
8012         c32iscntrl: Add tests.
8013         * tests/test-c32iscntrl.c: New file.
8014         * tests/test-c32iscntrl.sh: New file.
8015         * modules/c32iscntrl-tests: New file.
8017         c32iscntrl: New module.
8018         * lib/c32iscntrl.c: New file.
8019         * modules/c32iscntrl: New file.
8020         * doc/posix-functions/iswcntrl.texi: Mention the new module.
8022 2020-01-25  Bruno Haible  <bruno@clisp.org>
8024         c32isblank: Add tests.
8025         * tests/test-c32isblank.c: New file.
8026         * tests/test-c32isblank.sh: New file.
8027         * modules/c32isblank-tests: New file.
8029         c32isblank: New module.
8030         * lib/c32isblank.c: New file.
8031         * modules/c32isblank: New file.
8032         * doc/posix-functions/iswblank.texi: Mention the new module.
8034 2020-01-25  Bruno Haible  <bruno@clisp.org>
8036         c32isalpha: Add tests.
8037         * tests/test-c32isalpha.c: New file.
8038         * tests/test-c32isalpha.sh: New file.
8039         * modules/c32isalpha-tests: New file.
8041         c32isalpha: New module.
8042         * lib/c32isalpha.c: New file.
8043         * modules/c32isalpha: New file.
8044         * doc/posix-functions/iswalpha.texi: Mention the new module.
8046 2020-01-25  Bruno Haible  <bruno@clisp.org>
8048         c32isalnum: Add tests.
8049         * tests/test-c32isalnum.c: New file.
8050         * tests/test-c32isalnum.sh: New file.
8051         * modules/c32isalnum-tests: New file.
8053         c32isalnum: New module.
8054         * lib/c32isalnum.c: New file.
8055         * lib/c32is-impl.h: New file.
8056         * modules/c32isalnum: New file.
8057         * doc/posix-functions/iswalnum.texi: Mention the new module.
8059 2020-01-25  Bruno Haible  <bruno@clisp.org>
8061         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
8062         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
8063         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
8064         c32isupper, c32isxdigit): New declarations.
8065         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
8066         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8067         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8068         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8069         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8070         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
8071         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8072         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8073         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8074         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8075         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
8076         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
8077         c32ispunct, c32isspace, c32isupper, c32isxdigit.
8079 2020-01-25  Bruno Haible  <bruno@clisp.org>
8081         mbchar, wctype: Use the corrected iswxdigit function.
8082         * modules/mbchar (Depends-on): Add iswxdigit.
8083         * modules/wctype (Depends-on): Likewise.
8085         iswxdigit: Add tests.
8086         * tests/test-iswxdigit.c: New file.
8087         * tests/test-iswxdigit.sh: New file.
8088         * modules/iswxdigit-tests: New file.
8090         iswxdigit: New module.
8091         * m4/iswxdigit.m4: New file.
8092         * lib/wctype.in.h (iswxdigit): Potentially override.
8093         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
8094         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
8095         * lib/iswxdigit.c: New file.
8096         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
8097         REPLACE_ISWXDIGIT.
8098         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
8099         REPLACE_ISWXDIGIT.
8100         * modules/iswxdigit: New file.
8101         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
8103 2020-01-25  Bruno Haible  <bruno@clisp.org>
8105         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
8106         Reported by John Donoghue <john.david.donoghue@gmail.com> in
8107         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
8108         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
8109         off_t on mingw, invoke _lseeki64 instead of lseek.
8111 2020-01-25  Bruno Haible  <bruno@clisp.org>
8113         iswdigit tests: Avoid test failure on Cygwin.
8114         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
8115         byte sequence, return 0.
8117         iswdigit: Fix test failure on native Windows.
8118         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
8120         mbchar, wctype: Use the corrected iswdigit function.
8121         * modules/mbchar (Depends-on): Add iswdigit.
8122         * modules/wctype (Depends-on): Likewise.
8124         iswdigit: Add tests.
8125         * tests/test-iswdigit.c: New file.
8126         * tests/test-iswdigit.sh: New file.
8127         * modules/iswdigit-tests: New file.
8129         iswdigit: New module.
8130         * m4/iswdigit.m4: New file.
8131         * lib/wctype.in.h (iswdigit): Potentially override.
8132         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
8133         * lib/iswdigit.c: New file.
8134         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
8135         REPLACE_ISWDIGIT.
8136         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
8137         REPLACE_ISWDIGIT.
8138         * modules/iswdigit: New file.
8139         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
8141 2020-01-25  Bruno Haible  <bruno@clisp.org>
8143         hard-locale tests: Make it easy to reuse the musl test.
8144         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
8145         * modules/hard-locale-tests (Files): Add it.
8146         (configure.ac): Invoke gl_MUSL_LIBC.
8148 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8150         regex: port to Gawk on nonstandard platforms
8151         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
8152         This is useful for Gawk, which does not use the Gnulib stdlib-h
8153         module.  Problem reported by Arnold Robbins in:
8154         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
8156 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8158         regex: fix bug with >=16 subexpressions
8159         * lib/regex_internal.h (struct re_backref_cache_entry):
8160         Use bitset_word_t as the type of eps_reachable_subexps_map,
8161         instead of unsigned short int.  This fixes a bug I introduced
8162         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
8163         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
8164         Remove unused member 'unused'.
8166         regex: simplify definition of BITSET_WORD_BITS
8167         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
8168         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
8169         * lib/regex_internal.h (BITSET_WORD_BITS):
8170         * modules/regex (Depends-on): Add limits-h.
8171         Simplify now that we can use ULONG_WIDTH.
8173 2020-01-20  Bruno Haible  <bruno@clisp.org>
8175         mbrtoc32: Add note about FreeBSD 12.
8176         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
8177         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
8178         affected.
8180 2020-01-20  Bruno Haible  <bruno@clisp.org>
8182         unistr/u8-uctomb: Fix warning.
8183         Reported by Andreas Schwab <schwab@suse.de> in
8184         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
8185         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
8186         (u8_uctomb): Add FALLTHROUGH markers.
8188 2020-01-20  Bruno Haible  <bruno@clisp.org>
8190         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
8191         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
8192         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
8193         (glthread_once): Use it.
8195 2020-01-19  Bruno Haible  <bruno@clisp.org>
8197         threadlib: Disable use of weak symbols on FreeBSD 11.
8198         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8199         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
8200         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
8201         against a bug in FreeBSD 11.
8203 2020-01-19  Bruno Haible  <bruno@clisp.org>
8205         iconv_open: Improve z/OS support.
8206         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
8207         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
8208         Remove mapping for EUC-TW.
8210 2020-01-18  Bruno Haible  <bruno@clisp.org>
8212         Rename ~~gnulib.m4 to zzgnulib.m4.
8213         Suggested by Paul Eggert.
8214         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
8215         * gnulib-tool (func_get_filelist): Update.
8216         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8218 2020-01-18  Bruno Haible  <bruno@clisp.org>
8220         doc: Update license notices.
8221         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
8222         reference to a section or to a "file as part of this distribution".
8224 2020-01-18  Bruno Haible  <bruno@clisp.org>
8226         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
8227         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
8228         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
8229         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
8230         AC_EGREP_CPP.
8232 2020-01-18  Bruno Haible  <bruno@clisp.org>
8234         Ensure Automake does not drop ~~gnulib.m4.
8235         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
8236         * m4/gnulib-common.m4 (gl_COMMON): Require it.
8238 2020-01-18  Bruno Haible  <bruno@clisp.org>
8240         Fix major regression from 2020-01-10.
8241         Reported by Paul Eggert in
8242         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
8243         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
8244         Don't AC_REQUIRE anything.
8245         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
8246         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
8247         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
8248         use ac_compile instead.
8249         (AC_CHECK_DECL): Remove override.
8250         * m4/~~gnulib.m4: New file.
8251         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
8252         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8254 2020-01-17  Bruno Haible  <bruno@clisp.org>
8255             Paul Eggert  <eggert@cs.ucla.edu>
8257         glob: Fix use-after-free bug.
8258         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8259         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
8260         * lib/glob.c (__glob): Delay freeing dirname until after the use of
8261         end_name.
8263 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8265         vcs-to-changelog: Fix parsing of fndecl without args.
8266         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
8267         for empty arguments.
8269 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8271         vcs-to-changelog: Add documentation.
8272         * doc/vcs-to-changelog.texi: New file.
8273         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
8274         section.
8276 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8278         vcs-to-changelog: Allow loading of custom quirks file.
8279         * build-aux/vcs_to_changelog.py: New commandline option -q.
8281 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8283         vcs-to-changelog: Fix formatting of ChangeLog output.
8284         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
8285         output.
8287 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8289         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
8290         Reported in
8291         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
8292         * build-aux/vcstocl/frontend_c.py: Remove shebang.
8294 2020-01-15  Simon Josefsson  <simon@josefsson.org>
8296         crypto/gc-pbkdf2: New module.
8297         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
8298         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
8299         * lib/gc-pbkdf2.c: New file.
8300         * lib/gc-pbkdf2-sha1.c: Use new interface.
8301         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
8302         * modules/crypto/gc-pbkdf2: New file.
8303         * modules/crypto/gc-pbkdf2-tests: New file.
8304         * tests/test-gc-pbkdf2.c: New file.
8306 2020-01-12  Bruno Haible  <bruno@clisp.org>
8308         c32stombs: Add tests.
8309         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
8310         * tests/test-c32stombs-1.sh: New file, based on
8311         tests/test-c32srtombs-1.sh.
8312         * tests/test-c32stombs-2.sh: New file, based on
8313         tests/test-c32srtombs-2.sh.
8314         * tests/test-c32stombs-3.sh: New file, based on
8315         tests/test-c32srtombs-3.sh.
8316         * tests/test-c32stombs-4.sh: New file, based on
8317         tests/test-c32srtombs-4.sh.
8318         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
8320         c32stombs: New module.
8321         * lib/uchar.in.h (c32stombs): New declaration.
8322         * lib/c32stombs.c: New file.
8323         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
8324         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
8325         * modules/c32stombs: New file.
8326         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
8327         * doc/posix-functions/wcstombs.texi: Mention the new module.
8329 2020-01-11  Jim Meyering  <meyering@fb.com>
8331         perl: require the "warnings" module
8332         * m4/perl.m4: Also "use warnings", so we reject the perl found
8333         on at least one IRIX 6.5 system. Reported by Bruno Haible in
8334         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
8336 2020-01-10  Bruno Haible  <bruno@clisp.org>
8338         Fix major regression from 2020-01-04.
8339         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
8340         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
8341         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
8342         AC_DEFUN_ONCE.
8343         (AC_CHECK_DECL): Invoke, not require, it.
8345 2020-01-10  Bruno Haible  <bruno@clisp.org>
8347         c32snrtombs: Add tests.
8348         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
8349         * tests/test-c32snrtombs-1.sh: New file, based on
8350         tests/test-wcsnrtombs1.sh.
8351         * tests/test-c32snrtombs-2.sh: New file, based on
8352         tests/test-wcsnrtombs2.sh.
8353         * tests/test-c32snrtombs-3.sh: New file, based on
8354         tests/test-wcsnrtombs3.sh.
8355         * tests/test-c32snrtombs-4.sh: New file, based on
8356         tests/test-wcsnrtombs4.sh.
8357         * modules/c32snrtombs-tests: New file, based on
8358         modules/wcsnrtombs-tests.
8360         c32snrtombs: New module.
8361         * lib/uchar.in.h (c32snrtombs): New declaration.
8362         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8363         INTERNAL_STATE, WCRTOMB.
8364         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8365         * lib/c32snrtombs.c: New file.
8366         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
8367         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
8368         * modules/c32snrtombs: New file.
8369         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
8370         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
8372 2020-01-09  Bruno Haible  <bruno@clisp.org>
8374         c32srtombs: Add tests.
8375         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
8376         * tests/test-c32srtombs-1.sh: New file, based on
8377         tests/test-wcsrtombs1.sh.
8378         * tests/test-c32srtombs-2.sh: New file, based on
8379         tests/test-wcsrtombs2.sh.
8380         * tests/test-c32srtombs-3.sh: New file, based on
8381         tests/test-wcsrtombs3.sh.
8382         * tests/test-c32srtombs-4.sh: New file, based on
8383         tests/test-wcsrtombs4.sh.
8384         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
8386         c32srtombs: New module.
8387         * lib/uchar.in.h (c32srtombs): New declaration.
8388         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8389         INTERNAL_STATE, WCRTOMB.
8390         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8391         * lib/c32srtombs.c: New file.
8392         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
8393         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
8394         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
8395         * modules/c32srtombs: New file.
8396         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
8397         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
8399 2020-01-08  Bruno Haible  <bruno@clisp.org>
8401         c32tob: Make consistent with mbrtoc32.
8402         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
8403         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
8404         use c32rtomb, not wctob.
8405         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
8406         (Depends-on): Add c32rtomb.
8407         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
8409 2020-01-08  Bruno Haible  <bruno@clisp.org>
8411         c32rtomb: Add tests.
8412         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
8413         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
8414         * tests/test-c32rtomb-w32.c: New file, based on
8415         tests/test-wcrtomb-w32.c.
8416         * tests/test-c32rtomb-w32-1.sh: New file, based on
8417         tests/test-wcrtomb-w32-1.sh.
8418         * tests/test-c32rtomb-w32-2.sh: New file, based on
8419         tests/test-wcrtomb-w32-2.sh.
8420         * tests/test-c32rtomb-w32-3.sh: New file, based on
8421         tests/test-wcrtomb-w32-3.sh.
8422         * tests/test-c32rtomb-w32-4.sh: New file, based on
8423         tests/test-wcrtomb-w32-4.sh.
8424         * tests/test-c32rtomb-w32-5.sh: New file, based on
8425         tests/test-wcrtomb-w32-5.sh.
8426         * tests/test-c32rtomb-w32-6.sh: New file, based on
8427         tests/test-wcrtomb-w32-6.sh.
8428         * tests/test-c32rtomb-w32-7.sh: New file, based on
8429         tests/test-wcrtomb-w32-7.sh.
8430         * modules/c32rtomb-tests: New file.
8432         c32rtomb: New module.
8433         * lib/uchar.in.h (c32rtomb): New declaration.
8434         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
8435         * m4/c32rtomb.m4: New file.
8436         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
8437         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
8438         REPLACE_C32RTOMB.
8439         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
8440         HAVE_C32RTOMB, REPLACE_C32RTOMB.
8441         * modules/c32rtomb: New file.
8442         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
8443         * doc/posix-functions/c32rtomb.texi: Document the new module.
8444         * doc/posix-functions/wcrtomb.texi: Mention the new module.
8446 2020-01-08  Bruno Haible  <bruno@clisp.org>
8448         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
8449         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
8450         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
8451         but is not working.
8452         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
8453         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
8454         differ, use the system's mbrtoc32, adding workarounds.
8455         * modules/mbrtoc32 (Depends-on): Add hard-locale.
8456         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
8457         Windows problem.
8458         * lib/btoc32.c: Include <stdio.h>, <string.h>.
8459         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
8460         use mbrtoc32, not btowc.
8461         * modules/btoc32 (Depends-on): Add mbrtoc32.
8462         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
8463         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
8464         * modules/mbsrtoc32s (Depends-on): Update conditions.
8465         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8466         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
8467         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
8468         * modules/mbsnrtoc32s (Depends-on): Update conditions.
8469         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8471 2020-01-07  Bruno Haible  <bruno@clisp.org>
8473         wcrtomb: Make multithread-safe, except possibly on IRIX.
8474         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
8475         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
8476         WCRTOMB_RETVAL_BUG.
8477         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
8478         wctomb only on IRIX.
8480 2020-01-05  Jim Meyering  <meyering@fb.com>
8482         tests: skip thread-using tests when threading is disabled
8483         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
8484         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
8485         of those, so they are skipped in this case.
8486         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
8487         * tests/test-setlocale_null-mt-all.c (main): Likewise.
8488         * tests/test-setlocale_null-mt-one.c (main): Likewise.
8490 2020-01-05  Bruno Haible  <bruno@clisp.org>
8492         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
8493         Reported by Jim Meyering in
8494         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
8495         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
8496         (GNULIB_defined_ptsname_r): New macro.
8497         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
8498         (main): Disable the NULL argument test if canonicalize_file_name does
8499         not come from gnulib.
8500         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
8501         (main): Disable the NULL argument test if canonicalize_file_name does
8502         not come from gnulib.
8503         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
8504         (test_errors): Disable the NULL argument test if ptsname_r does not come
8505         from gnulib.
8507 2020-01-04  Jim Meyering  <meyering@fb.com>
8509         update-copyright: reenable its always-skipped test
8510         * tests/test-update-copyright.sh: Restore the "-pi" options removed
8511         on 2019-06-15. Without those, an internal preliminary test would
8512         fail, causing this test always to be skipped.
8513         Verify that the test is now run and passes via this:
8514           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
8516 2020-01-05  Bruno Haible  <bruno@clisp.org>
8518         mbstoc32s: Add tests.
8519         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
8520         * tests/test-mbstoc32s-1.sh: New file, based on
8521         tests/test-mbsrtoc32s-1.sh.
8522         * tests/test-mbstoc32s-2.sh: New file, based on
8523         tests/test-mbsrtoc32s-2.sh.
8524         * tests/test-mbstoc32s-3.sh: New file, based on
8525         tests/test-mbsrtoc32s-3.sh.
8526         * tests/test-mbstoc32s-4.sh: New file, based on
8527         tests/test-mbsrtoc32s-4.sh.
8528         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
8530         mbstoc32s: New module.
8531         * lib/uchar.in.h (mbstoc32s): New declaration.
8532         * lib/mbstoc32s.c: New file.
8533         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
8534         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
8535         * modules/mbstoc32s: New file.
8536         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
8537         * doc/posix-functions/mbstowcs.texi: Mention the new module.
8539 2020-01-05  Bruno Haible  <bruno@clisp.org>
8541         Tweak recently added tests.
8542         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
8543         * tests/test-mbsrtoc32s.c: Likewise.
8544         * tests/test-mbsnrtoc32s.c: Likewise.
8546 2020-01-04  Bruno Haible  <bruno@clisp.org>
8548         mbsnrtoc32s: Add tests.
8549         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
8550         * tests/test-mbsnrtoc32s-1.sh: New file, based on
8551         tests/test-mbsnrtowcs1.sh.
8552         * tests/test-mbsnrtoc32s-2.sh: New file, based on
8553         tests/test-mbsnrtowcs2.sh.
8554         * tests/test-mbsnrtoc32s-3.sh: New file, based on
8555         tests/test-mbsnrtowcs3.sh.
8556         * tests/test-mbsnrtoc32s-4.sh: New file, based on
8557         tests/test-mbsnrtowcs4.sh.
8558         * modules/mbsnrtoc32s-tests: New file, based on
8559         modules/mbsnrtowcs-tests.
8561         mbsnrtoc32s: New module.
8562         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
8563         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8564         INTERNAL_STATE, MBRTOWC.
8565         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8566         * lib/mbsnrtoc32s.c: New file.
8567         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
8568         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
8569         * modules/mbsnrtoc32s: New file.
8570         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
8571         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
8573 2020-01-04  Bruno Haible  <bruno@clisp.org>
8575         mbsrtoc32s tests: Enhance test.
8576         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
8577         test strings for UTF-8 and GB18030.
8579 2020-01-04  Bruno Haible  <bruno@clisp.org>
8581         mbsrtoc32s: Fix bug.
8582         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
8583         that SMALL_WCHAR_T is defined.
8585 2020-01-04  Bruno Haible  <bruno@clisp.org>
8587         mbsrtoc32s: Add tests.
8588         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
8589         * tests/test-mbsrtoc32s-1.sh: New file, based on
8590         tests/test-mbsrtowcs1.sh.
8591         * tests/test-mbsrtoc32s-2.sh: New file, based on
8592         tests/test-mbsrtowcs2.sh.
8593         * tests/test-mbsrtoc32s-3.sh: New file, based on
8594         tests/test-mbsrtowcs3.sh.
8595         * tests/test-mbsrtoc32s-4.sh: New file, based on
8596         tests/test-mbsrtowcs4.sh.
8597         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
8599         mbsrtoc32s: New module.
8600         * lib/uchar.in.h (mbsrtoc32s): New declaration.
8601         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8602         INTERNAL_STATE, MBRTOWC.
8603         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8604         * lib/mbsrtoc32s.c: New file.
8605         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
8606         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
8607         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
8608         * modules/mbsrtoc32s: New file.
8609         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
8610         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
8612 2020-01-04  Bruno Haible  <bruno@clisp.org>
8614         mbrtowc, mbrtoc32: Tighten dependendies.
8615         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
8616         REPLACE_MBSTATE_T is 1.
8617         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8618         REPLACE_MBSTATE_T is 0.
8619         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
8620         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
8621         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8622         REPLACE_MBSTATE_T is 0.
8624 2020-01-04  Bruno Haible  <bruno@clisp.org>
8626         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
8627         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
8628         * modules/uchar (Files): Add stdint.m4.
8629         (Makefile.am): Substitute SMALL_WCHAR_T.
8630         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
8632 2020-01-04  Bruno Haible  <bruno@clisp.org>
8634         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
8635         Reported by Martin Storsjö <martin@martin.st> in
8636         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
8637         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
8638         New macros.
8639         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
8641 2020-01-04  Bruno Haible  <bruno@clisp.org>
8643         btoc32: Add tests.
8644         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
8645         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
8646         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
8647         * modules/btoc32-tests: New file, based on modules/btowc-tests.
8649         btoc32: New module.
8650         * lib/uchar.in.h (btoc32): New declaration.
8651         * lib/btoc32.c: New file.
8652         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
8653         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
8654         * modules/btoc32: New file.
8655         * tests/test-uchar-c++.cc: Test the signature of btoc32.
8656         * doc/posix-functions/btowc.texi: Mention the new module.
8658 2020-01-03  Bruno Haible  <bruno@clisp.org>
8660         uchar tests: Avoid compilation error with HP cc.
8661         * tests/test-uchar.c: Disable a test when HP cc is in use.
8663 2020-01-03  Bruno Haible  <bruno@clisp.org>
8665         mbrtoc32: Add tests.
8666         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
8667         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
8668         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
8669         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
8670         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
8671         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
8672         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
8673         * tests/test-mbrtoc32-w32-1.sh: New file, based on
8674         tests/test-mbrtowc-w32-1.sh.
8675         * tests/test-mbrtoc32-w32-2.sh: New file, based on
8676         tests/test-mbrtowc-w32-2.sh.
8677         * tests/test-mbrtoc32-w32-3.sh: New file, based on
8678         tests/test-mbrtowc-w32-3.sh.
8679         * tests/test-mbrtoc32-w32-4.sh: New file, based on
8680         tests/test-mbrtowc-w32-4.sh.
8681         * tests/test-mbrtoc32-w32-5.sh: New file, based on
8682         tests/test-mbrtowc-w32-5.sh.
8683         * tests/test-mbrtoc32-w32-6.sh: New file, based on
8684         tests/test-mbrtowc-w32-6.sh.
8685         * tests/test-mbrtoc32-w32-7.sh: New file, based on
8686         tests/test-mbrtowc-w32-7.sh.
8687         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
8689         mbrtoc32: New module.
8690         * lib/uchar.in.h (mbrtoc32): New declaration.
8691         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
8692         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
8693         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
8694         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
8695         REPLACE_MBRTOC32.
8696         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
8697         HAVE_MBRTOC32, REPLACE_MBRTOC32.
8698         * modules/mbrtoc32: New file, based on modules/mbrtowc.
8699         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
8700         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
8701         $(LIB_MBRTOWC).
8702         * doc/posix-functions/mbrtoc32.texi: Document the new module.
8703         * doc/posix-functions/mbrtowc.texi: Mention the new module.
8705 2020-01-03  Bruno Haible  <bruno@clisp.org>
8707         mbrtowc: Refactor to share code with mbrtoc32.
8708         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
8709         * lib/mbrtowc-impl-utf8.h: Likewise.
8710         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
8711         mbrtowc-impl.h.
8712         * modules/mbrtowc (Files): Add the new files.
8714 2020-01-03  Jim Meyering  <meyering@fb.com>
8716         doc: fix time.texi wording
8717         * doc/posix-headers/time.texi (time.h): Typo.
8719 2020-01-03  Bruno Haible  <bruno@clisp.org>
8721         mbrtowc: Refactor locale charset dispatching.
8722         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
8723         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
8724         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
8725         localcharset.h, streq.h.
8726         (enc_t): Remove type.
8727         (locale_enc): Remove function.
8728         (cached_locale_enc): Remove variable.
8729         (locale_enc_cached): Remove function.
8730         (mbrtowc): Invoke locale_encoding_classification.
8731         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
8732         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
8733         lc-charset-dispatch.c.
8734         (configure.ac): Arrange to compile lc-charset-dispatch.c.
8736 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8738         doc: mention 32-bit time_t issue
8739         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8740         * doc/posix-headers/time.texi (time.h): Mention 2038.
8742 2020-01-03  Bruno Haible  <bruno@clisp.org>
8744         mbrtowc: Ensure the mbtowc_lock is unique.
8745         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
8746         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
8747         lib/setlocale_null.c.
8748         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
8749         glthread/lock.h. Include mbtowc-lock.h.
8750         (mbtowc_lock): Remove declaration.
8751         (mbrtowc): Use mbtowc_with_lock.
8752         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
8753         threads.h. Set LIB_MBRTOWC.
8754         (gl_PREREQ_MBTOWC_LOCK): New macro.
8755         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
8756         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
8757         (Depends-on): Remove lock.
8758         (configure.ac): Arrange to compile mbtowc-lock.c.
8759         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
8760         * modules/acl (Link): Likewise.
8761         * modules/argmatch (Link): Likewise.
8762         * modules/backup-rename (Link): Likewise.
8763         * modules/backupfile (Link): Likewise.
8764         * modules/closein (Link): Likewise.
8765         * modules/closeout (Link): Likewise.
8766         * modules/copy-file (Link): Likewise.
8767         * modules/csharpcomp (Link): Likewise.
8768         * modules/csharpexec (Link): Likewise.
8769         * modules/dfa (Link): Likewise.
8770         * modules/exclude (Link): Likewise.
8771         * modules/fnmatch (Link): Likewise.
8772         * modules/fnmatch-gnu (Link): Likewise.
8773         * modules/fnmatch-posix (Link): Likewise.
8774         * modules/glob (Link): Likewise.
8775         * modules/human (Link): Likewise.
8776         * modules/javacomp (Link): Likewise.
8777         * modules/javaexec (Link): Likewise.
8778         * modules/javaversion (Link): Likewise.
8779         * modules/mbfile (Link): Likewise.
8780         * modules/mbiter (Link): Likewise.
8781         * modules/mbmemcasecmp (Link): Likewise.
8782         * modules/mbmemcasecoll (Link): Likewise.
8783         * modules/mbrlen (Link): Likewise.
8784         * modules/mbscasecmp (Link): Likewise.
8785         * modules/mbscasestr (Link): Likewise.
8786         * modules/mbschr (Link): Likewise.
8787         * modules/mbscspn (Link): Likewise.
8788         * modules/mbsinit (Link): Likewise.
8789         * modules/mbslen (Link): Likewise.
8790         * modules/mbsncasecmp (Link): Likewise.
8791         * modules/mbsnlen (Link): Likewise.
8792         * modules/mbsnrtowcs (Link): Likewise.
8793         * modules/mbspbrk (Link): Likewise.
8794         * modules/mbspcasecmp (Link): Likewise.
8795         * modules/mbsrchr (Link): Likewise.
8796         * modules/mbsrtowcs (Link): Likewise.
8797         * modules/mbssep (Link): Likewise.
8798         * modules/mbsspn (Link): Likewise.
8799         * modules/mbsstr (Link): Likewise.
8800         * modules/mbstok_r (Link): Likewise.
8801         * modules/mbswidth (Link): Likewise.
8802         * modules/mbuiter (Link): Likewise.
8803         * modules/mkdir-p (Link): Likewise.
8804         * modules/propername (Link): Likewise.
8805         * modules/quote (Link): Likewise.
8806         * modules/quotearg (Link): Likewise.
8807         * modules/quotearg-simple (Link): Likewise.
8808         * modules/regex-quote (Link): Likewise.
8809         * modules/rpmatch (Link): Likewise.
8810         * modules/sh-quote (Link): Likewise.
8811         * modules/system-quote (Link): Likewise.
8812         * modules/trim (Link): Likewise.
8813         * modules/unistdio/ulc-asnprintf (Link): Likewise.
8814         * modules/unistdio/ulc-fprintf (Link): Likewise.
8815         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
8816         * modules/unistdio/ulc-vasprintf (Link): Likewise.
8817         * modules/unistdio/ulc-vfprintf (Link): Likewise.
8818         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
8819         * modules/unistdio/ulc-vsprintf (Link): Likewise.
8820         * modules/xfreopen (Link): Likewise.
8821         * modules/xmemcoll (Link): Likewise.
8822         * modules/yesno (Link): Likewise.
8823         * modules/regex (Link): Add $(LIB_MBRTOWC).
8824         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
8825         instead of $(LIBTHREAD).
8826         * modules/argmatch-tests (Makefile.am): Likewise.
8827         * modules/closein-tests (Makefile.am): Likewise.
8828         * modules/copy-file-tests (Makefile.am): Likewise.
8829         * modules/dfa-tests (Makefile.am): Likewise.
8830         * modules/fnmatch-tests (Makefile.am): Likewise.
8831         * modules/glob-tests (Makefile.am): Likewise.
8832         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8833         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8834         * modules/mbrtowc-tests (Makefile.am): Likewise.
8835         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8836         * modules/mbscasestr-tests (Makefile.am): Likewise.
8837         * modules/mbschr-tests (Makefile.am): Likewise.
8838         * modules/mbscspn-tests (Makefile.am): Likewise.
8839         * modules/mbsinit-tests (Makefile.am): Likewise.
8840         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8841         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8842         * modules/mbspbrk-tests (Makefile.am): Likewise.
8843         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8844         * modules/mbsrchr-tests (Makefile.am): Likewise.
8845         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8846         * modules/mbsspn-tests (Makefile.am): Likewise.
8847         * modules/mbsstr-tests (Makefile.am): Likewise.
8848         * modules/quotearg-simple-tests (Makefile.am): Likewise.
8849         * modules/quotearg-tests (Makefile.am): Likewise.
8850         * modules/readtokens-tests (Makefile.am): Likewise.
8851         * modules/sh-quote-tests (Makefile.am): Likewise.
8852         * modules/system-quote-tests (Makefile.am): Likewise.
8853         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
8854         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8855         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
8856         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
8857         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
8858         * modules/yesno-tests (Makefile.am): Likewise.
8859         * modules/exclude-tests (Makefile.am): Link the programs with
8860         $(LIB_MBRTOWC).
8861         * modules/regex-tests (Makefile.am): Likewise.
8862         * modules/regex-quote-tests (Makefile.am): Likewise.
8864 2020-01-03  Bruno Haible  <bruno@clisp.org>
8866         getopt-posix: Fix compilation failure in testdirs.
8867         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
8868         when the gnulib module 'getopt-posix' is enabled.
8869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
8870         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
8871         module indicator.
8872         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
8874 2020-01-03  Bruno Haible  <bruno@clisp.org>
8876         doc: Mention the 64-bit inode number problem.
8877         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
8878         64-bit inode number problem.
8879         * doc/posix-functions/stat.texi: Mention that this module fixes the
8880         64-bit inode number problem.
8881         * doc/posix-functions/lstat.texi: Likewise.
8882         * doc/posix-functions/fstat.texi: Likewise.
8883         * doc/posix-functions/readdir.texi: Add more details.
8884         * doc/posix-functions/readdir_r.texi: Likewise.
8886 2020-01-02  Bruno Haible  <bruno@clisp.org>
8888         wcrtomb: Add more tests.
8889         * tests/test-wcrtomb-w32.c: Include localcharset.h.
8890         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
8891         locale_charset() returns the expected value; otherwise, skip the test.
8892         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
8893         * tests/test-wcrtomb-w32-7.sh: Likewise.
8894         * modules/wcrtomb-tests (Files): Add these files.
8895         (Depends-on): Add localcharset.
8896         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
8898 2020-01-02  Bruno Haible  <bruno@clisp.org>
8900         mbrtowc: Add more tests.
8901         * tests/test-mbrtowc-w32.c: Include localcharset.h.
8902         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
8903         locale_charset() returns the expected value; otherwise, skip the test.
8904         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
8905         * tests/test-mbrtowc-w32-7.sh: Likewise.
8906         * modules/mbrtowc-tests (Files): Add these files.
8907         (Depends-on): Add localcharset.
8908         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
8910 2020-01-02  Bruno Haible  <bruno@clisp.org>
8912         mbrtowc: Fix test failures on MSVC (regression by previous commit).
8913         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
8914         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
8915         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
8916         MBRTOWC_STORES_INCOMPLETE_BUG.
8917         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
8919 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8921         doc: mention glibc bug 24269
8922         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
8923         Reformat slightly so that it looks nicer in the Grep manual.
8925 2020-01-02  Bruno Haible  <bruno@clisp.org>
8927         mbrtowc: Don't replace mbstate_t on MSVC.
8928         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
8929         a missing mbsinit function on native Windows.
8930         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
8931         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
8932         MSVC bug.
8933         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
8935 2020-01-02  Bruno Haible  <bruno@clisp.org>
8937         setlocale-null: Avoid crashing the MSVC linker.
8938         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
8939         MSVC.
8941 2020-01-02  Bruno Haible  <bruno@clisp.org>
8943         wchar: Make the HP-UX workaround work on HP-UX 11.31.
8944         * modules/wchar (Depends-on): Add inttypes-incomplete.
8945         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
8946         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
8947         of strtoimax.
8949 2020-01-02  Bruno Haible  <bruno@clisp.org>
8951         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
8952         * lib/mbrtowc.c: Include <stdint.h>.
8953         * modules/mbrtowc (Depends-on): Add stdint.
8955 2020-01-01  Pádraig Brady  <P@draigBrady.com>
8957         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
8958         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
8959         which will auto enable use of openssl, only for >= version 3,
8960         which is newly licensed under the Apache Software License.
8962 2020-01-01  Bruno Haible  <bruno@clisp.org>
8964         mbrtowc: Include function name in macro names.
8965         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
8966         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
8967         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
8968         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
8969         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
8970         C_LOCALE_MAYBE_EILSEQ.
8972 2020-01-01  Bruno Haible  <bruno@clisp.org>
8974         c32tob: New module.
8975         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
8976         (c32tob): New declaration.
8977         * lib/c32tob.c: New file.
8978         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
8979         macros.
8980         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
8981         * modules/uchar (Depends-on): Add snippet/c++defs.
8982         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
8983         uchar.h.
8984         * modules/c32tob: New file.
8985         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
8986         defined.
8987         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
8988         c32tob.
8989         * modules/uchar-c++-tests (Files): Add tests/signature.h.
8990         * doc/posix-functions/wctob.texi: Mention the new module.
8992 2020-01-01  Bruno Haible  <bruno@clisp.org>
8994         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
8995         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
8996         $(LIB_SETLOCALE).
8998 2020-01-01  Bruno Haible  <bruno@clisp.org>
9000         hard-locale tests: Fix a conflict with the C++ tests.
9001         * modules/hard-locale-tests (Makefile.am): Build a program named
9002         'current-locale', not 'locale'.
9004 2020-01-01  Bruno Haible  <bruno@clisp.org>
9006         doc: Update documentation about wchar_t.
9007         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
9008         wchar_t type.
9010 2020-01-01  Bruno Haible  <bruno@clisp.org>
9012         mbrtowc tests: Fix typos.
9013         * tests/test-mbrtowc.c (main): Fix typo.
9014         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
9016 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9018         maint: update copyright notices
9019         Before doing the following changes done by hand, I also ran ‘make
9020         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
9021         to do most of the copyright years automatically.  A few upstream
9022         sources are still in 2019 but these should eventually be changed
9023         automatically too.
9024         * build-aux/declared.sh (func_version):
9025         * build-aux/libtool-next-version (func_version):
9026         * build-aux/run-test (func_version):
9027         Update these notices by hand.  Put just the last year
9028         in output of programs, as per GNU coding standards.
9030 2019-12-31  Bruno Haible  <bruno@clisp.org>
9032         uchar: Add C++ tests.
9033         * tests/test-uchar-c++.cc: New file.
9034         * tests/test-uchar-c++2.cc: New file.
9035         * modules/uchar-c++-tests: New file.
9037         uchar: Add tests.
9038         * tests/test-uchar.c: New file.
9039         * modules/uchar-tests: New file.
9041         uchar: New module.
9042         * lib/uchar.in.h: New file.
9043         * m4/uchar.m4: New file.
9044         * modules/uchar: New file.
9045         * doc/posix-headers/uchar.texi: Mention the new module.
9047 2019-12-30  Jim Meyering  <meyering@fb.com>
9049         localeinfo: ->simple would be wrong for LC_ALL=C
9050         That would lead to using unnecessary and expensive code paths in dfa.c.
9051         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
9052         error that would have made grep many times slower in the C locale.
9053         With this change, and a file created like this:
9054           yes 00 | head -10000000 > in
9055         Running grep as follows becomes more than 40 times faster:
9056           LC_ALL=C grep -Fw 0 in
9058 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9060         doc: document trouble with back-references
9061         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
9063 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9065         doc: use “back-reference” for \1 etc.
9066         * doc/regex.texi: Consistently spell “back-reference” with
9067         a hyphen, since that’s how POSIX does it.
9069 2019-12-26  Jim Meyering  <meyering@fb.com>
9071         test-framework-sh: tighten an internal grep regexp
9072         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
9073         that helps test for a working printf.
9075 2019-12-26  Bruno Haible  <bruno@clisp.org>
9077         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
9078         Reported by Paul Eggert in
9079         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
9080         Simplification by Jim Meyering.
9081         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
9082         octal escape sequence in a UTF-8 locale.
9084 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
9086         mbrtowc: port better to narrow-wchar_t platforms
9087         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
9088         wchar_t is too narrow to represent all the Unicode characters,
9089         consider a byte sequence for an out-of-wchar_t-range character to
9090         be an encoding error.  This fixes grep’s surrogate-pair test
9091         failure on AIX 7.2.
9093 2019-12-24  Bruno Haible  <bruno@clisp.org>
9095         localcharset: Avoid referencing rpl_setlocale on native Windows.
9096         * lib/localcharset.c (setlocale): Undefine.
9098 2019-12-24  Bruno Haible  <bruno@clisp.org>
9100         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
9101         * m4/semaphore.m4: New file.
9102         * modules/lock-tests (Files): Add it.
9103         (configure.ac): Require gl_SEMAPHORE.
9104         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
9106 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
9108         strptime: fix typo in previous patch
9109         Problem and fix reported by Bruno Haible in:
9110         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
9111         * lib/strptime.c (day_of_the_week): Fix paren bug.
9113 2019-12-24  Bruno Haible  <bruno@clisp.org>
9115         setlocale-null: Make it easy to rely on the lock in another library.
9116         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
9117         defined.
9119 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9121         gethrxtime, mktime, nstrftime, strptime: tweak division performance
9122         Performanced analyzed by Bruno Haible in:
9123         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
9124         * config/srclist.txt: Do not sync mktime.c for now.
9125         * lib/mktime.c (shr, ydhms_diff):
9126         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
9127         * lib/strptime.c (day_of_the_week):
9128         * lib/xtime.h (xtime_sec):
9129         Redo with neither ‘%’ nor conditional branches.
9131 2019-12-23  Bruno Haible  <bruno@clisp.org>
9133         setlocale-null: Export the lock function also on non-Windows platforms.
9134         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
9135         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
9136         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
9137         * modules/setlocale-null (configure.ac): Invoke it.
9138         (Files): Add m4/visibility.m4.
9140 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9142         gethrxtime: fix rounding bug with negative args
9143         Problem reported by Bruno Haible in:
9144         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
9145         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
9146         with negative rounding.  Common platforms can compute / and % with
9147         a single instruction, so the simplified code should be shorter and
9148         faster on these platforms anyway.
9150 2019-12-22  Bruno Haible  <bruno@clisp.org>
9152         gethrxtime: remove incorrect overflow detection
9153         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
9154         integer overflow, as it didn’t suffice.  This reverts the xtime.h
9155         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
9156         cannot now see the need for anyway (even in cases where it works),
9157         as the patch is helpful only when the signs of S and NS disagree,
9158         and all callers pass nonnegative values for S and NS.
9160 2019-12-22  Bruno Haible  <bruno@clisp.org>
9162         setlocale-null: Add standalone include file.
9163         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
9164         * lib/locale.in.h: Include setlocale_null.h.
9165         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
9166         setlocale_null): Remove declarations.
9167         * lib/setlocale_null.c: Include setlocale_null.h.
9168         * lib/localename.c: Likewise.
9169         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
9170         (Depends-on): Add snippet/arg-nonnull.
9171         (Include): Allow either "setlocale_null.h" or <locale.h>.
9173 2019-12-22  Bruno Haible  <bruno@clisp.org>
9175         strfmon_l: Fix test failures on FreeBSD and Cygwin.
9176         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
9177         AC_RUN_IFELSE test.
9178         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
9179         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
9180         problem.
9182 2019-12-22  Bruno Haible  <bruno@clisp.org>
9184         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
9185         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
9186         unconditional AC_LIBOBJ.
9187         * modules/selinux-at: Likewise.
9188         * modules/xmemdup0: Likewise.
9189         * modules/xstrtoll: Likewise.
9191 2019-12-22  Bruno Haible  <bruno@clisp.org>
9193         longlong: Mark module obsolete.
9194         * modules/longlong (Status, Notice): New sections.
9196         stdint: Assume that the compiler supports 'long long'.
9197         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
9198         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
9199         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9200         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
9201         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9202         * modules/stdint (Files): Remove longlong.m4.
9203         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
9204         HAVE_UNSIGNED_LONG_LONG_INT.
9206         inttypes-incomplete: Assume that the compiler supports 'long long'.
9207         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
9208         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
9209         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9210         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
9211         HAVE_LONG_LONG_INT to be 1.
9212         * modules/inttypes-incomplete (Makefile.am): Don't substitute
9213         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
9215         malloca: Assume that the compiler supports 'long long'.
9216         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
9217         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
9218         * modules/malloca (Files): Remove longlong.m4.
9219         * modules/relocatable-prog-wrapper (Files): Likewise.
9221         atoll: Assume that the compiler supports 'long long'.
9222         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
9223         * modules/atoll (Files): Remove longlong.m4.
9225         strtoll: Assume that the compiler supports 'long long'.
9226         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
9227         * modules/strtoll (Files): Remove longlong.m4.
9229         strtoull: Assume that the compiler supports 'long long'.
9230         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
9231         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9232         * modules/strtoull (Files): Remove longlong.m4.
9234         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
9235         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
9236         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9237         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
9238         AC_TYPE_LONG_LONG_INT.
9239         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
9240         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9241         * modules/strtoimax (Files): Remove longlong.m4.
9242         * modules/strtoumax (Files): Likewise.
9244         xstrtoll: Assume that the compiler supports 'long long'.
9245         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
9246         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
9248         vasnprintf: Assume that the compiler supports 'long long'.
9249         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
9250         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
9251         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9252         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
9253         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
9254         require AC_TYPE_LONG_LONG_INT.
9255         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
9256         gl_PREREQ_VASNPRINTF): Likewise.
9257         * modules/vasnprintf (Files): Remove longlong.m4.
9258         * modules/c-vasnprintf (Files): Likewise.
9259         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9260         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9261         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9262         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9263         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9264         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9265         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9267         gethrxtime: Assume that the compiler supports 'long long'.
9268         * lib/xtime.h (xtime_t): Define to 'long long int' always.
9269         (XTIME_PRECISION): Define to 1000000000 always.
9270         (xtime_make, xtime_sec): Optimize accordingly.
9271         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
9272         * modules/gethrxtime (Files): Remove longlong.m4.
9274         integer_length*: Assume that the compiler supports 'long long'.
9275         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
9276         * modules/integer_length (Files): Remove longlong.m4.
9277         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9278         * modules/integer_length_l (Files): Remove longlong.m4.
9279         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9280         * modules/integer_length_ll (Files): Remove longlong.m4.
9281         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9283         count-one-bits: Assume that the compiler supports 'long long'.
9284         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
9285         * m4/count-one-bits.m4: Remove file.
9286         * modules/count-one-bits (Files): Remove it.
9287         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
9288         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
9289         unconditionally.
9291         count-trailing-zeros: Assume that the compiler supports 'long long'.
9292         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
9293         unconditionally.
9294         * m4/count-trailing-zeros.m4: Remove file.
9295         * modules/count-trailing-zeros (Files): Remove it.
9296         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
9297         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
9298         unconditionally.
9300         count-leading-zeros: Assume that the compiler supports 'long long'.
9301         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
9302         unconditionally.
9303         * m4/count-leading-zeros.m4: Remove file.
9304         * modules/count-leading-zeros (Files): Remove it.
9305         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
9306         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
9307         unconditionally.
9309 2019-12-22  Bruno Haible  <bruno@clisp.org>
9311         localcharset: Update support for OpenBSD.
9312         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
9314 2019-12-21  Bruno Haible  <bruno@clisp.org>
9316         pthread_sigmask: Avoid test failure on NetBSD 8.0.
9317         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
9318         NetBSD.
9319         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
9321 2019-12-21  Bruno Haible  <bruno@clisp.org>
9323         threadlib: Improve code structure.
9324         * m4/threadlib.m4: Reorder macros. Add comments.
9326 2019-12-21  Bruno Haible  <bruno@clisp.org>
9328         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
9329         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
9330         here from m4/threads.m4).
9331         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
9332         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
9333         (gl_STDTHREADLIB): New macro.
9334         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
9335         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
9337 2019-12-21  Bruno Haible  <bruno@clisp.org>
9339         sched_yield: Don't depend on threadlib and yield.
9340         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
9341         LIB_SCHED_YIELD.
9342         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
9343         m4/yield.m4).
9344         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
9345         gl_THREADLIB and gl_YIELD.
9346         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
9347         based on $(LIB_SCHED_YIELD).
9348         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
9349         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9350         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
9351         (Depends-on): Remove threadlib.
9352         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9353         * modules/threads-h (Files): Remove m4/yield.m4.
9354         * modules/pthread-cond-tests (Makefile.am): Link the programs against
9355         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9356         * modules/pthread-mutex-tests (Makefile.am): Likewise.
9357         * modules/pthread-once-tests (Makefile.am): Likewise.
9358         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
9359         * modules/pthread-tss-tests (Makefile.am): Likewise.
9361 2019-12-21  Bruno Haible  <bruno@clisp.org>
9363         threads-h: Don't depend on threadlib.
9364         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
9365         not gl_THREADLIB_EARLY.
9367 2019-12-21  Bruno Haible  <bruno@clisp.org>
9369         nl_langinfo tests: Fix link error (regression from 2019-12-18).
9370         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
9371         with $(LIB_SETLOCALE).
9373 2019-12-21  Bruno Haible  <bruno@clisp.org>
9375         threadlib: Remove unused dependency (left over from 2019-07-06).
9376         * modules/threadlib (Depends-on): Remove havelib.
9378 2019-12-21  Bruno Haible  <bruno@clisp.org>
9380         New convention for multithread-safety tests.
9381         * tests/test-setlocale_null-mt-one.c: Renamed from
9382         tests/test-setlocale_null-one.c.
9383         * tests/test-setlocale_null-mt-all.c: Renamed from
9384         tests/test-setlocale_null-all.c.
9385         * modules/setlocale-null-tests (Files, Makefile.am): Update.
9387 2019-12-21  Bruno Haible  <bruno@clisp.org>
9389         quotearg tests: Fix conflict with hard-locale tests.
9390         * tests/testlocale: Renamed from tests/locale.
9391         * modules/quotearg-tests (Files): Update.
9392         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
9394 2019-12-21  Bruno Haible  <bruno@clisp.org>
9396         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
9397         Reported by Daniel Richard G. in
9398         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
9399         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
9400         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
9401         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
9402         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
9403         alternative to PTHREAD_RWLOCK_INITIALIZER.
9404         * lib/glthread/lock.c: Likewise.
9406 2019-12-21  Bruno Haible  <bruno@clisp.org>
9408         memcmp tests: Work around the clang bug.
9409         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
9410         the clang optimization.
9412 2019-12-20  Bruno Haible  <bruno@clisp.org>
9414         localcharset: Add support for z/OS encoding names.
9415         * lib/localcharset.h: Mention which encodings are used as locale
9416         encodings on z/OS.
9418 2019-12-20  Bruno Haible  <bruno@clisp.org>
9420         iconv_open: Add support for z/OS encoding names.
9421         Reported by Daniel Richard G. in
9422         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
9423         * lib/iconv_open-zos.gperf: New file.
9424         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
9425         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
9426         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
9427         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
9428         * doc/posix-functions/iconv_open.texi: Mention z/OS.
9430 2019-12-20  Bruno Haible  <bruno@clisp.org>
9432         doc: Document the problem of the per-thread locale functions on z/OS.
9433         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
9434         * doc/posix-functions/newlocale.texi: Likewise.
9435         * doc/posix-functions/duplocale.texi: Likewise.
9436         * doc/posix-functions/freelocale.texi: Likewise.
9438 2019-12-20  Bruno Haible  <bruno@clisp.org>
9440         localename, gettext: Fix host_os value for z/OS.
9441         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
9442         cross-configuration code.
9444 2019-12-19  Jim Meyering  <meyering@fb.com>
9446         nstrftime: avoid a shadowing warning
9447         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
9448         to avoid shadowing an "i" declared hundreds of lines above.
9450 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9452         dfa: struct dfamust now uses flexible array
9453         * lib/dfa.c: Include flexmember.h.
9454         (dfamust, dfamustfree): Adjust to struct dfamust change.
9455         This saves a call to malloc+free.
9456         * lib/dfa.h (struct dfamust): Make the final member a
9457         flexible array member.
9458         * modules/dfa (Depends-on): Add flexmember.
9460         dfa: fast->small for array elements
9461         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
9462         since this type is used in arrays.  This change is more for
9463         documentation than for any practical effect, since the two types
9464         are the same on all known platforms.
9466 2019-12-19  Bruno Haible  <bruno@clisp.org>
9468         iconv tests: Test canonicalized, not system-dependent, encoding names.
9469         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
9470         * modules/iconv-tests (Depends-on): Add iconv_open.
9472 2019-12-18  Bruno Haible  <bruno@clisp.org>
9474         localename: Fix test failure on AIX 7.2.
9475         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
9476         locales on AIX.
9477         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
9478         locales on AIX.
9480 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9482         Improve port of AC_C_RESTRICT to Oracle C++
9483         Problem reported by Christian Biesinger in:
9484         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
9485         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
9486         Oracle Developer Studio C++ 12.5 or later.
9488 2019-12-18  Bruno Haible  <bruno@clisp.org>
9490         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
9491         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
9493 2019-12-18  Bruno Haible  <bruno@clisp.org>
9495         localename: Ensure multithread-safety in future changes.
9496         * lib/localename.c (setlocale): Reference the system's setlocale().
9497         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
9498         (gl_locale_name_posix): Likewise.
9499         * modules/localename (Depends-on): Add setlocale-null.
9501 2019-12-18  Bruno Haible  <bruno@clisp.org>
9503         setlocale-null: Make API more useful.
9504         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
9505         callers changed.
9506         (setlocale_null): New declaration.
9507         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
9508         extracted from setlocale_null_unlocked.
9509         (setlocale_null_unlocked): Invoke it.
9510         (setlocale_null_r): Renamed from setlocale_null.
9511         (setlocale_null): New function, extracted from setlocale_mtsafe in
9512         setlocale.c.
9513         * lib/setlocale.c: Don't include <errno.h>.
9514         (setlocale_mtsafe): Invoke setlocale_null.
9515         * lib/setlocale-lock.c: Update comments.
9516         * doc/posix-functions/setlocale.texi: Mention both functions.
9518 2019-12-18  Bruno Haible  <bruno@clisp.org>
9520         localename: Optimize code for native Windows.
9521         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
9522         category (not allowed here).
9524 2019-12-18  Bruno Haible  <bruno@clisp.org>
9526         setlocale: Make calls with NULL argument multithread-safe.
9527         * lib/setlocale.c: Include <errno.h>.
9528         (setlocale_mtsafe): New function.
9529         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
9530         (setlocale_improved): Renamed from rpl_setlocale.
9531         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9532         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
9533         LIB_SETLOCALE.
9534         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
9535         (Link): New section.
9536         * tests/locale.c: Undefine setlocale.
9537         * tests/test-setlocale_null-one.c: Likewise.
9538         * tests/test-setlocale_null-all.c: Likewise.
9539         * modules/setlocale-tests (Makefile.am): Link the test programs with
9540         $(LIB_SETLOCALE).
9541         * modules/astrxfrm-tests (Makefile.am): Likewise.
9542         * modules/btowc-tests (Makefile.am): Likewise.
9543         * modules/c-ctype-tests (Makefile.am): Likewise.
9544         * modules/c-snprintf-tests (Makefile.am): Likewise.
9545         * modules/c-strcase-tests (Makefile.am): Likewise.
9546         * modules/c-vasprintf-tests (Makefile.am): Likewise.
9547         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
9548         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
9549         * modules/dfa-tests (Makefile.am): Likewise.
9550         * modules/duplocale-tests (Makefile.am): Likewise.
9551         * modules/hard-locale-tests (Makefile.am): Likewise.
9552         * modules/localcharset-tests (Makefile.am): Likewise.
9553         * modules/localename-tests (Makefile.am): Likewise.
9554         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9555         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9556         * modules/mbrtowc-tests (Makefile.am): Likewise.
9557         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9558         * modules/mbscasestr-tests (Makefile.am): Likewise.
9559         * modules/mbschr-tests (Makefile.am): Likewise.
9560         * modules/mbscspn-tests (Makefile.am): Likewise.
9561         * modules/mbsinit-tests (Makefile.am): Likewise.
9562         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9563         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9564         * modules/mbspbrk-tests (Makefile.am): Likewise.
9565         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9566         * modules/mbsrchr-tests (Makefile.am): Likewise.
9567         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9568         * modules/mbsspn-tests (Makefile.am): Likewise.
9569         * modules/mbsstr-tests (Makefile.am): Likewise.
9570         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9571         * modules/quotearg-tests (Makefile.am): Likewise.
9572         * modules/regex-tests (Makefile.am): Likewise.
9573         * modules/strfmon_l-tests (Makefile.am): Likewise.
9574         * modules/strtod-tests (Makefile.am): Likewise.
9575         * modules/strtold-tests (Makefile.am): Likewise.
9576         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9577         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9578         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9579         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
9580         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9581         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9582         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9583         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9584         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9585         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9586         * modules/wcrtomb-tests (Makefile.am): Likewise.
9587         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9588         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9589         * modules/wcwidth-tests (Makefile.am): Likewise.
9590         * doc/posix-functions/setlocale.texi: Mention that the multithread-
9591         safety fix is also available in module 'setlocale'.
9593 2019-12-18  Bruno Haible  <bruno@clisp.org>
9595         hard-locale: Make multithread-safe.
9596         * lib/hard-locale.h (hard_locale): Move documentation to here.
9597         * lib/hard-locale.c: Don't include <stdlib.h>.
9598         (GLIBC_VERSION): Remove macro.
9599         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
9600         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
9601         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
9602         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
9603         (Link): New section.
9604         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
9605         $(LIB_HARD_LOCALE).
9607 2019-12-18  Bruno Haible  <bruno@clisp.org>
9609         hard-locale: Avoid test failure on Haiku.
9610         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
9612 2019-12-18  Bruno Haible  <bruno@clisp.org>
9614         setlocale-null: Handle NULL result from setlocale.
9615         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
9616         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
9617         from setlocale or _wsetlocale.
9619 2019-12-18  Bruno Haible  <bruno@clisp.org>
9621         hard-locale: Add test.
9622         * tests/test-hard-locale.c: New file.
9623         * tests/locale.c: New file.
9624         * modules/hard-locale-tests: New file.
9626 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9628         dfa: do not match invalid UTF-8
9629         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
9630         from 5 to 9 tokens; this is needed due to the changes to
9631         add_utf8_anychar.
9632         (charclass_index): 2nd arg is now pointer-to-const.
9633         (add_utf8_anychar): Match only valid UTF-8 byte sequences
9634         instead of allowing overlong encodings or surrogate halves.
9636         dfa: simplify charclass by assuming C99
9637         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
9638         (charclass_word): Now always uint_fast64_t.
9639         (CHARCLASS_PAIR): Remove.
9640         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
9642         fts: tune via calloc
9643         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
9645         dfa: tune via xzalloc
9646         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
9648 2019-12-17  Bruno Haible  <bruno@clisp.org>
9650         localcharset: Fix multithread-safety bug on Windows and OS/2.
9651         * lib/localcharset.h (locale_charset): Clarify when the result becomes
9652         invalid.
9653         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
9654         assemble the result.
9656 2019-12-17  Bruno Haible  <bruno@clisp.org>
9658         localcharset: Optimize code for native Windows.
9659         * lib/localcharset.c (locale_charset): Don't bother calling
9660         setlocale (LC_ALL, NULL) since we're not interested in its result.
9662 2019-12-17  Bruno Haible  <bruno@clisp.org>
9664         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
9665         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
9666         setlocale.
9667         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
9668         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
9669         * modules/nl_langinfo (Depends-on): Add setlocale-null.
9671 2019-12-17  Bruno Haible  <bruno@clisp.org>
9673         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
9674         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
9675         stack-allocated buffer to assemble each result and different static
9676         buffers to return it.
9677         * tests/test-nl_langinfo-mt.c: New file.
9678         * modules/nl_langinfo-tests (Files): Add it.
9679         (Depends-on): Add thread, nanosleep.
9680         (Makefile.am): Build test-nl_langinfo-mt test.
9682 2019-12-17  Bruno Haible  <bruno@clisp.org>
9684         langinfo: Document more details.
9685         * doc/posix-headers/langinfo.texi: List platform details.
9686         * doc/posix-functions/nl_langinfo.texi: Likewise.
9688 2019-12-17  Bruno Haible  <bruno@clisp.org>
9690         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
9691         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
9692         and Martin Storsjö <martin@martin.st>
9693         in <https://savannah.gnu.org/bugs/?57406>.
9694         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
9695         mingw.
9697 2019-12-17  Bruno Haible  <bruno@clisp.org>
9699         glob: Avoid warning on mingw.
9700         Reported by Christian Biesinger <cbiesinger@google.com> in
9701         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
9702         * lib/glob.c (__stat64): Undefine first.
9704 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9706         xalloc: tune xzalloc for fresh allocations
9707         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
9708         because when the memory is freshly allocated from the OS via sbrk
9709         or mmap, calloc can avoid doing the memset.
9711         dfa: new function dfacopysyntax
9712         * lib/dfa.c (struct dfa): Move syntax member later so
9713         that dfacopysyntax can easily clear earlier members.
9714         (dfacopysyntax): New function, used by Gawk.
9716 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9718         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
9719         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
9720         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
9721         if not already defined.
9723         dfa: remove one dependency on MB_CUR_MAX
9724         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
9726         dfa: remove struct lexer_state.cur_mb_len
9727         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
9728         as it’s not needed and the code is simpler without it.
9729         All uses removed.
9731 2019-12-16  Bruno Haible  <bruno@clisp.org>
9733         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
9734         Reported by Arnold Robbins <arnold@skeeve.com>.
9735         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
9736         copied from lib/glthread/lock.h.
9737         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
9738         (setlocale_null_with_lock): If pthread_in_use() is false, use
9739         setlocale_null_unlocked directly.
9740         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
9741         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
9742         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
9743         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
9744         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
9745         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
9747 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9749         dfa: make dfasyntax thread-safe
9750         Problem reported by Bruno Haible in:
9751         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
9752         * lib/dfa.c: Do not include locale.h.
9753         (struct dfa): Remove simple_locale member.
9754         All uses replaced by localeinfo.simple.
9755         (using_simple_locale): Remove; now present (with some
9756         changes) in localeinfo.c.
9757         (dfasyntax): No need to initialize removed member.
9759         localeinfo: record whether locale is simple
9760         * lib/localeinfo.c (using_simple_locale): New function,
9761         copied here from lib/dfa.c but with a change: it uses
9762         strcoll for its heuristic, instead of using setlocale.
9763         This lets it be thread-safe.
9764         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
9766 2019-12-15  Bruno Haible  <bruno@clisp.org>
9768         duplocale: Fix multithread-safety bug on AIX.
9769         * lib/duplocale.c: Don't include <stdlib.h>.
9770         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
9771         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9772         Set LIB_DUPLOCALE.
9773         * modules/duplocale (Depends-on): Add setlocale-null.
9774         (Link): New section.
9775         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
9776         $(LIB_DUPLOCALE).
9778 2019-12-15  Bruno Haible  <bruno@clisp.org>
9780         setlocale-null: Add tests.
9781         * tests/test-setlocale_null.c: New file.
9782         * tests/test-setlocale_null-one.c: New file.
9783         * tests/test-setlocale_null-all.c: New file.
9784         * modules/setlocale-null-tests: New file.
9786         setlocale-null: New module.
9787         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
9788         setlocale_null): New declarations.
9789         * lib/setlocale_null.c: New file.
9790         * lib/setlocale-lock.c: New file.
9791         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
9792         * m4/setlocale_null.m4: New file.
9793         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
9794         GNULIB_SETLOCALE_NULL.
9795         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
9796         * modules/setlocale-null: New file.
9797         * doc/posix-functions/setlocale.texi: Mention the new module.
9799 2019-12-15  Bruno Haible  <bruno@clisp.org>
9801         lock tests: Skip test when no multithreading is enabled.
9802         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
9804 2019-12-14  Bruno Haible  <bruno@clisp.org>
9806         locale, duplocale, localename: Fix last patch.
9807         Reported by Daniel Richard G. in
9808         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
9809         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
9810         Don't define if locale_t does not exist.
9812 2019-12-13  Bruno Haible  <bruno@clisp.org>
9814         locale, duplocale, localename: Fix errors if locale_t does not exist.
9815         Reported by Daniel Richard G. in
9816         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
9817         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
9818         macros.
9819         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
9820         HAVE_NEWLOCALE.
9821         * tests/test-localename.c: Likewise.
9822         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
9823         HAVE_DUPLOCALE.
9824         * tests/test-locale-c++.cc: Likewise.
9826 2019-12-13  Bruno Haible  <bruno@clisp.org>
9828         wcstok: Fix test failure on HP-UX.
9829         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
9830         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
9832 2019-12-12  Bruno Haible  <bruno@clisp.org>
9834         strtod, strtold tests: Avoid test failure on AIX 7.2.
9835         * tests/test-strtod1.c (main): Allow implementations in which ',' and
9836         '.' both are radix characters.
9837         * tests/test-strtold1.c (main): Likewise.
9839 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9841         dfa: prefer ptrdiff_t for API, too
9842         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
9843         but do this only for internal use for now.
9844         * NEWS: Mention the API change.
9845         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
9846         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
9847         values known to be nonnegative.
9848         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
9849         Prefer idx_t or ptrdiff_t to size_t for API.
9850         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
9851         Prefer ptrdiff_t to size_t for API.
9853         stdalign: port to xlclang 16.01
9854         Problem reportd by Bruno Haible in:
9855         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
9856         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
9857         ((__aligned__ (...))) with xlclang, as a top-level
9858         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
9859         xlclang version 16.01.0000.0001; the alignment directive is ignored.
9861 2019-12-12  Bruno Haible  <bruno@clisp.org>
9863         duplocale: Fix test failure on AIX 7.2 with xlclang.
9864         * lib/duplocale.c: Include <stdlib.h>.
9865         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
9866         value.
9868 2019-12-12  Bruno Haible  <bruno@clisp.org>
9870         stddef: Document the AIX xlc issue.
9871         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
9873 2019-12-12  Bruno Haible  <bruno@clisp.org>
9875         duplocale: Don't attempt to override if locale_t does not exist.
9876         Reported by Daniel Richard G. in
9877         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
9878         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
9879         HAVE_DUPLOCALE to 0.
9881 2019-12-12  Bruno Haible  <bruno@clisp.org>
9883         wcwidth: Avoid test failure on AIX 7.2.
9884         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
9885         negative.
9886         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
9888 2019-12-12  Bruno Haible  <bruno@clisp.org>
9890         ilogbl: Work around Cygwin bug.
9891         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
9892         correct.
9893         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
9895 2019-12-12  Bruno Haible  <bruno@clisp.org>
9897         strtold: Work around Cygwin bug.
9898         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
9899         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
9900         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
9901         STRTOLD_HAS_UNDERFLOW_BUG is defined.
9902         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
9904 2019-12-12  Bruno Haible  <bruno@clisp.org>
9906         strtold: Fix autoconf test.
9907         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
9909 2019-12-11  Bruno Haible  <bruno@clisp.org>
9911         fsync tests: Skip test that is known to fail.
9912         * doc/posix-functions/fsync.texi: Update list of platforms.
9913         * tests/test-fsync.c (main): Skip test with read-only file descriptors
9914         that is known to fail on AIX and Cygwin.
9916 2019-12-11  Bruno Haible  <bruno@clisp.org>
9918         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
9919         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
9920         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
9921         HAVE_GETADDRINFO as a C macro.
9922         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
9923         declare as replacement functions.
9924         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
9925         define as no-op overrides.
9926         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
9927         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
9928         * modules/getaddrinfo (Depends-on, configure.ac): Test
9929         REPLACE_GETADDRINFO.
9930         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
9931         problem.
9932         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
9933         convention problems.
9935 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
9937         dfa: prefer signed integers for internals
9938         Signed integers can be checked more easily for integer overflow.
9939         * lib/dfa.c (position, struct lexer_state, struct parser_state)
9940         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
9941         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
9942         (nsubtoks, copytoks, closure, alloc_position_set, delete)
9943         (replace, state_index, epsclosure, charclass_context)
9944         (state_separate_contexts, merge_nfa_state, dfaoptimize)
9945         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
9946         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
9947         (comsubs, inboth, allocmust):
9948         Prefer a signed to an unsigned integer when calculating indexes,
9949         unless the integer is part of the external API (a bigger deal,
9950         and to be done later).
9952         dfa: fix index overflow
9953         * lib/dfa.c (compare): Avoid integer overflow when analyzing
9954         very large regular expressions.
9956         dfa: update commentary for previous change
9957         * NEWS: Mention the change.
9958         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
9960 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9962         dfa: separate parse and compile phase
9963         ‘dfamust’ must be called after parsing and before tokens are
9964         reordered, but both are executed in the compilation phase.
9965         Token reordering was introduced in Gnulib commit
9966         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
9967         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
9968         * lib/dfa.c (dfaparse): Change it to global function.
9969         (dfacomp): If first argument is NULL, skip parse.
9970         * lib/dfa.h: (dfaparse): Add a prototype.
9972 2019-12-11  Bruno Haible  <bruno@clisp.org>
9974         unistd tests: Fix link error on MSVC.
9975         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
9976         $(LIB_GETLOGIN).
9978 2019-12-11  Bruno Haible  <bruno@clisp.org>
9980         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
9981         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
9982         and POSIX substitutes are supported in C++ mode.
9983         * NEWS: Likewise.
9985 2019-12-11  Bruno Haible  <bruno@clisp.org>
9987         stddef: Fix compilation error in C++ mode on MSVC.
9988         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
9989         instead, include <cstddef>.
9991 2019-12-11  Bruno Haible  <bruno@clisp.org>
9993         unistd: Fix compilation error in C++ mode on MSVC.
9994         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
9995         does not have <unistd.h>.
9997 2019-12-11  Bruno Haible  <bruno@clisp.org>
9999         locale: Fix compilation error in C++ mode on MSVC.
10000         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
10001         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
10002         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
10003         int_n_sep_by_space): Define as macros on MSVC.
10005 2019-12-11  Bruno Haible  <bruno@clisp.org>
10007         wchar: Fix compilation error in C++ mode on MSVC.
10008         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
10010 2019-12-11  Bruno Haible  <bruno@clisp.org>
10012         pthread-thread: Fix compilation error in C++ mode on MSVC.
10013         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
10014         _GL_CXXALIAS_RPL invocation.
10016 2019-12-08  Bruno Haible  <bruno@clisp.org>
10018         Fix compilation errors in C++ mode on Haiku.
10019         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
10020         non-glibc systems.
10021         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
10022         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10023         posix_spawnattr_setschedparam): Likewise.
10024         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
10025         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10026         * lib/unistd.in.h (usleep): Likewise.
10028 2019-12-08  Bruno Haible  <bruno@clisp.org>
10030         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
10031         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
10032         * modules/fseeko (configure.ac-early): Require it instead of
10033         AC_FUNC_FSEEKO.
10034         * modules/ftello (configure.ac-early): Likewise.
10035         * modules/fflush (configure.ac-early): Likewise.
10037 2019-12-08  Bruno Haible  <bruno@clisp.org>
10039         Fix compilation error in C++ mode on HP-UX 11.
10040         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
10041         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
10043 2019-12-08  Bruno Haible  <bruno@clisp.org>
10045         Fix compilation errors on HP-UX 11/ia64.
10046         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
10047         _GL_FUNCDECL_SYS.
10049 2019-12-08  Bruno Haible  <bruno@clisp.org>
10051         Fix compilation error in C++ mode on OpenBSD.
10052         * lib/signal.in.h (signal): Declare on OpenBSD.
10054 2019-12-08  Bruno Haible  <bruno@clisp.org>
10056         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
10057         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
10058         instead of #error.
10060 2019-12-08  Bruno Haible  <bruno@clisp.org>
10062         Fix compilation errors in C++ mode on FreeBSD.
10063         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
10064         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
10065         * lib/threads.in.h (thrd_exit): Likewise.
10066         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
10068 2019-12-08  Bruno Haible  <bruno@clisp.org>
10070         Fix compilation errors in C++ mode on macOS and FreeBSD.
10071         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
10072         or FreeBSD with clang, use the approach without C preprocessor macro.
10074 2019-12-07  Bruno Haible  <bruno@clisp.org>
10076         Fix compilation errors in C++ mode on AIX with xlclang++.
10077         Reported by Christian Biesinger <cbiesinger@google.com> in
10078         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
10079         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
10081 2019-12-07  Bruno Haible  <bruno@clisp.org>
10083         Document compilation error in C++ mode on NetBSD 8.0.
10084         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
10086 2019-12-07  Bruno Haible  <bruno@clisp.org>
10088         Fix compilation errors in C++ mode on Solaris 10.
10089         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
10090         to non-empty on Solaris with a non-GCC compiler.
10091         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
10093 2019-12-07  Bruno Haible  <bruno@clisp.org>
10095         Reword NEWS entry.
10096         * NEWS: Reword the latest NEWS entry.
10098 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
10100         Move xstrtol_fatal to a new xstrtol-error module.
10101         * lib/xstrtol.h: Stop including <getopt.h>.
10102         (xstrtol_fatal): Move ...
10103         * lib/xstrtol-error.h: ... here.  New file.
10104         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
10105         * tests/test-xstrtol.c: Likewise.
10106         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
10107         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
10108         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
10109         * modules/xstrtol-error: New file.
10110         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
10111         * MODULES.html.sh: Add xstrtol-error.
10112         * NEWS: Document the change.
10114 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
10116         nstrftime: better width support for %N, %z
10117         * lib/nstrftime.c (width_add, width_add1, width_cpy):
10118         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
10119         a new WIDTH parameter.
10120         (add, add1, cpy): Use these macros.
10121         (width_add): Do not treat digits == 0 as a special case,
10122         do not pad if padding is ‘-’, and do not use a negative width.
10123         (__strftime_internal): Redo formatting of nanoseconds and numeric
10124         timezones to avoid buffer misuse in unusual cases, and so that
10125         widths make more sense.  Add support for widths greater than 9 to
10126         the %N format; they are zero filled on the right.
10127         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
10129 2019-12-05  Bruno Haible  <bruno@clisp.org>
10131         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
10132         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
10133         set REPLACE_ISFINITE to 1.
10134         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
10135         REPLACE_ISINF to 1.
10136         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
10137         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
10138         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10139         * lib/threads.in.h (call_once): Likewise.
10140         * lib/iconv.in.h (iconv): Likewise.
10142 2019-12-05  Bruno Haible  <bruno@clisp.org>
10144         wchar: Add more C++ tests.
10145         Reported by Christian Biesinger <cbiesinger@google.com> in
10146         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
10147         * tests/test-wchar-c++3.cc: New file.
10148         * modules/wchar-c++-tests (Files): Add it.
10149         (Makefile.am): Compile it.
10151 2019-12-05  Bruno Haible  <bruno@clisp.org>
10153         Add more C++ tests.
10155         assert-h: Add C++ tests.
10156         * tests/test-assert-h-c++.cc: New file.
10157         * tests/test-assert-h-c++2.cc: New file.
10158         * modules/assert-h-c++-tests: New file.
10159         * modules/assert-h-tests: New file.
10161         ctype: Add C++ tests.
10162         * tests/test-ctype-c++.cc: New file.
10163         * tests/test-ctype-c++2.cc: New file.
10164         * modules/ctype-c++-tests: New file.
10165         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
10167         errno: Add C++ tests.
10168         * tests/test-errno-c++.cc: New file.
10169         * tests/test-errno-c++2.cc: New file.
10170         * modules/errno-c++-tests: New file.
10171         * modules/errno-tests (Depends-on): Add errno-c++-tests.
10173         float: Add C++ tests.
10174         * tests/test-float-c++.cc: New file.
10175         * tests/test-float-c++2.cc: New file.
10176         * modules/float-c++-tests: New file.
10177         * modules/float-tests (Depends-on): Add float-c++-tests.
10179         inttypes: Add more C++ tests.
10180         * tests/test-inttypes-c++2.cc: New file.
10181         * modules/inttypes-c++-tests (Files): Add it.
10182         (Makefile.am): Compile it.
10184         limits-h: Add C++ tests.
10185         * tests/test-limits-h-c++.cc: New file.
10186         * tests/test-limits-h-c++2.cc: New file.
10187         * modules/limits-h-c++-tests: New file.
10188         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
10190         stdarg: Add C++ tests.
10191         * tests/test-stdarg-c++.cc: New file.
10192         * tests/test-stdarg-c++2.cc: New file.
10193         * modules/stdarg-c++-tests: New file.
10194         * modules/stdarg-tests: New file.
10196         stdbool: Add C++ tests.
10197         * tests/test-stdbool-c++.cc: New file.
10198         * tests/test-stdbool-c++2.cc: New file.
10199         * modules/stdbool-c++-tests: New file.
10200         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
10202         stddef: Add C++ tests.
10203         * tests/test-stddef-c++.cc: New file.
10204         * tests/test-stddef-c++2.cc: New file.
10205         * modules/stddef-c++-tests: New file.
10206         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
10208         stdint: Add C++ tests.
10209         * tests/test-stdint-c++.cc: New file.
10210         * tests/test-stdint-c++2.cc: New file.
10211         * modules/stdint-c++-tests: New file.
10212         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
10214         wchar: Add more C++ tests.
10215         * tests/test-wchar-c++2.cc: New file.
10216         * modules/wchar-c++-tests (Files): Add it.
10217         (Makefile.am): Compile it.
10219         wctype-h: Add more C++ tests.
10220         * tests/test-wctype-h-c++2.cc: New file.
10221         * modules/wctype-h-c++-tests (Files): Add it.
10222         (Makefile.am): Compile it.
10224 2019-12-04  Bruno Haible  <bruno@clisp.org>
10226         Fix compilation errors in C++ mode with xlclang++ on AIX.
10227         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
10228         C++ mode on AIX.
10229         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
10230         without C preprocessor macro.
10231         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
10232         _GL_CXXALIAS_SYS.
10233         * lib/threads.in.h (thrd_exit): Likewise.
10235 2019-12-04  Bruno Haible  <bruno@clisp.org>
10237         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
10238         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
10239         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
10241 2019-12-04  Bruno Haible  <bruno@clisp.org>
10243         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
10244         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
10245         _GL_CXXALIASWARN invocation on non-glibc systems.
10246         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
10247         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
10248         iswctype, towlower, towupper): Likewise.
10250 2019-12-03  Bruno Haible  <bruno@clisp.org>
10252         Avoid hassles caused by [[noreturn]] in C++.
10253         Reported by Christian Biesinger <cbiesinger@google.com> in
10254         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
10255         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
10256         * lib/_Noreturn.h: Likewise.
10258 2019-12-02  Bruno Haible  <bruno@clisp.org>
10260         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
10261         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
10262         LIBMULTITHREAD.
10263         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
10264         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
10265         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
10266         gl_THREADLIB.
10267         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
10269 2019-12-02  Bruno Haible  <bruno@clisp.org>
10271         Fix some more link errors with --enable-threads=isoc.
10272         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
10273         * modules/pthread-rwlock (Depends-on): Likewise.
10275 2019-12-02  Bruno Haible  <bruno@clisp.org>
10277         Fix link errors with --enable-threads=posix on AIX.
10278         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
10279         program with $(LIBTHREAD).
10280         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
10281         program with $(LIBTHREAD).
10283 2019-12-02  Bruno Haible  <bruno@clisp.org>
10285         Fix link errors with --enable-threads=posix on AIX.
10286         * modules/mbrtowc (Link): New section.
10287         * modules/acl (Link): Likewise.
10288         * modules/argmatch (Link): Likewise.
10289         * modules/backup-rename (Link): Likewise.
10290         * modules/backupfile (Link): Likewise.
10291         * modules/closein (Link): Likewise.
10292         * modules/closeout (Link): Likewise.
10293         * modules/copy-file (Link): Likewise.
10294         * modules/csharpcomp (Link): Likewise.
10295         * modules/csharpexec (Link): Likewise.
10296         * modules/dfa (Link): Likewise.
10297         * modules/exclude (Link): Likewise.
10298         * modules/fnmatch (Link): Likewise.
10299         * modules/fnmatch-gnu (Link): Likewise.
10300         * modules/fnmatch-posix (Link): Likewise.
10301         * modules/glob (Link): Likewise.
10302         * modules/human (Link): Likewise.
10303         * modules/javacomp (Link): Likewise.
10304         * modules/javaexec (Link): Likewise.
10305         * modules/javaversion (Link): Likewise.
10306         * modules/mbfile (Link): Likewise.
10307         * modules/mbiter (Link): Likewise.
10308         * modules/mbmemcasecmp (Link): Likewise.
10309         * modules/mbmemcasecoll (Link): Likewise.
10310         * modules/mbrlen (Link): Likewise.
10311         * modules/mbscasecmp (Link): Likewise.
10312         * modules/mbscasestr (Link): Likewise.
10313         * modules/mbschr (Link): Likewise.
10314         * modules/mbscspn (Link): Likewise.
10315         * modules/mbsinit (Link): Likewise.
10316         * modules/mbslen (Link): Likewise.
10317         * modules/mbsncasecmp (Link): Likewise.
10318         * modules/mbsnlen (Link): Likewise.
10319         * modules/mbsnrtowcs (Link): Likewise.
10320         * modules/mbspbrk (Link): Likewise.
10321         * modules/mbspcasecmp (Link): Likewise.
10322         * modules/mbsrchr (Link): Likewise.
10323         * modules/mbsrtowcs (Link): Likewise.
10324         * modules/mbssep (Link): Likewise.
10325         * modules/mbsspn (Link): Likewise.
10326         * modules/mbsstr (Link): Likewise.
10327         * modules/mbstok_r (Link): Likewise.
10328         * modules/mbswidth (Link): Likewise.
10329         * modules/mbuiter (Link): Likewise.
10330         * modules/mkdir-p (Link): Likewise.
10331         * modules/propername (Link): Likewise.
10332         * modules/quote (Link): Likewise.
10333         * modules/quotearg (Link): Likewise.
10334         * modules/quotearg-simple (Link): Likewise.
10335         * modules/regex-quote (Link): Likewise.
10336         * modules/rpmatch (Link): Likewise.
10337         * modules/sh-quote (Link): Likewise.
10338         * modules/system-quote (Link): Likewise.
10339         * modules/trim (Link): Likewise.
10340         * modules/unistdio/ulc-asnprintf (Link): Likewise.
10341         * modules/unistdio/ulc-fprintf (Link): Likewise.
10342         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
10343         * modules/unistdio/ulc-vasprintf (Link): Likewise.
10344         * modules/unistdio/ulc-vfprintf (Link): Likewise.
10345         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
10346         * modules/unistdio/ulc-vsprintf (Link): Likewise.
10347         * modules/xfreopen (Link): Likewise.
10348         * modules/xmemcoll (Link): Likewise.
10349         * modules/yesno (Link): Likewise.
10350         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
10351         * modules/argmatch-tests (Makefile.am): Likewise.
10352         * modules/closein-tests (Makefile.am): Likewise.
10353         * modules/copy-file-tests (Makefile.am): Likewise.
10354         * modules/dfa-tests (Makefile.am): Likewise.
10355         * modules/fnmatch-tests (Makefile.am): Likewise.
10356         * modules/glob-tests (Makefile.am): Likewise.
10357         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10358         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10359         * modules/mbrtowc-tests (Makefile.am): Likewise.
10360         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10361         * modules/mbscasestr-tests (Makefile.am): Likewise.
10362         * modules/mbschr-tests (Makefile.am): Likewise.
10363         * modules/mbscspn-tests (Makefile.am): Likewise.
10364         * modules/mbsinit-tests (Makefile.am): Likewise.
10365         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10366         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10367         * modules/mbspbrk-tests (Makefile.am): Likewise.
10368         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10369         * modules/mbsrchr-tests (Makefile.am): Likewise.
10370         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10371         * modules/mbsspn-tests (Makefile.am): Likewise.
10372         * modules/mbsstr-tests (Makefile.am): Likewise.
10373         * modules/quotearg-tests (Makefile.am): Likewise.
10374         * modules/quotearg-simple-tests (Makefile.am): Likewise.
10375         * modules/readtokens-tests (Makefile.am): Likewise.
10376         * modules/regex-quote-tests (Makefile.am): Likewise.
10377         * modules/sh-quote-tests (Makefile.am): Likewise.
10378         * modules/system-quote-tests (Makefile.am): Likewise.
10379         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
10380         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10381         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
10382         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
10383         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
10384         * modules/yesno-tests (Makefile.am): Likewise.
10386 2019-12-02  Bruno Haible  <bruno@clisp.org>
10388         Simplify link sections.
10389         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
10390         * modules/lock (Link): Likewise.
10391         * modules/cond (Link): Likewise.
10392         * modules/tls (Link): Likewise.
10393         * modules/yield (Link): Likewise.
10394         * modules/regex (Link): Likewise.
10395         * modules/localename (Link): Likewise.
10396         * modules/unicase/locale-language (Link): Likewise.
10397         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
10399 2019-12-02  Bruno Haible  <bruno@clisp.org>
10401         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
10402         * tests/test-thread_self.c (main): Disable test on AIX.
10404 2019-12-01  Bruno Haible  <bruno@clisp.org>
10406         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
10407         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
10408         gl_THREADLIB_EARLY_BODY.
10409         (gl_THREADLIB_EARLY_BODY): Invoke it.
10410         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
10411         (gl_THREADLIB_BODY): Invoke it.
10412         (gl_PTHREADLIB): New macro.
10413         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
10414         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
10415         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
10416         * modules/pthread-h (Files): Add threadlib.m4.
10417         (Depends-on): Remove threadlib.
10418         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
10419         and _THREAD_SAFE here.
10420         (Link): Use LIBPTHREAD, not LIBTHREAD.
10421         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
10422         LIBMULTITHREAD.
10423         * modules/pthread-once (Link): Likewise.
10424         * modules/pthread-mutex (Link): Likewise.
10425         * modules/pthread-rwlock (Link): Likewise.
10426         * modules/pthread-cond (Link): Likewise.
10427         * modules/pthread-tss (Link): Likewise.
10428         * modules/pthread-spin (Link): Likewise.
10429         * modules/pthread (Link): Likewise.
10430         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
10431         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
10432         * modules/pthread-once-tests (test_pthread_once1_LDADD,
10433         test_pthread_once2_LDADD): Likewise.
10434         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
10435         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
10436         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
10437         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
10439 2019-12-01  Bruno Haible  <bruno@clisp.org>
10441         cond: State linking requirements.
10442         * modules/cond (Link): New section.
10444 2019-12-01  Bruno Haible  <bruno@clisp.org>
10446         threadlib: Remove unnecessary file (left over from 2019-07-06).
10447         * modules/threadlib (Files): Remove config.rpath.
10449 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
10451         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
10452         Reported by Dagobert Michelsen <dam@opencsw.org> in
10453         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
10454         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
10455         list of strings instead of one string.
10456         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
10457         * pygnulib/GLImport.py (execute): Likewise.
10459 2019-11-27  Bruno Haible  <bruno@clisp.org>
10461         openpty, forkpty: Fix build error on Solaris 11.4.
10462         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
10463         also in <termios.h>.
10464         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
10465         of the function also in <termios.h>.
10466         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
10467         * doc/glibc-functions/forkpty.texi: Likewise.
10469 2019-11-27  Bruno Haible  <bruno@clisp.org>
10471         New options --enable-threads=isoc and --enable-threads=isoc+posix.
10472         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
10473         --enable-threads=isoc and --enable-threads=isoc+posix.
10474         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
10475         When both the ISO C and the POSIX threads API are available, choose
10476         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
10477         --enable-threads=isoc+posix was specified. When only the ISO C threads
10478         API is available and --enable-threads=iso was specified, choose
10479         USE_ISOC_THREADS.
10480         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
10481         USE_ISOC_AND_POSIX_THREADS.
10482         * lib/glthread/lock.c: Likewise.
10483         * lib/glthread/cond.h: Likewise.
10484         * lib/glthread/cond.c: Likewise.
10485         * lib/glthread/tls.h: Likewise.
10486         * lib/glthread/tls.c: Likewise.
10487         * lib/glthread/yield.h: Likewise.
10488         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
10489         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
10490         * lib/glthread/thread.c: Likewise.
10491         * lib/glthread/threadlib.c: Likewise.
10492         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
10493         USE_ISOC_AND_POSIX_THREADS.
10494         * tests/test-cond.c: Consider USE_ISOC_THREADS and
10495         USE_ISOC_AND_POSIX_THREADS.
10496         * tests/test-tls.c: Likewise.
10497         * tests/test-thread_create.c (main): Likewise.
10498         * tests/test-pthread-cond.c: Likewise.
10499         * tests/test-pthread-mutex.c: Likewise.
10500         * tests/test-pthread-once2.c: Likewise.
10501         * tests/test-pthread-rwlock.c: Likewise.
10502         * tests/test-pthread-tss.c: Likewise.
10503         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
10504         USE_POSIX_THREADS.
10506 2019-11-24  Bruno Haible  <bruno@clisp.org>
10508         mbrtowc: Modernize autoconf test.
10509         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
10510         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
10511         try a UTF-8 locale.
10512         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
10514 2019-11-24  Bruno Haible  <bruno@clisp.org>
10516         Fix errors in C++ mode on mingw.
10517         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
10518         instead of _GL_CXXALIAS_SYS.
10519         * lib/signal.in.h (pthread_sigmask): Likewise.
10520         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
10521         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10522         Likewise.
10523         * lib/wchar.in.h (btowc): Likewise.
10525 2019-11-24  Bruno Haible  <bruno@clisp.org>
10527         sys_time: Fix errors in C++ mode on mingw.
10528         * lib/sys_time.in.h (timeval): Restore the redirection
10529         '#define timeval rpl_timeval', for when the symbol timeval is being used
10530         outside the 'gnulib' namespace.
10531         * lib/sys_select.in.h (select): In C++, write 'timeval', not
10532         'struct timeval'.
10534 2019-11-24  Bruno Haible  <bruno@clisp.org>
10536         iswctype: Fix errors in C++ mode on mingw.
10537         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
10538         is 1.
10539         * lib/iswctype.c (iswctype): Add another implementation, for the
10540         GNULIB_defined_wint_t case.
10541         * modules/iswctype (configure.ac): Compile iswctype.c also if
10542         GNULIB_OVERRIDES_WINT_T is 1.
10544 2019-11-24  Bruno Haible  <bruno@clisp.org>
10546         windows-timedmutex: Fix errors in C++ mode on mingw.
10547         * lib/windows-timedmutex.h: Add closing brace.
10549 2019-11-24  Bruno Haible  <bruno@clisp.org>
10551         Fix errors in C++ mode on Cygwin.
10552         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
10553         _GL_CXXALIAS_SYS.
10555 2019-11-24  Bruno Haible  <bruno@clisp.org>
10557         time_r: Fix for mingw (regression from 2019-11-16).
10558         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
10559         AC_LINK_IFELSE test only if the function does not appear to exist.
10561 2019-11-24  Bruno Haible  <bruno@clisp.org>
10563         wcstok: Add tests.
10564         * tests/test-wcstok.c: New file.
10565         * modules/wcstok-tests: New file.
10567 2019-11-24  Bruno Haible  <bruno@clisp.org>
10569         wcstok: Work around wrong signature on native Windows.
10570         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
10571         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
10572         REPLACE_WCSTOK.
10573         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
10574         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
10575         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
10576         * doc/posix-functions/wcstok.texi: Mention the problem.
10578 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
10580         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
10581         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
10582         remove workaround for GCC bug 91450 as the bug should be fixed
10583         there too.
10585 2019-11-21  Bruno Haible  <bruno@clisp.org>
10587         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
10588         Reported by Christian Biesinger <cbiesinger@google.com> in
10589         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
10590         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
10591         non-glibc systems.
10592         * lib/locale.in.h (localeconv, setlocale): Likewise.
10593         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
10594         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
10595         rint, round, trunc): Likewise.
10596         * lib/monetary.in.h (strfmon_l): Likewise.
10597         * lib/pthread.in.h (pthread_mutexattr_getrobust,
10598         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
10599         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
10600         pthread_spin_destroy): Likewise.
10601         * lib/signal.in.h (raise, signal): Likewise.
10602         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
10603         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
10604         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
10605         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
10606         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
10607         Likewise.
10608         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
10609         Likewise.
10610         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
10611         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
10612         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
10613         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
10614         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
10615         wcsftime): Likewise.
10616         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
10618 2019-11-21  Bruno Haible  <bruno@clisp.org>
10620         Fix various errors in _GL_CXXALIAS_SYS invocations.
10621         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
10622         _GL_CXXALIAS_SYS.
10623         * lib/pthread.in.h (pthread_mutexattr_gettype,
10624         pthread_mutexattr_getrobust): Likewise.
10625         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
10626         * lib/sys_socket.in.h (recv, send): Likewise.
10627         * lib/unistd.in.h (getdtablesize): Likewise.
10628         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
10629         'struct timeval'.
10631 2019-11-21  Bruno Haible  <bruno@clisp.org>
10633         math tests: Update after 2019-08-28 change.
10634         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
10635         return type of 'bool', not 'int'.
10637 2019-11-21  Bruno Haible  <bruno@clisp.org>
10639         pthread-spin: Fix errors in C++ mode.
10640         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
10641         functions as nonexistent when <pthread.h> exists but does not define
10642         the pthread_spinlock_t type.
10644 2019-11-21  Bruno Haible  <bruno@clisp.org>
10646         pthread-mutex: Fix errors in C++ mode.
10647         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
10648         pthread_mutexattr_getrobust exists. If not, define
10649         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
10650         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
10651         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
10652         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
10653         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
10654         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
10655         definition.
10657 2019-11-19  Bruno Haible  <bruno@clisp.org>
10659         threads-h tests: Fix typo.
10660         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
10662 2019-11-19  Bruno Haible  <bruno@clisp.org>
10664         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
10665         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
10666         to 'const pthread_attr_t *'.
10667         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
10668         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
10670 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10672         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
10673         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
10674         work around GCC bug 91450 as the bug should be fixed there.
10676 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10678         glob: get closer to glibc glob.c
10679         Omit differences from glibc when the differences don’t matter.
10680         * lib/glob.c [_LIBC]: Include shlib-compat.h.
10681         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
10682         (glob_lstat): New function.
10683         (glob_in_dir): Use it.
10684         (GLOB_ATTRIBUTE): Define to empty if not already defined.
10685         Use changed.
10687 2019-11-18  Bruno Haible  <bruno@clisp.org>
10689         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
10690         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
10691         UINTPTR_MAX): Consider _WIN64.
10692         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
10693         a pointer.
10695 2019-11-18  Bruno Haible  <bruno@clisp.org>
10697         stdint: Fix value of WINT_MAX when we override wint_t.
10698         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
10699         when GNULIB_OVERRIDES_WINT_T is 1.
10701 2019-11-18  Bruno Haible  <bruno@clisp.org>
10703         vcs-to-changelog: New module.
10704         * modules/vcs-to-changelog: New file.
10705         * MODULES.html.sh (func_all_modules): Add it.
10707 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
10709         vcs-to-changelog: New script to generate ChangeLog-like output.
10710         Discussion:
10711         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
10712         * build-aux/vcs_to_changelog.py: New file.
10713         * build-aux/vcstocl/frontend_c.py: New file.
10714         * build-aux/vcstocl/misc_util.py: New file.
10715         * build-aux/vcstocl/vcs_git.py: New file.
10717 2019-11-18  Bruno Haible  <bruno@clisp.org>
10719         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
10720         Reported by Keith Marshall <keith@users.osdn.me> in
10721         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
10722         and <https://osdn.net/projects/mingw/ticket/39677>.
10723         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
10724         already been defined by mingw's <crtdefs.h>.
10726 2019-11-18  Bruno Haible  <bruno@clisp.org>
10728         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
10729         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
10730         conditionally enabled.
10732 2019-11-18  Bruno Haible  <bruno@clisp.org>
10734         gc: Mirror libgcrypt.m4 from libgcrypt.
10735         * config/srclistvars.sh (LIBGCRYPT): New variable.
10736         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
10738 2019-11-17  Bruno Haible  <bruno@clisp.org>
10740         locale, localename: Improve z/OS support.
10741         Reported by Daniel Richard G. in
10742         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
10743         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
10744         gl_LOCALE_H.
10745         (gl_LOCALE_H): Require it.
10746         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
10747         defined, don't even check for newlocale, duplocale, freelocale.
10748         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
10749         locale_t is not defined.
10751 2019-11-17  Bruno Haible  <bruno@clisp.org>
10753         havelib: Make libdirstems processing more flexible.
10754         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
10755         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
10756         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
10757         patch from 2017-02-19).
10758         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
10759         libdirs, even when the first one exists as a directory.
10761 2019-11-17  Bruno Haible  <bruno@clisp.org>
10763         havelib: Match the bitness when searching for libraries.
10764         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
10765         acl_is_expected_elfclass.
10766         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
10767         file exists, in ELF, also test whether it has the ELF class that
10768         corresponds to the host's bitness.
10770 2019-11-17  Bruno Haible  <bruno@clisp.org>
10772         host-cpu-c-abi: Add support for unknown CPUs.
10773         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
10774         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
10775         32-bit or 64-bit.
10777 2019-11-17  Bruno Haible  <bruno@clisp.org>
10779         havelib: Remove redundant code.
10780         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
10781         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
10783 2019-11-17  Bruno Haible  <bruno@clisp.org>
10785         havelib: Fix a bug in dependency processing.
10786         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
10787         of .la files, don't overwrite the value of additional_libdir for the
10788         next rounds.
10790 2019-11-16  Bruno Haible  <bruno@clisp.org>
10792         wctype-h: When overriding wint_t, override also the related functions.
10793         Reported by Christian Biesinger <cbiesinger@google.com> in
10794         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
10795         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
10796         REPLACE_ISWCNTRL to 1.
10797         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
10798         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
10799         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
10800         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
10801         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
10802         on mingw.
10803         * doc/posix-headers/wctype.texi: Likewise.
10805 2019-11-16  Bruno Haible  <bruno@clisp.org>
10807         time_r: Fix for mingw.
10808         Reported by Christian Biesinger <cbiesinger@google.com> in
10809         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
10810         * lib/time.in.h: On mingw, include <unistd.h>.
10811         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
10812         <time.h>. Test for localtime_r in a way that works when it is defined
10813         as an inline function.
10815 2019-11-13  Bruno Haible  <bruno@clisp.org>
10817         havelib: Revert last change.
10818         * build-aux/config.rpath: Revert last change. We can add msys2 support
10819         when it has been added to libtool.m4 upstream.
10821 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10823         config: add msys support
10824         Requested by Arnold Robbins in:
10825         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
10826         He also requested a change to config.guess, which I’ll forward
10827         upstream.
10828         * build-aux/ar-lib (func_file_conv):
10829         * build-aux/compile (func_file_conv):
10830         * build-aux/config.rpath (wl, with_gnu_ld)
10831         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
10832         Treat msys like cygwin.
10834 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10836         regex: now back in sync with glibc
10837         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
10838         regexec.c got merged into glibc and are now copies again.
10840 2019-10-27  Bruno Haible  <bruno@clisp.org>
10842         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
10843         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
10844         statement.
10845         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
10846         32-bit CPUs.
10848 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10850         timespec-add, timespec-sub: simplify
10851         * lib/timespec-add.c (timespec_add):
10852         * lib/timespec-sub.c (timespec_sub):
10853         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
10854         work on unsigned integers.
10856 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10858         nstrftime: speed up integer overflow checking
10859         * lib/nstrftime.c: Include intprops.h.
10860         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
10861         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
10862         instead of doing it by hand.
10863         * modules/nstrftime (Depends-on): Add intprops.
10865         Port better to GCC under macOS
10866         Work around macOS header that has ‘#define __has_builtin(x) 0’
10867         when compiled by GCC.  Apple really, really doesn’t want you to
10868         use GCC, apparently.  Rroblem reported by Akim Demaille in:
10869         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
10870         The fix is to not trust __has_builtin when being compiled by
10871         recent-enough GCC.
10872         * lib/intprops.h (__has_builtin)
10873         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
10874         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
10875         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
10876         Remove.  All uses removed.
10877         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
10878         directly, if defined and if not newer GCC.
10879         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
10880         New macro, that use __has_builtin directly, if defined and if
10881         not newer GCC.
10882         (assume): Use them.
10884 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
10886         maintainer-makefile: update rule for argmatch.
10887         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
10889 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
10891         bitset: let freeing functions accept NULL.
10892         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
10893         given NULL.
10894         * lib/bitset.h: Document that.
10895         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
10897 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
10899         inttypes: use more-robust test for int range
10900         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
10901         Problem reported by Dagobert Michelsen in:
10902         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
10903         * lib/inttypes.in.h: Rely only on limits.h when checking
10904         int range.
10906 2019-10-15  Bruno Haible  <bruno@clisp.org>
10908         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
10909         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
10910         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
10911         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
10912         term_ostream_set_hyperlink): New functions.
10913         (term_styled_ostream_get_hyperlink_ref,
10914         term_styled_ostream_get_hyperlink_id,
10915         term_styled_ostream_set_hyperlink): New function aliases.
10917 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10919         update-copyright: use en dashes in .texi ranges
10920         * build-aux/update-copyright: Match year ranges like "1998--2019",
10921         which are used in the Autoconf manual.  Also, update ranges in
10922         .tex, .texi, and .texinfo files to use en dashes instead of
10923         hyphens.
10925 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10927         * config/srclist.txt: Remove posix/regex_internal.c for now.
10929 2019-10-13  Bruno Haible  <bruno@clisp.org>
10931         git-version-gen: Allow 'snapshot' as .tarball-version contents.
10932         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
10933         contents to the empty string.
10935 2019-10-12  Bruno Haible  <bruno@clisp.org>
10937         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
10938         * tests/test-intprops.c (main): Disable two more tests when using
10939         HP-UX cc.
10941 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10943         Simplify and regularize regex use of ‘assert’
10944         Also, tell GCC about the asserts even when compiling without
10945         debugging, to give it further optimization opportunities.
10946         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
10947         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
10948         (parse_expression, parse_bracket_exp):
10949         * lib/regex_internal.c (build_wcs_buffer)
10950         (build_wcs_upper_buffer, re_string_reconstruct)
10951         (re_string_context_at):
10952         * lib/regexec.c (re_search_stub, re_copy_regs)
10953         (re_search_internal, prune_impossible_nodes, check_matching)
10954         (check_halt_state_context, set_regs, sift_states_backward)
10955         (build_sifted_states, transit_state_mb, transit_state_bkref)
10956         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
10957         (match_ctx_add_subtop):
10958         Use it instead of plain ‘assert’.
10960 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
10962         regex: omit debug assignment when not debugging
10963         * lib/regexec.c (re_search_internal) [!DEBUG]:
10964         Remove unnecessary assignment.
10966         regex: tell compiler there’s at most 256 arcs out
10967         Partly this is to help the reader (and maybe help GCC);
10968         partly this is to pacify Coverity.
10969         * lib/regex_internal.h: Include verify.h.
10970         * lib/regexec.c (group_nodes_into_DFAstates):
10971         Tell the compiler that ndests cannot exceed SBC_MAX.
10972         * modules/regex (Depends-on): Add ‘verify’.
10974         regex: simplify by assuming C99
10975         * config/srclist.txt: Comment out regex_internal.h and regexec.c
10976         temporarily.
10977         * lib/regex_internal.h (lock_define, re_match_context_t):
10978         Simplify by assuming C99 macros and const.
10979         * lib/regexec.c (re_search_internal): Simplify by assuming C99
10980         initializers.  Remove unnecessary assignment, as mctx is now
10981         safely initialized earlier.
10983         regex: avoid copying of uninitialized storage
10984         * config/srclist.txt: Comment out regcomp.c temporarily.
10985         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
10986         Initialize even when not checking for lint, as the behavior is
10987         arguably undefined otherwise and Coverity warns about it.
10989 2019-10-06  Bruno Haible  <bruno@clisp.org>
10991         access tests: Fix test failure when run as root.
10992         * tests/test-access.c: Include root-uid.h.
10993         (geteuid): Define fallback.
10994         (main): Don't expect that writing to a read-only file would fail when
10995         running as root. Also, remove the created files at the end.
10996         * modules/access-tests (Depends-on): Add root-uid.
10997         (configure.ac): Test whether geteuid exists.
10999 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
11001         users.txt: add GNU nano
11002         Nano has been making use of gnulib since March 2017, version 2.8.0.
11004 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11006         bootstrap: simplify debugging of wget failures
11007         Problem reported by Tim Rühsen in:
11008         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
11009         * build-aux/bootstrap (po_download_command_format):
11010         Invoke wget with -nv instead of -q, to make debugging easier.
11012 2019-09-29  Bruno Haible  <bruno@clisp.org>
11014         avltree-list: Fix compilation warning (introduced on 2014-09-16).
11015         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
11016         'const' attribute.
11018 2019-09-29  Bruno Haible  <bruno@clisp.org>
11020         fbufmode: Fix compilation error on glibc >= 2.28 systems.
11021         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
11023 2019-09-28  Bruno Haible  <bruno@clisp.org>
11025         Update comments that refer to POSIX.
11026         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
11027         sentence about trailing slashes.
11028         * lib/fflush.c: Clarify the reasoning.
11029         * tests/test-fflush2.c: Cite the relevant sentence.
11031 2019-09-28  Bruno Haible  <bruno@clisp.org>
11033         access: Document limitations on Windows.
11034         Suggested by Zaretskii <eliz@gnu.org>.
11035         * doc/posix-functions/access.texi: Mention two limitations on Windows.
11037 2019-09-28  Bruno Haible  <bruno@clisp.org>
11039         findprog-in: Fix comment.
11040         Reported by Eli Zaretskii <eliz@gnu.org>.
11041         * lib/findprog.h (find_in_given_path): Extend description of EACCES
11042         condition.
11043         * lib/stat.c (rpl_stat): Fix typo in comment.
11044         * lib/utime.c (_gl_utimens_windows): Likewise.
11046 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11048         Update URLs and associated text
11049         (Thanks to Bruno Haible for proofreading this patch.)
11050         Prefer https: to http: in URLs where either will do, for the usual
11051         security reasons.  I also updated broken and/or moved URLs
11052         discovered during the process. In a few places I had to resort to
11053         archive.org, since I didn't find the originals elsewhere.
11055 2019-09-15  Paul Smith  <psmith@gnu.org>
11056             Bruno Haible  <bruno@clisp.org>
11058         findprog-in: Set errno when the search fails.
11059         * lib/findprog-in.c: Include <errno.h>.
11060         (find_in_given_path): Set errno before returning NULL.
11061         * lib/findprog.h (find_in_given_path): Update comment accordingly.
11062         Define the term "slash".
11064 2019-09-15  Bruno Haible  <bruno@clisp.org>
11066         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
11067         * modules/findprog (Depends-on): Add access.
11068         * modules/findprog-lgpl (Depends-on): Likewise.
11069         * modules/findprog-in (Depends-on): Likewise.
11071 2019-09-15  Bruno Haible  <bruno@clisp.org>
11073         access: Add tests.
11074         * tests/test-access.c: New file.
11075         * modules/access-tests: New file.
11077         access: New module.
11078         * lib/unistd.in.h (access): New declaration.
11079         * lib/access.c: New file.
11080         * m4/access.m4: New file.
11081         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
11082         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
11083         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
11084         REPLACE_ACCESS.
11085         * modules/access: New file.
11086         * tests/test-unistd-c++.cc (access): Check signature.
11087         * doc/posix-functions/access.texi: Mention the new module.
11089 2019-09-15  Bruno Haible  <bruno@clisp.org>
11091         fcntl-h: Fix compilation error of creat.c on MSVC.
11092         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
11093         defined.
11095 2019-09-15  Bruno Haible  <bruno@clisp.org>
11097         creat: Add tests.
11098         * tests/test-creat.c: New file, based on tests/test-open.h.
11099         * modules/creat-tests: New file.
11101         creat: New module.
11102         * lib/fcntl.in.h (creat): New declaration.
11103         * lib/creat.c: New file, based on lib/open.c.
11104         * m4/creat.m4: New file.
11105         * m4/open-slash.m4: New file, extracted from m4/open.m4.
11106         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
11107         Invoke gl_OPEN_TRAILING_SLASH_BUG.
11108         * modules/open (Files): Add m4/open-slash.m4.
11109         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
11110         REPLACE_CREAT.
11111         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
11112         * modules/creat: New file.
11113         * tests/test-fcntl-h-c++.cc (creat): Check signature.
11114         * doc/posix-functions/creat.texi: Mention the new module.
11116 2019-09-15  Bruno Haible  <bruno@clisp.org>
11118         open tests: Enhance test.
11119         * tests/test-open.h (test_open): Test the creation of an executable
11120         regular file. Also improve initial cleanup.
11122 2019-09-15  Bruno Haible  <bruno@clisp.org>
11124         intprops tests: Avoid build failure with HP-UX cc.
11125         * tests/test-intprops.c: Disable a check that makes HP cc choke with
11126         "error 4018: Macro param too large after substitution - use -H option.".
11128 2019-09-14  Bruno Haible  <bruno@clisp.org>
11130         Make autoconf tests work with -Werror=implicit-function-declaration.
11131         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
11132         towupper() declaration.
11133         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
11134         declaration.
11136 2019-09-14  Bruno Haible  <bruno@clisp.org>
11138         findprog-in: Better mimic the system on native Windows.
11139         Reported by Paul Smith <psmith@gnu.org>.
11140         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
11141         non-empty suffixes when the file name already contains a '.'.
11143 2019-09-10  Bruno Haible  <bruno@clisp.org>
11145         wctob: Fix autoconf test.
11146         Based on patch by Florian Weimer <fweimer@redhat.com>.
11147         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
11149 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
11151         xhash: provide hash_xinitialize.
11152         Suggested by Egor Pugin <egor.pugin@gmail.com>
11153         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
11154         * modules/xhash, lib/xhash.c: New.
11155         * lib/hash.h (hash_xinitialize): New.
11157 2019-09-09  Bruno Haible  <bruno@clisp.org>
11159         findprog-in: Make exec optimization optional.
11160         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
11161         (find_in_given_path): Add optimize_for_exec parameter.
11162         * lib/findprog-in.c (find_in_given_path): Likewise.
11164 2019-09-08  Bruno Haible  <bruno@clisp.org>
11166         Add option to assume the best, not the worst, when cross-compiling.
11167         Suggested by Jonas Termansen <sortie@maxsi.org>.
11168         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
11169         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
11170         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
11171         lt_cv_sys_argz_works.
11172         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
11173         ac_cv_func_calloc_0_nonnull.
11174         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
11175         --enable-cross-guesses for gl_cv_func_realpath_works.
11176         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
11177         gl_cv_func_cbrtl_ieee.
11178         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
11179         gl_cv_func_ceil_ieee.
11180         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
11181         gl_cv_func_ceilf_ieee.
11182         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
11183         gl_cv_func_ceill_ieee.
11184         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
11185         ac_cv_func_chown_works.
11186         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
11187         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
11188         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
11189         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
11190         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
11191         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
11192         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
11193         gl_cv_func_expl_works.
11194         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
11195         gl_cv_func_expm1_ieee.
11196         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
11197         gl_cv_func_expm1l_works.
11198         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
11199         gl_cv_func_open_directory_works.
11200         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
11201         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
11202         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
11203         gl_cv_func_fchownat_empty_filename_works.
11204         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
11205         gl_cv_func_fdopendir_works.
11206         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
11207         gl_cv_func_floor_ieee.
11208         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
11209         gl_cv_func_floorf_ieee.
11210         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
11211         gl_cv_func_fma_works.
11212         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
11213         gl_cv_func_fmaf_works.
11214         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
11215         gl_cv_func_fmal_works.
11216         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
11217         gl_cv_func_fmod_ieee.
11218         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
11219         gl_cv_func_fmodf_ieee.
11220         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
11221         gl_cv_func_fmodl_ieee.
11222         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
11223         gl_cv_func_fpurge_works.
11224         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
11225         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
11226         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
11227         gl_cv_func_getcwd_null.
11228         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
11229         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
11230         gl_cv_func_working_getdelim.
11231         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
11232         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
11233         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
11234         gl_cv_func_getgroups_works.
11235         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
11236         am_cv_func_working_getline.
11237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
11238         for gl_cv_func_getopt_gnu.
11239         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
11240         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
11241         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
11242         gl_cv_func_hypot_ieee.
11243         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
11244         gl_cv_func_hypotf_ieee.
11245         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
11246         gl_cv_func_hypotl_ieee.
11247         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
11248         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
11249         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
11250         gl_cv_func_link_works.
11251         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
11252         gl_cv_func_linkat_slash.
11253         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
11254         gl_cv_func_log_ieee.
11255         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
11256         gl_cv_func_logf_ieee.
11257         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
11258         gl_cv_func_logl_works.
11259         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
11260         gl_cv_func_log10_ieee.
11261         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
11262         gl_cv_func_log10f_ieee.
11263         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
11264         gl_cv_func_log10l_works.
11265         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
11266         gl_cv_func_log1p_ieee.
11267         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
11268         gl_cv_func_log1pf_ieee.
11269         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
11270         gl_cv_func_log1pl_ieee.
11271         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
11272         gl_cv_func_log2_ieee.
11273         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
11274         gl_cv_func_log2f_ieee.
11275         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
11276         --enable-cross-guesses for
11277         gl_cv_func_lstat_dereferences_slashed_symlink.
11278         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
11279         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
11280         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
11281         gl_cv_C_locale_sans_EILSEQ.
11282         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
11283         gl_cv_func_memchr_works.
11284         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
11285         gl_cv_func_memmem_works_always.
11286         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
11287         gl_cv_func_memmem_works_fast.
11288         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
11289         gl_cv_func_mkdir_trailing_slash_works,
11290         gl_cv_func_mkdir_trailing_dot_works.
11291         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
11292         gl_cv_func_mkfifo_works.
11293         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
11294         gl_cv_func_mknod_works.
11295         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
11296         gl_cv_func_working_mkstemp.
11297         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
11298         gl_cv_func_working_mktime.
11299         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
11300         gl_cv_func_modf_ieee.
11301         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
11302         gl_cv_func_modff_ieee.
11303         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
11304         gl_cv_func_modfl_ieee.
11305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
11306         gl_cv_func_nanosleep.
11307         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
11308         gl_cv_func_perror_works.
11309         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
11310         gl_cv_func_printf_sizes_c99.
11311         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
11312         gl_cv_func_printf_infinite.
11313         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
11314         gl_cv_func_printf_infinite_long_double.
11315         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
11316         gl_cv_func_printf_directive_a.
11317         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
11318         gl_cv_func_printf_directive_f.
11319         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
11320         gl_cv_func_printf_flag_zero.
11321         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
11322         gl_cv_func_printf_enomem.
11323         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
11324         gl_cv_func_snprintf_truncation_c99.
11325         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
11326         gl_cv_func_snprintf_retval_c99.
11327         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
11328         gl_cv_func_snprintf_directive_n.
11329         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
11330         gl_cv_func_vsnprintf_zerosize_c99.
11331         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
11332         gl_cv_func_pselect_detects_ebadf.
11333         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11334         Obey --enable-cross-guesses for
11335         gl_cv_pthread_rwlock_rdlock_prefer_writer.
11336         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
11337         gl_cv_func_ptsname_sets_errno.
11338         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
11339         gl_cv_func_svid_putenv.
11340         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
11341         gl_cv_func_readlink_works.
11342         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
11343         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
11344         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
11345         gl_cv_func_re_compile_pattern_working.
11346         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
11347         gl_cv_func_remainder_ieee.
11348         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
11349         gl_cv_func_remainderf_ieee.
11350         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
11351         gl_cv_func_remainderl_ieee.
11352         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
11353         gl_cv_func_rintl_works.
11354         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
11355         gl_cv_func_rmdir_works.
11356         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
11357         gl_cv_func_round_ieee.
11358         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
11359         gl_cv_func_roundf_ieee.
11360         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
11361         gl_cv_func_roundl_ieee.
11362         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
11363         gl_cv_func_select_detects_ebadf.
11364         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
11365         gl_cv_func_setenv_works.
11366         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
11367         gl_cv_func_unsetenv_works.
11368         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
11369         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
11370         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
11371         gl_cv_func_sleep_works.
11372         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
11373         gl_cv_func_stat_file_slash.
11374         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
11375         gl_cv_func_stpncpy.
11376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
11377         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
11378         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
11379         gl_cv_func_strcasestr_linear.
11380         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
11381         gl_cv_func_working_strerror.
11382         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
11383         gl_cv_func_strerror_0_works.
11384         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
11385         --enable-cross-guesses for gl_cv_func_strerror_r_works.
11386         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
11387         gl_cv_func_strstr_works_always.
11388         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
11389         gl_cv_func_strstr_linear.
11390         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
11391         gl_cv_func_strtod_works.
11392         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
11393         gl_cv_func_strtold_works.
11394         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
11395         gl_cv_func_symlink_works.
11396         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
11397         gl_cv_func_symlinkat_works.
11398         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
11399         gl_cv_func_trunc_ieee.
11400         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
11401         gl_cv_func_truncf_ieee.
11402         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
11403         gl_cv_func_truncl_ieee.
11404         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
11405         gl_cv_func_tzset_clobber.
11406         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
11407         gl_cv_func_ungetc_works.
11408         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
11409         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
11410         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
11411         gl_cv_func_usleep_works.
11412         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
11413         gl_cv_func_futimesat_works.
11414         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
11415         gl_cv_func_working_utimes.
11416         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
11417         gl_cv_func_wcwidth_works.
11418         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
11419         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
11420         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
11421         links for testing. Obey --enable-cross-guesses for
11422         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
11423         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
11425 2019-09-08  Bruno Haible  <bruno@clisp.org>
11427         Clarify that cross-compilation guesses are guesses.
11428         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
11429         cross-compiling.
11431 2019-09-08  Bruno Haible  <bruno@clisp.org>
11433         chown: Fix configure output (regression from 2019-03-23).
11434         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
11435         gl_cv_func_chown_follows_symlink variable.
11437 2019-09-08  Bruno Haible  <bruno@clisp.org>
11439         findprog-in: New module.
11440         Suggested by Paul Smith <psmith@gnu.org>.
11441         * lib/findprog.h (find_in_given_path): New declaration.
11442         * lib/findprog-in.c: New file, based on lib/findprog.c.
11443         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
11444         * modules/findprog-in: New file.
11446 2019-09-08  Bruno Haible  <bruno@clisp.org>
11448         findprog: Remove unused dependency.
11449         * modules/findprog (Depends-on): Remove strdup.
11451 2019-09-08  Bruno Haible  <bruno@clisp.org>
11453         findprog: Remove test that is obsolete since 2006-04-24.
11454         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
11456 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11458         bitset: style changes
11459         * lib/bitset/vector.c (vbitset_resize): Factor computation.
11460         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
11461         xzalloc to xcalloc.
11462         Suggested by Paul Eggert.
11464 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11466         bitset: check memory allocation
11467         Reported by 江 祖铭 (Zu-Ming Jiang).
11468         With help from Paul Eggert.
11469         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
11470         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
11471         instead of realloc.
11472         When shrinking, accept failures.
11473         * lib/bitset/vector.c (vbitset_resize): Likewise.
11475 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11477         scratch_buffer: sync from glibc
11478         * config/srclist.txt: Add the scratch_buffer source
11479         code from glibc, since these should be in sync.
11480         Autoupdate.
11482 2019-09-07  Bruno Haible  <bruno@clisp.org>
11484         doc: Update for glibc 2.30.
11485         * doc/glibc-functions/gettid.texi: New file.
11486         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
11487         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
11488         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
11489         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
11490         * doc/glibc-functions/sem_clockwait.texi: New file.
11491         * doc/glibc-functions/tgkill.texi: New file.
11492         * doc/glibc-functions/twalk_r.texi: New file.
11493         * doc/gnulib.texi: Include them.
11494         (Glibc semaphore.h): New section.
11495         * doc/pastposix-functions/h_errno.texi: Update.
11496         * doc/posix-functions/*.texi: Likewise.
11498 2019-09-06  Bruno Haible  <bruno@clisp.org>
11500         symlink tests: Avoid test failure on Linux with Lustre file system.
11501         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
11502         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
11503         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
11505 2019-09-01  Bruno Haible  <bruno@clisp.org>
11507         gitsub.sh: Add support for shallow-cloning of subdirectories.
11508         * top/gitsub.sh (func_usage): Document allowed git options with
11509         'git pull'.
11510         (func_pull): Accept GIT_OPTIONS argument.
11511         (pull): Parse git options before complaining about too many arguments.
11512         Pass the git options to func_pull.
11514 2019-08-29  Bruno Haible  <bruno@clisp.org>
11516         lock: Fix cross-compilation guesses.
11517         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11518         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
11519         platforms.
11521 2019-08-28  Bruno Haible  <bruno@clisp.org>
11523         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
11524         Reported by Martin Storsjö <martin@martin.st> in
11525         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
11526         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
11527         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
11528         files from GCC 6 or newer, use an override through '#define', because
11529         the inline definitions in the platform's <cmath> cannot be overridden
11530         in another way.
11532 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11534         Revert macOS INT_MULTIPLY_WRAPV patch
11535         Problem reported by Bruno Haible in:
11536         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
11537         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
11538         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11539         Go back to working around the Clang bug on macOS.
11541 2019-08-27  Bruno Haible  <bruno@clisp.org>
11543         libtool-next-version: Fix error output.
11544         * build-aux/libtool-next-version (func_fatal_error): Fix the program
11545         name.
11547 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11549         Speed up INT_MULTIPLY_WRAPV on macOS
11550         Assume that __builtin_mul_overflow works OK with Clang on macOS.
11551         Mattias Engdegård says it’s safe to assume the relevant library
11552         is always available there.
11553         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
11554         New temporary internal macro.
11555         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11556         No need to work around the Clang bug on macOS.
11558 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11560         intprops.h, verify.h: port better to clang
11561         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11562         with Clang.  Problem reported privately by Mattias Engdegård.
11563         Also, insulate intprops.h and verify.h better against each other’s
11564         definitions of __has_builtin on non-Clang hosts.
11565         * lib/intprops.h (__has_builtin): Define a temporary substitute
11566         if __has_builtin is not already defined.
11567         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11568         New temporary internal macros.
11569         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
11570         Now two separate macros, replacing the old
11571         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
11572         __builtin_mul_overflow is like the rest.  All uses changed.
11573         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
11574         Adjust to above changes.
11575         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
11576         longer relevant.  All uses changed.
11577         * lib/verify.h (__has_builtin): Treat like intprops.h,
11578         so that the two .h files do not collide with each other.
11579         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
11580         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
11582 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11584         intprops: say why not Clang __builtin_add_overflow
11585         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
11586         Mention Clang in comment, responding to a query from
11587         Mattias Engdegård.
11589 2019-08-24  Bruno Haible  <bruno@clisp.org>
11591         doc: Document most of the files outside of modules.
11592         * doc/gnulib.texi (Build Infrastructure Files,
11593         Release Management Files): New chapters.
11595 2019-08-24  Bruno Haible  <bruno@clisp.org>
11597         bootstrap: Keep in sync with the 'gettext' module.
11598         Reported by Assaf Gordon in
11599         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
11600         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
11601         * build-aux/po/remove-potcdate.sin: Likewise.
11603 2019-08-24  Bruno Haible  <bruno@clisp.org>
11605         crypto/gc-sha512: Add tests.
11606         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
11607         * modules/crypto/gc-sha512-tests: New file.
11609         crypto/gc-sha256: Add tests.
11610         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
11611         * modules/crypto/gc-sha256-tests: New file.
11613         crypto/gc-sha256, crypto/gc-sha512: New modules.
11614         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
11615         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
11616         (MAX_DIGEST_SIZE): Set to 64.
11617         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
11618         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
11619         (gc_sha256, gc_sha512): New functions.
11620         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
11621         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
11622         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
11624 2019-08-24  Bruno Haible  <bruno@clisp.org>
11626         crypto/gc-sha1 tests: Improve output when the test fails.
11627         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
11628         output.
11630 2019-08-24  Bruno Haible  <bruno@clisp.org>
11632         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
11633         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
11634         LIBGCRYPT_HAS_MD_SM3.
11635         * lib/gc-libgcrypt.c: Include sm3.h.
11636         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
11637         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
11638         implementation if libgcrypt does not support SM3.
11640 2019-08-24  Bruno Haible  <bruno@clisp.org>
11642         crypto/gc-md2: Optimize and clarify code.
11643         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
11644         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
11645         is not needed.
11647 2019-08-24  Bruno Haible  <bruno@clisp.org>
11649         crypto/gc-md2: Add comment.
11650         * lib/gc-libgcrypt.c: Add comment.
11652 2019-08-24  Bruno Haible  <bruno@clisp.org>
11654         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
11655         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
11656         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
11657         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
11658         variable.
11660 2019-08-24  Bruno Haible  <bruno@clisp.org>
11662         crypto/gc: Fix link error with --with-libgcrypt.
11663         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
11664         AC_LIB_HAVE_LINKFLAGS invocation.
11666 2019-08-24  Bruno Haible  <bruno@clisp.org>
11668         crypto/gc: Access the module indicators correctly.
11669         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
11670         * lib/gc-libgcrypt.c: Likewise.
11672 2019-08-24  Bruno Haible  <bruno@clisp.org>
11674         crypto/gc: Fix configuration with --with-libgcrypt.
11675         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
11676         * modules/crypto/gc (Files): Add it.
11677         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
11679 2019-08-24  Bruno Haible  <bruno@clisp.org>
11681         Remove unused file.
11682         * m4/stat-macros.m4: Remove file.
11684 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11686         New strip-trailing-space option for srclist-update
11687         * config/srclist-update (fixfile): Support new option.
11688         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
11689         Use it.
11691 2019-08-20  Eric Blake  <eblake@redhat.com>
11693         accept4: Support SOCK_NONBLOCK, if defined
11694         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
11696         accept4: Fix compilation when native accept4() exists.
11697         Reported by Richard W.M. Jones <rjones@redhat.com> in
11698         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
11699         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
11701 2019-08-18  Bruno Haible  <bruno@clisp.org>
11703         Defeat -flto GCC optimization in math autoconf tests.
11704         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
11705         at <https://savannah.gnu.org/bugs/?56109>.
11706         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
11707         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
11708         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11709         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11710         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11711         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
11712         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11713         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11714         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
11715         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11716         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11717         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11719 2019-08-17  Bruno Haible  <bruno@clisp.org>
11721         windows-spin: Implement declared functions.
11722         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
11723         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
11724         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
11725         name.
11727 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11729         intprops: port to Oracle Developer Studio 12.6
11730         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
11731         typos that were in a section not compiled by GCC.
11733 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11735         intprops: support uchar, ushort _WRAPV dests
11736         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
11737         when __builtin_add_overflow etc. and _Generic are not used.
11738         (_GL_INT_OP_WRAPV): Use it to support destinations that
11739         are unsigned char or unsigned short, even in compilers
11740         that lack __typeof__ and are not C11-compatible.
11742         intprops: pacify picky GCC
11743         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
11744         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
11745         possibly-incorrect result.
11746         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
11747         about (A) used as a boolean, when A is an expression like 3 * 4.
11749         intprops: support unsigned *_WRAPV results
11750         Add support for unsigned, unsigned long, and unsigned long long
11751         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
11752         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
11753         bug with unsigned inputs reported by Eli Zaretskii in:
11754         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
11755         * config/srclist.txt: Break the glibc connection for intprops.h
11756         temporarily, while more testing is done in Gnulib-using apps.
11757         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
11758         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
11759         Support unsigned results no narrower than unsigned int.  Report
11760         overflow correctly if some arguments are unsigned.
11761         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
11762         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
11763         the right thing with narrow args.
11764         (_GL_INT_OP_CALC1): Remove.  All callers removed.
11765         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
11766         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
11767         * tests/test-intprops.c: Check for bugs and test new behavior.
11769 2019-08-14  Bruno Haible  <bruno@clisp.org>
11771         get_progname_of: New module.
11772         * lib/get_progname_of.h: New file.
11773         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
11774         * lib/getprogname.c (getprogname): Tweak coding style.
11775         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
11776         * modules/get_progname_of: New file.
11778 2019-08-14  Bruno Haible  <bruno@clisp.org>
11780         get_ppid_of: New module.
11781         * lib/get_ppid_of.h: New file.
11782         * lib/get_ppid_of.c: New file.
11783         * modules/get_ppid_of: New file.
11785 2019-08-13  Bruno Haible  <bruno@clisp.org>
11787         libtextstyle-optional tests: Support the NO_COLOR environment variable.
11788         * tests/test-libtextstyle.c (main): Do not emit styling when the
11789         environment variable NO_COLOR is set.
11791 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11793         verify: improve diagnostic quality in recent GCC
11794         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
11795         useful line number containing the top-level caller of the macro.
11796         So, bring back the older way of issuing a diagnostic containing
11797         the top-level call’s arg, so that it is easier to diagnose
11798         ‘verify’ failures with recent GCC.
11799         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
11800         Bring back DIAGNOSTIC arg.  All callers changed.
11801         (verify): Just use _GL_VERIFY.
11803 2019-08-11  Bruno Haible  <bruno@clisp.org>
11805         localcharset: Add more aliases for OS/2.
11806         Based on patch by KO Myung-Hun <komh78@gmail.com> in
11807         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
11808         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
11810 2019-08-10  Eric Blake  <eblake@redhat.com>
11812         configmake: Update advice on usage.
11813         * modules/configmake (Include): No longer necessary to include
11814         last, since configmake.h itself worries about collision avoidance.
11816 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
11818         parse-datetime: fix 'T' military timezone handling
11819         * lib/parse-datetime.y (zone):
11820         follow-up to the previous commit: the 'T' case is handled outside the
11821         conversion table (used as either military timezone UTC-7 or ISO8601
11822         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
11823         timezone letters.
11825 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11827         parse-datetime: fix military timezone letters
11828         Problem and trivial fix reported by Neil Hoggarth in:
11829         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
11830         * lib/parse-datetime.y (military_table):
11831         Do it the right way, not the RFC 822 way.
11833 2019-08-08  Eric Blake  <eblake@redhat.com>
11835         configmake: Avoid namespace pollution issue on mingw.
11836         * modules/configmake (Makefile.am): If the project uses
11837         <winsock2.h>, include that header before defining DATADIR.
11839 2019-07-28  Bruno Haible  <bruno@clisp.org>
11841         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
11842         * tests/test-mbrtowc.c (main): Fix expected value of wc.
11844 2019-07-24  Bruno Haible  <bruno@clisp.org>
11846         pthread-h: Fix definitions of types and macros on mingw.
11847         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
11848         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
11849         not in use.
11850         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
11851         'pthread-once' is not in use.
11852         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
11853         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
11854         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
11855         in use.
11856         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
11857         Define also when module 'pthread-rwlock' is not in use.
11858         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
11859         also when module 'pthread-cond' is not in use.
11860         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
11861         'pthread-tss' is not in use.
11862         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
11863         use.
11865 2019-07-24  Simon Josefsson  <simon@josefsson.org>
11867         crypto/gc: Cope with libgcrypt without SM3.
11868         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
11870 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
11872         backupfile: fix resource leak on memory failure
11873         Problem found by Coverity (CID 1484214).
11874         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
11876 2019-07-22  Bruno Haible  <bruno@clisp.org>
11878         Avoid missing-declarations warning in various tests.
11879         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
11880         test6, test_optional, test7, test8, test9, test10, test11, test12,
11881         test13, test14, test15, test_fun): Declare static.
11882         * tests/test-cnd.c (test_cnd_wait): Likewise.
11883         * tests/test-cond.c (test_cond): Likewise.
11885 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
11887         pthread tests: Avoid missing-declarations warning.
11888         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
11890 2019-07-19  Bruno Haible  <bruno@clisp.org>
11892         parse-datetime: Avoid warnings from bison versions >= 3.3.
11893         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
11894         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
11896 2019-07-19  Bruno Haible  <bruno@clisp.org>
11898         parse-datetime: Require Bison 2.4 or newer.
11899         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
11900         Code taken from gettext's intl.m4.
11901         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
11902         of YACC.
11904 2019-07-19  Bruno Haible  <bruno@clisp.org>
11906         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
11907         * lib/areadlink-with-size.c: Include <string.h>.
11908         * lib/areadlinkat-with-size.c: Likewise.
11909         * lib/xgethostname.c: Likewise.
11910         * lib/xgetdomainname.c: Likewise.
11912 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
11914         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
11915         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
11916         "%pure-parser".  The former is available since Bison 2.3b (2008),
11917         while the latter is marked as obsolete since version 3.4 (May 2019).
11919 2019-07-16  Bruno Haible  <bruno@clisp.org>
11921         update-copyright: Make it work again (regression from 2019-06-15).
11922         Reported by Brian C. Lane <bcl@redhat.com>.
11923         * build-aux/update-copyright: Add back the -0777, -p, -i options.
11925 2019-07-14  Bruno Haible  <bruno@clisp.org>
11927         doc: Update info about <pthread.h>.
11928         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
11929         of 'pthread'.
11931 2019-07-14  Bruno Haible  <bruno@clisp.org>
11933         pthread_sigmask tests: Use new multithread modules.
11934         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
11935         glthread/thread.h.
11936         (main_thread, killer_thread): Change type to pthread_t.
11937         (main): Update accordingly.
11938         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
11939         thread.
11941 2019-07-14  Bruno Haible  <bruno@clisp.org>
11943         pthread-tss: Add tests.
11944         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
11945         tests/test-tss.c.
11946         * modules/pthread-tss-tests: New file.
11948 2019-07-14  Bruno Haible  <bruno@clisp.org>
11950         pthread-cond: Add tests.
11951         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
11952         tests/test-cnd.c.
11953         * modules/pthread-cond-tests: New file.
11955 2019-07-14  Bruno Haible  <bruno@clisp.org>
11957         pthread-rwlock: Add tests.
11958         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
11959         * modules/pthread-rwlock-tests: New file.
11961 2019-07-14  Bruno Haible  <bruno@clisp.org>
11963         pthread-mutex: Add tests.
11964         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
11965         tests/test-mtx.c.
11966         * modules/pthread-mutex-tests: New file.
11968 2019-07-14  Bruno Haible  <bruno@clisp.org>
11970         pthread-once: Add tests.
11971         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
11972         tests/test-call_once.c.
11973         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
11974         tests/test-mtx.c.
11975         * modules/pthread-once-tests: New file.
11977 2019-07-14  Bruno Haible  <bruno@clisp.org>
11979         pthread-thread: Add tests.
11980         * tests/test-pthread-thread.c: New file, based on
11981         tests/test-thread_create.c and tests/test-thrd_create.c.
11982         * modules/pthread-thread-tests: New file.
11984 2019-07-14  Bruno Haible  <bruno@clisp.org>
11986         pthread: Turn into a convenience module.
11987         * lib/pthread.in.h: Remove declarations for extern inline functions.
11988         * lib/pthread.c: Remove file.
11989         * modules/pthread (Files): Remove it.
11990         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
11991         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
11992         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
11993         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
11994         GNULIB_PTHREAD.
11995         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
11997 2019-07-14  Bruno Haible  <bruno@clisp.org>
11999         pthread-spin: New module.
12000         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
12001         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
12002         inline definitions.
12003         * lib/pthread-spin.c: New file.
12004         * m4/pthread-spin.m4: New file.
12005         * modules/pthread-spin: New file.
12006         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
12007         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
12008         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
12009         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
12010         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
12012 2019-07-14  Bruno Haible  <bruno@clisp.org>
12014         pthread-tss: New module.
12015         * lib/pthread-tss.c: New file.
12016         * m4/pthread-tss.m4: New file.
12017         * modules/pthread-tss: New file.
12018         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
12019         * doc/posix-functions/pthread_setspecific.texi: Likewise.
12020         * doc/posix-functions/pthread_getspecific.texi: Likewise.
12021         * doc/posix-functions/pthread_key_delete.texi: Likewise.
12023 2019-07-14  Bruno Haible  <bruno@clisp.org>
12025         pthread-cond: New module.
12026         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
12027         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
12028         * lib/pthread-cond.c: New file.
12029         * m4/pthread-cond.m4: New file.
12030         * modules/pthread-cond: New file.
12031         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
12032         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
12033         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
12034         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
12035         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
12036         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
12037         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
12038         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
12040 2019-07-14  Bruno Haible  <bruno@clisp.org>
12042         pthread-rwlock: New module.
12043         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
12044         * m4/pthread-rwlock.m4: New file.
12045         * modules/pthread-rwlock: New file.
12046         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
12047         and the Android problem.
12048         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
12049         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
12050         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
12051         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
12052         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
12053         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
12054         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
12055         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
12056         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
12057         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
12059 2019-07-14  Bruno Haible  <bruno@clisp.org>
12061         pthread-mutex: New module.
12062         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
12063         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
12064         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
12065         pthread_mutex_unlock): Remove inline definitions.
12066         * lib/pthread-mutex.c: New file.
12067         * m4/pthread-mutex.m4: New file.
12068         * modules/pthread-mutex: New file.
12069         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
12070         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
12071         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
12072         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
12073         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12074         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12075         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
12076         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
12077         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
12078         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
12079         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
12080         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
12082 2019-07-14  Bruno Haible  <bruno@clisp.org>
12084         pthread-once: New module.
12085         * lib/pthread-once.c: New file.
12086         * m4/pthread-once.m4: New file.
12087         * modules/pthread-once: New file.
12088         * doc/posix-functions/pthread_once.texi: Mention the new module.
12090 2019-07-14  Bruno Haible  <bruno@clisp.org>
12092         pthread-thread: New module.
12093         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
12094         inline definitions.
12095         * lib/pthread-thread.c: New file.
12096         * m4/pthread-thread.m4: New file.
12097         * modules/pthread-thread: New file.
12098         * doc/posix-functions/pthread_create.texi: Mention the new module.
12099         * doc/posix-functions/pthread_attr_init.texi: Likewise.
12100         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
12101         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
12102         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
12103         * doc/posix-functions/pthread_self.texi: Likewise.
12104         * doc/posix-functions/pthread_equal.texi: Likewise.
12105         * doc/posix-functions/pthread_detach.texi: Likewise.
12106         * doc/posix-functions/pthread_join.texi: Likewise.
12107         * doc/posix-functions/pthread_exit.texi: Likewise.
12109 2019-07-14  Bruno Haible  <bruno@clisp.org>
12111         pthread-h: Prepare for adding new modules.
12112         * lib/pthread.in.h: Define the types and macros for each of the
12113         facilities separately.
12114         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
12115         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
12116         HAVE_PTHREAD_PROCESS_SHARED.
12117         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
12118         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
12119         HAVE_PTHREAD_PROCESS_SHARED.
12120         * modules/pthread-h (Makefile.am): Substitute
12121         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
12122         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
12124 2019-07-14  Bruno Haible  <bruno@clisp.org>
12126         pthread-h: Add declarations of essential pthread functions.
12127         * lib/pthread.in.h: Include snippets.
12128         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
12129         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
12130         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
12131         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
12132         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
12133         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
12134         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
12135         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
12136         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
12137         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
12138         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
12139         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
12140         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
12141         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
12142         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
12143         pthread_key_create, pthread_setspecific, pthread_getspecific,
12144         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
12145         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
12146         declarations.
12147         (pthread_mutex_timedlock): Move declaration.
12148         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
12149         declared.
12150         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
12151         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
12152         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
12153         HAVE_* and REPLACE_* variables for the new functions.
12154         * modules/pthread-h (Depends-on): Add snippet/c++defs,
12155         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
12156         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
12157         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
12158         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
12159         variables for the new functions. Split the sed script, to avoid the
12160         limit of 99 commands of HP-UX sed.
12161         * tests/test-pthread-c++.cc: Check the signature of the new functions.
12163 2019-07-14  Bruno Haible  <bruno@clisp.org>
12165         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
12166         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
12167         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
12168         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
12169         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
12170         * modules/pthread-h (Depends-on): Add threadlib.
12171         (Link): Change to $(LIBTHREAD).
12172         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
12173         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
12175 2019-07-14  Bruno Haible  <bruno@clisp.org>
12177         pthread-h: Add C++ tests.
12178         * tests/test-pthread-c++.cc: New file.
12179         * modules/pthread-h-c++-tests: New file.
12181 2019-07-14  Bruno Haible  <bruno@clisp.org>
12183         pthread-h: Add tests.
12184         * tests/test-pthread.c: New file.
12185         * modules/pthread-h-tests: New file.
12187 2019-07-14  Bruno Haible  <bruno@clisp.org>
12189         pthread-h: New module.
12190         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
12191         is 1.
12192         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
12193         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
12194         <pthread.h> pollutes the namespace; instead, prepare for generating a
12195         pthread.h always. Substitute HAVE_PTHREAD_H here.
12196         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
12197         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
12198         * modules/pthread-h: New file, based on modules/pthread.
12199         * modules/pthread: Rely on 'pthread-h'.
12200         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
12201         Update.
12202         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
12203         pthread.
12205 2019-07-14  Bruno Haible  <bruno@clisp.org>
12207         sched_yield: New module.
12208         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
12209         (sched_yield): New declaration.
12210         * lib/sched_yield.c: New file.
12211         * m4/sched_yield.m4: New file.
12212         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
12213         provide a replacement sched.h always. Test whether sched_yield is
12214         declared.
12215         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
12216         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
12217         (Makefile.am): Provide a replacement sched.h always. Substitute
12218         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
12219         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
12220         * modules/sched_yield: New file.
12221         * doc/posix-functions/sched_yield.texi: Mention the new module.
12223 2019-07-14  Bruno Haible  <bruno@clisp.org>
12225         windows-spin: New module.
12226         * lib/windows-spin.h: New file.
12227         * lib/windows-spin.c: New file.
12228         * modules/windows-spin: New file.
12230 2019-07-14  Bruno Haible  <bruno@clisp.org>
12232         windows-timedrwlock: New module.
12233         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
12234         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
12235         windows-cond.c.
12236         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
12237         redefinition conflict with windows-timedrwlock.h.
12238         * modules/windows-timedrwlock: New file.
12240 2019-07-14  Bruno Haible  <bruno@clisp.org>
12242         windows-rwlock: New module.
12243         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
12244         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
12245         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
12246         windows-initguard.h.
12247         (gl_rwlock_t): Define using glwthread_rwlock_t.
12248         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
12249         (glthread_rwlock_init): Define using glwthread_rwlock_init.
12250         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
12251         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
12252         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
12253         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
12254         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
12255         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
12256         glthread_rwlock_destroy_func): Remove declarations.
12257         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
12258         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
12259         gl_waitqueue_notify_all, glthread_rwlock_init_func,
12260         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
12261         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
12262         functions.
12263         * modules/windows-rwlock: New file.
12264         * modules/lock (Depends-on): Add windows-rwlock.
12266 2019-07-14  Bruno Haible  <bruno@clisp.org>
12268         windows-thread: Add support for creating a thread in detached state.
12269         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
12270         (glwthread_thread_create): Add attr argument.
12271         * lib/windows-thread.c (glwthread_thread_create): Likewise.
12272         * lib/glthread/thread.h (glthread_create): Update.
12273         * lib/thrd.c (thrd_create): Update.
12275 2019-07-14  Bruno Haible  <bruno@clisp.org>
12277         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
12278         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
12279         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
12280         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
12281         * lib/windows-mutex.h: Update.
12282         * lib/windows-recmutex.h: Likewise.
12283         * lib/windows-timedmutex.h: Likewise.
12284         * lib/windows-timedrecmutex.h: Likewise.
12285         * lib/windows-cond.h: Likewise.
12286         * lib/glthread/lock.h: Likewise.
12287         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
12288         lib/windows-spinlock.h.
12289         * modules/windows-recmutex (Files): Likewise.
12290         * modules/windows-timedmutex (Files): Likewise.
12291         * modules/windows-timedrecmutex (Files): Likewise.
12292         * modules/windows-cond (Files): Likewise.
12293         * modules/threads-h (Files): Likewise.
12295 2019-07-14  Bruno Haible  <bruno@clisp.org>
12297         doc: Fix info about pthread API in HP-UX.
12298         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
12300 2019-07-14  Bruno Haible  <bruno@clisp.org>
12302         threads-h: Fix generation of threads.h.
12303         * modules/threads-h (Makefile.am): Insert the required header file
12304         snippets.
12306 2019-07-09  Bruno Haible  <bruno@clisp.org>
12308         striconveh test: Fix a compilation failure when iconv is not available.
12309         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12310         * tests/test-striconveh.c (main): Move iconv_close invocations inside
12311         HAVE_ICONV.
12313 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
12315         argmatch: adjust columns for help2man.
12316         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
12317         requires column 20 or more, return 20.
12319 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12321         areadlink-with-size: avoid realloc when size==0
12322         * lib/areadlink-with-size.c (areadlink_with_size):
12323         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
12324         Reallocate at the end to the actual size, to avoid memory waste,
12325         as suggested by Bruno Haible.  But when the guessed size is zero -
12326         useful when the size is unknown - do the initial small readlink
12327         into the stack, to avoid that realloc in the usual case.
12329 2019-07-06  Pádraig Brady  <P@draigBrady.com>
12331         areadlink-with-size: guess a buffer size with 0 size
12332         The size is usually taken from st_size, which can be zero,
12333         resulting in inefficient operation.
12334         Instead let zero select an initial memory allocation
12335         of 128 bytes, which most symlinks fit within.
12336         * lib/areadlink-with-size.c (areadlink_with_size):
12337         Start with a 128 byte buffer, for SIZE == 0.
12338         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
12340 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
12342         Replace manually crafted hex regexes with [:xdigit:]
12343         * build-aux/gitlog-to-changelog (parse_amend_file)
12344         (git_dir_option):
12345         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
12346         This patch is backported from Emacs (Bug#36167).
12348 2019-07-06  Bruno Haible  <bruno@clisp.org>
12350         error: Fix documentation.
12351         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
12352         module provides.
12353         * doc/glibc-functions/error_message_count.texi: Likewise.
12354         * doc/glibc-functions/error_one_per_line.texi: Likewise.
12355         * doc/glibc-functions/error_print_progname.texi: Likewise.
12357 2019-07-06  Bruno Haible  <bruno@clisp.org>
12359         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
12360         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
12361         and older is unsupported.
12362         * doc/**/*.texi: Update.
12364 2019-07-06  Bruno Haible  <bruno@clisp.org>
12366         doc: Remove documentation of Linux libc5 as a supported platform.
12367         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
12368         to Linux libc5.
12369         * doc/posix-functions/iswalpha.texi: Likewise.
12370         * doc/posix-functions/iswblank.texi: Likewise.
12371         * doc/posix-functions/iswcntrl.texi: Likewise.
12372         * doc/posix-functions/iswdigit.texi: Likewise.
12373         * doc/posix-functions/iswgraph.texi: Likewise.
12374         * doc/posix-functions/iswlower.texi: Likewise.
12375         * doc/posix-functions/iswprint.texi: Likewise.
12376         * doc/posix-functions/iswpunct.texi: Likewise.
12377         * doc/posix-functions/iswspace.texi: Likewise.
12378         * doc/posix-functions/iswupper.texi: Likewise.
12379         * doc/posix-functions/iswxdigit.texi: Likewise.
12380         * doc/posix-functions/snprintf.texi: Likewise.
12381         * doc/posix-functions/vsnprintf.texi: Likewise.
12383 2019-07-06  Bruno Haible  <bruno@clisp.org>
12385         doc: Remove documentation of Tandem/NSK as a supported platform.
12386         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
12387         Tandem/NSK.
12388         * doc/**/*.texi: Update.
12390 2019-07-06  Bruno Haible  <bruno@clisp.org>
12392         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
12393         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
12394         and older is unsupported.
12395         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
12396         Mac OS X 10.4 and older.
12397         * doc/posix-functions/asinl.texi: Likewise.
12398         * doc/posix-functions/atanl.texi: Likewise.
12399         * doc/posix-functions/cosl.texi: Likewise.
12400         * doc/posix-functions/expl.texi: Likewise.
12401         * doc/posix-functions/frexpl.texi: Likewise.
12402         * doc/posix-functions/gettimeofday.texi: Likewise.
12403         * doc/posix-functions/logl.texi: Likewise.
12404         * doc/posix-functions/mkstemp.texi: Likewise.
12405         * doc/posix-functions/sinl.texi: Likewise.
12406         * doc/posix-functions/sqrtl.texi: Likewise.
12407         * doc/posix-functions/tanl.texi: Likewise.
12408         * doc/posix-functions/wcswidth.texi: Likewise.
12409         * doc/**/*.texi: Update.
12411 2019-07-06  Bruno Haible  <bruno@clisp.org>
12413         doc: Remove documentation of AIX 4 as a supported platform.
12414         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
12415         unsupported.
12416         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
12417         workarounds.
12418         * doc/posix-functions/strnlen.texi: Likewise.
12419         * doc/posix-headers/inttypes.texi: Likewise.
12420         * doc/**/*.texi: Update.
12422 2019-07-06  Bruno Haible  <bruno@clisp.org>
12424         doc: Remove documentation of HP-UX 10 as a supported platform.
12425         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
12426         unsupported.
12427         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
12428         workarounds.
12429         * doc/posix-functions/gmtime_r.texi: Likewise.
12430         * doc/posix-functions/localtime_r.texi: Likewise.
12431         * doc/posix-functions/mkstemp.texi: Likewise.
12432         * doc/**/*.texi: Update.
12434 2019-07-06  Bruno Haible  <bruno@clisp.org>
12436         doc: Remove documentation of Interix 3.5 as a supported platform.
12437         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
12438         unsupported.
12439         * doc/posix-functions/select.texi: Don't mention Interix specific
12440         workarounds.
12441         * doc/posix-headers/signal.texi: Likewise.
12442         * doc/**/*.texi: Update.
12444 2019-07-06  Bruno Haible  <bruno@clisp.org>
12446         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
12447         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
12448         unsupported.
12449         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
12450         workarounds.
12451         * doc/posix-functions/nl_langinfo.texi: Likewise.
12452         * doc/posix-functions/remainder.texi: Likewise.
12453         * doc/posix-functions/towlower.texi: Likewise.
12454         * doc/posix-functions/towupper.texi: Likewise.
12455         * doc/posix-functions/vsnprintf.texi: Likewise.
12456         * doc/posix-functions/wcscat.texi: Likewise.
12457         * doc/posix-functions/wcschr.texi: Likewise.
12458         * doc/posix-functions/wcscmp.texi: Likewise.
12459         * doc/posix-functions/wcscpy.texi: Likewise.
12460         * doc/posix-functions/wcscspn.texi: Likewise.
12461         * doc/posix-functions/wcslen.texi: Likewise.
12462         * doc/posix-functions/wcsncat.texi: Likewise.
12463         * doc/posix-functions/wcsncmp.texi: Likewise.
12464         * doc/posix-functions/wcsncpy.texi: Likewise.
12465         * doc/posix-functions/wcspbrk.texi: Likewise.
12466         * doc/posix-functions/wcsrchr.texi: Likewise.
12467         * doc/posix-functions/wcsspn.texi: Likewise.
12468         * doc/posix-headers/langinfo.texi: Likewise.
12469         * doc/posix-headers/signal.texi: Likewise.
12470         * doc/posix-headers/wchar.texi: Likewise.
12471         * doc/posix-headers/wctype.texi: Likewise.
12472         * doc/**/*.texi: Update.
12474 2019-07-05  Bruno Haible  <bruno@clisp.org>
12476         doc: Remove documentation of OSF/1 as supported platform.
12477         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
12478         unsupported.
12479         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
12480         workarounds.
12481         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
12482         * doc/glibc-functions/ptsname_r.texi: Likewise.
12483         * doc/posix-functions/ceil.texi: Likewise.
12484         * doc/posix-functions/ceilf.texi: Likewise.
12485         * doc/posix-functions/ceill.texi: Likewise.
12486         * doc/posix-functions/fchdir.texi: Likewise.
12487         * doc/posix-functions/floor.texi: Likewise.
12488         * doc/posix-functions/floorf.texi: Likewise.
12489         * doc/posix-functions/fmod.texi: Likewise.
12490         * doc/posix-functions/fmodf.texi: Likewise.
12491         * doc/posix-functions/fmodl.texi: Likewise.
12492         * doc/posix-functions/log.texi: Likewise.
12493         * doc/posix-functions/logf.texi: Likewise.
12494         * doc/posix-functions/logl.texi: Likewise.
12495         * doc/posix-functions/log10.texi: Likewise.
12496         * doc/posix-functions/log10f.texi: Likewise.
12497         * doc/posix-functions/log10l.texi: Likewise.
12498         * doc/posix-functions/log2.texi: Likewise.
12499         * doc/posix-functions/log2f.texi: Likewise.
12500         * doc/posix-functions/log2l.texi: Likewise.
12501         * doc/posix-functions/mbrtowc.texi: Likewise.
12502         * doc/posix-functions/recv.texi: Likewise.
12503         * doc/posix-functions/recvfrom.texi: Likewise.
12504         * doc/posix-functions/remainder.texi: Likewise.
12505         * doc/posix-functions/remainderf.texi: Likewise.
12506         * doc/posix-functions/remainderl.texi: Likewise.
12507         * doc/posix-functions/round.texi: Likewise.
12508         * doc/posix-functions/roundf.texi: Likewise.
12509         * doc/posix-functions/roundl.texi: Likewise.
12510         * doc/posix-functions/send.texi: Likewise.
12511         * doc/posix-functions/sendto.texi: Likewise.
12512         * doc/posix-functions/setenv.texi: Likewise.
12513         * doc/posix-functions/snprintf.texi: Likewise.
12514         * doc/posix-functions/tcgetsid.texi: Likewise.
12515         * doc/posix-functions/trunc.texi: Likewise.
12516         * doc/posix-functions/truncf.texi: Likewise.
12517         * doc/posix-functions/truncl.texi: Likewise.
12518         * doc/posix-functions/ttyname_r.texi: Likewise.
12519         * doc/posix-functions/unsetenv.texi: Likewise.
12520         * doc/posix-functions/wcsrtombs.texi: Likewise.
12521         * doc/posix-headers/sys_select.texi: Likewise.
12522         * doc/posix-headers/wchar.texi: Likewise.
12523         * doc/posix-headers/wctype.texi: Likewise.
12524         * doc/**/*.texi: Update.
12526 2019-07-05  Bruno Haible  <bruno@clisp.org>
12528         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
12529         * doc/**/*.texi: Update.
12531 2019-07-05  Bruno Haible  <bruno@clisp.org>
12533         doc: Remove documentation of Solaris 8 and older as supported platforms.
12534         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
12535         unsupported.
12536         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
12537         workarounds.
12538         * doc/posix-functions/memcmp.texi: Likewise.
12539         * doc/posix-functions/rename.texi: Likewise.
12540         * doc/posix-functions/tzset.texi: Likewise.
12541         * doc/posix-headers/wctype.texi: Likewise.
12542         * doc/**/*.texi: Update.
12544 2019-07-05  Bruno Haible  <bruno@clisp.org>
12546         doc: Remove documentation of Interix 3.5 as a supported platform.
12547         * doc/**/*.texi: Update.
12549 2019-07-05  Bruno Haible  <bruno@clisp.org>
12551         doc: Remove documentation of BeOS as a supported platform.
12552         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
12553         unsupported.
12554         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
12555         * doc/posix-functions/getdelim.texi: Likewise.
12556         * doc/**/*.texi: Update.
12558 2019-07-05  Bruno Haible  <bruno@clisp.org>
12560         thread, lock, cond, tls: Remove support for Pth threads.
12561         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12562         --enable-threads=pth any more.
12563         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
12564         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
12565         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
12566         threads and ISO C11 threads.
12567         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
12568         * lib/glthread/lock.h: Likewise.
12569         * lib/glthread/lock.c: Likewise.
12570         * lib/glthread/cond.h: Likewise.
12571         * lib/glthread/cond.c: Likewise.
12572         * lib/glthread/tls.h: Likewise.
12573         * lib/glthread/tls.c: Likewise.
12574         * lib/glthread/yield.h: Likewise.
12575         * lib/regex_internal.h: Likewise.
12576         * tests/test-thread_create.c: Likewise.
12577         * tests/test-lock.c: Likewise.
12578         * tests/test-cond.c: Likewise.
12579         * tests/test-tls.c: Likewise.
12580         * tests/test-rwlock1.c: Don't include glthread/yield.h.
12581         (main): Sleep without calling gl_thread_yield.
12583 2019-07-05  Bruno Haible  <bruno@clisp.org>
12585         thread, lock, cond, tls: Remove support for old Solaris threads.
12586         Solaris >= 2.5.1 has POSIX threads.
12587         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12588         --enable-threads=solaris any more.
12589         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
12590         * lib/glthread/thread.c: Update comment.
12591         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
12592         * lib/glthread/lock.h: Likewise.
12593         * lib/glthread/lock.c: Likewise.
12594         * lib/glthread/cond.h: Likewise.
12595         * lib/glthread/cond.c: Likewise.
12596         * lib/glthread/tls.h: Likewise.
12597         * lib/glthread/tls.c: Likewise.
12598         * lib/glthread/yield.h: Likewise.
12599         * lib/regex_internal.h: Likewise.
12600         * tests/test-thread_create.c: Likewise.
12601         * tests/test-lock.c: Likewise.
12602         * tests/test-cond.c: Likewise.
12603         * tests/test-tls.c: Likewise.
12605 2019-07-05  Bruno Haible  <bruno@clisp.org>
12607         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
12608         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
12609         needed size is equal to the allocated size.
12610         * lib/getcwd.c (__getcwd): Likewise.
12612 2019-07-05  Bruno Haible  <bruno@clisp.org>
12614         xgetdomainname: Don't return an excessive memory allocation.
12615         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
12616         before returning it.
12618 2019-07-05  Bruno Haible  <bruno@clisp.org>
12620         xgethostname: Don't return an excessive memory allocation.
12621         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
12622         returning it.
12624 2019-07-05  Bruno Haible  <bruno@clisp.org>
12626         areadlinkat-with-size: Don't return an excessive memory allocation.
12627         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
12628         before returning it.
12630 2019-07-05  Bruno Haible  <bruno@clisp.org>
12632         areadlink-with-size: Don't return an excessive memory allocation.
12633         Reported by Andreas Dilger <adilger@whamcloud.com>.
12634         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
12635         before returning it.
12637 2019-07-03  Bruno Haible  <bruno@clisp.org>
12639         renameatu: Fix test failure on MSVC.
12640         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
12641         empty string.
12643 2019-07-03  Bruno Haible  <bruno@clisp.org>
12645         mbrtowc: Fix invalid use of mbtowc() on MSVC.
12646         * lib/mbrtowc.c: Include glthread/lock.h.
12647         (mbtowc_lock): New variable.
12648         (mbrtowc): Treat UTF-8 encoding without locking. For the other
12649         encodings, explicitly reset the internal state of mbtowc, and protect
12650         this through a lock.
12651         * modules/mbrtowc (Depends-on): Add lock.
12653 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
12655         argmatch: don't define _ in the header.
12656         Reported by Jim Meyering.
12657         * lib/argmatch.h (N_, _): Don't define.
12658         Use gettext instead.
12659         * lib/argmatch.h (_): Define.
12660         * tests/test-argmatch.c (N_): Define.
12662 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12664         verify: document ‘assume’ better
12665         * lib/verify.h: Reword doc (Bug#36370).
12667 2019-07-02  Bruno Haible  <bruno@clisp.org>
12669         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
12670         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
12671         "CPutf8".
12672         * lib/nl_langinfo.c (ctype_codeset): Likewise.
12674 2019-07-02  Bruno Haible  <bruno@clisp.org>
12676         getcwd: Fix crash when invoked with size = 0 on MSVC.
12677         * lib/getcwd.c: Include msvc-inval.h.
12678         (getcwd_nothrow): New function/macro.
12679         (getcwd_system): New macro.
12680         (__getcwd): Use it instead of getcwd.
12681         * modules/getcwd (Depends-on): Add msvc-inval.
12682         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
12684 2019-07-02  Bruno Haible  <bruno@clisp.org>
12686         nonblocking-pipe tests: Fix test failure on MSVC.
12687         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
12688         native Windows.
12690 2019-07-02  Bruno Haible  <bruno@clisp.org>
12692         usleep: Implement with millisecond resolution on native Windows.
12693         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
12694         * doc/pastposix-functions/usleep.texi: Update accordingly.
12696 2019-07-02  Bruno Haible  <bruno@clisp.org>
12698         lstat tests: Fix test failure on MSVC.
12699         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
12700         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12702 2019-07-02  Bruno Haible  <bruno@clisp.org>
12704         stat tests: Fix test failure on MSVC.
12705         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
12706         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12708 2019-07-02  Bruno Haible  <bruno@clisp.org>
12710         getaddrinfo tests: Fix test failure on MSVC.
12711         * tests/test-getaddrinfo.c: Include sockets.h.
12712         (main): Invoke gl_sockets_startup.
12713         * modules/getaddrinfo-tests (Depends-on): Add sockets.
12715 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
12717         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
12718         * lib/poll.c: Call Windows native select() with Windows native timeval.
12720 2019-06-30  Bruno Haible  <bruno@clisp.org>
12722         argmatch: Fix compilation errors.
12723         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
12724         * tests/test-argmatch.c (main): Update after last-minute function names
12725         change.
12727 2019-06-30  Bruno Haible  <bruno@clisp.org>
12729         Include <stdlib.h> when needed.
12730         * lib/cnd.c: Include <stdlib.h>, needed for abort().
12731         * lib/fcntl.c: Likewise.
12732         * lib/mbscasestr.c: Likewise.
12733         * lib/mbssep.c: Likewise.
12734         * lib/mbsstr.c: Likewise.
12735         * lib/openat.c: Include <stdlib.h>, needed for free().
12736         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
12737         abort().
12739 2019-06-30  Bruno Haible  <bruno@clisp.org>
12741         Include <stdlib.h> when needed.
12742         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
12743         * lib/faccessat.c: Likewise.
12744         * lib/fchmodat.c: Likewise.
12745         * lib/fchownat.c: Likewise.
12746         * lib/fstatat.c: Likewise.
12747         * lib/mkfifoat.c: Likewise.
12748         * lib/mknodat.c: Likewise.
12749         * lib/readlinkat.c: Likewise.
12750         * lib/symlinkat.c: Likewise.
12751         * lib/utimensat.c: Likewise.
12752         * lib/mkdirat.c: Likewise. Include also the specification header.
12754 2019-06-30  Bruno Haible  <bruno@clisp.org>
12756         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
12757         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
12758         from gl_PREREQ_SYS_H_SOCKET.
12759         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
12760         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
12761         gl_PREREQ_SYS_H_WS2TCPIP.
12762         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
12763         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
12764         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
12766 2019-06-30  Bruno Haible  <bruno@clisp.org>
12768         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
12769         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
12770         REPLACE_INET_NTOP to 1 always.
12771         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
12772         REPLACE_INET_PTON to 1 always.
12774 2019-06-30  Bruno Haible  <bruno@clisp.org>
12776         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
12777         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
12778         not REPLACE_INET_NTOP.
12780 2019-06-30  Bruno Haible  <bruno@clisp.org>
12782         poll: Add comment.
12783         * lib/poll.c: Add comment about WSAPoll.
12785 2019-06-30  Bruno Haible  <bruno@clisp.org>
12787         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
12788         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
12789         * lib/poll.in.h: Include <winsock2.h>.
12790         (POLL*, pollfd): Override on native Windows.
12791         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12792         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
12793         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12795 2019-06-28  Bruno Haible  <bruno@clisp.org>
12797         accept4: Fix compilation error on OpenIndiana.
12798         Reported by Michal Nowak <mnowak@startmail.com>
12799         via Mark H Weaver <mhw@netris.org>.
12800         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
12801         whether it exists as a function.
12803 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
12805         strverscmp: sync from glibc
12806         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
12807         comments, include libc-config.h, define __strverscmp to be
12808         strverscmp, and don’t assume types line uint8_t and int8_t that
12809         that C99 doesn’t guarantee.
12810         [!_LIBC]: Include libc-config.h; define __strverscmp.
12811         Include stdint.h.
12812         (__strverscmp): Assume C99.  Use uint_least8_t
12813         and int_least8_t instead of unsigned char and signed char.
12814         * modules/strverscmp (Depends-on): Add libc-config, stdint.
12816 2019-06-25  Bruno Haible  <bruno@clisp.org>
12818         tss tests: Add tests for destructors and races.
12819         * tests/test-tss.c (worker_thread): Fix typo in debug message.
12820         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
12821         functions.
12822         (main): Invoke them.
12823         * modules/tls-tests (Depends-on): Add mtx.
12825 2019-06-25  Bruno Haible  <bruno@clisp.org>
12827         tls tests: Add tests for destructors and races.
12828         * tests/test-tls.c: Include glthread/lock.h.
12829         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
12830         functions.
12831         (main): Invoke them.
12832         * modules/tls-tests (Depends-on): Add lock.
12834 2019-06-25  Bruno Haible  <bruno@clisp.org>
12836         windows-tls: Implement TLS key destructors for native Windows.
12837         * lib/windows-tls.h (glwthread_tls_process_destructors): New
12838         declaration.
12839         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
12840         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
12841         (dtor_table_init_once, dtor_table_lock: New variables.
12842         (struct dtor): New type.
12843         (dtor_table, dtors_count, dtors_used, dtors_allocated,
12844         dtor_processing_threads): New variables.
12845         (dtor_table_initialize, dtor_table_ensure_initialized,
12846         dtor_table_shrink_used, glwthread_tls_process_destructors): New
12847         functions.
12848         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
12849         handle non-NULL destructors.
12850         * modules/windows-tls (Depends-on): Add windows-once.
12851         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
12852         Use the functions declared in windows-tls.h.
12853         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
12854         GLWTHREAD_DESTRUCTOR_ITERATIONS.
12855         * lib/windows-thread.c: Include windows-tls.h.
12856         (wrapper_func, glwthread_thread_exit): Invoke
12857         glwthread_tls_process_destructors.
12858         * modules/windows-thread (Depends-on): Add windows-tls.
12860 2019-06-25  Bruno Haible  <bruno@clisp.org>
12862         threadlib: Avoid autoconf warning "was expanded before it was required".
12863         * modules/threadlib (configure.ac): Require gl_THREADLIB.
12865 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
12867         argmatch: remove duplicate const qualifier
12868         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
12870 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12872         unistd: stddef.h and sys/types.h namespace cleanup
12873         * lib/unistd.in.h [__GLIBC__]:
12874         Do not include stddef.h or sys/types.h.
12875         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
12876         supposed to declare off_t and ssize_t.  Problem found when looking
12877         at why @GNULIB_PWRITE@ was different from the newly-added
12878         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
12880 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
12882         maintainer-makefile: restore portability to non-GNU awks
12883         Reported by Tim Rühsen.
12884         * top/maint.mk (AWK): New variable.  Use it.
12885         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
12887 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12889         Document setvbuf _IOLBF problem
12890         * doc/posix-functions/setvbuf.texi (setvbuf):
12891         Document MS-Windows portability problem with _IOLBF.
12893         Document lseek SEEK_DATA/SEEK_HOLE
12894         * doc/posix-functions/lseek.texi (lseek):
12895         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
12897 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
12899         argmatch: put all the docs member last.
12900         Reported by Bruno Haible.
12901         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
12902         member before the docs done.
12903         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
12905 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
12907         argmatch: add support to generate the usage message.
12908         * lib/argmatch.c: Move some #includes and gettext support to...
12909         * lib/argmatch.h: here.
12910         (ARGMATCH_DEFINE_GROUP): New macro.
12911         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
12912         (argmatch_backup_group): New.
12913         (CHECK): New.
12914         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
12915         argmatch_backup_argument and argmatch_backup_usage.
12916         * modules/argmatch: We depend on c99.
12917         * doc/argmatch.texi (Recognizing Option Arguments): New.
12918         * doc/gnulib.texi: Use it.
12920 2019-06-21  Bruno Haible  <bruno@clisp.org>
12922         thrd: Add comment.
12923         * lib/thrd.c (pthread_main_func): Add comment.
12925 2019-06-21  Bruno Haible  <bruno@clisp.org>
12927         threads-h: Define 'thread_local' if and only if it actually works.
12928         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
12929         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
12930         Oracle Solaris Studio C. Compile a simple program, to see whether
12931         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
12932         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
12933         * lib/threads.in.h (thread_local): Undefine if it does not work.
12934         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
12935         (Link): Mention LIBTHREADLOCAL.
12936         * tests/test-threads.c: Don't check that thread_local is defined.
12937         * tests/test-thread_local.c: New file.
12938         * modules/threads-h-tests (Files): Add it and macros.h.
12939         (Depends-on): Add thrd and stdint.
12940         (configure.ac): Test whether 'alarm' is declared.
12941         (Makefile.am): Arrange to build and link test-thread_local.
12942         * doc/posix-headers/threads.texi: Mention the platforms that don't
12943         support 'thread_local'.
12945 2019-06-20  Bruno Haible  <bruno@clisp.org>
12947         threads-h: Simplify link dependencies.
12948         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
12949         Don't set LTLIBSTDTHREAD.
12950         * modules/thrd (Link): Simplify accordingly.
12951         * modules/mtx (Link): Likewise.
12952         * modules/cnd (Link): Likewise.
12953         * modules/tss (Link): Likewise.
12954         * modules/threads (Link): Likewise.
12956 2019-06-20  Bruno Haible  <bruno@clisp.org>
12958         threads-h: Fix link error on FreeBSD 11.
12959         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
12960         also with -lpthread.
12962 2019-06-20  Bruno Haible  <bruno@clisp.org>
12964         threadlib: Fix typo (regression from today).
12965         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
12967 2019-06-20  Bruno Haible  <bruno@clisp.org>
12969         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
12970         * lib/windows-thread.c: Include <errno.h>.
12971         * lib/windows-tls.c: Likewise.
12973 2019-06-20  Bruno Haible  <bruno@clisp.org>
12975         tss tests: Small improvement.
12976         * tests/test-tss.c (test_tss): Pass a different id to each thread.
12978 2019-06-20  Bruno Haible  <bruno@clisp.org>
12980         threads: New module.
12981         * modules/threads: New file.
12983 2019-06-20  Bruno Haible  <bruno@clisp.org>
12985         tss: Add tests.
12986         * tests/test-tss.c: New file, based on tests/test-tls.c.
12987         * modules/tss-tests: New file.
12989 2019-06-20  Bruno Haible  <bruno@clisp.org>
12991         cnd: Add tests.
12992         * tests/test-cnd.c: New file, based on tests/test-cond.c.
12993         * modules/cnd-tests: New file.
12995 2019-06-20  Bruno Haible  <bruno@clisp.org>
12997         mtx: Add tests.
12998         * tests/test-mtx.c: New file, based on tests/test-lock.c.
12999         * tests/test-call_once.c: New file, based on tests/test-once.c.
13000         * modules/mtx-tests: New file.
13002 2019-06-20  Bruno Haible  <bruno@clisp.org>
13004         thrd: Add tests.
13005         * tests/test-thrd_create.c: New file, based on
13006         tests/test-thread_create.c.
13007         * tests/test-thrd_current.c: New file, based on
13008         tests/test-thread_self.c.
13009         * modules/thrd-tests: New file.
13011 2019-06-20  Bruno Haible  <bruno@clisp.org>
13013         tss: New module.
13014         * lib/tss.c: New file.
13015         * modules/tss: New file.
13016         * doc/posix-functions/tss_create.texi: Mention the new module.
13017         * doc/posix-functions/tss_set.texi: Likewise.
13018         * doc/posix-functions/tss_get.texi: Likewise.
13019         * doc/posix-functions/tss_delete.texi: Likewise.
13021 2019-06-20  Bruno Haible  <bruno@clisp.org>
13023         cnd: New module.
13024         * lib/cnd.c: New file.
13025         * modules/cnd: New file.
13026         * doc/posix-functions/cnd_init.texi: Mention the new module.
13027         * doc/posix-functions/cnd_wait.texi: Likewise.
13028         * doc/posix-functions/cnd_timedwait.texi: Likewise.
13029         * doc/posix-functions/cnd_signal.texi: Likewise.
13030         * doc/posix-functions/cnd_broadcast.texi: Likewise.
13031         * doc/posix-functions/cnd_destroy.texi: Likewise.
13033 2019-06-20  Bruno Haible  <bruno@clisp.org>
13035         mtx: New module.
13036         * lib/mtx.c: New file.
13037         * modules/mtx: New file.
13038         * doc/posix-functions/call_once.texi: Mention the new module.
13039         * doc/posix-functions/mtx_init.texi: Likewise.
13040         * doc/posix-functions/mtx_lock.texi: Likewise.
13041         * doc/posix-functions/mtx_trylock.texi: Likewise.
13042         * doc/posix-functions/mtx_timedlock.texi: Likewise.
13043         * doc/posix-functions/mtx_unlock.texi: Likewise.
13044         * doc/posix-functions/mtx_destroy.texi: Likewise.
13046 2019-06-20  Bruno Haible  <bruno@clisp.org>
13048         thrd: New module.
13049         * lib/thrd.c: New file.
13050         * m4/thrd.m4: New file.
13051         * modules/thrd: New file.
13052         * doc/posix-functions/thrd_current.texi: Mention the new module.
13053         * doc/posix-functions/thrd_detach.texi: Likewise.
13054         * doc/posix-functions/thrd_equal.texi: Likewise.
13055         * doc/posix-functions/thrd_exit.texi: Likewise.
13056         * doc/posix-functions/thrd_sleep.texi: Likewise.
13057         * doc/posix-functions/thrd_yield.texi: Likewise.
13058         * doc/posix-functions/thrd_create.texi: Mention the new module and the
13059         AIX bug.
13060         * doc/posix-functions/thrd_join.texi: Mention the new module and the
13061         AIX and Solaris bugs.
13063 2019-06-20  Bruno Haible  <bruno@clisp.org>
13065         threads-h: Add tests.
13066         * tests/test-threads.c: New file.
13067         * modules/threads-h-tests: New file.
13068         * tests/test-threads-c++.cc: New file.
13069         * modules/threads-h-c++-tests: New file.
13071 2019-06-20  Bruno Haible  <bruno@clisp.org>
13073         threads-h: New module.
13074         * lib/threads.in.h: New file.
13075         * m4/threads.m4: New file.
13076         * m4/yield.m4 (gl_YIELD): Update comment.
13077         * modules/threads-h: New file.
13078         * modules/yields (configure.ac): Use AC_REQUIRE.
13079         * doc/posix-headers/threads.texi: Mention the new module and the AIX
13080         bugs.
13082 2019-06-20  Bruno Haible  <bruno@clisp.org>
13084         windows-thread: New module.
13085         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
13086         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
13087         * lib/glthread/thread.h: Include windows-thread.h.
13088         (gl_thread_t): Define using glwthread_thread_t.
13089         (glthread_create): Define using glwthread_thread_create.
13090         (glthread_join): Define using glwthread_thread_join.
13091         (gl_thread_self): Define using glwthread_thread_self.
13092         (gl_thread_exit): Define using glwthread_thread_exit.
13093         (glthread_create_func, glthread_join_func, gl_thread_self_func,
13094         gl_thread_exit_func): Remove declarations.
13095         * lib/glthread/thread.c (self_key): Remove variable.
13096         (do_init_self_key, init_self_key): Remove functions.
13097         (struct gl_thread_struct): Remove type.
13098         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
13099         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
13100         functions.
13101         * modules/windows-thread: New file.
13102         * modules/thread (Depends-on): Add windows-thread.
13104 2019-06-20  Bruno Haible  <bruno@clisp.org>
13106         windows-tls: New module.
13107         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
13108         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
13109         * lib/glthread/tls.h: Include windows-tls.h.
13110         (gl_tls_key_t): Define using glwthread_tls_key_t.
13111         * modules/windows-tls: New file.
13112         * modules/tls (Depends-on): Add windows-tls.
13114 2019-06-20  Bruno Haible  <bruno@clisp.org>
13116         windows-cond: New module.
13117         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
13118         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
13119         * lib/glthread/cond.h: Include windows-cond.h.
13120         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
13121         (gl_cond_t): Define using glwthread_cond_t.
13122         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
13123         (glthread_cond_init): Define using glwthread_cond_init.
13124         (glthread_cond_wait): Define using glwthread_cond_wait.
13125         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
13126         (glthread_cond_signal): Define using glwthread_cond_signal.
13127         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
13128         (glthread_cond_destroy): Define using glwthread_cond_destroy.
13129         (glthread_cond_init_func, glthread_cond_wait_func,
13130         glthread_cond_timedwait_func, glthread_cond_signal_func,
13131         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
13132         declarations.
13133         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
13134         types.
13135         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
13136         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
13137         glthread_cond_init_func, glthread_cond_wait_func,
13138         glthread_cond_timedwait_func, glthread_cond_signal_func,
13139         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
13140         functions.
13141         * modules/windows-cond: New file.
13142         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
13144 2019-06-20  Bruno Haible  <bruno@clisp.org>
13146         windows-timedrecmutex: New module.
13147         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
13148         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
13149         * modules/windows-timedrecmutex: New file.
13151 2019-06-20  Bruno Haible  <bruno@clisp.org>
13153         windows-timedmutex: New module.
13154         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
13155         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
13156         * modules/windows-timedmutex: New file.
13158 2019-06-20  Bruno Haible  <bruno@clisp.org>
13160         windows-recmutex: New module.
13161         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
13162         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
13163         * lib/glthread/lock.h: Include windows-recmutex.h.
13164         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
13165         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
13166         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
13167         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
13168         (glthread_recursive_lock_unlock): Define using
13169         glwthread_recmutex_unlock.
13170         (glthread_recursive_lock_destroy): Define using
13171         glwthread_recmutex_destroy.
13172         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
13173         glthread_recursive_lock_unlock_func,
13174         glthread_recursive_lock_destroy_func): Remove declarations.
13175         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
13176         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
13177         glthread_recursive_lock_destroy_func): Remove functions.
13178         * modules/windows-recmutex: New file.
13179         * modules/lock (Depends-on): Add windows-recmutex.
13181 2019-06-20  Bruno Haible  <bruno@clisp.org>
13183         windows-mutex: New module.
13184         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
13185         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
13186         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
13187         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
13188         (gl_spinlock_t): Remove type.
13189         (gl_lock_t): Define using glwthread_mutex_t.
13190         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
13191         (glthread_lock_init): Define using glwthread_mutex_init.
13192         (glthread_lock_lock): Define using glwthread_mutex_lock.
13193         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
13194         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
13195         (glthread_lock_init_func, glthread_lock_lock_func,
13196         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
13197         declarations.
13198         Use glwthread_spinlock_t instead of gl_spinlock_t.
13199         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
13200         GLWTHREAD_SPINLOCK_INIT.
13201         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
13202         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
13203         functions.
13204         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
13205         gl_spinlock_t.
13206         * modules/windows-mutex: New file.
13207         * modules/lock (Depends-on): Add windows-mutex.
13209 2019-06-20  Bruno Haible  <bruno@clisp.org>
13211         windows-once: New module.
13212         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
13213         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
13214         * lib/glthread/lock.h: Include windows-once.h.
13215         (gl_once_t): Define using glwthread_once_t.
13216         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
13217         (glthread_once): Define using glwthread_once.
13218         (glthread_once_func): Remove declaration.
13219         * lib/glthread/lock.c (glthread_once_func): Remove function.
13220         * modules/windows-once: New file.
13221         * modules/lock (Depends-on): Add windows-once.
13223 2019-06-20  Bruno Haible  <bruno@clisp.org>
13225         lock, cond: Avoid possible counter wraparound on Windows.
13226         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
13227         field of the guard unchanged if it was already positive.
13228         (glthread_rwlock_rdlock_func): Likewise.
13229         (glthread_rwlock_wrlock_func): Likewise.
13230         (glthread_recursive_lock_lock_func): Likewise.
13231         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
13232         (glthread_cond_timedwait_func): Likewise.
13234 2019-06-20  Bruno Haible  <bruno@clisp.org>
13236         cond: Make glthread_cond_timedwait more reliable on Windows.
13237         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
13238         condition variable before looking at the current time.
13240 2019-06-20  Bruno Haible  <bruno@clisp.org>
13242         pthread_mutex_timedlock: New module.
13243         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
13244         new declaration.
13245         * lib/pthread_mutex_timedlock.c: New file.
13246         * m4/pthread_mutex_timedlock.m4: New file.
13247         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
13248         whether pthread_mutex_timedlock is declared.
13249         (gl_PTHREAD_MODULE_INDICATOR): New macro.
13250         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
13251         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
13252         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
13253         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
13254         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
13255         * modules/pthread_mutex_timedlock: New file.
13256         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
13257         module.
13259 2019-06-20  Bruno Haible  <bruno@clisp.org>
13261         thread, lock, cond, tls: Recognize C11 multithreaded applications.
13262         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
13263         * lib/glthread/thread.h (c11_threads_in_use): New macro.
13264         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13265         * lib/glthread/lock.h (c11_threads_in_use): New macro.
13266         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13267         * lib/glthread/cond.h (c11_threads_in_use): New macro.
13268         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13269         * lib/glthread/tls.h (c11_threads_in_use): New macro.
13270         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13272 2019-06-20  Bruno Haible  <bruno@clisp.org>
13274         tls tests: Small improvements.
13275         * tests/test-tls.c: Include <stdint.h>.
13276         (worker_thread): Avoid gcc warning on 64-bit mingw.
13277         (test_tls): Pass a different id to each thread.
13278         * modules/tls-tests (Depends-on): Add stdint.
13280 2019-06-20  Bruno Haible  <bruno@clisp.org>
13282         cond tests: Simplify.
13283         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
13285 2019-06-20  Bruno Haible  <bruno@clisp.org>
13287         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
13288         * tests/test-lock.c (test_once): Don't reference fire_signal if
13289         !ENABLE_LOCKING.
13291 2019-06-19  Bruno Haible  <bruno@clisp.org>
13293         nanosleep: Relicense under LGPLv2+.
13294         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
13295         * modules/nanosleep (License): Change to LGPLv2+.
13297 2019-06-19  Bruno Haible  <bruno@clisp.org>
13299         Reorder pieces of header in perl scripts.
13300         The desired order is
13301         - Prologue part 1 (2 lines with #!)
13302         - Program short description
13303         - Copyright and license notice
13304         - Written-by notice
13305         - Program short description (optional)
13306         - Program long description (optional)
13307         - Prologue part 2
13308         - Time stamp
13309         - Code
13310         Reported by Paul Eggert.
13311         * build-aux/announce-gen: Reorder header.
13312         * build-aux/gitlog-to-changelog: Likewise.
13313         * build-aux/useless-if-before-free: Likewise.
13314         * build-aux/prefix-gnulib-mk: Add copyright notice and short
13315         description.
13316         * build-aux/update-copyright: Likewise. Add short description. Bump
13317         time-stamp-line-limit to 200.
13319 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13321         verify-tests: work around xlc bug
13322         Problem reported by Bruno Haible in:
13323         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
13324         * tests/test-verify.c (item): Move the arithmetic inside the
13325         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
13327 2019-06-16  Bruno Haible  <bruno@clisp.org>
13329         Restore Emacs time-stamp hook applicability.
13330         Reported by Darshit Shah <darnir@gnu.org>.
13331         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
13332         * build-aux/announce-gen: Likewise.
13333         * build-aux/gitlog-to-changelog: Likewise.
13334         * build-aux/prefix-gnulib-mk: Likewise.
13335         * build-aux/update-copyright: Likewise.
13337 2019-06-15  Bruno Haible  <bruno@clisp.org>
13339         Fix scripts to have valid executable format on Alpine Linux.
13340         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
13341         Idea by Paul Eggert.
13342         * build-aux/useless-if-before-free: Use a prologue that starts with
13343         '#!/bin/sh'.
13344         * build-aux/announce-gen: Likewise.
13345         * build-aux/gitlog-to-changelog: Likewise.
13346         * build-aux/prefix-gnulib-mk: Likewise.
13347         * build-aux/update-copyright: Likewise.
13348         * tests/test-update-copyright.sh: Update test program accordingly.
13350 2019-06-10  Bruno Haible  <bruno@clisp.org>
13352         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
13353         Reported by Nikita Ermakov <arei@altlinux.org> in
13354         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
13355         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
13356         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
13358 2019-06-10  Bruno Haible  <bruno@clisp.org>
13360         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
13361         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13362         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
13363         a copy of the path argument.
13364         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13365         it.
13367 2019-06-10  Bruno Haible  <bruno@clisp.org>
13369         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
13370         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
13371         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13372         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
13373         a copy of the path argument.
13374         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13375         it.
13377 2019-06-10  Bruno Haible  <bruno@clisp.org>
13379         posix_spawn_file_actions_addfchdir: Add tests.
13380         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
13381         * tests/test-posix_spawn5.c: New file.
13382         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
13384 2019-06-10  Bruno Haible  <bruno@clisp.org>
13386         posix_spawn_file_actions_addfchdir: New module.
13387         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
13388         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
13389         union member 'fchdir_action'.
13390         * lib/spawn_faction_addfchdir.c: New file.
13391         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
13392         * m4/posix_spawn_faction_addfchdir.m4: New file.
13393         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
13394         'posix_spawn_file_actions_addfchdir' is present and whether
13395         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
13396         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
13397         posix_spawn_file_actions_addfchdir is declared.
13398         (gl_SPAWN_H_DEFAULTS): Initialize
13399         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13400         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13401         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13402         * modules/spawn (Makefile.am): Substitute
13403         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13404         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13405         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13406         * modules/posix_spawn_file_actions_addfchdir: New file.
13407         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
13408         signature.
13409         * doc/posix-functions/posix_spawn.texi: Mention the new module.
13410         * doc/posix-functions/posix_spawnp.texi: Likewise.
13411         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
13412         Likewise.
13414 2019-06-10  Bruno Haible  <bruno@clisp.org>
13416         doc: Document existence of posix_spawn_file_actions_addchdir module.
13417         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
13418         the posix_spawn_file_actions_addchdir module.
13420 2019-06-10  Bruno Haible  <bruno@clisp.org>
13422         posix_spawn-internal: Fix module description.
13423         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
13424         from here...
13425         * modules/posix_spawnp (configure.ac): ... and here...
13426         * modules/posix_spawn-internal (configure.ac): ... to here.
13428 2019-06-10  Bruno Haible  <bruno@clisp.org>
13430         doc: Update and improve documentation of glibc functions.
13431         This is a series of commits that
13432         - updates the documentation to the state of glibc 2.29,
13433         - adds references to Linux man pages and glibc documentation,
13434         - marks Linux specific functions as such.
13435         These are the commits:
13436         doc: Update after removal of crypt functions from glibc 2.28.
13437         doc: Remove mention of function vm86 (does not exist on x86_64).
13438         doc: Remove mention of functions that are gone from glibc.
13439         doc: Mention that glibc no longer provides h_errno.
13440         doc: Mention the availability of specific functions in glibc versions.
13441         doc: Mention eaccess.
13442         doc: Add references to Linux man pages.
13443         doc: Add references to glibc documentation.
13444         doc: Mention inotify_* functions.
13445         doc: Mention ppoll.
13446         doc: Mention sched_getcpu.
13447         doc: Mention sync_file_range.
13448         doc: Mention epoll_pwait.
13449         doc: Mention eventfd, eventfd_read, eventfd_write.
13450         doc: Mention signalfd.
13451         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
13452         doc: Mention epoll_create1.
13453         doc: Mention getauxval.
13454         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
13455         doc: Mention nextdown, nextup.
13456         doc: Mention more ISO TS 18661-1 <math.h> functions.
13457         doc: Mention ISO TS 18661-1 <fenv.h> functions.
13458         doc: Mention getrandom, getentropy.
13459         doc: Mention strfromf, strfromd, strfroml.
13460         doc: Mention preadv2, pwritev2.
13461         doc: Mention copy_file_range.
13462         doc: Mention memfd_create.
13463         doc: Mention mlock2.
13464         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
13465         doc: Mention more ISO TS 18661-1 <math.h> functions.
13466         doc: Mention renameat2.
13467         doc: Mention statx.
13468         doc: Mention the ISO C11 multithreading header and functions.
13469         doc: Mention getcpu.
13470         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
13471         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
13472         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
13473         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
13474         doc: Some glibc functions also exist on Solaris 11.
13475         doc: Some glibc functions also exist on Solaris 11.4.
13476         doc: Some glibc functions also exist on FreeBSD.
13477         doc: Some glibc functions also exist on BeOS.
13478         doc: Some glibc functions also exist on Haiku.
13479         doc: Mark functions which exist only on Linux.
13480         doc: Mark functions which exist only on Linux and illumos.
13482 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13484         copy-file: fix typo
13485         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
13487         copy-file-range: simplify into a stub
13488         Based on a comment by Florian Weimer in:
13489         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
13490         It turns out that Emacs (which will use this module) won’t need an
13491         emulation and I suspect other programs won’t either, because these
13492         programs will need to fall back on read+write anyway.  Perhaps I
13493         am wrong and other programs will be able to use an emulation; if
13494         so, this patch can be reverted.
13495         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
13496         Just call it copy_file_range.
13497         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
13498         Check via AC_LINK_IFELSE.
13499         * modules/copy-file-range (Depends-on): Remove modules no longer used.
13501 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
13503         copy-file: prefer copy_file_range
13504         * lib/copy-file.c: Do not include xalloc.h.
13505         (qcopy_file_preserving): Allocate a buffer only if
13506         copy_file_range does not suffice.  If the allocation fails
13507         don't give up; just use a small stack-based buffer.
13508         Prefer copy_file_range if it works.
13509         * modules/copy-file (Depends-on): Add copy-file-range.
13510         Remove xalloc.
13512         copy-file-range: new module
13513         * MODULES.html.sh: Add copy-file-range.
13514         * lib/copy-file-range.c, m4/copy-file-range.m4:
13515         * modules/copy-file-range: New files.
13516         * lib/unistd.in.h (copy_file_range): Declare.
13517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
13518         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
13519         * modules/unistd (unistd.h): Substitute them.
13521 2019-05-28  Bruno Haible  <bruno@clisp.org>
13523         binary-io: Attempted use of O_BINARY on consoles no longer fails.
13524         Reported by KO Myung-Hun <komh78@gmail.com> in
13525         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
13526         * lib/binary-io.h (__gl_setmode_check): Remove function.
13527         (set_binary_mode): Declare as notinline on DJGPP and EMX.
13528         * lib/binary-io.c (__gl_setmode_check): Remove function.
13529         (set_binary_mode): Define here on DJGPP and EMX. Inline
13530         __gl_setmode_check. In case of a tty, don't return an error code.
13532 2019-05-28  James Youngman  <jay@gnu.org>
13534         dirent-safer: Make opendir_safer usable from C++.
13535         * lib/dirent-safer.h: use extern "C".
13537 2019-05-28  James Youngman  <jay@gnu.org>
13539         canonicalize: Make canonicalize_filename_mode usable from C++.
13540         * lib/canonicalize.h: use extern "C".
13542 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
13544         prefix-gnulib-mk: Fix CPPFLAGS migration.
13545         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
13546         _a part of the library name.
13548 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
13550         flexmember: update comments again
13551         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
13553         flexmember: update comment
13554         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
13556 2019-05-20  Bruno Haible  <bruno@clisp.org>
13558         setlocale: Improve fallback on macOS.
13559         * lib/setlocale.c (search): Optimize away a redundant strcmp()
13560         invocation.
13561         (locales_with_principal_territory): New array.
13562         (langcmp, get_main_locale_with_same_language): New functions.
13563         (locales_with_principal_language): New array.
13564         (terrcmp, get_main_locale_with_same_territory): New functions.
13565         (rpl_setlocale): When setlocale_single failed, try again with a locale
13566         that is more likely to exist. Don't warn if the environment variable
13567         SETLOCALE_VERBOSE is not set.
13569 2019-05-19  Bruno Haible  <bruno@clisp.org>
13571         localename: Fix default on macOS.
13572         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
13573         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
13574         (gl_locale_name_environ, gl_locale_name_default): Remove code for
13575         HAVE_CFLOCALECOPYCURRENT.
13576         * lib/localename.h (gl_locale_name_default): Update.
13578 2019-05-19  Karl Berry  <karl@freefriends.org>
13580         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
13581         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
13582         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
13584 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
13586         maintainer-makefile: catch uses of $< in non-implicit rules
13587         * top/maint.mk (sc_prohibit_magic_number_exit): New.
13589 2019-05-18  Bruno Haible  <bruno@clisp.org>
13591         threadlib: Provide an easy way to avoid mingw's winpthreads library.
13592         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
13593         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
13594         gl_use_threads accordingly.
13596 2019-05-18  Bruno Haible  <bruno@clisp.org>
13598         pthread_sigmask: Fix compilation error with --enable-threads=windows.
13599         Reported by Tim Rühsen in
13600         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
13601         and Michele Locati in
13602         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
13603         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
13604         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
13605         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
13606         in use and regardless which threads API is chosen.
13608 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13610         close-stream, closein, closeout: simplify
13611         I noticed this opportunity for simplification while drafting a
13612         new, related module that I haven’t had time to finish yet.
13613         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
13614         * modules/close-stream (Files): Remove m4/close-stream.m4.
13615         (configure.ac): Omit gl_CLOSE_STREAM.
13616         * modules/closein (Files): Remove m4/closein.m4
13617         (configure.ac): Omit gl_CLOSEIN.
13618         * modules/closeout (Files): Remove m4/closeout.m4.
13619         (configure.ac): Omit gl_CLOSEOUT.
13621 2019-05-12  Bruno Haible  <bruno@clisp.org>
13623         libtool-next-version: New program.
13624         * build-aux/libtool-next-version: New file.
13626 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
13627             Bruno Haible  <bruno@clisp.org>
13629         version-etc: Ease translation.
13630         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
13631         URLs and formatting newlines out of translatable string.
13633 2019-05-11  Bruno Haible  <bruno@clisp.org>
13635         gnupload: Explain how to create symlinks.
13636         * build-aux/gnupload (usage): Add an example that creates symlinks.
13638 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13640         fpucw: port to gcc -pedantic
13641         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
13642         Use __extension__ if using ({ ... }).
13644         crypto/af_alg: port to strict C compilers
13645         * lib/af_alg.c: Include af_alg.h regardless, so that the
13646         compilation unit is nonempty.
13648 2019-05-10  Bruno Haible  <bruno@clisp.org>
13650         base64: Avoid false positive warning from Coverity.
13651         Reported by Kamil Dudka <kdudka@redhat.com>.
13652         Idea by Paul Eggert.
13653         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
13654         '& 0x3f' to the array index expressions. This convinces Coverity that
13655         there is no out-of-bounds array reference, regardless of the input.
13657 2019-05-09  Bruno Haible  <bruno@clisp.org>
13659         gettext: Update to gettext 0.20.
13660         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
13661         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
13662         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
13663         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
13664         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
13665         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
13666         (configure.ac): Request infrastructure compatible with gettext 0.20.
13667         * m4/glibc2.m4: Remove file.
13668         * m4/intdiv0.m4: Remove file.
13669         * m4/intl.m4: Remove file.
13670         * m4/intldir.m4: Remove file.
13671         * m4/intmax.m4: Remove file.
13672         * m4/printf-posix.m4: Remove file.
13673         * m4/uintmax_t.m4: Remove file.
13674         * m4/gettext.m4: Update from gettext 0.20.
13675         * m4/po.m4: Likewise.
13677 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13679         verify: remove verify_true
13680         * NEWS: Mention this.
13681         * lib/verify.h (verify_true): Remove.
13682         * tests/test-verify.c (item): Test verify_expr, not verify_true.
13684         Support C2X and C++17 static_assert
13685         C2X and C++17 finally added support for a simple, single-argument
13686         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
13687         doing back in 2005.  Implement static_assert on older platforms.
13688         The only remaining advantage of ‘verify’ is a shorter name.
13689         * doc/posix-headers/assert.texi (assert.h):
13690         * doc/verify.texi (Compile-time Assertions):
13691         Modernize for C2X and C++17.
13692         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
13693         New macros.
13694         (_GL_HAVE__STATIC_ASSERT): Remove.
13695         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
13696         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
13697         string.  All callers changed.
13698         (_GL_VERIFY): Require 3 or more args, of which only the first 2
13699         are used.  All callers changed.
13700         (_Static_assert): Allow either 1 or 2 args, and define if
13701         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
13702         !_GL_HAVE__STATIC_ASSERT.
13703         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
13704         of defining if !_GL_HAVE_STATIC_ASSERT.
13705         (verify_expr, verify): Don’t bother trying to copy the expression
13706         into the diagnostic, since 1-argument static_assert doesn’t.
13707         (verify): Prefer 1-argument _Static_assert if it works.
13708         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
13710 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13712         Fix _GL_HAVE__STATIC_ASSERT typo
13713         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
13714         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
13716 2019-05-05  Bruno Haible  <bruno@clisp.org>
13718         wcwidth: Ensure width 1, not 2, for ambiguous characters.
13719         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
13720         via Akim Demaille <akim.demaille@gmail.com>.
13721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
13722         en_US.UTF-8 locale, since that is more likely to be present than an
13723         fr_FR.UTF-8 locale.
13724         * tests/test-wcwidth.c (main): Check the width of U+2202.
13725         * doc/posix-functions/wcwidth.texi: Mention the issue.
13727 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13729         Port manywarnings to GCC 9
13730         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
13731         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
13732         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
13733         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
13734         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
13735         --help=warnings output.
13736         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
13737         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
13738         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
13740 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
13742         Sync lib/mktime-internal.h from glibc
13743         * config/srclist.txt: Add entry for lib/mktime-internal.h.
13744         * lib/mktime-internal.h: Autoupdate.
13746 2019-04-28  Bruno Haible  <bruno@clisp.org>
13748         tls tests: Prevent that the test takes too long.
13749         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
13750         (main): Let the test fail if it takes more than 10 minutes.
13751         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
13753 2019-04-27  Bruno Haible  <bruno@clisp.org>
13755         lock tests: Prevent that the test takes too long.
13756         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
13757         (main): Let the test fail if it takes more than 10 minutes.
13758         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
13760 2019-04-27  Bruno Haible  <bruno@clisp.org>
13762         localename: Fix crash on mingw (regression from 2018-11-23).
13763         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
13764         locale name that is null.
13766 2019-04-27  Bruno Haible  <bruno@clisp.org>
13768         Fix gcc warnings on 64-bit mode mingw.
13769         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
13770         * lib/gl_array_list.c: Likewise.
13771         * lib/gl_array_map.c: Likewise.
13772         * lib/gl_array_set.c: Likewise.
13773         * lib/gl_carray_list.c: Likewise.
13774         * lib/gl_sublist.c: Likewise.
13775         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
13776         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
13777         * lib/gl_hash_map.c (uintptr_t): Likewise.
13778         * lib/gl_hash_set.c (uintptr_t): Likewise.
13779         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
13780         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
13781         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
13782         * lib/iconv.c (uintptr_t): Likewise.
13783         * lib/iconv_close.c (uintptr_t): Likewise.
13784         * tests/test-lock.c: Include <stdint.h>.
13785         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
13786         'long'.
13787         * modules/clean-temp (Depends-on): Add stdint.
13788         * modules/array-list (Depends-on): Likewise.
13789         * modules/array-map (Depends-on): Likewise.
13790         * modules/array-set (Depends-on): Likewise.
13791         * modules/carray-list (Depends-on): Likewise.
13792         * modules/sublist (Depends-on): Likewise.
13793         * modules/lock-tests (Depends-on): Likewise.
13795 2019-04-27  Bruno Haible  <bruno@clisp.org>
13797         error: Tweak indentation.
13798         * lib/error.c: Correct indentation.
13800 2019-04-27  Bruno Haible  <bruno@clisp.org>
13802         term-style-control: Fix gcc warning on mingw.
13803         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
13804         of i.
13806 2019-04-26  Bruno Haible  <bruno@clisp.org>
13808         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
13809         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
13811 2019-04-26  Bruno Haible  <bruno@clisp.org>
13813         relocatable-prog: Fix gcc warning on mingw.
13814         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
13815         on EMX.
13817 2019-04-02  Bruno Haible  <bruno@clisp.org>
13819         gitsub.sh: New file.
13820         * top/gitsub.sh: New file.
13822 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
13824         argmatch: use void* for raw memory pointers
13825         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
13826         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
13827         to "values", keep char* for strings.
13829 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
13831         prefix-gnulib-mk: fix the support for gnulib-po
13832         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
13833         Don't touch HAVE_* variables.
13834         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
13836 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
13838         di-set: allow free with 'ino_map' being NULL.
13839         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
13840         is NULL.  Bug introduced in commit 3703dbbe88dd.
13841         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
13842         as a test.
13844 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
13846         * lib/str-two-way.h: Fix comment typo.
13848 2019-04-13  Bruno Haible  <bruno@clisp.org>
13850         x-to-1: Restore ability to use original calling convention.
13851         * build-aux/x-to-1.in: Add comments. Accept the original form of
13852         HELP2MAN argument as well as the form expected since 2012-12-12.
13854 2019-04-13  Bruno Haible  <bruno@clisp.org>
13856         x-to-1: Avoid failure due to missing perl modules.
13857         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
13858         needs are installed.
13860 2019-04-13  Bruno Haible  <bruno@clisp.org>
13862         openmp-init: New module.
13863         * modules/openmp-init: New file.
13864         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
13865         the changes from 2019-04-09.
13867 2019-04-12  Bruno Haible  <bruno@clisp.org>
13869         signbit: Fix compilation error when gnulib's math.h exists twice.
13870         * lib/math.in.h (GNULIB_defined_signbit): New macro.
13872 2019-04-12  Bruno Haible  <bruno@clisp.org>
13874         openmp: Fix compilation error on platforms without OpenMP.
13875         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
13877 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
13879         mountlist: make parsing /proc/self/mountinfo more robust
13880         Cater for the following issues with mountinfo parsing (the first
13881         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
13882         in <https://bugs.gnu.org/35137>).
13883         1. The fields source, target, mntroot and fstype may contain characters
13884         like '\r'; sscanf(3) fails to read such values with the %s format
13885         specifier because it would stop at such characters.
13886         Example: "mount -t tmpfs tmpfs /foo^Mbar".
13887         The only true separator in that file is the ' ' character.
13888         2. The source field may be an empty string, which happens e.g. with
13889         "mount -t tmpfs '' /target".
13890         3. The fstype field may contain mangled characters as well which need
13891         unescaping.
13892         * lib/mountlist.c (terminate_at_blank): Add utility function.
13893         (read_file_system_list): In the block trying to read the mountinfo file,
13894         avoid using sscanf(3) with %s format; instead, parse the above fields
13895         separated by spaces one by one.
13896         This also handles the case when the source field is an empty string.
13897         Unescape the fstype field.
13899 2019-04-09  Bruno Haible  <bruno@clisp.org>
13901         openmp: Add workaround for 32-bit programs on AIX.
13902         * lib/omp.in.h: New file.
13903         * lib/omp-init.c: New file, based on lib/nproc.c.
13904         * m4/omp_h.m4: New file.
13905         * modules/openmp (Files): Add them.
13906         (Depends-on): Add include_next, c-ctype, setenv.
13907         (configure.ac): Invoke gl_OMP_H.
13908         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
13909         (Include): Mention <omp.h>.
13911 2019-04-09  Bruno Haible  <bruno@clisp.org>
13913         nproc: Fix return value for privileged processes.
13914         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
13915         getpid().
13917 2019-04-07  Bruno Haible  <bruno@clisp.org>
13919         Add copyright notices in several files.
13920         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
13921         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
13922         * lib/libunistring.valgrind: Likewise.
13923         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
13924         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
13925         * lib/memchr.valgrind: Likewise.
13926         * lib/memchr2.valgrind: Likewise.
13927         * lib/rawmemchr.valgrind: Likewise.
13928         * lib/relocatable.valgrind: Likewise.
13929         * lib/strchrnul.valgrind: Likewise.
13931 2019-03-25  Bruno Haible  <bruno@clisp.org>
13933         term-style-control tests: Fix link error.
13934         Reported by Tom G. Christensen in
13935         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
13936         * modules/term-style-control-tests (Makefile.am): Link
13937         test-term-style-control-hello and test-term-style-control-yes against
13938         LIBINTL.
13940 2019-03-24  Bruno Haible  <bruno@clisp.org>
13942         term-style-control: Add tests.
13943         * tests/test-term-style-control-hello.c: New file.
13944         * tests/test-term-style-control-yes.c: New file.
13945         * modules/term-style-control-tests: New file.
13947         term-style-control: New module.
13948         * lib/term-style-control.h: New file, based on libtextstyle's
13949         term-ostream.oo.h and term-ostream.oo.c.
13950         * lib/term-style-control.c: New file, based on libtextstyle's
13951         term-ostream.oo.c.
13952         * modules/term-style-control: New file.
13954 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
13956         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
13957         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
13958         C++98 appears to be supported by Clang, but not by GCC nor ICC.
13960 2019-03-23  Bruno Haible  <bruno@clisp.org>
13962         Support cross-compilation to musl libc.
13963         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
13964         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
13965         musl libc.
13966         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
13967         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
13968         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13969         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13970         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13971         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
13972         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13973         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
13974         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13975         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
13976         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
13977         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
13978         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13979         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13980         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
13981         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
13982         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
13983         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13984         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
13985         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13986         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13987         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13988         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
13989         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13990         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
13991         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
13992         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
13993         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
13994         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
13995         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
13996         * m4/log.m4 (gl_FUNC_LOG): Likewise.
13997         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
13998         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
13999         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
14000         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
14001         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
14002         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
14003         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
14004         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
14005         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
14006         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
14007         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
14008         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
14009         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14010         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
14011         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
14012         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
14013         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
14014         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
14015         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
14016         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
14017         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
14018         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14019         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
14020         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14021         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
14022         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
14023         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
14024         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
14025         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
14026         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14027         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14028         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14029         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
14030         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14031         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14032         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14033         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
14034         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14035         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
14036         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14037         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14038         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14039         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14040         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
14041         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14042         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14043         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14045 2019-03-23  Bruno Haible  <bruno@clisp.org>
14047         posix_spawn_file_actions_*: Document musl libc bugs.
14048         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
14049         the bug.
14050         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
14051         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
14052         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
14053         cross-compiling to a musl system, guess no.
14054         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
14055         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
14057 2019-03-23  Bruno Haible  <bruno@clisp.org>
14059         futimens: Document musl libc bug.
14060         * doc/posix-functions/futimens.texi: Mention the bug.
14061         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
14062         cross-compiling, guess no on glibc and musl systems.
14064 2019-03-23  Bruno Haible  <bruno@clisp.org>
14066         Clarify that cross-compilation guesses are guesses.
14067         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
14068         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
14069         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
14070         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
14071         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
14072         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
14073         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
14074         gl_cv_glob_lists_symlinks.
14075         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
14076         'guessing ' to ac_cv_func_malloc_0_nonnull.
14077         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
14078         'guessing ' to ac_cv_func_realloc_0_nonnull.
14079         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
14080         'guessing ' to gl_cv_func_poll.
14081         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
14082         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
14083         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
14085 2019-03-23  Bruno Haible  <bruno@clisp.org>
14087         strtold: Fix typo.
14088         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
14090 2019-03-23  Bruno Haible  <bruno@clisp.org>
14092         noreturn: In C++ mode with clang, use _Noreturn as fallback.
14093         Reported by Akim Demaille.
14094         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
14095         [[noreturn]] would not work, use _Noreturn instead.
14097 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
14099         libtextstyle-optional: Fix compiler warnings.
14100         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
14101         as unused.
14103 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14105         bitset: fix memory leaks
14106         Reported by Bruno Haible.
14107         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
14108         * lib/bitset/vector.c (vbitset_free): New.
14109         (vbitset_vtable): Use it.
14111 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14113         bitset: minor changes
14114         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
14115         * lib/bitset/table.c: Formatting changes.
14116         Remove useless braces.
14117         Prefer using else in cascades of if/else-if with returns.
14118         * lib/bitset/vector.c: Reduce scopes.
14120 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14122         bitset: expose bitset_resize
14123         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
14124         * tests/test-bitset.c (check_attributes): Check bitset_resize.
14125         (main): Use a variable bitset as reference, since fixed does not support resize.
14127 2019-03-19  Bruno Haible  <bruno@clisp.org>
14129         doc: Document the 'stdnoreturn' and 'noreturn' modules.
14130         Reported by Akim Demaille.
14131         * doc/noreturn.texi: New file.
14132         * doc/gnulib.texi: Include it.
14134 2019-03-19  Bruno Haible  <bruno@clisp.org>
14136         doc: Document how to use 'static inline'.
14137         * doc/static-inline.texi: New file.
14138         * doc/gnulib.texi: Include it.
14140 2019-03-19  Bruno Haible  <bruno@clisp.org>
14142         libtextstyle-optional: Add tests.
14143         * tests/test-libtextstyle.c: New file, based on libtextstyle's
14144         adhoc-tests/hello.c.
14145         * tests/test-libtextstyle-default.css: New file, copied from
14146         libtextstyle's adhoc-tests/hello-default.css.
14147         * modules/libtextstyle-optional-tests: New file.
14149         libtextstyle-optional: New module.
14150         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
14151         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
14152         * modules/libtextstyle-optional: New file.
14154 2019-03-19  Bruno Haible  <bruno@clisp.org>
14156         c-stack: Make signal handlers more reliable.
14157         * lib/c-stack.c (progname): New variable.
14158         (die): Use it.
14159         (c_stack_action): Initialize it.
14160         (segv_handler): Save and restore errno.
14162 2019-03-19  Bruno Haible  <bruno@clisp.org>
14164         Help making signal handlers more reliable.
14165         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
14166         _GL_ASYNC_SAFE into config.h.
14167         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
14168         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
14169         argument.
14170         * lib/fatal-signal.c (action_t, uninstall_handlers,
14171         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
14172         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
14173         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
14174         _GL_ASYNC_SAFE.
14175         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
14176         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
14178 2019-03-18  Bruno Haible  <bruno@clisp.org>
14180         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
14181         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
14182         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
14184 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
14186         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
14187         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
14188         GCC 4.8.
14190 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
14192         fts: minor simplification
14193         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
14195 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
14197         bitset, timevar: Depend on c99.
14198         Reported by Bruno Haible.
14199         * modules/bitset, modules/timevar (Depends-on): Add c99.
14201 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
14203         bitset: a bit (...) more tests
14204         * tests/test-bitset.c (check_attributes): Check zero and ones.
14206 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
14208         bitset: fix overflows.
14209         Reported by Bruno Haible.
14210         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
14211         * lib/bitset/table.c (tbitset_test): last_bit is the position of
14212         the bit in the array of bitset_word, so be sure to take its modulo
14213         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
14214         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
14216 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
14218         bitset: style changes.
14219         * lib/bitset/table.c: Use NULL, not 0, for pointers.
14220         Formatting changes.
14221         (tbitset_list): Reduce scopes.
14223 2019-03-16  Bruno Haible  <bruno@clisp.org>
14225         fatal-signal: Pass the signal number to the action.
14226         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
14227         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
14228         (fatal_signal_handler): Pass the signal number to the action.
14229         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
14230         signal number as parameter.
14231         (create_temp_dir): Update.
14232         * lib/wait-process.c (cleanup_slaves_action): New function.
14233         (register_slave_subprocess): Update at_fatal_signal invocation.
14234         * NEWS: Mention the change.
14236 2019-03-16  Bruno Haible  <bruno@clisp.org>
14238         fatal-signal: Add function that lists the fatal signals.
14239         * lib/fatal-signal.h (get_fatal_signals): New declaration.
14240         * lib/fatal-signal.c (get_fatal_signals): New function.
14242 2019-03-14  Bruno Haible  <bruno@clisp.org>
14244         isatty: Make it return true in Cygwin consoles on native Windows.
14245         * lib/isatty.c: Include <string.h>.
14246         (GetProcAddress): New macro.
14247         (GetNamedPipeClientProcessIdFuncType): New type.
14248         (GetNamedPipeClientProcessIdFunc): New variable.
14249         (QueryFullProcessImageNameFuncType): New type.
14250         (QueryFullProcessImageNameFunc): New variable.
14251         (initialized): New variable.
14252         (initialize): New function.
14253         (IsCygwinConsoleHandle): New function.
14254         (isatty): Invoke it.
14255         * doc/posix-functions/isatty.texi: Mention the issue.
14257 2019-03-14  Bruno Haible  <bruno@clisp.org>
14259         all: Update URLs to msdn.microsoft.com.
14260         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
14261         was moved to docs.microsoft.com.
14263 2019-03-13  Bruno Haible  <bruno@clisp.org>
14265         gnulib-tool: Clarify the coding style.
14266         Suggested by Pavel Raiskup <praiskup@redhat.com>.
14267         * gnulib-tool: Add comment about coding style.
14269 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
14271         strtod: fix clash with strtold
14272         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
14273         * lib/strtod.c (compute_minus_zero, minus_zero):
14274         Simplify by remving the macro / external variable,
14275         and having just a function.  User changed.  This avoids
14276         the need for an external variable that might clash.
14278 2019-03-10  Bruno Haible  <bruno@clisp.org>
14280         alloca-opt: Fix conflict mingw's new <alloca.h> file.
14281         Reported by Eli Zaretskii <eliz@gnu.org>.
14282         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
14283         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
14284         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
14286 2019-03-10  Bruno Haible  <bruno@clisp.org>
14288         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
14289         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
14290         is in use.
14291         * tests/test-printf-posix2.c: Likewise.
14293 2019-03-10  Bruno Haible  <bruno@clisp.org>
14295         uninorm tests: Free allocated memory.
14296         * tests/uninorm/test-u32-normalize-big.h
14297         (struct normalization_test_file): Remove 'const' from allocated member.
14298         (free_normalization_test_file): New declaration.
14299         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
14300         memory.
14301         (free_normalization_test_file): New function.
14302         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
14303         'struct normalization_test_file' contents.
14304         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
14305         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
14306         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
14308 2019-03-10  Bruno Haible  <bruno@clisp.org>
14310         di-set: Fix memory leak.
14311         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
14312         not free().
14314 2019-03-10  Bruno Haible  <bruno@clisp.org>
14316         tests: Free allocated memory.
14317         Reported by <deltatau@protonmail.com> via Assaf Gordon.
14318         * tests/test-astrxfrm.c (main): Free allocated memory.
14319         * tests/test-bitset.c (compare, check_attributes): Free allocated
14320         bitsets.
14321         * tests/test-filenamecat.c (main): Free allocated memory.
14322         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
14323         * tests/test-freadptr.c (main): Likewise.
14324         * tests/test-freadptr2.c (main): Free allocated memory.
14325         * tests/test-freadseek.c (main): Likewise.
14326         * tests/test-gc-arcfour.c (main): Close allocated context.
14327         * tests/test-gc-arctwo.c (main): Likewise.
14328         * tests/test-gc-des.c (main): Close all allocated contexts.
14329         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
14330         * tests/test-pipe-filter-ii1.c (main): Likewise.
14331         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
14332         allocated file actions.
14333         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
14334         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
14335         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
14336         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
14337         * tests/test-strfmon_l.c (main): Free allocated locales.
14338         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
14339         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
14340         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14341         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
14342         * tests/unistr/test-chr.h (main): Free input32.
14343         * tests/unistr/test-strchr.h (test_strchr): Likewise.
14345 2019-03-10  Bruno Haible  <bruno@clisp.org>
14347         tests: Prepare for using valgrind.
14348         * tests/*.sh: Invoke all test programs through ${CHECKER}.
14349         * tests/*/*.sh: Likewise.
14350         * tests/test-freadptr.c (main): Update accordingly.
14351         * tests/test-freadseek.c (main): Likewise.
14353 2019-03-09  Bruno Haible  <bruno@clisp.org>
14355         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
14356         * lib/get-rusage-as.c (get_rusage_as): When compiled by
14357         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
14358         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
14359         before exiting.
14361 2019-03-09  Jim Meyering  <meyering@fb.com>
14363         test-userspec.c: don't print NULL
14364         * tests/test-userspec.c (main): A test release of gcc,
14365         9.0.1 20190310, warned that this test would attempt to
14366         print a NULL pointer via a %s printf format.  Fix that
14367         and remove the unnecessary preceding "!diag" conjunct.
14368         Also add a comment.
14370 2019-03-03  Bruno Haible  <bruno@clisp.org>
14372         getloadavg: Write NULL for the null pointer.
14373         Reported by Michal Privoznik <mprivozn@redhat.com>.
14374         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
14376 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
14378         alloca, tsearch-tests: Write NULL for the null pointer.
14379         * lib/alloca.c (i00afunc): Write NULL instead of 0.
14380         * tests/test-tsearch.c (mangle_tree): Likewise.
14382 2019-03-09  Bruno Haible  <bruno@clisp.org>
14384         strfmon_l: Fix -fsanitize=address finding.
14385         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
14386         <string.h>.
14387         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
14388         (directive_t, directives_t): New types.
14389         (fmon_parse): New function.
14390         (rpl_strfmon_l): Don't call va_arg more often than needed for the
14391         format string. Consume 'long double' arguments in places where the
14392         format string indicates so.
14393         * modules/strfmon_l (Depends-on): Add 'stdbool'.
14395 2019-03-09  Bruno Haible  <bruno@clisp.org>
14397         crypto/des: Fix undefined behaviour.
14398         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
14399         shift operations on 'int'.
14401 2019-03-09  Bruno Haible  <bruno@clisp.org>
14403         Fix undefined behaviour.
14404         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
14405         'unsigned int', to avoid shift operations on 'int'.
14406         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
14407         * tests/test-count-leading-zeros.c (main): Use a random number that has
14408         as many bits as TYPE, not only 2*15 or 2*31 bits.
14409         * tests/test-count-trailing-zeros.c (main): Likewise.
14410         * tests/test-count-one-bits.c (main): Likewise.
14411         * tests/test-memmem.c: Don't include "null-ptr.h".
14412         (main): Use zerosize_ptr() instead of null_ptr().
14413         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
14415 2019-03-08  Bruno Haible  <bruno@clisp.org>
14417         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
14418         Reported by Jeffrey Walton <noloader@gmail.com>.
14419         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
14420         invoke memset with a zero size.
14421         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
14422         Likewise.
14423         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
14424         Adjust accordingly.
14426 2019-03-08  Bruno Haible  <bruno@clisp.org>
14428         unistr/*, uniconv/*: Fix undefined behaviour.
14429         Reported by Jeffrey Walton <noloader@gmail.com>.
14430         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
14431         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
14432         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14433         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14435 2019-03-08  Bruno Haible  <bruno@clisp.org>
14437         unistr/u8-cmp: Fix undefined behaviour.
14438         Reported by Jeffrey Walton <noloader@gmail.com>.
14439         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
14441 2019-03-08  Bruno Haible  <bruno@clisp.org>
14443         unictype/numeric: Fix undefined behaviour.
14444         Reported by Jeffrey Walton <noloader@gmail.com>.
14445         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
14446         on shift overflow, caught by "gcc -fsanitize=undefined".
14447         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
14448         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
14449         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
14451 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
14453         git-version-gen: fix --version copyright year
14454         * build-aux/git-version-gen, build-aux/move-if-change (version):
14455         --version output copyright year is now taken from script year,
14456         so that it no longer needs to be updated by hand.
14458 2019-03-04  Bruno Haible  <bruno@clisp.org>
14460         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
14461         This approach supports relocatable installation of shared libraries
14462         which depend on other shared libraries from the same package.
14463         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14464         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
14465         wrapper around the original LIBTOOL.
14466         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
14467         token '@loader_path' instead of '$ORIGIN'.
14468         * build-aux/libtool-reloc: New file.
14469         * modules/relocatable-prog (Files): Add it.
14470         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14471         the recent changes. Document the need to set the *_LDFLAGS of libraries.
14472         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
14473         Makefile.am, not in configure.ac.
14475 2019-03-04  Bruno Haible  <bruno@clisp.org>
14477         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
14478         * build-aux/install-reloc: Revert change.
14479         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
14481 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14483         nstrftime: support the ‘+’ flag
14484         * lib/nstrftime.c (add, __strftime_internal):
14485         Add support for the ‘+’ flag introduced in POSIX.1-2017.
14486         (__strftime_internal): New arg ‘width’.  All uses changed.
14487         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
14489 2019-02-24  Bruno Haible  <bruno@clisp.org>
14491         relocatable-prog: Improve verbose output.
14492         * build-aux/install-reloc (func_verbose): Escape characters that would
14493         be interpreted by the shell.
14495 2019-02-24  Bruno Haible  <bruno@clisp.org>
14497         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
14498         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
14499         "sys/stat.h".
14500         * lib/lstat.c: Likewise.
14501         * lib/fstat.c: Likewise.
14502         * lib/fstatat.c: Likewise.
14504 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
14506         long-options: add parse_gnu_standard_options_only
14507         Discussed in https://bugs.gnu.org/33468 .
14509         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
14510         (parse_gnu_standard_options_only): Add function to process
14511         the GNU default options --help and --version and fail for
14512         any other unknown long or short option. See
14513         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
14514         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
14515         * modules/long-options (depends-on): Add stdbool, exitfail.
14516         * top/maint.mk (sc_prohibit_long_options_without_use): Update
14517         syntax-check rule, add new function name.
14519 2019-02-23  Bruno Haible  <bruno@clisp.org>
14521         relocatable-prog: Update documentation.
14522         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14523         the recent changes.
14525 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14527         nstrftime: tweak arg order
14528         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
14529         All callers changed.  Suggested by TAMUKI Shoichi in:
14530         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
14532 2019-02-23  Bruno Haible  <bruno@clisp.org>
14534         relocatable-prog: Use wrapper-free installation also on Mac OS X.
14535         Reported by Paul Smith <psmith@gnu.org>.
14536         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
14537         (func_relativize): New function, from gnulib-tool.
14538         Handle mode 'macosx' through invocations of 'otool' and
14539         'install_name_tool'.
14540         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14541         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
14542         'install-reloc' invocation with mode 'macosx'.
14544 2019-02-23  Bruno Haible  <bruno@clisp.org>
14546         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
14547         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14548         Hurd with glibc >= 2.27.
14550 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14552         nstrftime: merge glibc strftime changes
14553         This incorporates:
14554         2019-02-11 Fix a few whitespace arrangement inconsistencies
14555         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
14556         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
14557         2019-01-11 strftime: use the "L_" macro with character literals
14558         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
14559         callers changed.  Default width of %Ey is now 2.  This is needed
14560         for proper handling of Japanese dates starting on 2019-05-01.
14562 2019-02-19  Bruno Haible  <bruno@clisp.org>
14564         relocatable-prog: Use $ORIGIN trick on more platforms.
14565         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14566         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
14567         Solaris >= 10, Haiku. But don't use it on Android.
14568         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
14569         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
14571 2019-02-19  Bruno Haible  <bruno@clisp.org>
14573         progreloc: Speed up executable lookup on various platforms.
14574         * lib/progreloc.c: Include <errno.h>.
14575         (safe_read, full_read): New functions.
14576         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
14577         prefer the information from the /proc file system to a PATH search.
14579 2019-02-19  Bruno Haible  <bruno@clisp.org>
14581         progreloc: Simplify code for Android.
14582         * lib/progreloc.c (executable_fd): Don't define on Android.
14583         (maybe_executable, find_executable): Don't use executable_fd on Android.
14585 2019-02-15  Bruno Haible  <bruno@clisp.org>
14587         gnulib-tool: Support --import with just a few tests, not --with-tests.
14588         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
14589         'inctests' when generating files; use 'inctests' only for computing the
14590         transitive closure.
14592 2019-02-14  Bruno Haible  <bruno@clisp.org>
14594         gnulib-tool: Improve handling of multiple --local-dir options.
14595         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
14596         options work.
14597         * gnulib-tool (func_path_prepend): Remove function.
14598         (func_path_foreach): Make IFS handling more robust.
14599         (local_gnulib_path): Collect --local-dir values using func_path_append,
14600         not func_path_prepend.
14601         (func_determine_path_separator): Make IFS handling more robust.
14602         (func_lookup_file_cb): New function.
14603         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
14604         func_lookup_local_file. Apply the patches in the reverse order of their
14605         origin in $local_gnulib_path.
14606         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
14607         * NEWS: Mention that the first --local-dir option is the one with
14608         highest priority.
14610 2019-02-10  Bruno Haible  <bruno@clisp.org>
14612         libtextstyle: New module.
14613         * m4/libtextstyle.m4: New file.
14614         * modules/libtextstyle: New file.
14616 2019-02-05  Bruno Haible  <bruno@clisp.org>
14618         declared.sh: Fix bug with variables of pointer type.
14619         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
14620         before the symbol to be omitted if the preceding character is a '*'.
14622 2019-02-04  Bruno Haible  <bruno@clisp.org>
14624         Add script for running tests under valgrind.
14625         * build-aux/run-test: New file, from GNU libunistring.
14626         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
14627         as well.
14629 2019-02-04  Bruno Haible  <bruno@clisp.org>
14631         declared.sh: Fix --version output.
14632         * build-aux/declared.sh (func_version): Update package name.
14634 2019-02-03  Bruno Haible  <bruno@clisp.org>
14636         Add script for determining the set of symbols to export from a library.
14637         * build-aux/declared.sh: New file, from GNU libunistring.
14638         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
14639         Mention it.
14641 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
14643         vla: add commentary about VLA_ELEMS
14644         * lib/vla.h (VLA_ELEMS): Add commentary,
14645         some inspired by Bruno Haible’s proposal in:
14646         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
14648         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
14649         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
14650         assume the C99 signatures for strtod and strtold.  Programs that
14651         require stricter adherence to C99 should also use the strtod and
14652         strtold modules as needed, and we no longer need the
14653         HAVE_C99_STRTOLD macro.
14654         * NEWS: Mention this.
14655         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
14656         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
14657         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
14658         (Files): Remove m4/c-strtod.m4.
14659         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
14660         exists.
14662 2019-02-02  Bruno Haible  <bruno@clisp.org>
14664         fma: Improve code style.
14665         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
14667 2019-02-02  Colin Watson  <cjwatson@debian.org>
14669         *-map tests: Fix compilation error.
14670         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
14671         * tests/test-hash_map.c: Likewise.
14672         * tests/test-linkedhash_map.c: Likewise.
14674 2019-01-31  Bruno Haible  <bruno@clisp.org>
14676         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
14677         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
14678         GNULIB_defined_strtold_function): New macros.
14679         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
14680         (STRTOD): Ignore HAVE_C99_STRTOLD.
14681         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
14682         deemed buggy. But do use it on platforms where uselocale exists and is
14683         usable.
14684         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
14685         deemed buggy. On platforms where uselocale exists and is usable, use
14686         uselocale and strtod/strtold.
14687         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
14688         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
14689         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
14690         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
14691         (Depends-on): Add strtod.
14692         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
14693         (Depends-on): Add strtold.
14695 2019-01-31  Bruno Haible  <bruno@clisp.org>
14697         strtod, strtold: Use the locale's decimal point.
14698         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
14699         (decimal_point_char): New function, copied from lib/vasnprintf.c.
14700         (parse_number): Add a radixchar argument. Use it instead of '.'.
14701         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
14702         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
14703         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
14704         * tests/test-strtod1.c: New file.
14705         * tests/test-strtod1.sh: New file.
14706         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
14707         locale-fr.m4 and its dependencies.
14708         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
14709         (Makefile.am): Arrange to compile test-strtod1.c and run
14710         test-strtod1.sh.
14711         * tests/test-strtold1.c: New file.
14712         * tests/test-strtold1.sh: New file.
14713         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
14714         locale-fr.m4 and its dependencies.
14715         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
14716         (Makefile.am): Arrange to compile test-strtold1.c and run
14717         test-strtold1.sh.
14719 2019-01-31  Bruno Haible  <bruno@clisp.org>
14721         strtod, strtold tests: Simplify tests.
14722         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
14723         * tests/test-strtold.c (main): Likewise.
14725 2019-01-31  Bruno Haible  <bruno@clisp.org>
14727         strtod, strtold: Avoid unnecessary rounding errors.
14728         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
14729         decimal to DOUBLE conversion.
14731 2019-01-31  Bruno Haible  <bruno@clisp.org>
14733         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
14734         * lib/strtod.c (STRTOD): When there is an extra character after the
14735         exponent marker 'p', reparse the number.
14736         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
14737         * doc/posix-functions/strtold.texi: Likewise.
14739 2019-01-29  Bruno Haible  <bruno@clisp.org>
14741         strtold: Add tests.
14742         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
14743         * modules/strtold-tests: New file.
14745 2019-01-29  Bruno Haible  <bruno@clisp.org>
14747         strtold: New module.
14748         * lib/stdlib.in.h (strtold): New declaration.
14749         * lib/strtold.c: New file.
14750         * lib/strtod.c: Consider USE_LONG_DOUBLE.
14751         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
14752         USE_LDEXP): New macros.
14753         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
14754         USE_LONG_DOUBLE.
14755         (underlying_strtod): Remove function. Replace with some macros.
14756         Re-add the code for a missing underlying function that was removed on
14757         2013-02-19.
14758         * m4/strtold.m4: New file.
14759         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
14760         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
14761         REPLACE_STRTOLD.
14762         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
14763         REPLACE_STRTOLD.
14764         * modules/strtold: New file.
14765         * doc/posix-functions/strtold.texi: Document the new module.
14767 2019-01-29  Bruno Haible  <bruno@clisp.org>
14769         strtod: Fix compilation error on IRIX 6.5.
14770         * modules/strtod (Depends-on): Add 'math'.
14772 2019-01-28  Bruno Haible  <bruno@clisp.org>
14774         Fix build error when building a shared libunistring on Android.
14775         * tests/uninorm/test-nfc.c (n): Don't define on Android.
14776         (main): Add 'volatile', to defeat a GCC optimization that would
14777         eliminate the reference.
14778         * tests/uninorm/test-nfd.c (n): Don't define on Android.
14779         (main): Add 'volatile', to defeat a GCC optimization that would
14780         eliminate the reference.
14781         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
14782         (main): Add 'volatile', to defeat a GCC optimization that would
14783         eliminate the reference.
14784         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
14785         (main): Add 'volatile', to defeat a GCC optimization that would
14786         eliminate the reference.
14788 2019-01-27  Bruno Haible  <bruno@clisp.org>
14790         Avoid build errors due to wrong references between modules.
14791         * lib/uninorm/canonical-decomposition.c: Include
14792         "uninorm/decomposition-table.h", not "decomposition-table.h".
14793         * lib/uninorm/decomposition.c: Likewise.
14794         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
14795         not "decompose-internal.h".
14796         * lib/uninorm/u16-normalize.c: Likewise.
14797         * lib/uninorm/u32-normalize.c: Likewise.
14798         * lib/uninorm/uninorm-filter.c: Likewise.
14799         * lib/uninorm/nfkc.c: Likewise.
14800         * lib/uninorm/nfkd.c: Likewise.
14801         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
14802         "caseprop.h".
14803         * lib/unicase/u8-ct-totitle.c: Likewise.
14804         * lib/unicase/u8-prefix-context.c: Likewise.
14805         * lib/unicase/u8-suffix-context.c: Likewise.
14806         * lib/unicase/u16-casemap.c: Likewise.
14807         * lib/unicase/u16-ct-totitle.c: Likewise.
14808         * lib/unicase/u16-prefix-context.c: Likewise.
14809         * lib/unicase/u16-suffix-context.c: Likewise.
14810         * lib/unicase/u32-casemap.c: Likewise.
14811         * lib/unicase/u32-ct-totitle.c: Likewise.
14812         * lib/unicase/u32-prefix-context.c: Likewise.
14813         * lib/unicase/u32-suffix-context.c: Likewise.
14814         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
14815         "unicasemap.h".
14816         * lib/unicase/u8-toupper.c: Likewise.
14817         * lib/unicase/u8-ct-tolower.c: Likewise.
14818         * lib/unicase/u8-ct-toupper.c: Likewise.
14819         * lib/unicase/u16-tolower.c: Likewise.
14820         * lib/unicase/u16-toupper.c: Likewise.
14821         * lib/unicase/u16-ct-tolower.c: Likewise.
14822         * lib/unicase/u16-ct-toupper.c: Likewise.
14823         * lib/unicase/u32-tolower.c: Likewise.
14824         * lib/unicase/u32-toupper.c: Likewise.
14825         * lib/unicase/u32-ct-tolower.c: Likewise.
14826         * lib/unicase/u32-ct-toupper.c: Likewise.
14827         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
14828         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
14829         * lib/unicase/u16-ct-casefold.c: Likewise.
14830         * lib/unicase/u32-ct-casefold.c: Likewise.
14832 2019-01-27  Bruno Haible  <bruno@clisp.org>
14834         gperf: Fix error when this module is required by some test module.
14835         * modules/gperf (Applicability): Set to 'all'.
14837 2019-01-27  Bruno Haible  <bruno@clisp.org>
14839         tmpfile: Add support for Android.
14840         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
14841         works.
14842         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
14843         Android.
14844         * modules/tmpfile (Depends-on): Add 'stdbool'.
14845         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
14846         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
14848 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
14850         bitsetv: allow free on NULL.
14851         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
14853 2019-01-27  Bruno Haible  <bruno@clisp.org>
14855         test-framework-sh: Improve maintainability.
14856         * tests/init.sh: Clarify what belongs together. Reorder definitions.
14858 2019-01-27  Bruno Haible  <bruno@clisp.org>
14860         tests: Don't assume that /tmp exists.
14861         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
14862         * tests/test-copy-acl-1.sh: Likewise.
14863         * tests/test-file-has-acl-1.sh: Likewise.
14864         * tests/test-copy-file-1.sh: Likewise.
14866 2019-01-27  Bruno Haible  <bruno@clisp.org>
14868         tests: Accommodate a shell that is not in /bin/sh.
14869         * tests/init.sh (setup_): Set srcdir and builddir.
14870         (BOURNE_SHELL): New variable.
14871         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
14872         * modules/file-has-acl-tests (Depends-on): Likewise.
14873         * modules/copy-file-tests (Depends-on): Likewise.
14874         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
14875         scripts through $BOURNE_SHELL.
14876         * tests/test-set-mode-acl-2.sh: Likewise.
14877         * tests/test-copy-acl-1.sh: Likewise.
14878         * tests/test-copy-acl-2.sh: Likewise.
14879         * tests/test-file-has-acl-1.sh: Likewise.
14880         * tests/test-file-has-acl-2.sh: Likewise.
14881         * tests/test-copy-file-1.sh: Likewise.
14882         * tests/test-copy-file-2.sh: Likewise.
14883         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
14884         invoker.
14885         * tests/test-copy-acl.sh (builddir): Likewise.
14886         * tests/test-file-has-acl.sh (builddir): Likewise.
14887         * tests/test-copy-file.sh (builddir): Likewise.
14888         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
14889         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
14890         * tests/test-vc-list-files-git.sh: Likewise.
14892 2019-01-27  Bruno Haible  <bruno@clisp.org>
14894         tests: Fix some "unused variable" warnings.
14895         * tests/test-fts.c (fts_dealloc): Remove unused variable.
14896         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
14897         * tests/test-striconveh.c (main): Move some variable into the
14898         '#if HAVE_ICONV'.
14899         * tests/test-striconveha.c (main): Likewise.
14900         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14901         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14902         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14903         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
14904         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14905         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
14906         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14907         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14908         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14909         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
14910         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
14911         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
14912         * tests/test-tsearch.c (main): Move some variable into the
14913         '#if HAVE_INITSTATE'.
14915 2019-01-27  Bruno Haible  <bruno@clisp.org>
14917         unigbrk/uc-grapheme-breaks: Fix build failure.
14918         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
14919         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
14921 2019-01-27  Bruno Haible  <bruno@clisp.org>
14923         mountlist: Merge two .m4 files.
14924         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
14925         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
14926         * m4/ls-mntd-fs.m4: Remove file.
14927         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
14929 2019-01-27  Bruno Haible  <bruno@clisp.org>
14931         tests: Enable Linux specific tests on Android.
14932         * tests/test-flock.c (main): Treat Android like Linux.
14933         * tests/test-openat-safer.c (main): Likewise.
14935 2019-01-27  Bruno Haible  <bruno@clisp.org>
14937         relocatable-prog: Use Linux code on Android.
14938         * lib/progreloc.c: Treat Android like Linux.
14940 2019-01-26  Bruno Haible  <bruno@clisp.org>
14942         getloadavg: Add support for Android.
14943         * lib/getloadavg.c: Treat Android like Linux.
14945 2019-01-26  Bruno Haible  <bruno@clisp.org>
14947         vma-iter: Add support for Android.
14948         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
14949         * lib/vma-iter.c: Treat Android like Linux.
14950         * lib/get-rusage-data.c (get_rusage_data): Likewise.
14952 2019-01-26  Bruno Haible  <bruno@clisp.org>
14954         fts: Optimize on Android.
14955         * lib/fts.c: Treat Android like Linux.
14957 2019-01-26  Bruno Haible  <bruno@clisp.org>
14959         fts: Add support for Android.
14960         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
14961         defined by this module and the ones in libc.
14962         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
14964 2019-01-26  Bruno Haible  <bruno@clisp.org>
14966         mountlist: Use Linux code on Android.
14967         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
14968         (unescape_tab, read_file_system_list): Enable Linux code on Android
14969         as well.
14970         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
14971         and endmntent.
14972         * modules/mountlist (Depends-on): Add 'getline'.
14974 2019-01-26  Bruno Haible  <bruno@clisp.org>
14976         localename tests: Fix test failure on Android.
14977         * modules/localename-tests (Depends-on): Add 'setlocale'.
14979 2019-01-26  Bruno Haible  <bruno@clisp.org>
14981         mountlist: Port better to Android.
14982         * lib/mountlist.c (MOUNTED): Redefine on Android.
14983         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
14984         Android.
14986 2019-01-26  Bruno Haible  <bruno@clisp.org>
14988         striconveh: Fix use of uninitialized iconv_t.
14989         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
14990         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
14991         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
14993 2019-01-26  Bruno Haible  <bruno@clisp.org>
14995         nonblocking-socket-tests: Fix test failure on Android 4.3.
14996         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
14997         also on Android.
14999 2019-01-26  Bruno Haible  <bruno@clisp.org>
15001         sh-filename: Add support for Android 4.3.
15002         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
15004 2019-01-26  Bruno Haible  <bruno@clisp.org>
15006         ptsname_r: Work around bug on Android 4.3.
15007         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
15008         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
15009         correct.
15010         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
15011         is defined, just fix the return value.
15012         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
15013         The behaviour of musl libc is nothing to be "fixed", since it is
15014         compliant with the next POSIX standard.
15016 2019-01-26  Bruno Haible  <bruno@clisp.org>
15018         ttyname_r: Work around bug on Android 4.3.
15019         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
15020         * lib/ttyname_r.c (ttyname_r): Implement for Android.
15021         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
15022         * doc/posix-functions/ttyname.texi: Likewise.
15024 2019-01-25  Bruno Haible  <bruno@clisp.org>
15026         getprogname: Port to Android 4.3.
15027         * lib/getprogname.c (getprogname): On Android, take only the last
15028         component of __progname.
15030 2019-01-25  Bruno Haible  <bruno@clisp.org>
15032         wcrtomb: Work around bug on Android 4.3.
15033         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
15034         the C locale.
15035         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
15036         which does not have the 'wctomb' function.
15037         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
15038         * tests/test-wcrtomb.c (main): Accept argument '5'.
15039         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
15041 2019-01-25  Bruno Haible  <bruno@clisp.org>
15043         setlocale: Work around bug on Android 4.3.
15044         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
15045         the "C" locale.
15046         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
15047         * doc/posix-functions/setlocale.texi: Mention the Android bug.
15049 2019-01-24  Bruno Haible  <bruno@clisp.org>
15051         memchr: Work around bug on Android <= 5.0.
15052         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
15053         * doc/posix-functions/memchr.texi: Mention the Android bug.
15055 2019-01-24  Bruno Haible  <bruno@clisp.org>
15057         random: Fix compilation error on Android 4.3.
15058         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
15059         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
15060         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
15061         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
15062         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
15064         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15065         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
15066         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15067         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
15068         REPLACE_INITSTATE, REPLACE_SETSTATE.
15069         * doc/posix-functions/random.texi: Correct the description of the
15070         situation on Android.
15071         * doc/posix-functions/srandom.texi: Likewise.
15072         * doc/posix-functions/rand.texi: Likewise.
15073         * doc/posix-functions/srand.texi: Likewise.
15075 2019-01-24  Bruno Haible  <bruno@clisp.org>
15077         mbtowc: Fix compilation error on Android 4.3.
15078         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
15079         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
15080         HAVE_MBTOWC.
15081         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
15082         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
15083         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
15084         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
15085         * doc/posix-functions/mbtowc.texi: Mention the change.
15087 2019-01-24  Bruno Haible  <bruno@clisp.org>
15089         fdatasync: Fix compilation error on Android 4.3.
15090         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
15091         test whether fdatasync() exists.
15093 2019-01-24  Bruno Haible  <bruno@clisp.org>
15095         unlinkat: Fix compilation error on Android 4.3.
15096         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
15097         also on Android.
15098         * doc/posix-functions/unlinkat.texi: Mention the issue.
15100 2019-01-24  Bruno Haible  <bruno@clisp.org>
15102         renameat: Fix compilation error on Android 4.3.
15103         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
15104         * doc/posix-functions/renameat.texi: Mention the issue.
15106 2019-01-24  Bruno Haible  <bruno@clisp.org>
15108         fchownat: Fix compilation error on Android 4.3.
15109         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
15110         use.
15111         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
15112         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
15113         * doc/posix-functions/fchownat.texi: Mention the issue.
15115 2019-01-23  Bruno Haible  <bruno@clisp.org>
15117         gnulib-tool: Support running testdirs on Android.
15118         * build-aux/test-driver.diff: New file.
15119         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
15120         build-aux/test-driver after running automake.
15122 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
15124         relocatable-prog: avoid warnings from Automake
15125         * modules/relocatable-prog: Don't declare PHONY dependencies in
15126         Automake conditionals.
15128 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
15130         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
15131         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
15133 2019-01-23  Bruno Haible  <bruno@clisp.org>
15135         threadlib: Revert commit from 2018-06-25. We now have a better fix.
15136         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
15137         preceding -Wl,--as-needed option. Don't check whether the linker
15138         supports --as-needed/--no-as-needed and --push-state/--pop-state.
15140 2019-01-23  Bruno Haible  <bruno@clisp.org>
15142         thread: Force linking with -lpthread, even when --as-needed is in use.
15143         Reported by Richard W.M. Jones <rjones@redhat.com> in
15144         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
15145         * lib/glthread/thread.h (pthread_create): Don't declare weak.
15147 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
15148             Bruno Haible  <bruno@clisp.org>
15150         relocatable: avoid compiler warnings (-Wshadow)
15151         * lib/relocatable.c (compute_curr_prefix): Rename local variables
15152         to avoid name collisions with global variables.
15154 2019-01-22  Bruno Haible  <bruno@clisp.org>
15156         vasnprintf: Don't use %n on Android.
15157         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
15158         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
15159         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
15161 2019-01-22  Bruno Haible  <bruno@clisp.org>
15163         *printf: Support cross-compilation to Android.
15164         * m4/printf.m4: Add cross-compilation guesses for Android.
15166 2019-01-21  Bruno Haible  <bruno@clisp.org>
15168         diacrit: Mark deprecated.
15169         * modules/diacrit (Status, Notice): Mark as deprecated.
15170         * NEWS: Mention it.
15172 2019-01-20  Bruno Haible  <bruno@clisp.org>
15174         rintl: Override broken implementation on NetBSD.
15175         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
15176         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
15177         REPLACE_RINTL.
15178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
15179         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
15180         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
15181         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
15183 2019-01-20  Bruno Haible  <bruno@clisp.org>
15185         log10l: Work around inaccurate implementation on NetBSD.
15186         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
15187         * lib/log10l.c: Comment out too simplistic override.
15188         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
15190 2019-01-20  Bruno Haible  <bruno@clisp.org>
15192         logl: Work around inaccurate implementation on NetBSD.
15193         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
15194         * lib/logl.c: Comment out unused code.
15195         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
15197 2019-01-20  Bruno Haible  <bruno@clisp.org>
15199         expm1l: Work around inaccurate implementation on NetBSD.
15200         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
15201         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
15202         REPLACE_EXPM1L.
15203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
15204         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
15205         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
15206         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
15208 2019-01-20  Bruno Haible  <bruno@clisp.org>
15210         expl: Work around inaccurate implementation on NetBSD.
15211         * lib/math.in.h (expl): Test also REPLACE_EXPL.
15212         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
15213         REPLACE_EXPL.
15214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
15215         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
15216         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
15217         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
15219 2019-01-20  Bruno Haible  <bruno@clisp.org>
15221         exp2l: Work around inaccurate implementation on NetBSD.
15222         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
15223         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
15225 2019-01-20  Bruno Haible  <bruno@clisp.org>
15227         floor, floorl: Avoid autoconf warnings.
15228         * modules/floor (configure.ac): Use AC_REQUIRE.
15229         * modules/floorl (configure.ac): Likewise.
15231 2019-01-20  Bruno Haible  <bruno@clisp.org>
15233         Defeat current GCC optimizations in math autoconf tests.
15234         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
15235         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15236         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15237         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15238         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
15239         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
15240         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15241         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15242         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
15243         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
15244         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
15245         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
15246         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
15247         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
15248         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
15249         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
15250         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
15251         * m4/log.m4 (gl_FUNC_LOG): Likewise.
15252         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
15253         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
15254         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
15255         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
15256         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
15257         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
15258         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
15259         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
15260         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
15261         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
15262         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
15263         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
15264         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15265         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
15266         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15267         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15268         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15269         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15270         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15271         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15273 2019-01-19  Pádraig Brady  <P@draigBrady.com>
15275         gettext: support disabling use of VLAs
15276         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
15278 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
15280         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
15281         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
15283 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
15285         fcntl: Fix syntax error (regression from 2018-10-05).
15286         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
15288 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15290         relocatable: improve documentation.
15291         * doc/relocatable-maint.texi (Supporting Relocation): For
15292         substitutions performed by config.status, we need more variables
15293         (for instance datarootdir defaults to '${prefix}/share' so we need
15294         prefix).
15296 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15298         backup: update dependencies
15299         * modules/backup-rename (Depends-on): It now depends on opendirat
15300         instead of opendir.  It also uses stdint, and xalloc-oversized.
15301         But no longer dirfd.
15302         * modules/backupfile (Depends-on): Add xalloc-oversized.
15304 2019-01-13  Bruno Haible  <bruno@clisp.org>
15306         getcwd: Fix test failure when building on a Linux 9p file system.
15307         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
15308         EINVAL from mkdir like ENAMETOOLONG.
15309         * tests/test-getcwd.c (test_long_name): Likewise.
15311 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
15313         Fix typos found by codespell.
15314         * lib/*.[hc]: Fix typos in comments.
15315         * pygnulib/*.py: Fix typos in error messages and comments.
15317 2019-01-12  Bruno Haible  <bruno@clisp.org>
15319         doc: Fix documentation about container data types.
15320         Reported by Werner Lemberg <wl@gnu.org>.
15321         * doc/containers.texi (Container data types): Fix typo.
15323 2019-01-10  Bruno Haible  <bruno@clisp.org>
15325         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
15326         Reported by Reuben Thomas <rrt@sc3d.org>.
15327         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
15329 2019-01-06  Bruno Haible  <bruno@clisp.org>
15331         maintainer-makefile: Make the configure.ac section optional.
15332         * top/maint.mk (GREP, SED): Define if not defined.
15334 2019-01-06  Bruno Haible  <bruno@clisp.org>
15336         localename: Assume setlocale function.
15337         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
15338         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
15340 2019-01-06  Bruno Haible  <bruno@clisp.org>
15342         doc: Add documentation about container data types.
15343         * doc/containers.texi: New file.
15344         * doc/gnulib.texi (Particular Modules): Include it.
15346 2019-01-06  Bruno Haible  <bruno@clisp.org>
15348         doc: Update documentation about 'progname' module.
15349         * doc/progname.texi: Rename from doc/error.texi. Change node name and
15350         title. Rewrite.
15351         * doc/gnulib.texi (Particular Modules): Update.
15353 2019-01-06  Bruno Haible  <bruno@clisp.org>
15355         doc: Document the xstdopen and *-safer modules.
15356         * doc/xstdopen.texi: New file.
15357         * doc/gnulib.texi (Particular Modules): Include it.
15359 2019-01-06  Bruno Haible  <bruno@clisp.org>
15361         xstdopen: Add tests.
15362         * tests/test-xstdopen.c: New file.
15363         * tests/test-xstdopen.sh: New file.
15364         * modules/xstdopen-tests: New file.
15366         xstdopen: New module.
15367         * lib/xstdopen.h: New file.
15368         * lib/xstdopen.c: New file.
15369         * modules/xstdopen: New file.
15371 2019-01-06  Bruno Haible  <bruno@clisp.org>
15373         stdopen: Fix compilation error with IRIX cc.
15374         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
15376 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
15378         xfreopen need not include stdio--.h
15379         * lib/xfreopen.c: Do not include stdio--.h.
15381         xfreopen need not depend on freopen-safer
15382         * modules/xfreopen (Depends-on):
15383         Depend on freopen, not freopen-safer.
15385         stdopen: modernize and simplify
15386         * lib/stdopen.c: Update copyright date
15387         Do not include sys/types.h; no longer needed these days.
15388         (stdopen): Use C99-style decl in loop.  Return int errno
15389         value, rather than just a bool.  Do not worry about fd mismatches,
15390         since the caller cares only if 0, 1, 2 are occupied.
15391         * lib/stdopen.h: No need to include <stdbool.h>.
15392         * m4/stdopen.m4: Remove.
15393         * modules/stdopen: New file.
15395         stdopen: copy from last use in coreutils
15396         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
15397         New files, taken from their last commit in coreutils
15398         2007-07-23T12:35:58Z!jim@meyering.net
15399         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
15401 2019-01-05  Bruno Haible  <bruno@clisp.org>
15403         argp: Don't pass an invalid argument to dgettext().
15404         Reported by He X <xw897002528@gmail.com>.
15405         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
15406         dgettext().
15408 2019-01-05  Bruno Haible  <bruno@clisp.org>
15410         argp: Don't pass an invalid argument to dgettext().
15411         Reported by He X <xw897002528@gmail.com>.
15412         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
15413         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
15414         dgettext().
15416 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15418         stdioext: port to newer 32-bit Android
15419         Problem reported by Tom Yan in:
15420         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
15421         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
15422         (fp_) [__ANDROID__]: Use it.
15424 2019-01-04  Bruno Haible  <bruno@clisp.org>
15426         lock: Fix link error with --enable-threads=pth.
15427         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
15428         Mark as weak.
15430 2019-01-04  Bruno Haible  <bruno@clisp.org>
15432         Fix link errors in unit tests.
15433         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15434         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
15435         * modules/array-map-tests (Makefile.am): Link test-array_map against
15436         libintl.
15437         * modules/array-set-tests (Makefile.am): Link test-array_set against
15438         libintl.
15439         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
15440         libintl.
15441         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
15442         libintl.
15443         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
15444         against libintl.
15445         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
15446         against libintl.
15448 2019-01-04  Bruno Haible  <bruno@clisp.org>
15450         Fix incorrect 'Link' sections.
15451         * modules/regex (Link): Mention the link requirement of module 'lock'.
15452         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
15454 2019-01-04  Bruno Haible  <bruno@clisp.org>
15456         Fix some 'Link' sections.
15457         * modules/c-stack (Link): Add link directive from the 'gettext-h'
15458         dependency.
15459         * modules/getaddrinfo (Link): Likewise.
15461 2019-01-04  Bruno Haible  <bruno@clisp.org>
15463         Remove redundant 'Link' sections.
15464         * modules/canon-host (Link): Remove section.
15465         * modules/timevar (Link): Likewise.
15467 2019-01-04  Bruno Haible  <bruno@clisp.org>
15469         Remove incorrect 'Link' sections.
15470         * modules/acl (Link): Remove section. Use combined 'Link' sections from
15471         the dependencies instead.
15472         * modules/crypto/md5 (Link): Likewise.
15473         * modules/crypto/sha1 (Link): Likewise.
15474         * modules/crypto/sha256 (Link): Likewise.
15475         * modules/crypto/sha512 (Link): Likewise.
15476         * modules/faccessat (Link): Likewise.
15477         * modules/fdutimensat (Link): Likewise.
15478         * modules/iconv_open-utf (Link): Likewise.
15479         * modules/propername (Link): Likewise.
15480         * modules/qacl (Link): Likewise.
15481         * modules/unicodeio (Link): Likewise.
15482         * modules/utimecmp (Link): Likewise.
15483         * modules/utimensat (Link): Likewise.
15484         * modules/xstriconv (Link): Likewise.
15485         * modules/xstriconveh (Link): Likewise.
15487 2019-01-04  Bruno Haible  <bruno@clisp.org>
15489         gnulib-tool: New option --extract-recursive-link-directive.
15490         * gnulib-tool (func_usage): Document the new options
15491         --extract-recursive-dependencies, --extract-recursive-link-directive.
15492         (func_verify_module): Document output variables.
15493         (func_get_dependencies_recursively): New function.
15494         (func_get_link_directive_recursively): New function.
15495         Use them to implement the new options
15496         --extract-recursive-dependencies, --extract-recursive-link-directive.
15497         * doc/gnulib-tool.texi (Link-time requirements): New section.
15499 2019-01-04  Bruno Haible  <bruno@clisp.org>
15501         Clarify meaning of 'Link' section in module description.
15502         * doc/gnulib.texi (Module description): Clarify the meaning of the
15503         'Link' section versus the one of the dependencies.
15504         * NEWS: Mention the change.
15506 2019-01-04  Bruno Haible  <bruno@clisp.org>
15508         pselect: Fix module description.
15509         * modules/pselect (Link): Put one link option per line.
15511 2019-01-04  Bruno Haible  <bruno@clisp.org>
15513         cosl: Fix module description.
15514         * modules/cosl (Link): Fix typo.
15515         * modules/mathl (configure.ac): Likewise.
15517 2019-01-04  Bruno Haible  <bruno@clisp.org>
15519         c-xvasprintf: Fix module dependencies.
15520         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
15522 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
15524         bootstrap: die when some submodules are not initialized
15525         * build-aux/bootstrap: Make sure all submodules are initialized.
15527 2019-01-04  Bruno Haible  <bruno@clisp.org>
15529         bitsetv: Fix module dependencies.
15530         * lib/bitsetv.c: Include xalloc.h.
15531         * modules/bitsetv (Depends-on): Add 'xalloc'.
15533 2019-01-04  Bruno Haible  <bruno@clisp.org>
15535         xmemdup0: Remove redundant code.
15536         * lib/xmemdup0.h (xalloc_die): Remove declaration.
15538 2019-01-04  Bruno Haible  <bruno@clisp.org>
15540         backupfile: Fix module dependencies.
15541         * modules/backupfile (Depends-on): Add 'xalloc'.
15543 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15545         bitset, crypto/gc: fix conflicts with Solaris 11
15546         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
15547         avoid clash with Solaris 11 <sys/bitset.h>.
15548         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
15549         with Solaris 11 <xorg/gc.h>.
15551 2019-01-04  Bruno Haible  <bruno@clisp.org>
15553         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
15554         Reported by Andy Fiddaman <andy@omniosce.org>.
15555         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
15557 2019-01-03  Eric Blake  <eblake@redhat.com>
15559         maintainer-makefile: fix typo in previous patch
15560         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
15561         of Roman's work.
15563 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
15565         maintainer-makefile: prefer $(GREP) over grep
15566         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
15567         defined.
15568         * top/maint.mk: Use it everywhere.
15570         maintainer-makefile: split long argument lines
15571         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
15572         it would be too long for exec limits on BSD.
15574 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15576         mkfifo: bring back HAVE_MKFIFO macro
15577         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
15578         Problem reported by Andrew Janke in:
15579         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
15581 2018-12-21  Bruno Haible  <bruno@clisp.org>
15583         Assume Autoconf >= 2.63.
15584         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
15585         versions < 2.60.
15587 2018-12-21  Bruno Haible  <bruno@clisp.org>
15589         memcmp: Mention the clang bug.
15590         * tests/test-memcmp.c: Add comment about a known test failure.
15591         * doc/posix-functions/memcmp.texi: Mention the clang bug.
15593 2018-12-20  Jim Meyering  <meyering@fb.com>
15595         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
15596         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
15597           echo '123-x'|LC_ALL=C grep -E '.\bx'
15598         The goal is to revert the first, but reverting it requires to restore
15599         the function deleted in the second. I ran this to restore the deleted
15600         function:
15601           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
15602             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
15603             | patch -R -p1
15604         * lib/dfa.c (charclass_context): Restore deleted function.
15605         Reverting the primary commit removes this change:
15606         dfa: Simplify a building state
15607         * lib/dfa.c (build_state): Simplify a building state.
15609 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15611         version-etc: allow zero authors
15612         * lib/version-etc.c (version_etc_arn): If no authors are given,
15613         omit authorship info instead of dumping core.
15615 2018-12-19  Bruno Haible  <bruno@clisp.org>
15617         lchown tests: Be more permissive regarding errno values.
15618         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
15619         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
15620         alternative to ENOSYS.
15621         * modules/lchown-tests (Depends-on): Add 'errno'.
15622         * modules/fchownat-tests (Depends-on): Likewise.
15624 2018-12-18  Bruno Haible  <bruno@clisp.org>
15626         duplocale: Avoid test failure on AIX 7.
15627         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
15628         (configure.ac): Invoke gt_FUNC_USELOCALE.
15629         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
15630         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
15631         works.
15633 2018-12-18  Bruno Haible  <bruno@clisp.org>
15635         localename: Fix test failure on AIX 7.
15636         Reported by Assaf Gordon in
15637         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
15638         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
15639         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
15640         instead of ac_cv_func_uselocale.
15641         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
15642         HAVE_USELOCALE.
15643         * lib/localename-table.h: Likewise.
15644         * lib/localename-table.c: Likewise.
15645         * tests/test-localename.c: Likewise.
15646         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
15648 2018-12-18  Bruno Haible  <bruno@clisp.org>
15650         localename: Update comments regarding Cygwin.
15651         * lib/localename.c: Update comment.
15652         * doc/posix-functions/uselocale.texi: Update platforms list.
15653         * doc/posix-functions/newlocale.texi: Likewise.
15654         * doc/posix-functions/duplocale.texi: Likewise.
15655         * doc/posix-functions/freelocale.texi: Likewise.
15657 2018-12-16  Bruno Haible  <bruno@clisp.org>
15659         c-stack: Fix for Linux/sparc.
15660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
15661         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
15663 2018-12-16  Bruno Haible  <bruno@clisp.org>
15665         localename: Avoid test failure on some glibc systems.
15666         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
15667         Unset environment variables that might disturb the first setlocale call,
15668         and verify that this setlocale call succeeds.
15670 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
15672         random: Fix build error on native Windows (regression from 2018-06-21).
15673         * lib/random.c (__srandom, __initstate, __setstate, __random,
15674         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
15675         to the symbols without '__' prefix.
15677 2018-12-16  Bruno Haible  <bruno@clisp.org>
15679         obstack, libc-config: Support HP-UX cc in C99 mode.
15680         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
15681         compiler, even when in C99 mode.
15682         * lib/cdefs.h (__flexarr): Likewise.
15683         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
15685 2018-12-16  Bruno Haible  <bruno@clisp.org>
15687         localename: Fix test failure on OpenBSD >= 6.2.
15688         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
15689         locale system. Define HAVE_FAKE_LOCALES in this case.
15690         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
15691         HAVE_USELOCALE.
15692         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
15693         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
15694         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
15695         platforms list.
15696         * doc/posix-functions/newlocale.texi: Likewise.
15697         * doc/posix-functions/duplocale.texi: Update platforms list.
15698         * doc/posix-functions/freelocale.texi: Likewise.
15700 2018-12-16  Bruno Haible  <bruno@clisp.org>
15702         duplocale tests: Re-enable the test on platforms without <monetary.h>.
15703         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
15704         of the test, on platforms without <monetary.h>.
15706 2018-12-16  Bruno Haible  <bruno@clisp.org>
15708         localename: Update comments.
15709         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
15711 2018-12-15  Jim Meyering  <meyering@fb.com>
15713         regex: fix indentation
15714         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
15716 2018-12-15  Bruno Haible  <bruno@clisp.org>
15718         openat-safer tests: Avoid test failure on NetBSD 8.
15719         * tests/test-openat-safer.c (main): Execute a Linux specific test only
15720         on Linux.
15722 2018-12-15  Jim Meyering  <meyering@fb.com>
15724         regex: work around a bug in glibc-2.27 and prior
15725         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
15726         assertion for /0|()0|\1|0/.
15727         * tests/test-regex.c (main): Add the same test here.
15729 2018-12-15  Bruno Haible  <bruno@clisp.org>
15731         localename: Fix use of uninitialized shell variable.
15732         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
15733         gt_cv_locale_solaris114 always before use. Remove assignment without
15734         effect.
15736 2018-12-15  Bruno Haible  <bruno@clisp.org>
15738         dfa tests: Avoid test failure on Alpine Linux.
15739         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
15740         command found on Alpine Linux.
15742 2018-12-15  Jim Meyering  <meyering@fb.com>
15744         dfa: avoid new warnings from gcc
15745         These would prevent building with -Werror and a Dec snapshot of gcc.
15746         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
15747         Rename each inner instance to "p".
15748         (charclass_context): Remove unused static function.
15750 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
15752         mkdir-p: improve diagnostic for FUSE mounts
15753         Problem reported by Niklas Hambüchen in:
15754         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
15755         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
15756         errno to mkdir errno if the stat errno is likely more interesting.
15758 2018-12-14  Bruno Haible  <bruno@clisp.org>
15760         hash-map: Add tests.
15761         * tests/test-hash_map.c: New file.
15762         * modules/hash-map-tests: New file.
15764         linkedhash-map: Add tests.
15765         * tests/test-linkedhash_map.c: New file.
15766         * modules/linkedhash-map-tests: New file.
15768         array-map: Add tests.
15769         * tests/test-array_map.c: New file.
15770         * modules/array-map-tests: New file.
15772         xmap: New module.
15773         * lib/gl_xmap.h: New file.
15774         * lib/gl_xmap.c: New file.
15775         * modules/xmap: New file.
15777         hash-map: New module.
15778         * lib/gl_hash_map.h: New file.
15779         * lib/gl_hash_map.c: New file.
15780         * modules/hash-map: New file.
15782         linkedhash-map: New module.
15783         * lib/gl_linkedhash_map.h: New file.
15784         * lib/gl_linkedhash_map.c: New file.
15785         * lib/gl_anyhash1.h: Update comments.
15786         * lib/gl_anyhash2.h: Likewise.
15787         * modules/linkedhash-map: New file.
15789         array-map: New module.
15790         * lib/gl_array_map.h: New file.
15791         * lib/gl_array_map.c: New file.
15792         * modules/array-map: New file.
15794         map: New module.
15795         * lib/gl_map.h: New file.
15796         * lib/gl_map.c: New file.
15797         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
15798         conflict with gl_map.h.
15799         * modules/map: New file.
15801 2018-12-13  Bruno Haible  <bruno@clisp.org>
15803         select tests: Avoid test failure on Cygwin.
15804         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
15806 2018-12-13  Bruno Haible  <bruno@clisp.org>
15808         localtime-buffer: Avoid endless recursion in localtime and gmtime.
15809         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
15811 2018-12-13  Bruno Haible  <bruno@clisp.org>
15813         localeconv tests: Avoid test failure on Cygwin.
15814         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
15815         'mon_grouping' tests.
15817 2018-12-11  Bruno Haible  <bruno@clisp.org>
15819         omap: Don't dispose the old value when the function returns it.
15820         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
15821         here.
15822         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
15823         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
15824         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
15825         here.
15827         array-omap, avltree-omap, rbtree-omap: Tweak style.
15828         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
15829         false.
15830         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
15832         rbtree-omap: Add tests.
15833         * tests/test-rbtree_omap.c: New file.
15834         * modules/rbtree-omap-tests: New file.
15836         avltree-omap: Add tests.
15837         * tests/test-avltree_omap.c: New file.
15838         * modules/avltree-omap-tests: New file.
15840         array-omap: Add tests.
15841         * tests/test-array_omap.c: New file.
15842         * modules/array-omap-tests: New file.
15844         xomap: New module.
15845         * lib/gl_xomap.h: New file.
15846         * lib/gl_xomap.c: New file.
15847         * modules/xomap: New file.
15849         rbtree-omap: New module.
15850         * lib/gl_rbtree_omap.h: New file.
15851         * lib/gl_rbtree_omap.c: New file.
15852         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
15853         Parameterize.
15854         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
15855         * modules/rbtree-omap: New file.
15856         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
15857         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
15859         avltree-omap: New module.
15860         * lib/gl_avltree_omap.h: New file.
15861         * lib/gl_avltree_omap.c: New file.
15862         * lib/gl_avltree_ordered.h: Code moved to here from
15863         lib/gl_avltree_oset.c. Parameterize.
15864         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
15865         * lib/gl_anytree_omap.h: New file.
15866         * modules/avltree-omap: New file.
15867         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
15868         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
15870         array-omap: New module.
15871         * lib/gl_array_omap.h: New file.
15872         * lib/gl_array_omap.c: New file.
15873         * modules/array-omap: New file.
15875         omap: New module.
15876         * lib/gl_omap.h: New file.
15877         * lib/gl_omap.c: New file.
15878         * modules/omap: New file.
15880 2018-12-11  Bruno Haible  <bruno@clisp.org>
15882         hash-set, linkedhash-set: Reduce code duplication.
15883         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
15884         lib/gl_anyhash_set1.h.
15885         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
15886         lib/gl_anyhash_set2.h. Parameterize.
15887         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
15888         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
15889         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
15890         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
15891         * lib/gl_rbtreehash_list.c: Likewise.
15892         * lib/gl_linkedhash_list.c: Likewise.
15893         (hash_resize_after_add): Remove function.
15894         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
15895         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
15896         * gl_hash_set.c: Likewise.
15897         * modules/avltreehash-list (Files, Makefile.am): Update file list.
15898         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
15899         * modules/linkedhash-list (Files, Makefile.am): Likewise.
15900         * modules/linkedhash-set (Files, Makefile.am): Likewise.
15901         * modules/hash-set (Files, Makefile.am): Likewise.
15903 2018-12-11  Bruno Haible  <bruno@clisp.org>
15905         array-set: Optimize.
15906         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
15907         outside the loop, not inside the loop.
15909 2018-12-11  Bruno Haible  <bruno@clisp.org>
15911         times: Fix tests.
15912         * tests/test-times.c (doublecmp): Implement a total order.
15914 2018-12-11  Bruno Haible  <bruno@clisp.org>
15916         array-set, linkedhash-set, hash-set: Fix tests.
15917         * tests/test-array_set.c (cmp_objects_in_array): New function.
15918         (check_equals): Use it.
15919         * tests/test-hash_set.c: Likewise.
15920         * tests/test-linkedhash_set.c: Likewise.
15922 2018-12-08  Bruno Haible  <bruno@clisp.org>
15924         Fix comments.
15925         * lib/gl_list.h (gl_list_free): Clarify what it does.
15926         * lib/gl_oset.h (gl_oset_free): Likewise.
15927         * lib/gl_set.h (gl_set_free): Likewise.
15928         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
15929         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
15930         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
15931         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
15933 2018-12-03  Bruno Haible  <bruno@clisp.org>
15935         hash-set: Add tests.
15936         * tests/test-hash_set.c: New file.
15937         * modules/hash-set-tests: New file.
15939         linkedhash-set: Add tests.
15940         * tests/test-linkedhash_set.c: New file.
15941         * modules/linkedhash-set-tests: New file.
15943         array-set: Add tests.
15944         * tests/test-array_set.c: New file.
15945         * modules/array-set-tests: New file.
15947         xset: New module.
15948         * lib/gl_xset.h: New file.
15949         * lib/gl_xset.c: New file.
15950         * modules/xset: New file.
15952         hash-set: New module.
15953         * lib/gl_hash_set.h: New file.
15954         * lib/gl_hash_set.c: New file.
15955         * modules/hash-set: New file.
15957         linkedhash-set: New module.
15958         * lib/gl_linkedhash_set.h: New file.
15959         * lib/gl_linkedhash_set.c: New file.
15960         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
15961         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
15962         * lib/gl_anyhash_primes.h: New file, extracted from
15963         lib/gl_anyhash_list2.h.
15964         * lib/gl_anyhash_list2.h: Include it.
15965         (primes, next_prime): Remove definitions.
15966         * modules/linkedhash-set: New file.
15967         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
15968         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
15969         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
15970         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
15971         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
15972         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
15974         array-set: New module.
15975         * lib/gl_array_set.h: New file.
15976         * lib/gl_array_set.c: New file.
15977         * modules/array-set: New file.
15979         set: New module.
15980         * lib/gl_set.h: New file.
15981         * lib/gl_set.c: New file.
15982         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
15983         gl_set.h.
15984         * modules/set: New file.
15986 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
15988         bison: don't force the Yacc mode
15989         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
15990         errors when Bison features are used in the grammar file.  Some of
15991         these features (such as %expect) were flagged non-yacc recently.  Most
15992         of the time, -y is actually used to please Automake's ylwrap which
15993         expects the output to be y.tab.c.
15994         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
15996 2018-12-01  Bruno Haible  <bruno@clisp.org>
15998         gnupload: Document short options.
15999         * build-aux/gnupload (usage): Document the short options.
16001 2018-11-28  Ben Elliston  <bje@gnu.org>
16003         gnupload: Support option -h as alias of --help.
16004         * build-aux/gnupload: Support -h.
16006 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
16008         memrchr: port better to clang
16009         * lib/memrchr.c (__memrchr): Cast to void * instead of to
16010         longword *, to pacify clang -Wcast-align (Bug#33544).
16012 2018-11-29  Eric Blake  <eblake@redhat.com>
16014         docs: mention printf %m considerations
16015         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
16016         is not portable, and is easy enough to work around.
16017         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
16018         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
16019         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
16020         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16021         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16022         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16023         * doc/posix-functions/printf.texi (printf): Likewise.
16024         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16025         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16026         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
16027         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16028         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16029         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16030         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16031         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16032         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16033         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
16034         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16035         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16037 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
16039         bitset: rename ebitset/expandable.* as tbitset/table.*
16040         See
16041         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
16042         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
16043         * lib/bitset/table.h, lib/bitset/table.c: these.
16044         Rename all the ebitset* symbols as tbitset*.
16045         Adjust dependencies.
16047 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16049         bitset: check the operations
16050         * tests/test-bitset.c (bitset_random): New.
16051         Use it.
16052         * lib/bitset/expandable.c (ebitset_not): Fix typo.
16054 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16056         bitset: properly use false/true instead of 0/1 for Booleans
16057         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
16058         0/1, as Booleans.
16060 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16062         bitset: rename BITSET_VARRAY as BITSET_VECTOR
16063         For consistency with the name of the file.
16064         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
16065         * lib/bitset/stats.c, lib/bitset/vector.c
16066         (BITSET_VARRAY): Rename as...
16067         (BITSET_VECTOR): this.
16069 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16071         strerror_r-posix: memmove, not memcpy
16072         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
16073         since the source and destination might overlap in the call
16074         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
16075         Simplify.
16077 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16079         bitsetv: new module
16080         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
16082 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16084         bitset: add tests and doc
16085         First stabs at providing a documentation and test for the bitset
16086         module.
16087         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
16089 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16091         bitset: new module
16092         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
16093         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
16094         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
16095         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
16096         * lib/bitset/vector.h, modules/bitset:
16097         New.
16099 2018-11-23  Bruno Haible  <bruno@clisp.org>
16101         localename: Fix gettext test failures on mingw.
16102         * lib/localename.c (gl_locale_name_posix): Convert the result of
16103         gl_locale_name_environ to XPG syntax.
16105 2018-11-23  Karl Berry  <karl@freefriends.org>
16107         * config/srclistvars.txt,
16108         * config/srclist.txt: remove all gettext references;
16109         the gettext maintainers will sync as needed.
16111 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
16113         mktime: add libc-config dependency
16114         I missed this when we synced from glibc.
16115         * modules/mktime (Depends-on): Add libc-config.
16117 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
16119         longlong: fix comment typo
16120         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
16122 2018-11-11  Bruno Haible  <bruno@clisp.org>
16124         havelib: Remove the need to include asm-underscore.m4.
16125         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
16126         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
16127         gl_HOST_CPU_C_ABI.
16128         * modules/havelib (Files): Add host-cpu-c-abi.m4.
16129         (Depends-on): Remove host-cpu-c-abi.
16131 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16133         parse-datetime: simplify test for mktime failure
16134         * lib/parse-datetime.y (mktime_ok): Simplify.
16135         Remove args TZ and T; no longer needed.  Callers changed.
16137         posixtm: simplify test for mktime failure
16138         * lib/posixtm.c (posixtime): Simplify.
16140         nstrftime: simplify test for mktime failure
16141         * lib/nstrftime.c (__strftime_internal): Simplify.
16143 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16145         gnulib-common.m4: port _Noreturn to C++
16146         Problem reported by Akim Demaille in:
16147         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
16148         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
16149         Merge adjustments from _Noreturn.h and from glibc into the non-C++
16150         version.
16151         * lib/_Noreturn.h: Match gnulib-common.
16153 2018-10-30  Bruno Haible  <bruno@clisp.org>
16155         gnu-make: Fix for NetBSD 8 'make'.
16156         Reported by Reuben Thomas in
16157         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
16158         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
16159         output, ignoring exit codes.
16161 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
16163         maintainer-makefile: fix syntax-check rule for "same.h"
16164         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
16165         for 'same_nameat', too.
16167 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
16169         havelib: fix nested ‘configure’ chatter
16170         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
16171         AC_CACHE_CHECK calls, which resulted in confusing output like
16172         “checking for the common suffixes of directories in the library
16173         search path... checking for 64-bit host... no lib,lib”.
16175         backupfile: tweak for better code
16176         * lib/backupfile.c: Sort include directives, and remove
16177         unnecessary <limits.h> include.
16178         (FALLTHROUGH): New macro, copied from other modules.
16179         (backupfile_internal): Use it to avoid code duplication.
16180         This lets GCC 8.2.1 generate better code by inlining the
16181         call to check_extension.
16183 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16185         backupfile: new dir_fd args
16186         New module opendirat with code taken from fts.
16187         Use this module to let backupfile use a directory file descriptor.
16188         * NEWS: Document the incompatible change.
16189         * lib/backup-find.c (find_backup_file_name):
16190         * lib/backup-rename.c (backup_file_rename):
16191         New arg DIR_FD.
16192         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
16193         (SIZE_MAX): Remove.
16194         Include opendirat.h rather than dirent--.h.
16195         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
16196         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
16197         (backupfile_internal): New arg DIR_FD.  All callers changed.
16198         * lib/fts.c: Include opendirat.h.
16199         (opendirat): Move to opendirat.c.
16200         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
16201         * modules/backupfile (Depends-on): Remove dirfd, opendir.
16202         Add opendirat.
16203         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
16204         Add opendirat.
16206 2018-10-23  Bruno Haible  <bruno@clisp.org>
16208         localename: Simplify support for per-thread locales on Solaris 11.4.
16209         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
16210         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
16211         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
16212         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
16213         specific code.
16214         * lib/localename-table.h: Update comments.
16215         * lib/localename-table.c: Update comments.
16216         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
16217         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
16218         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
16219         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
16220         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
16221         HAVE_NAMELESS_LOCALES here.
16222         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
16223         m4/intlsolaris.m4.
16224         * modules/gettext (Files): Likewise.
16226 2018-10-22  Bruno Haible  <bruno@clisp.org>
16228         std-gnu11: Support Autoconf versions < 2.64.
16229         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
16230         when _AC_DO_LIMIT does not exist.
16232 2018-10-22  Bruno Haible  <bruno@clisp.org>
16234         Assume Autoconf >= 2.63.
16235         * DEPENDENCIES: Mention the requirement.
16237         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
16238         (func_get_filelist): Don't list m4/onceonly.m4 any more.
16239         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
16240         * m4/onceonly.m4: Remove file.
16242         * m4/openmp.m4: Remove file.
16243         * modules/openmp (Files): Remove m4/openmp.m4.
16245         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
16246         htmldir, dvidir, pdfdir, psdir, localedir.
16247         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
16249         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
16250         Autoconf < 2.60.
16251         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
16252         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
16254         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
16255         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
16256         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
16258         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
16259         exists.
16260         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
16262         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
16263         Autoconf < 2.61.
16265         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
16266         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
16267         Autoconf >= 2.52.
16269         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
16270         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
16271         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
16273 2018-10-22  Bruno Haible  <bruno@clisp.org>
16275         Assume Automake >= 1.11.
16276         * m4/configmake.m4: Update comments.
16277         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
16278         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
16279         of 'eval'.
16280         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
16281         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
16282         requires Automake >= 1.11.
16284 2018-10-22  Bruno Haible  <bruno@clisp.org>
16286         localename: Fix typo in comment.
16287         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
16289 2018-10-22  Bruno Haible  <bruno@clisp.org>
16291         Fix failure of 'gnulib-tool --create-testdir' with all modules.
16292         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
16294 2018-10-21  Bruno Haible  <bruno@clisp.org>
16296         locale: Ease integration with GNU libintl.
16297         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
16298         GNULIB_defined_freelocale): New macros.
16300 2018-10-21  Bruno Haible  <bruno@clisp.org>
16302         localename: Fine-tune support for per-thread locales on Solaris 11.4.
16303         * lib/localename-table.h: New file, extracted from lib/localename.c.
16304         * lib/localename-table.c: Likewise.
16305         * lib/localename.c: Include localename-table.h.
16306         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
16307         locale_hash_function instead of pointer_hash.
16308         * modules/localename (Files): Add lib/localename-table.h,
16309         lib/localename-table.c.
16310         (lib_SOURCES): Add localename-table.c.
16311         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
16312         for Solaris 11.4 locale system only on Solaris. Test for it
16313         independently whether getlocalename_l exists.
16314         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
16315         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
16316         HAVE_NAMELESS_LOCALES.
16317         * modules/gettext (Files): Add m4/intlsolaris.m4.
16319 2018-10-21  Bruno Haible  <bruno@clisp.org>
16321         Small update from gettext.
16322         * m4/intl.m4: Update from gettext:
16323         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
16324         mode on AIX.
16325         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
16326         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
16328 2018-10-16  Bruno Haible  <bruno@clisp.org>
16330         mountlist: Remove support for Cray with UNICOS 9.
16331         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16332         MOUNTED_LISTMNTENT.
16333         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
16335 2018-10-16  Bruno Haible  <bruno@clisp.org>
16337         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
16338         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
16339         STAT_STATFS2_FS_DATA.
16340         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
16341         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16342         MOUNTED_GETMNT.
16343         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
16344         * lib/getloadavg.c (decstation): Remove definition and case.
16345         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
16346         * lib/getgroups.c: Likewise.
16347         * doc/posix-functions/getgroups.texi: Likewise.
16348         * lib/time.in.h: Update comments.
16350 2018-10-16  Bruno Haible  <bruno@clisp.org>
16352         getloadavg: Remove support for ConvexOS.
16353         * lib/getloadavg.c: Remove convex case.
16355 2018-10-16  Bruno Haible  <bruno@clisp.org>
16357         getloadavg: Remove support for Sony NEWS.
16358         * lib/getloadavg.c: Remove sony_news case.
16360 2018-10-16  Bruno Haible  <bruno@clisp.org>
16362         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
16363         * lib/fsusage.c: Remove _SEQUENT_ case.
16364         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16365         * lib/mountlist.c: Don't test for MNTTABNAME.
16366         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
16367         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
16368         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
16369         * lib/stat-size.h: Don't mention the Sequent bug.
16370         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
16372 2018-10-16  Bruno Haible  <bruno@clisp.org>
16374         fsusage: Remove support for AIX 3.
16375         * lib/fsusage.c: Remove code for AIX 3.
16376         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
16378 2018-10-16  Bruno Haible  <bruno@clisp.org>
16380         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
16381         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
16382         * lib/fsusage.c: Remove code for AIX PS/2.
16383         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
16384         * lib/getloadavg.c: Likewise.
16386 2018-10-16  Bruno Haible  <bruno@clisp.org>
16388         getloadavg: Remove support for HP-UX on m68k.
16389         * lib/getloadavg.c: Remove hp9000s300 case.
16391 2018-10-16  Bruno Haible  <bruno@clisp.org>
16393         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
16394         * lib/fsusage.c: Remove DOLPHIN case.
16395         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16396         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
16398 2018-10-16  Bruno Haible  <bruno@clisp.org>
16400         getloadavg: Remove support for Alliant FX/2800.
16401         * lib/getloadavg.c: Remove alliant case.
16403 2018-10-16  Bruno Haible  <bruno@clisp.org>
16405         getloadavg: Remove support for tek4300.
16406         * lib/getloadavg.c: Remove tek4300 case.
16408 2018-10-16  Bruno Haible  <bruno@clisp.org>
16410         getloadavg: Remove support for Ardent.
16411         * lib/getloadavg.c: Remove ardent case.
16413 2018-10-16  Bruno Haible  <bruno@clisp.org>
16415         mountlist: Remove support for SVR2.
16416         Reported by Andrew Borodin <aborodin@vmail.ru> in
16417         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
16418         * lib/mountlist.c: Remove MOUNTED_FREAD case.
16419         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16420         MOUNTED_FREAD.
16422 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
16424         libc-config: merge from glibc
16425         * lib/cdefs.h (__glibc_has_attribute): New macro.
16427         regex: depend on libc-config
16428         * modules/regex (Depends-on): Add libc-config.
16429         This is needed after the recent autoupdate from glibc.
16431 2018-10-14  Bruno Haible  <bruno@clisp.org>
16433         localename: Add support for per-thread locales on Solaris 11.4.
16434         * lib/locale.in.h (newlocale, freelocale): New declarations.
16435         (duplocale): Declare also when the 'localename' module requests it.
16436         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
16437         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
16438         (struniq): Update.
16439         (struct locale_categories_names, struct locale_hash_node): New types.
16440         (LOCALE_HASH_TABLE_SIZE): New constant.
16441         (locale_hash_table, locale_lock): New variables.
16442         (pointer_hash, get_locale_t_name): New functions.
16443         (newlocale, duplocale, freelocale): New overridden functions.
16444         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
16445         * m4/intlsolaris.m4: New file.
16446         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
16447         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
16448         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
16449         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
16450         declared.
16451         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
16452         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16453         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
16454         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16455         * modules/localename (Files): Add intlsolaris.m4.
16456         (Depends-on): Add 'locale'.
16457         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
16458         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
16459         the signatures.
16461 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
16463         timevar: use gethrxtime to get wall clock time
16464         clock_gettime is not portable.  gethrxtime takes the best available
16465         option to get the wall clock time, including clock_gettime (monotonic
16466         clock), and gettime (non monotonic).
16467         Also, using xtime_t instead of float preserves the precision.
16468         Suggested by Bruno Haible.
16469         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
16470         * modules/timevar (Depends-on): We need gethrxtime.
16471         We no longer use times().
16472         (Link): Update.
16473         * lib/timevar.h (timevar_time_def): Use xtime_t.
16474         * lib/timevar.c (set_to_current_time): Use gethrxtime.
16475         (timevar_print): Instead of checking whether the timings themselves
16476         are large enough for the timevar to be printed, check the percentages.
16478 2018-10-14  Bruno Haible  <bruno@clisp.org>
16480         wcsnrtombs: Work around Solaris 11.4 bug.
16481         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
16482         macro.
16483         (gl_FUNC_WCSNRTOMBS): Invoke it.
16484         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
16486 2018-10-14  Bruno Haible  <bruno@clisp.org>
16488         mbsnrtowcs: Work around Solaris 11.4 bug.
16489         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
16490         macro.
16491         (gl_FUNC_MBSNRTOWCS): Invoke it.
16492         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
16494 2018-10-14  Bruno Haible  <bruno@clisp.org>
16496         doc: Update for Solaris 11.4.
16497         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
16498         mention Solaris 11.4.
16499         * m4/printf.m4: Update comments about Solaris.
16500         * m4/log.m4: Likewise.
16501         * m4/log10.m4: Likewise.
16502         * m4/logb.m4: Likewise.
16503         * m4/logbf.m4: Likewise.
16504         * m4/logbl.m4: Likewise.
16505         * m4/rename.m4: Likewise.
16506         * m4/wcrtomb.m4: Likewise.
16507         * m4/hostent.m4: Likewise.
16508         * m4/servent.m4: Likewise.
16510 2018-10-14  Bruno Haible  <bruno@clisp.org>
16512         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
16513         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
16514         pointer.
16515         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
16516         pointer.
16517         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
16518         pointer.
16519         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
16520         pointer.
16521         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
16522         pointer.
16524 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16526         bootstrap: fix wget command for po files.
16527         * build-aux/bootstrap (po_download_command_format): Fix comment,
16528         and adjust callers.
16530 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16532         timevar: improve the output format
16533         Suggested by Bruno Haible.
16534         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
16535         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
16536         wall, since its resolution is much higher.
16538 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16540         timevar: expect that getrusage is available.
16541         Don't keep both times and getrusage as backend: both are guaranteed by
16542         gnulib, a single one suffices.  Using getrusage is open to possibly
16543         tracking other types of resources in the future.
16544         * modules/timevar (Depends-on): Add getrusage.
16545         (configure.ac): Remove gl_TIMEVAR.
16546         (Files): Remove m4/timevar.m4.
16547         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
16548         * lib/timevar.h (timevar_enabled): Clarify documentation.
16549         * lib/timevar.c: Remove all the code about times.
16550         Remove all the CPP guards about getrusage: expect it to be present
16551         (courtesy of gnulib).
16553 2018-10-12  Bruno Haible  <bruno@clisp.org>
16555         mountlist: Improve support for Solaris in 64-bit mode.
16556         Reported by David Wood <David.Wood@deshaw.com> in
16557         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
16558         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
16559         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
16560         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
16562 2018-10-12  Bruno Haible  <bruno@clisp.org>
16564         mountlist: Add support for Minix.
16565         Reported by Assaf Gordon in
16566         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
16567         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
16568         AC_CHECK_FUNCS to check for 'getmntinfo'.
16569         * lib/mountlist.c: Update comments.
16571 2018-10-12  Bruno Haible  <bruno@clisp.org>
16573         Make better use of Autoconf.
16574         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
16575         * m4/manywarnings.m4: Likewise.
16576         * m4/manywarnings-c++.m4: Likewise.
16577         * m4/socklen.m4: Likewise.
16578         * m4/sockpfaf.m4: Likewise.
16579         * m4/stdarg.m4: Likewise.
16580         * m4/visibility.m4: Likewise.
16581         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
16582         indentation.
16583         * m4/ls-mntd-fs.m4: Likewise.
16585 2018-10-11  Bruno Haible  <bruno@clisp.org>
16587         mountlist: Modernize platform lists.
16588         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
16589         platforms, deemphasizing the obsolete ones.
16590         * lib/mountlist.c: Likewise.
16592 2018-10-11  Bruno Haible  <bruno@clisp.org>
16594         getprogname: Add support for 32-bit programs on HP-UX.
16595         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
16596         try the similar functions 32-bit programs on 64-bit HP-UX.
16598 2018-10-11  Bruno Haible  <bruno@clisp.org>
16600         getprogname: Work around program name truncation when possible.
16601         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
16602         possibly use pst_cmd instead.
16604 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16606         fts: cleanup after FTS_NOATIME removal
16607         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
16608         (FTS_STOP): Shrink to minimal values.  We don’t need to
16609         worry about binary compatibility in Gnulib, and the old way
16610         of doing things had a hole in the user options that caused
16611         FTS_OPTIONMASK to not work as desired.
16613 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
16615         fts: remove FTS_NOATIME
16616         This reverts commit da4d6974013c822af1498941e32db774b2031765.
16617         We cannot guarantee that O_NOATIME works: e.g. openat fails
16618         with EPERM if the effective user ID of the caller does not match
16619         the owner of the file and the caller is not privileged.
16620         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
16621         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
16622         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
16623         (FTS_OPTIONMASK): Adjust.
16624         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
16625         (fd_ring_check): Likewise.
16627 2018-10-08  Bruno Haible  <bruno@clisp.org>
16629         csharpcomp*, csharpexec*: Remove support for pnet.
16630         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
16631         HAVE_CSCC.
16632         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
16633         Don't test HAVE_CSCC.
16634         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
16635         (compile_csharp_class): Don't invoke it.
16636         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
16637         HAVE_ILRUN.
16638         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
16639         Don't test HAVE_ILRUN.
16640         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
16641         (execute_csharp_program): Don't invoke it.
16642         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
16643         any more.
16645 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
16647         renameatu: prefer renameat2 to syscall
16648         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
16649         Use renameat2 instead of syscall (Bug#32796).
16650         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
16652 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
16654         bootstrap, gnulib-tool: use https instead of insecure rsync
16655         * build-aux/bootstrap (download_po_files, po_download_command_format):
16656         Don't try using rsync; always use wget over https to fetch PO files.
16657         * gnulib-tool (func_import): Likewise.
16658         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16660 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
16662         bootstrap, gnulib-tool: correct the translations wget command
16663         * build-aux/bootstrap (po_download_command_format2): Restrict
16664         recursion to a single level.
16665         * gnulib-tool (func_import): Likewise.
16666         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16668 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16670         doc: the gnulib snapshots are not maintained
16671         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
16673 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16675         timevar: add to lib_SOURCES
16676         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
16678 2018-10-07  Bruno Haible  <bruno@clisp.org>
16680         dirent: Update documentation.
16681         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
16683 2018-10-05  Bruno Haible  <bruno@clisp.org>
16685         strpbrk: Make it possible to namespace the defined symbol.
16686         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
16688 2018-10-05  Bruno Haible  <bruno@clisp.org>
16690         strcspn: Make it possible to namespace the defined symbol.
16691         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
16693 2018-10-05  Bruno Haible  <bruno@clisp.org>
16695         raise: Make it possible to namespace the defined symbol.
16696         * lib/raise.c (raise): Undefine only after the replacement function has
16697         been defined.
16698         (raise): Renamed from rpl_raise.
16699         (raise_nothrow): Move to the end of the compilation unit.
16701 2018-10-05  Bruno Haible  <bruno@clisp.org>
16703         memcmp: Make it possible to namespace the defined symbol.
16704         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
16706 2018-10-05  Bruno Haible  <bruno@clisp.org>
16708         explicit_bzero: Make it possible to namespace the defined symbol.
16709         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
16710         glibc.
16712 2018-10-05  Bruno Haible  <bruno@clisp.org>
16714         mkdir-p: Depend on 'mkdir'.
16715         * modules/mkdir-p (Depends-on): Add 'mkdir'.
16717 2018-10-05  Bruno Haible  <bruno@clisp.org>
16719         tempname: Depend on 'mkdir'.
16720         Reported by Maarten Bosmans <mkbosmans@gmail.com>
16721         at <https://savannah.gnu.org/bugs/?33379>.
16722         * modules/tempname (Depends-on): Add 'mkdir'.
16724 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
16726         timevar: rely on gnulib modules for time portability.
16727         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
16728         * m4/timevar.m4: Don't check for clock_t and struct tms,
16729         guaranteed by gnulib.
16730         * lib/timevar.h: Use extern "C" protection.
16731         Include <stdio.h> for FILE.
16732         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
16733         they are guaranteed by gnulib.
16734         Remove uses of clock as (now useless) fallback.
16736 2018-10-04  Bruno Haible  <bruno@clisp.org>
16738         sh-filename: New module.
16739         * m4/sh-filename.m4: New file.
16740         * modules/sh-filename: New file.
16741         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
16742         "/bin/sh".
16743         * tests/test-posix_spawn1.c (main): Likewise.
16744         * tests/test-posix_spawn2.c (main): Likewise.
16745         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
16746         is_envjavac_gcj43): Likewise.
16747         * lib/javaexec.c (execute_java_class): Likewise.
16748         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
16749         * modules/posix_spawnp-tests (Depends-on): Likewise.
16750         * modules/javacomp (Depends-on): Likewise.
16751         * modules/javaexec (Depends-on): Likewise.
16753 2018-10-04  Bruno Haible  <bruno@clisp.org>
16755         spawn-pipe tests: Avoid test failure on native Windows.
16756         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
16757         that fd 2 is closed.
16759 2018-10-04  Bruno Haible  <bruno@clisp.org>
16761         fcntl: Make it possible to namespace the defined symbol.
16762         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
16763         been defined.
16764         (fcntl): Renamed from rpl_fcntl.
16765         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
16766         from fcntl.
16767         (klibc_fcntl): Move to the end of the compilation unit.
16769 2018-10-02  Bruno Haible  <bruno@clisp.org>
16771         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
16772         * tests/test-vasnprintf.c (test_function): Change the test added on
16773         2018-09-23 to check only the 18 most significant digits.
16775         vasnprintf tests: Avoid test failure on Cygwin.
16776         * tests/test-vasnprintf.c (test_function): Change the test added on
16777         2018-09-23 to check only the 42 most significant digits.
16779 2018-10-01  Bruno Haible  <bruno@clisp.org>
16781         mkostemp, mkostemps: Update documentation.
16782         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
16783         * doc/glibc-functions/mkostemps.texi: Likewise.
16785 2018-10-01  Tom Tromey  <tom@tromey.com>
16787         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
16788         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
16789         on OS X.
16791 2018-09-30  Pádraig Brady  <P@draigBrady.com>
16793         hmac-*: refactor to remove repetitive code
16794         * lib/hmac.c: A new parameterized single implementation.
16795         * lib/hmac-md5.c: Define parameters and include implementation.
16796         * lib/hmac-sha1.c: Likewise.
16797         * lib/hmac-sha256.c: Likewise.
16798         * lib/hmac-sha512.c: Likewise.
16799         * modules/crypto/hmac-md5: Reference the new implementation file.
16800         * modules/crypto/hmac-sha1: Likewise.
16801         * modules/crypto/hmac-sha256: Likewise.
16802         * modules/crypto/hmac-sha512: Likewise.
16803         * tests/test-hmac-md5.c: Refactor common code to a single function.
16804         * tests/test-hmac-sha1.c: Likewise.
16805         * tests/test-hmac-sha256.c: Likewise.
16806         * tests/test-hmac-sha512.c: Likewise.
16808 2018-09-30  Zhang Qing  <zhangqingl@126.com>
16810         hmac-sha512: fix hash for keys > blocksize (128 bytes)
16811         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
16812         key length to that output by sha512, not the blocksize.
16813         Otherwise uninitialized data from the stack
16814         is used when computing the hash.
16815         * tests/test-hmac-sha512.c: Add a shortened key test case.
16816         Reported at https://github.com/coreutils/gnulib/pull/5
16818 2018-09-30  Bruno Haible  <bruno@clisp.org>
16820         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
16821         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
16822         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
16823         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
16824         'unsigned int' before comparison with an unsigned value.
16826 2018-09-30  Bruno Haible  <bruno@clisp.org>
16828         grantpt: Remove unnecessary dependency.
16829         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
16831 2018-09-30  Bruno Haible  <bruno@clisp.org>
16833         timevar: Small tweaks.
16834         * lib/timevar.h: Fix comments. Add parameter names to function
16835         declarations.
16836         * lib/timevar.c: Include timevar.h immediately after config.h.
16837         * lib/timevar.def: Fix comments.
16838         * modules/timevar (Maintainer): List Akim Demaille.
16840 2018-09-30  Bruno Haible  <bruno@clisp.org>
16842         timevar: Include documentation in gnulib manual.
16843         * doc/timevar.texi: Change node and section name to 'Profiling of
16844         program phases'.
16845         In the code snippets, tweak the #includes and use GNU coding style.
16846         * doc/gnulib.texi: Include timevar.texi.
16848 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
16850         timevar: import from Bison.
16851         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
16852         New files.
16853         * lib/timevar.def: New file.
16854         * doc/timevar.texi: New file.
16856 2018-09-26  Bruno Haible  <bruno@clisp.org>
16858         javacomp-script, javacomp: Add preliminary support for Java 12..17.
16859         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
16860         * lib/javacomp.c (default_target_version): Likewise.
16862 2018-09-26  Bruno Haible  <bruno@clisp.org>
16864         javacomp-script, javacomp: Add support for Java 11.
16865         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
16866         target-version 11.
16867         * lib/javaversion.h: Update comments.
16868         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16869         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16870         TARGET_VERSION_BOUND, target_version_index,
16871         corresponding_classfile_version): Accept source_version 11 and
16872         target_version 11.
16873         * lib/javacomp.h: Update comments accordingly.
16875 2018-09-23  Bruno Haible  <bruno@clisp.org>
16877         vasnprintf: Fix heap memory overrun bug.
16878         Reported by Ben Pfaff <blp@cs.stanford.edu> in
16879         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
16880         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
16881         memory.
16882         * tests/test-vasnprintf.c (test_function): Add another test.
16884 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
16886         maint: mktime.c now shared with glibc
16887         * config/srclist.txt: intprops.h, timegm.c and mktime.c
16888         are now the same in Gnulib and glibc.
16890         mktime: fix _LIBC typo
16891         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
16893 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16895         dfa: optimization for state merge
16896         * lib/dfa.c (merge2): New function.
16897         (merge_nfa_state): Use it.
16899 2018-09-18  Jim Meyering  <meyering@fb.com>
16901         dfa: trivial comment fix: s/is/if/
16902         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
16904 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16906         dfa: use more-informative function name
16907         * lib/dfa.c (maybe_disable_superset_dfa):
16908         Rename from dfautf8noss.  Use change.
16910         dfa: tweak allocation performance
16911         * lib/dfa.c (merge_nfa_state, dfaoptimize):
16912         Prefer ptrdiff_t for indexes some more.
16913         Use char for flags, as it’s wide enough.
16914         Allocate queue and flags together, with one malloc call.
16915         No need to use xnmalloc since the multiplication and
16916         addition cannot overflow (it’s already been checked by
16917         earlier allocation).  Prefer memset to open-coding.
16919         dfa: prune states as we go
16920         * lib/dfa.c (prune): Remove.
16921         dfa: reorder enum for efficiency
16922         (merge_nfa_state): Prune as we go instead of at the end.
16923         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
16925         * lib/dfa.c (END): Now -1 again.  Reorder other elements
16926         of the enumeration to make it easier for GCC to generate
16927         efficient code by using fewer comparisons to check for
16928         ranges of values.
16929         (atom): Take advantage of the reordering.
16931 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16933         dfa: optimize alternation in NFA
16934         Even when similar states exist in alternation, the DFA treats them
16935         as separate items, which may complicate the transition in NFA and
16936         cause slowdown.  This change assembles the states into one.  For
16937         example, ab|ac is changed into a(b|c).  This change speeds-up
16938         matching for many branched patterns.  For example, grep speeds up
16939         more than 30× in:
16941           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
16942           time -p env LC_ALL=C grep -vf in in
16944         * lib/dfa.c (prune): New function.
16945         (merge_nfa_state): New function.  It merges similar NFA states.
16946         (dfaoptimize): New function.  It seeks merged and removed nodes.
16947         (dfaanalyze): Call new function.
16948         (dfautf8noss): Change name from dfaoptimize because of addition of new
16949         function.
16950         (dfacomp): Update caller.
16952         dfa: simplify initial state
16953         Simplifying the initial state enables easier optimization of the NFA.
16954         * lib/dfa.c (enum token): Add new element BEG.
16955         (prtok): Adjust due to adding element BEG.
16956         (dfaparse): Put BEG at a head of tokens.
16957         (state_index): Adjust due to adding element BEG.
16958         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
16959         build initial state.
16960         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
16962 2018-09-18  Bruno Haible  <bruno@clisp.org>
16964         file-has-acl: Fix test failure on Cygwin 2.9.
16965         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
16966         * lib/acl-internal.h: Likewise.
16967         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
16968         * lib/acl-internal.c: Update comments regarding Cygwin.
16969         * lib/acl_entries.c: Likewise.
16970         * lib/file-has-acl.c: Likewise.
16971         (file_has_acl): For Cygwin, use a different way to determine whether
16972         the "default" ACL of a directory is nontrivial.
16973         * lib/get-permissions.c: Update comments regarding Cygwin.
16974         * lib/set-permissions.c: Likewise.
16976 2018-09-18  Bruno Haible  <bruno@clisp.org>
16978         stat-time tests: Fix test failure on Cygwin.
16979         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
16981 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16983         doc: OS X 10.11 lacked ns time functions
16984         According to <https://github.com/zeromq/libzmq/issues/2175>,
16985         nanosecond-resolution timestamp functions were introduced
16986         in macOS 10.12, so document the last version (OS X 10.11)
16987         where they were absent.
16989         gettime: nanotime never existed
16990         Problem reported by Bruno Haible in:
16991         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
16992         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
16993         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
16995 2018-09-18  Bruno Haible  <bruno@clisp.org>
16997         doc: Update statement about target platforms.
16998         Reported by Simon Sobisch.
16999         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
17000         restrictions on MSVC versions.
17002 2018-09-18  Bruno Haible  <bruno@clisp.org>
17004         posix_spawn tests: Fix link error on 64-bit Cygwin.
17005         * tests/test-posix_spawn1.c (environ): Remove declaration.
17006         * tests/test-posix_spawn2.c (environ): Likewise.
17007         * tests/test-posix_spawn3.c (environ): Likewise.
17008         * tests/test-posix_spawn4.c (environ): Likewise.
17009         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
17010         * modules/posix_spawnp-tests (Depends-on): Likewise.
17012 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17014         timespec: new function current_timespec
17015         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
17016         and don’t worry about it failing on a CLOCK_REALTIME arg.
17017         POSIX requires it to succeed and I don’t know of any
17018         counterexamples where the fallbacks would work.
17019         (current_timespec): New function, taken from Emacs.  It is more
17020         convenient than gettime, and can help register allocation.
17021         * lib/timespec.h: Include arg-nonnull.h.
17022         (current_timespec): New declaration.
17023         (gettime, settime): Declare args to be nonnull.
17024         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
17026 2018-09-16  Bruno Haible  <bruno@clisp.org>
17028         setlocale: Improve locale handling on macOS 10.12 or newer.
17029         * lib/setlocale.c: Include header files for CoreFoundation. Declare
17030         gl_locale_name_canonicalize.
17031         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
17032         and LC_MESSAGES.
17033         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
17035 2018-09-16  Bruno Haible  <bruno@clisp.org>
17037         Update list of locale names with scripts on macOS.
17038         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
17039         match Mac OS X 10.13 and recent glibc.
17041 2018-09-16  Bruno Haible  <bruno@clisp.org>
17043         gettext: Use newer macOS APIs when possible.
17044         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
17045         CFLocaleCopyPreferredLanguages.
17047 2018-09-16  Bruno Haible  <bruno@clisp.org>
17049         localename: Revisit macOS specific code.
17050         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
17051         Fix comments about Mac OS X versions.
17053 2018-09-15  Bruno Haible  <bruno@clisp.org>
17055         setlocale: Improve support for locales not supported by libc.
17056         Reported by Dapeng Gao <peter@dpgao.cc> at
17057         <https://savannah.gnu.org/bugs/?54479>.
17058         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
17059         (libintl_setlocale): Use a more error-tolerant strategy when the locale
17060         to be set is not supported by libc: Emit warnings instead of failing.
17062 2018-09-15  Bruno Haible  <bruno@clisp.org>
17064         strstr, strcasestr: Add workaround against glibc-2.28 bug.
17065         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
17066         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
17067         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
17068         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
17069         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
17070         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
17071         * doc/glibc-functions/strcasestr.texi: Likewise.
17073 2018-09-14  Bruno Haible  <bruno@clisp.org>
17075         doc: Fix bottom of top-level page.
17076         Reported by Akim Demaille <akim.demaille@gmail.com> in
17077         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
17078         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
17079         mode.
17080         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
17081         accordingly.
17083 2018-09-12  Bruno Haible  <bruno@clisp.org>
17085         Add test case from a recent glibc bug.
17086         * tests/test-strstr.c (main): Add test of long needle.
17087         * tests/test-strcasestr.c (main): Likewise.
17088         * tests/test-c-strstr.c (main): Likewise.
17089         * tests/test-c-strcasestr.c (main): Likewise.
17090         * tests/test-memmem.c (main): Likewise.
17092 2018-09-12  Bruno Haible  <bruno@clisp.org>
17094         Apply Eric Blake's improvements from 2011-02-25 to more tests.
17095         * tests/test-c-strstr.c (main): Add the same tests here as well.
17097 2018-09-12  Bruno Haible  <bruno@clisp.org>
17099         Apply Jim Meyering's fix from 2015-01-11 to more tests.
17100         * tests/test-memmem.c (main): Free haystack.
17101         * tests/test-strcasestr.c (main): Likewise.
17102         * tests/test-c-strcasestr.c (main): Likewise.
17104 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
17106         xstrtol: fix missing-TYPE_SIGNED typo
17107         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
17109 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17111         timespec: fix resolution confusion
17112         In normal usage, clock resolution is given in seconds, but the
17113         code was mistakenly using inverse seconds and calling it
17114         “resolution”.  Fix this, partly by renaming two identifiers.
17115         The old names will be kept for a bit, to ease transition.
17116         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
17117         New constants, replacing TIMESPEC_RESOLUTION and
17118         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
17119         All uses changed.
17121 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
17123         mktime: simplify in prep for glibc merge
17124         * lib/mktime.c, lib/timegm.c [_LIBC]:
17125         Include mktime-internal.h (a small file just for glibc)
17126         instead of using a typedef.
17128 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
17130         intprops: minor clarification of code
17131         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
17132         Use _GL_INT_CONVERT rather than reinventing it.
17134 2018-09-07  Bruno Haible  <bruno@clisp.org>
17136         Fix a comment.
17137         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
17139 2018-09-07  Bruno Haible  <bruno@clisp.org>
17141         posix_spawn_file_actions_addchdir: Add tests.
17142         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
17143         * tests/test-posix_spawn4.c: New file.
17144         * modules/posix_spawn_file_actions_addchdir-tests: New file.
17146 2018-09-07  Bruno Haible  <bruno@clisp.org>
17148         posix_spawn_file_actions_addchdir: New module.
17149         Suggested by Eric Blake in
17150         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
17151         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
17152         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
17153         union member 'chdir_action'.
17154         * lib/spawn_faction_addchdir.c: New file.
17155         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
17156         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
17157         HAVE_WORKING_POSIX_SPAWN.
17158         * lib/spawn_faction_adddup2.c: Likewise.
17159         * lib/spawn_faction_addopen.c: Likewise.
17160         * m4/posix_spawn_faction_addchdir.m4: New file.
17161         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
17162         'posix_spawn_file_actions_addchdir' is present and whether
17163         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
17164         instead of HAVE_WORKING_POSIX_SPAWN.
17165         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
17166         posix_spawn_file_actions_addchdir is declared.
17167         (gl_SPAWN_H_DEFAULTS): Initialize
17168         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17169         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17170         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
17171         * modules/spawn (Makefile.am): Substitute
17172         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17173         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17174         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
17175         * modules/posix_spawn_file_actions_addchdir: New file.
17176         * modules/posix_spawn_file_actions_addclose (Depends-on,
17177         configure.ac): Test also REPLACE_POSIX_SPAWN.
17178         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
17179         configure.ac): Likewise.
17180         * modules/posix_spawn_file_actions_addopen (Depends-on,
17181         configure.ac): Likewise.
17182         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
17183         signature.
17184         * doc/posix-functions/posix_spawn.texi: Mention the new module.
17185         * doc/posix-functions/posix_spawnp.texi: Likewise.
17187 2018-09-06  Bruno Haible  <bruno@clisp.org>
17189         stddef: Override max_align_t on NetBSD 8.0/x86.
17190         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
17191         the value of __alignof__ (max_align_t).
17192         * doc/posix-headers/stddef.texi: Mention the issue.
17194 2018-09-06  Bruno Haible  <bruno@clisp.org>
17196         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
17197         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
17198         system fcntl.
17199         * doc/posix-functions/fcntl.texi: Document the issue.
17201 2018-09-06  Bruno Haible  <bruno@clisp.org>
17203         count-trailing-zeros tests: Rely on limits-h module.
17204         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
17205         definition.
17206         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
17208 2018-09-06  Bruno Haible  <bruno@clisp.org>
17210         count-leading-zeros tests: Rely on limits-h module.
17211         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
17212         definition.
17213         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
17215 2018-09-06  Bruno Haible  <bruno@clisp.org>
17217         count-one-bits tests: Rely on limits-h module.
17218         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
17219         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
17221 2018-09-06  Bruno Haible  <bruno@clisp.org>
17223         xstrtoll: Rely on limits-h module.
17224         * lib/xstrtol.c: Don't include intprops.h.
17225         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
17226         * modules/xstrtol (Depends-on): Remove 'intprops'.
17227         * modules/xstrtoll (Depends-on): Add 'limits-h'.
17229 2018-09-06  Bruno Haible  <bruno@clisp.org>
17231         strtoll, strtoull: Rely on limits-h module.
17232         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
17233         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
17234         * modules/strtoll (Depends-on): Add limits-h.
17235         * modules/strtoull (Depends-on): Likewise.
17237 2018-09-06  Bruno Haible  <bruno@clisp.org>
17239         intprops tests: Fix compilation error with pre-C99 compiler.
17240         * tests/test-intprops.c (verify_stmt): New macro.
17241         (VERIFY, main): Use it.
17243 2018-09-06  Bruno Haible  <bruno@clisp.org>
17245         limits-h: Provide numerical limits macros.
17246         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
17247         IRIX and for GCC.
17248         (WORD_BIT, LONG_BIT): Define.
17249         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
17250         <limits.h> does not define LLONG_MAX or WORD_BIT.
17251         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
17252         TYPE_MAXIMUM): New macros, from intprops.h.
17253         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
17254         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
17255         provides.
17257 2018-09-05  Bruno Haible  <bruno@clisp.org>
17259         fcntl: Don't access nonexistent optional argument.
17260         Reported by Frank Busse <f.busse@imperial.ac.uk> in
17261         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
17262         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
17263         don't consume an argument. For actions that take an 'int' argument,
17264         consume an 'int' argument.
17266 2018-09-05  Eric Blake  <eblake@redhat.com>
17268         doc: mention environ pitfall
17269         * doc/posix-functions/environ.texi (environ): Assigning NULL to
17270         environ is a glibc extension.
17272 2018-09-03  Bruno Haible  <bruno@clisp.org>
17274         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
17275         Reported by Antoine Luong <antoine.luong@c-s.fr> in
17276         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
17277         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
17278         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
17279         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
17281 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17283         mktime: fix unlikely race+overflow bug
17284         Problem reported by Alexandre Oliva in:
17285         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
17286         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
17287         to avoid an unlikely race if the compiler delays a load and
17288         if this cascades into a signed integer overflow.
17290 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17292         mktime, timegm: simplify glibc time64_t
17293         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
17294         Now long int, not time_t, since long int is the longstanding type
17295         for this in glibc and there is no need to change it even if time_t
17296         becomes 64 bits - even int would do, though this would be a change
17297         to the glibc generated code.  When this change is merged into
17298         glibc, it should simplify the time_t vs time64_t situation.
17300         mktime, timegm: simplify merge to glibc
17301         Move code around to make a merge to glibc easier to audit.
17302         This should not change behavior.
17303         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
17304         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
17305         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
17306         simplify later conditionals; default the others to zero.  In uses
17307         of these conditionals, explicitly spell out how _LIBC affects
17308         things, so it’s easier to review from a glibc viewpoint.
17309         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
17310         compartmentalize tzset issues.  Move system-dependent tzsettish
17311         code here from mktime.
17312         (mktime): Move tzsettish code to my_tzset, and move
17313         localtime_offset to within mktime so that it doesn’t
17314         need a separate ifdef.
17316 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
17318         intprops: avoid evaluation of some expressions
17319         This makes EXPR_SIGNED (e) easier to use, as it no longer
17320         evaluates the expression E.  Formerly, E was required to be free
17321         of side effects.
17322         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
17323         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
17324         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
17326 2018-08-23  Bruno Haible  <bruno@clisp.org>
17328         getcwd: Add cross-compilation guesses.
17329         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
17330         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
17331         Based on a patch by Paul Eggert.
17332         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
17333         guesses for all GNU systems.
17335 2018-08-19  Bruno Haible  <bruno@clisp.org>
17337         glob-h: Formalize side effects from other modules.
17338         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
17339         * m4/glob.m4 (gl_GLOB): Invoke it.
17341         fnmatch-h: Formalize side effects from other modules.
17342         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
17343         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
17345         limits-h: Formalize side effects from other modules.
17346         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
17347         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
17349 2018-08-19  Bruno Haible  <bruno@clisp.org>
17351         getpass: Move declaration to <unistd.h>.
17352         * lib/unistd.in.h (getpass): New declaration.
17353         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
17354         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
17355         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
17356         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
17357         On glibc systems, don't set REPLACE_GETPASS to 1.
17358         * modules/getpass (Depends-on): Add 'unistd'.
17359         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
17360         (Include): Specify <unistd.h> instead of "getpass.h".
17361         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
17362         (configure.ac): Sync with the configure.ac section of modules/getpass.
17363         (Include): Specify <unistd.h> instead of "getpass.h".
17364         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
17365         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
17366         REPLACE_GETPASS.
17367         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
17368         REPLACE_GETPASS.
17369         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
17370         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
17371         and musl.
17372         * NEWS: Mention the change.
17374 2018-08-19  Bruno Haible  <bruno@clisp.org>
17376         glob: Fix over-optimization due to attribute __nonnull__.
17377         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
17379 2018-08-19  Bruno Haible  <bruno@clisp.org>
17381         glob: Fix another compilation error when glob.h is not replaced.
17382         Reported by Reuben Thomas <rrt@sc3d.org> in
17383         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
17384         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
17385         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
17387 2018-08-18  Bruno Haible  <bruno@clisp.org>
17389         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
17390         Reported by Reuben Thomas <rrt@sc3d.org> in
17391         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
17392         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
17393         in config.h.
17395 2018-08-18  Bruno Haible  <bruno@clisp.org>
17397         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
17398         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
17399         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
17400         Solution proposed by Eli Zaretskii.
17401         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
17402         * lib/gettimeofday.c (GetProcAddress): Likewise.
17403         * lib/link.c (GetProcAddress): Likewise.
17404         * lib/physmem.c (GetProcAddress): Likewise.
17405         * lib/poll.c (GetProcAddress): Likewise.
17406         * lib/select.c (GetProcAddress): Likewise.
17407         * lib/stat-w32.c (GetProcAddress): Likewise.
17409 2018-08-18  Bruno Haible  <bruno@clisp.org>
17411         glob: Fix another compilation error when glob.h is not replaced.
17412         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
17413         * lib/globfree.c: Include <libc-config.h>.
17415 2018-08-18  Bruno Haible  <bruno@clisp.org>
17417         glob: Fix compilation error when glob.h is not replaced.
17418         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
17419         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
17420         * lib/glob_pattern_p.c: Include <libc-config.h>.
17421         * modules/glob (Depends-on): Add libc-config.
17423 2018-08-18  Bruno Haible  <bruno@clisp.org>
17425         scratch_buffer: Add tests.
17426         * tests/test-scratch-buffer.c: New file.
17427         * modules/scratch_buffer-tests: New file.
17429 2018-08-18  Bruno Haible  <bruno@clisp.org>
17431         scratch_buffer: Fix include file.
17432         Reported by Reuben Thomas <rrt@sc3d.org> in
17433         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
17434         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
17435         double-inclusion guard.
17437 2018-08-18  Bruno Haible  <bruno@clisp.org>
17439         glob-h: Revert Paul Eggert's revert.
17440         * m4/glob_h.m4: Revert to previous state.
17441         * modules/glob-h: Likewise.
17443 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
17445         glob-h: always build glob.h
17446         This works around a problem reported by Reuben Thomas in:
17447         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
17448         This workaround always builds glob.h, even on platforms that
17449         do not need it; perhaps this could be improved someday.
17450         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
17451         is always created now.
17452         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
17454 2018-08-13  Bruno Haible  <bruno@clisp.org>
17456         monetary: Simplify m4 code.
17457         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
17458         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
17460 2018-08-13  Bruno Haible  <bruno@clisp.org>
17462         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
17463         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
17464         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
17465         and by Paul J. Lucas <paul@lucasmail.org> in
17466         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
17467         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
17469 2018-08-11  Bruno Haible  <bruno@clisp.org>
17471         setlocale: Trivial simplification.
17472         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
17474 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17476         verify: port 'assume' to traditional tools
17477         * lib/verify.h (assume): Port better to Oracle Studio 12.6
17478         and other tools that use /*NOTREACHED*/ comments.
17480 2018-08-10  Bruno Haible  <bruno@clisp.org>
17482         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
17483         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17484         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
17485         'fnmatch-gnu' is in use.
17487 2018-08-07  Bruno Haible  <bruno@clisp.org>
17489         glob-h: Add tests.
17490         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
17491         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
17492         tests/test-glob-h.c.
17493         * modules/glob-h-tests: New file.
17494         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
17495         conditions.
17496         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
17497         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
17499 2018-08-07  Bruno Haible  <bruno@clisp.org>
17501         glob-h: New module.
17502         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
17503         replacements.
17504         * lib/glob.c: Include <config.h>.
17505         * m4/glob_h.m4: New file.
17506         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
17507         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17508         REPLACE_GLOB_PATTERN_P as appropriate.
17509         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
17510         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
17511         * modules/glob-h: New file.
17512         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
17513         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
17514         lstat, sys_stat. Change conditions.
17515         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17516         REPLACE_GLOB_PATTERN_P. Set module indicator.
17517         (Makefile.am): Remove code that is moved to glob-h.
17518         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
17519         * modules/posixcheck (Depends-on): Add glob-h.
17521 2018-08-06  Bruno Haible  <bruno@clisp.org>
17523         Force generation of substitute .h file when C++ support is enabled.
17524         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
17525         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
17526         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
17527         FNMATCH_H to non-empty.
17528         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
17529         ICONV_H to non-empty.
17530         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
17531         MONETARY_H to non-empty.
17532         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
17533         non-empty.
17535 2018-08-06  Bruno Haible  <bruno@clisp.org>
17537         fnmatch-h: Fix test compilation error on mingw (regression from today).
17538         * lib/fnmatch.in.h: Fix conditions.
17540 2018-08-06  Bruno Haible  <bruno@clisp.org>
17542         sys_resource: Relicense under LGPLv2+.
17543         John Malmberg's approval is in
17544         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
17545         * modules/sys_resource (License): Change to LGPLv2+.
17547 2018-08-06  Bruno Haible  <bruno@clisp.org>
17549         fnmatch-h: Add tests.
17550         * tests/test-fnmatch-h.c: New file.
17551         * modules/fnmatch-h-tests: New file.
17552         * tests/test-fnmatch-h-c++.cc: New file.
17553         * modules/fnmatch-h-c++-tests: New file.
17555 2018-08-06  Bruno Haible  <bruno@clisp.org>
17557         fnmatch-h: New module.
17558         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
17559         replacements.
17560         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
17561         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
17562         'posixcheck' warning.
17563         * m4/fnmatch_h.m4: New file.
17564         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
17565         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
17566         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
17567         as appropriate.
17568         * modules/fnmatch-h: New file.
17569         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
17570         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
17571         conditions.
17572         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
17573         indicator.
17574         (Makefile.am): Remove code that is moved to fnmatch-h.
17575         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
17576         REPLACE_FNMATCH.
17577         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
17578         * modules/posixcheck (Depends-on): Add fnmatch-h.
17580 2018-08-06  Bruno Haible  <bruno@clisp.org>
17582         Enable more C++ tests.
17583         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
17584         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
17585         * modules/strings-tests (Depends-on): Add strings-c++-tests.
17586         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
17587         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
17589 2018-08-06  Bruno Haible  <bruno@clisp.org>
17591         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
17592         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
17593         getopt.h.
17594         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
17596 2018-08-05  Bruno Haible  <bruno@clisp.org>
17598         utime-h: Generate header file when module 'posixcheck' is in use.
17599         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
17600         UTIME_H to non-empty.
17602 2018-08-05  Bruno Haible  <bruno@clisp.org>
17604         monetary: Generate header file when module 'posixcheck' is in use.
17605         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
17606         use, set MONETARY_H to non-empty.
17608 2018-08-05  Bruno Haible  <bruno@clisp.org>
17610         iconv-h: Generate header file when module 'posixcheck' is in use.
17611         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
17612         set ICONV_H to non-empty.
17614 2018-08-05  Bruno Haible  <bruno@clisp.org>
17616         Optimize the "checking whether ... is declared without a macro" checks.
17617         Suggested by Paul Eggert in
17618         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
17619         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
17620         Gnulib module 'posixcheck' is not in use.
17622 2018-08-05  Bruno Haible  <bruno@clisp.org>
17624         iconv-h: Enable 'posixcheck' warnings.
17625         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
17626         iconv_open.
17627         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
17629 2018-08-05  Bruno Haible  <bruno@clisp.org>
17631         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
17632         * m4/extern-inline.m4: Add more comments.
17633         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
17634         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
17635         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
17637 2018-08-04  Bruno Haible  <bruno@clisp.org>
17639         New module 'posixcheck'.
17640         * modules/posixcheck: New file.
17641         * m4/posixcheck.m4: New file.
17642         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
17643         (Which modules?): Reference it.
17645 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
17647         dfa: fix memory leak
17648         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
17650 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
17652         ieee754-h: new module
17653         It looks like Emacs can use this for some NaN processing.
17654         Emacs uses it only on double NaNs so it should be safe.
17655         * MODULES.html.sh (func_all_modules): Add ieee754-h.
17656         * config/srclist.txt: Mention ieee754.h in a comment.
17657         * doc/glibc-headers/ieee754.texi (ieee754.h):
17658         Gnulib now has a substitute that should work
17659         except for long double and for non-IEEE platforms.
17660         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
17661         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
17663 2018-07-27  Bruno Haible  <bruno@clisp.org>
17665         iswcntrl: Mention minor problem on macOS.
17666         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
17668 2018-07-26  Colin Watson  <cjwatson@debian.org>
17670         bootstrap, gnulib-tool: fix translations rsync
17671         Previously, we created files such as $pobase/Makefile.in.in and then the
17672         subsequent rsync would immediately delete them.
17673         * build-aux/bootstrap (po_download_command_format): Avoid deleting
17674         non-.po files in target directory when rsyncing translations.
17675         * gnulib-tool (func_import): Likewise.
17676         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17678 2018-07-25  Jim Meyering  <meyering@fb.com>
17680         bootstrap: reinstate definition fo gnulib_mk.
17681         That variable is used at least by cppi.
17682         * build-aux/bootstrap (gnulib_mk): Restore definition.
17683         This reverts the deletion from v0.1-1844-gc66dba9ba.
17685 2018-07-23  Bruno Haible  <bruno@clisp.org>
17687         doc: For module names, use texinfo markup @code{} or @samp{}.
17688         * doc/alloca.texi: Mark gnulib module names with @code.
17689         * doc/alloca-opt.texi: Likewise.
17690         * doc/quote.texi: Likewise.
17691         * doc/posix-functions/freopen.texi: Likewise.
17692         * doc/posix-functions/open.texi: Likewise.
17693         * doc/posix-functions/readlink.texi: Likewise.
17694         * doc/posix-functions/readlinkat.texi: Likewise.
17695         * doc/posix-functions/stdout.texi: Likewise.
17696         * doc/posix-functions/stderr.texi: Likewise.
17697         * doc/posix-functions/unlink.texi: Likewise.
17698         * doc/posix-functions/unlinkat.texi: Likewise.
17699         * doc/posix-functions/utime.texi: Likewise.
17700         * doc/posix-functions/utimensat.texi: Likewise.
17701         * doc/posix-functions/utimes.texi: Likewise.
17702         * doc/posix-headers/stdint.texi: Likewise.
17703         * doc/glibc-functions/futimesat.texi: Likewise.
17704         * doc/glibc-functions/lutimes.texi: Likewise.
17705         * doc/glibc-functions/memmem.texi: Likewise.
17707 2018-07-23  Werner LEMBERG  <wl@gnu.org>
17709         doc: Avoid some overfull lines in the TeX output.
17710         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
17711         @example.
17712         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
17713         newline before the long URL.
17714         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
17715         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
17716         Add line breaks in code snippets.
17718 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
17720         hard-locale: simplify by removing hard-locale.m4
17721         * m4/hard-locale.m4: Remove.
17722         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
17723         (configure.ac): Do not call gl_HARD_LOCALE.
17725         gnulib-tool: limit line length for git send-email
17726         * gnulib-tool (func_import): Break actioncmd log line
17727         into multiple lines.
17729 2018-07-16  Bruno Haible  <bruno@clisp.org>
17731         ffs: Ensure declaration on mingw.
17732         Reported by Daniel P. Berrangé <berrange@redhat.com>
17733         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
17734         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
17735         also declared.
17737 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
17739         regex-tests: add dependency
17740         * modules/regex-tests (Depends-on): Add gettext-h.
17741         This is needed given the recent changes to regex,
17742         which no longer depends on gettext-h.
17744 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17746         regex: now in sync with glibc
17747         * config/srclist.txt: Gnulib and glibc regex code
17748         are synchronized again.
17750 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17752         renameatu: rename from renameat2
17753         It's looking like Glibc will add a renameat2 function
17754         that is incompatible with Gnulib renameat2; see:
17755         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
17756         To help avoid future confusion, rename renameat2 to something else.
17757         Use the name 'renameatu', as the Gnulib function is close to the
17758         Glibc function.  Perhaps someday there will also be a renameat2
17759         Gnulib module, which mimicks the future glibc renameat2, but that
17760         can wait as nobody seems to need such a module now.
17761         * NEWS: Mention this.
17762         * lib/renameatu.c: Rename from lib/renameat2.c.
17763         * lib/renameatu.h: Rename from lib/renameat2.h.
17764         * modules/renameatu: Rename from modules/renameat2.
17765         * modules/renameatu-tests: Rename from modules/renameat2-tests.
17766         All uses of "renameat2" in identifiers or file name
17767         changed to "renameatu", except for two instances in
17768         lib/renameatu.c that deal with the Linux kernel's
17769         renameat2 syscall.
17771 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
17773         gnulib-tool: minor tweaks for --gnu-make
17774         * gnulib-tool: Do not allow --gnu-make in test modes,
17775         since they all require automake.
17776         (func_emit_lib_Makefile_am): Don’t emit automake comment
17777         if --gnu-make.
17779         regex: work around conditional-dependencies glitch
17780         * modules/regex (Depends-on): Add langinfo.
17781         Without this change, I had problems building an experimental
17782         version of GNU Emacs.  The symptom of the bug was a message
17783         ‘./configure: line 12726: test: =: unary operator expected’.
17784         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
17785         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
17786         was unset.  Although gl_FUNC_NL_LANGINFO has
17787         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
17788         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
17789         --conditional-dependencies sometimes arranges for the
17790         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
17791         code.  Since the regex code includes <langinfo.h> it should be
17792         depending on the langinfo module anyway, and this happens to work
17793         around the bug, so install that as a workaround for now.  To
17794         reproduce the original problem, run the following shell script on
17795         the version of Gnulib just before this patch was installed.
17796                 rm -fr foo
17797                 mkdir foo
17798                 cat >foo/configure.ac <<'EOF'
17799                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
17800                 gl_EARLY
17801                 gl_INIT
17802                 AC_OUTPUT
17803                 EOF
17804                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
17805                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
17806                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
17807                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
17808                 cd foo
17809                 aclocal -I m4
17810                 autoconf
17811                 ./configure --with-included-regex
17813 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17815         wchar: fix bug when checking for ‘inline’
17816         I discovered this when looking into using the regex module
17817         with Emacs.
17818         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
17819         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
17820         conftest1.c and conftest2.c but these files were not created.
17821         As far as I can see, this check never worked and nobody reported
17822         it until now, which is a bit worrisome.
17824 2018-06-30  Jim Meyering  <meyering@fb.com>
17826         bootstrap: s/--option val/--option=val/
17827         * build-aux/bootstrap (gnulib_tool_options): Change the
17828         spelling of "--option val" pairs to "--option=val", for
17829         aesthetics, and also so that this file no longer triggers
17830         a common help2man syntax-check warning when copied into
17831         projects like grep, gzip, etc.
17833 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17835         manywarnings: omit -Wswitch-default
17836         This should make things more consistent, as we already ignore
17837         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
17838         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
17839         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
17840         Add -Wswitch-default.
17841         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
17842         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
17843         Remove -Wswitch-default.
17845         regex: revert most trimming
17846         Problems reported by Bruno Haible in:
17847         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
17848         * modules/regex (Depends-on): Add lock, memcmp, memmove,
17849         and wctype back in.  lock because regex users shouldn’t
17850         need to know that regex needs locking, and the rest because
17851         gnulib-tool should ordinarily ignore them anyway.
17853 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17855         regex: trim module dependencies
17856         * modules/regex (Depends-on): Remove gettext-h and lock,
17857         since the regex code should work OK without these modules,
17858         and Emacs uses it that way.  Also remove memcmp, memmove,
17859         and wctype, as these modules are obsolete and should not be
17860         needed any more.
17862 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
17864         regex: glibc does not use intprops.h
17865         Maybe we can talk glibc into using intprops.h someday, but
17866         now doesn’t seem to be a good time.
17867         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
17868         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
17869         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
17871 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
17873         regex: port to recently proposed glibc regex merge
17874         This patch is inspired by Adhemerval Zanella's recent proposal
17875         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
17876         to merge glibc and Gnulib regex.  It aims to simplify the merge on
17877         the glibc side, without keeping Gnulib portable.
17878         * lib/regex.h: Fix a problem with glibc installed-header checking,
17879         as follows:
17880         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
17881         (_Restrict_arr_): Prefer __restrict_arr if defined,
17882         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
17883         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
17884         (build_wcs_upper_buffer, build_upper_buffer)
17885         (re_string_translate_buffer, re_string_context_at):
17886         Move decls here from lib/regex_internal.h, for glibc internal tests.
17887         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
17888         glibc BZ #18496.
17889         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
17890         -Wunused-value.
17891         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
17892         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
17893         (bitset_mask): Now static inline, and without any __attribute__
17894         ((unused)) decoration, for glibc internal tests.
17896 2018-06-25  Bruno Haible  <bruno@clisp.org>
17898         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
17899         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
17900         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
17901         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
17902         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
17903         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
17904         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
17905         / -lthread / -lpth does not get optimized away by a preceding
17906         --as-needed option.
17908 2018-06-25  Bruno Haible  <bruno@clisp.org>
17910         Continue to use spaces for indentation, not tabs.
17911         * MODULES.html.sh: Untabify.
17912         * doc/regex.texi: Likewise.
17913         * lib/acl-internal.c: Likewise.
17914         * lib/dfa.c: Likewise.
17915         * lib/exclude.c: Likewise.
17916         * lib/exclude.h: Likewise.
17917         * lib/get-permissions.c: Likewise.
17918         * lib/gettimeofday.c: Likewise.
17919         * lib/parse-datetime.y: Likewise.
17920         * lib/pselect.c: Likewise.
17921         * lib/set-permissions.c: Likewise.
17922         * lib/time.in.h: Likewise.
17923         * m4/canonicalize.m4: Likewise.
17924         * m4/gc.m4: Likewise.
17925         * m4/gnulib-common.m4: Likewise.
17926         * m4/pthread_sigmask.m4: Likewise.
17927         * m4/vararrays.m4: Likewise.
17928         * tests/test-digest.h: Likewise.
17929         * tests/test-fcntl-h.c: Likewise.
17930         * tests/test-timespec.c: Likewise.
17931         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
17933 2018-06-25  Bruno Haible  <bruno@clisp.org>
17935         manywarnings: Don't enable -Wjump-misses-init warnings by default.
17936         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
17937         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
17938         -Wjump-misses-init.
17940 2018-06-25  Jim Meyering  <meyering@fb.com>
17942         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
17943         * lib/acl-internal.h (free_permission_context): Remove that
17944         attribute directive.  Otherwise, it would provoke this from GCC 9:
17945         lib/acl-internal.h:300:3: error: 'const' attribute on function \
17946           returning 'void' [-Werror=attributes]
17948 2018-06-24  Jim Meyering  <meyering@fb.com>
17950         parse-datetime: accommodate gcc-4.8.5
17951         Bruno Haible reported the build failure in
17952         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
17953         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
17954         on declaration of new local.
17956 2018-06-24  Bruno Haible  <bruno@clisp.org>
17958         af_alg: Fail in continuable manner on Linux/powerpc64le.
17959         Reported by Assaf Gordon <assafgordon@gmail.com>
17960         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
17961         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
17962         byte send() as the first round.
17964 2018-06-24  Bruno Haible  <bruno@clisp.org>
17966         af_alg: Fix state of stream after sendfile() succeeds.
17967         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
17968         the stream is correctly positioned afterwards.
17969         * modules/crypto/af_alg (Depends-on): Add fflush.
17970         * tests/test-digest.h (test_digest_on_files): Verify that after the
17971         operation the stream is positioned at end of file.
17973 2018-06-24  Jim Meyering  <meyering@fb.com>
17975         canon-host: take GCC9's advice rather than ignoring warning
17976         Pádraig Brady suggested not to ignore this GCC9 advice.
17977         * lib/canon-host.c: Undo preceding change.
17978         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
17980         parse-datetime.y: avoid spurious GCC 9 warning
17981         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
17982         a function local prior to the first "goto fail".  The prior use would
17983         evoke this:
17984         parse-datetime.y: In function 'parse_datetime2':
17985         parse-datetime.y:1791:19: error: jump skips variable initialization \
17986           [-Werror=jump-misses-init]
17987         parse-datetime.y:2385:2: note: label 'fail' defined here
17988         parse-datetime.y:188:43: note: '({anonymous})' declared here
17989         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
17991         canon-host.c: avoid spurious GCC 9 warning
17992         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
17994         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
17995         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
17996         * m4/manywarnings.m4: Remove them.
17997         Otherwise, building coreutils, I would see this:
17998         cc1: error: deprecated command line option '-Wchkp' [-Werror]
17999         cc1: error: -Wabi won't warn about anything [-Werror=abi]
18000         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
18001           which is also used by default
18002         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
18004 2018-06-24  Bruno Haible  <bruno@clisp.org>
18006         af_alg tests: Add another test.
18007         * tests/test-digest.h (test_digest_on_files): Also check a large file
18008         with a skipped header.
18009         * tests/test-md5.c: Include macros.h.
18010         * tests/test-sha1.c: Likewise.
18011         * tests/test-sha256.c: Likewise.
18012         * tests/test-sha512.c: Likewise.
18013         * modules/crypto/md5-tests (Files): Add tests/macros.h.
18014         * modules/crypto/sha1-tests (Files): Likewise.
18015         * modules/crypto/sha256-tests (Files): Likewise.
18016         * modules/crypto/sha512-tests (Files): Likewise.
18018 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18020         maint: clarify comments about sticky EOF
18021         * lib/af_alg.c: Be more direct that we can't
18022         assume stickiness of EOF for portability reasons.
18023         * lib/md5.c: Clarify that this isn't just a glibc issue.
18024         * lib/sha1.c: Likewise.
18025         * lib/sha256.c: Likewise.
18026         * lib/sha512.c: Likewise.
18028 2018-06-24  Bruno Haible  <bruno@clisp.org>
18030         af_alg: Comment and style improvements.
18031         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
18032         (afalg_buffer, afalg_stream): Improve comments.
18034 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18036         af_alg: disable kernel hash functions by default
18037         All the kernel routines were seen to be significantly slower
18038         with these relatively recent components on an i3-2310M system:
18039           kernel-4.10.6-200.fc25.x86_64
18040           openssl-1.0.2m-1.fc25.x86_64
18041         sha1 was nearly twice as slow in the kernel for example.
18042         Further considerations why this should not be the default, at:
18043         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
18045         * m4/af_alg.m4: Require --with-linux-crypto to enable.
18046         * m4/gl-openssl.m4: Tweak accordingly.
18048 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18050         af_alg: avoid hangs when reading from streams
18051         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
18052         and thus avoid doing a fread() when feof() is set.
18053         * lib/md5.c: Ensure feof() is called before fread().
18054         * lib/sha1.c: Likewise.
18055         * lib/sha256.c: Likewise.
18056         * lib/sha512.c: Likewise.
18058 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18060         af_alg: fix error handling when hash not returned
18061         * lib/af_alg.c (afalg_stream): Handle the case where we've
18062         successfully written data to the kernel in the read/write loop,
18063         but the kernel doesn't respond with the hash.
18065 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18067         libc-config: merge from glibc
18068         * lib/cdefs.h (__inline, __restrict):
18069         Copy from current glibc.  This fixes glibc bug 17721,
18070         which Gnulib had already fixed in a different way.
18071         (__nonnull): Lessen the distance from glibc by using the
18072         glibc definition inside an ‘#ifndef __nonnull’.
18073         (__attribute_nonstring__): New macro, copied from
18074         current glibc.
18075         * lib/libc-config.h (__attribute_nonstring__): New undef.
18076         (__restrict): Remove; workaround no longer needed.
18077         Keep the __inline workaround, though, as it uses HAVE___INLINE to
18078         support more compilers than the glibc __inline can.
18080 2018-06-24  Bruno Haible  <bruno@clisp.org>
18082         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
18083         * lib/mbrtowc.c (enc_t): New enum type.
18084         (locale_enc, locale_enc_cached): New functions.
18085         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
18086         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
18087         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
18088         instead.
18089         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
18090         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
18091         * modules/wcwidth (configure.ac): Invoke it.
18093 2018-06-24  Bruno Haible  <bruno@clisp.org>
18095         wchar-single: Fix test failure in wcwidth tests.
18096         * tests/test-wcwidth.c (main): If the wchar-single module is present,
18097         skip the tests in the C locale.
18099 2018-06-23  Pádraig Brady  <P@draigBrady.com>
18101         crypto: mention --without-linux-crypto in --with-openssl --help
18102         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
18103         routines take precedence in --with-openssl help output.
18105 2018-06-23  Pádraig Brady  <P@draigBrady.com>
18107         wchar-single: a new module to enable optimizations in wchar replacements
18108         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
18109         GNULIB_WCHAR_SINGLE is enabled.
18110         * lib/wcwidth.c (wcwidth): Likewise.
18112 2018-06-23  Bruno Haible  <bruno@clisp.org>
18114         libc-config: Fix conflict with FreeBSD include files.
18115         * lib/cdefs.h (__nonnull): Remove definition.
18116         * lib/libc-config.h (__nonnull): Remove undefinition.
18118 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18120         random_r: do not crash if state is unaligned
18121         Problem reported by Bruce Korb in:
18122         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
18123         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
18124         with 'cc -O2 -xmemalign=8s'.
18125         * lib/random_r.c: Include string.h, for memcpy.
18126         (get_int32, set_int32): New functions.
18127         (__srandom_r, __initstate_r, __setstate_r, __random_r):
18128         Use them to avoid assumption that state pointer is aligned.
18129         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
18130         * tests/test-random_r.c (test_failed): New function.
18131         (main): Use it, to test for alignment bugs.
18133         random_r: omit unnecessary include
18134         * lib/random_r.c: Do not include limits.h.
18136         random, random_r: merge from glibc
18137         * lib/random.c, lib/random_r.c:
18138         Include libc-config.h if !_LIBC, not config.h unilaterally.
18139         * lib/random.c:
18140         Do not include stdint.h or time.h; not needed.
18141         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
18142         (unsafe_state): Rename from generator.  All uses changed.
18143         Use C99-style initializers.
18144         (__random, __srandom, __initstate, __setstate): Rename from
18145         non-underscored version, but define it to non-underscored version
18146         on Gnulib.  Add a lock.
18147         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
18148         Likewise.
18149         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
18150         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
18151         (__srandom_r): Use int32_t instead of long int where int32_t will do.
18152         (__random_r): Use uint32 to fix glibc bug 17343.
18153         * modules/random, modules/random_r (Depends-on): Add libc-config.
18154         Depend on stdint only if $HAVE_RANDOM = 0.
18156 2018-06-19  Jim Meyering  <meyering@fb.com>
18158         README-release: also run any check-very-expensive tests
18159         * top/README-release: Adjust instructions so they run the
18160         check-very-expensive tests when there is such a target.
18162 2018-06-18  Bruno Haible  <bruno@clisp.org>
18164         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
18165         * m4/pthread_rwlock_rdlock.m4: Add comment.
18166         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
18167         are reader-preferring in glibc.
18168         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
18169         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
18171 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18173         crypto: use byteswap
18174         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
18175         * lib/sm3.c: Include <byteswap.h>.
18176         (SWAP): Use its macros rather than reinventing the wheel.
18177         * modules/crypto/md4, modules/crypto/md5-buffer:
18178         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
18179         * modules/crypto/sha512-buffer, modules/crypto/sm3:
18180         (Depends-on): Add byteswap.
18182 2018-06-17  Pádraig Brady  <P@draigBrady.com>
18184         gendocs.sh: fix support for legacy --texi2html
18185         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
18186         to the default makeinfo invocation.
18187         Reported by Bruce Korb
18189 2018-06-17  Bruno Haible  <bruno@clisp.org>
18191         gettext po infrastructure: Update from current gettext git.
18192         Reported by Akim Demaille <akim@lrde.epita.fr>.
18193         * build-aux/po/Makefile.in.in: Update from current gettext git.
18194         * build-aux/po/remove-potcdate.sin: Likewise.
18195         * config/srclist.txt: Temporarily disable sync for these files.
18197 2018-06-17  Bruno Haible  <bruno@clisp.org>
18199         getloadavg: Return 0 on Windows without Cygwin.
18200         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
18202 2018-06-17  Paul Smith  <psmith@gnu.org>
18204         getloadavg: Allow building on Windows without Cygwin
18205         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
18206         * m4/getloadavg.m4: Check for unistd.h.
18208 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
18210         Port crypto/af_alg to GCC 4.8.4
18211         Problem reported by Peter Simons in:
18212         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
18213         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
18215 2018-05-27  Colin Watson  <cjwatson@debian.org>
18217         bootstrap: document source fetching in --help
18218         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
18220 2018-04-09  Colin Watson  <cjwatson@debian.org>
18222         bootstrap: allow non-submodule control of gnulib
18223         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
18224         bootstrap.conf when fetching gnulib using "git clone" or via
18225         GNULIB_SRCDIR.
18227 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18229         crypto: omit stream ops Emacs doesn’t need
18230         * lib/md5.c (md5_stream):
18231         * lib/sha1.c (sha1_stream):
18232         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
18233         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
18234         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
18235         defined.  Emacs needs this, as it does not use the stream
18236         operations and doesn’t need all the af_alg stuff we’ve recently
18237         added.  Perhaps a similar change is needed to the other crypto
18238         modules, but this patch changes only those needed for Emacs.
18239         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
18240         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
18241         New modules, used by Emacs.
18242         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
18243         * modules/crypto/sha512: Rewrite to depend on the new modules.
18245 2018-05-20  Pádraig Brady  <P@draigBrady.com>
18247         fts: avoid a memory leak edge case
18248         * lib/fts.c (fts_open): Set an appropriate fts_level
18249         so that an immediate fts_close() will free the allocation.
18250         * tests/test-fts.c (fts_dealloc): Add a test case which
18251         will trigger under valgrind or address sanitizer.
18252         Fixes https://bugs.gnu.org/31439
18254 2018-05-20  Bruno Haible  <bruno@clisp.org>
18256         wcwidth tests: Fix link error.
18257         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
18258         $(LIBUNISTRING).
18260 2018-05-20  Bruno Haible  <bruno@clisp.org>
18262         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
18263         * modules/regex (Files): Add m4/glibc21.m4.
18265 2018-05-20  Bruno Haible  <bruno@clisp.org>
18267         localcharset: Optimize.
18268         * lib/localcharset.c (alias_table): Comment out no-op mappings for
18269         platforms where these don't matter. This reduces the table size,
18270         which in turn reduces the lookup time.
18272 2018-05-19  Bruno Haible  <bruno@clisp.org>
18274         localcharset: Map the locale encodings found in newer OSes.
18275         * lib/localcharset.c (alias_table): Add mapping for locale encodings
18276         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
18277         IRIX 6.5, Minix 3.3.
18278         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
18280 2018-05-19  Bruno Haible  <bruno@clisp.org>
18282         localcharset: Move mapping tables into the code. Use a binary search.
18283         * lib/localcharset.h: Document the GNU canonical names for character
18284         encodings here.
18285         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
18286         relocatable.h, configmake.h.
18287         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
18288         macros.
18289         (charset_aliases): Remove variable.
18290         (get_charset_aliases): Remove function.
18291         (struct table_entry): New type.
18292         (alias_table, locale_table): New constants.
18293         (locale_charset): Use the alias_table or locale_table to get the
18294         canonicalized encoding name.
18295         * lib/config.charset: Remove file.
18296         * lib/ref-add.sin: Remove file.
18297         * lib/ref-del.sin: Remove file.
18298         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
18299         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
18300         * modules/localcharset (Notice): Remove.
18301         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
18302         glibc21.m4.
18303         (Depends-on): Remove configmake.
18304         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
18305         (Makefile.am): Simplify.
18306         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
18308 2018-05-19  Bruno Haible  <bruno@clisp.org>
18310         localcharset: Add a manual test.
18311         * tests/test-localcharset.c: New file.
18312         * modules/localcharset-tests: New file.
18314 2018-05-19  Bruno Haible  <bruno@clisp.org>
18316         localcharset: Remove support for obsolete platforms.
18317         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
18318         Mac OS X 10.2. Comment out dubious entry for Solaris.
18320 2018-05-19  Jim Meyering  <meyering@fb.com>
18322         gnupload: adjust comment
18323         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
18324         more likely we'll remove the just-added code in a year or two.
18326 2018-05-19  Bruno Haible  <bruno@clisp.org>
18328         gnupload: Fix "gpg-agent is not available in this session" error.
18329         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
18331 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18333         crypto/af_alg: fix --help
18334         * m4/af_alg.m4: Avoid spurious newline in --help output.
18336 2018-05-13  Bruno Haible  <bruno@clisp.org>
18338         nl_langinfo: Fix compilation error on Android.
18339         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
18340         INT_CURR_SYMBOL, etc. only if these items are defined.
18342 2018-05-13  Bruno Haible  <bruno@clisp.org>
18344         truncate: Fix compilation error on Android.
18345         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
18346         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
18347         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
18348         HAVE_TRUNCATE.
18349         * modules/truncate: Likewise.
18350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
18351         not HAVE_TRUNCATE.
18352         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
18353         HAVE_TRUNCATE.
18354         * doc/posix-functions/truncate.texi: Mention the issue.
18356 2018-05-13  Bruno Haible  <bruno@clisp.org>
18358         pthread: Fix compilation error on Android.
18359         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
18360         recursive inclusion of this file.
18362 2018-05-13  Bruno Haible  <bruno@clisp.org>
18364         posix_spawn: Fix compilation error on Android.
18365         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
18366         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
18367         (posix_spawn_file_actions_t): Consider also the case
18368         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
18370 2018-05-13  Bruno Haible  <bruno@clisp.org>
18372         tsearch: Move from K&R C to ANSI C.
18373         * lib/tsearch.c (tfind): Convert definition to ANSI C.
18375 2018-05-13  Bruno Haible  <bruno@clisp.org>
18377         tsearch: Fix compilation error on Android.
18378         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
18379         is 0.
18380         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
18381         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
18382         GNULIB_defined_tsearch is true.
18383         (twalk): Define only if GNULIB_defined_twalk is true.
18384         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
18385         is 0.
18386         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
18387         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
18388         * modules/search (Makefile.am): Substitute HAVE_TWALK.
18390 2018-05-13  Bruno Haible  <bruno@clisp.org>
18392         imaxdiv: Fix compilation error on Android.
18393         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
18394         is not defined.
18395         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
18396         HAVE_DECL_IMAXDIV, is 0.
18397         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
18398         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
18400 2018-05-13  Bruno Haible  <bruno@clisp.org>
18402         Support selective inclusion mechanism of recent mingw.org header files.
18403         Reported by Eli Zaretskii <eliz@gnu.org>.
18404         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
18405         __need_ssize_t, or __need_time_t is defined, just include the system's
18406         <sys/types.h>.
18407         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
18408         include the system's <locale.h>.
18410 2018-05-13  Bruno Haible  <bruno@clisp.org>
18412         Avoid compilation error due to 'mmap' on Android.
18413         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
18414         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
18415         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
18416         Undefine on Android.
18418 2018-05-13  Bruno Haible  <bruno@clisp.org>
18420         Add cross-compilation guesses for Linux systems without glibc.
18421         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
18422         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18423         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18424         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18425         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18426         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18427         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18428         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18429         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18430         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
18431         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18432         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18433         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18434         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18435         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18436         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18437         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18438         * m4/utimens.m4 (gl_UTIMENS): Likewise.
18440 2018-05-13  Bruno Haible  <bruno@clisp.org>
18442         getpagesize: Fix compilation error on Android.
18443         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
18444         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
18445         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
18446         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
18447         HAVE_GETPAGESIZE accordingly.
18448         * modules/getcwd (Files): Add m4/getpagesize.m4.
18450 2018-05-13  Bruno Haible  <bruno@clisp.org>
18452         tcgetsid: Fix compilation error on Android.
18453         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
18454         AC_CHECK_FUNC.
18456 2018-05-13  Bruno Haible  <bruno@clisp.org>
18458         getpass: Fix configure test for Android.
18459         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
18460         AC_CHECK_FUNC.
18462 2018-05-13  Bruno Haible  <bruno@clisp.org>
18464         ffs: Fix compilation error on Android.
18465         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
18467 2018-05-13  Bruno Haible  <bruno@clisp.org>
18469         mkfifo: Fix compilation error on Android.
18470         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
18471         AC_CHECK_FUNC.
18473 2018-05-13  Bruno Haible  <bruno@clisp.org>
18475         c-strtod: Fix configure test for Android.
18476         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
18477         AC_CHECK_FUNC.
18479 2018-05-13  Bruno Haible  <bruno@clisp.org>
18481         random: Fix compilation error on Android.
18482         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
18483         AC_CHECK_FUNC.
18485 2018-05-13  Bruno Haible  <bruno@clisp.org>
18487         grantpt: Fix compilation error on Android.
18488         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
18489         AC_CHECK_FUNC.
18491 2018-05-13  Bruno Haible  <bruno@clisp.org>
18493         stdioext: Fix compilation errors with newer Android headers.
18494         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
18495         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
18496         fallbacks for Android.
18497         * lib/fpending.c: Update comments.
18498         * lib/fpurge.c: Likewise.
18499         * lib/freadable.h: Likewise.
18500         * lib/freadable.c: Likewise.
18501         * lib/freadahead.c: Likewise.
18502         * lib/freading.h: Likewise.
18503         * lib/freadptr.c: Likewise.
18504         * lib/fseterr.c: Likewise.
18505         * lib/fwritable.h: Likewise.
18506         * lib/fwritable.c: Likewise.
18507         * lib/fwriting.h: Likewise.
18508         * lib/fwriting.c: Likewise.
18510 2018-05-13  Bruno Haible  <bruno@clisp.org>
18512         doc: Add info about Android versions 2.0 to 8.1.
18513         * doc/**/*.texi: Add info about functions in all released versions of
18514         Bionic.
18516 2018-05-12  Bruno Haible  <bruno@clisp.org>
18518         fseeko: On mingw, don't use the hidden function _fseeki64.
18519         Reported by Eli Zaretskii <eliz@gnu.org>.
18520         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
18521         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
18523 2018-05-12  Bruno Haible  <bruno@clisp.org>
18525         glob: Choose 'dirent_type' in a way that works better on mingw.
18526         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
18527         * lib/glob.c (dirent_type): Define as uint_fast32_t.
18529 2018-05-12  Bruno Haible  <bruno@clisp.org>
18531         execute, spawn-pipe: Avoid warning about redefining 'close'.
18532         Reported by Eli Zaretskii <eliz@gnu.org>.
18533         * lib/execute.c: Undefine 'close' before redefining it.
18534         * lib/spawn-pipe.c: Likewise.
18536 2018-05-12  Bruno Haible  <bruno@clisp.org>
18538         nanosleep: Avoid test failure on mingw when it has nanosleep.
18539         Reported by Eli Zaretskii <eliz@gnu.org>.
18540         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
18541         If it does not exist, use a simpler test program that does not call
18542         alarm().
18544 2018-05-10  Bruno Haible  <bruno@clisp.org>
18546         lock, cond, thread, tls: Use a different symbol as libpthread witness.
18547         Reported by Devin Hussey <husseydevin@gmail.com>.
18548         Based on a patch by Paul Eggert.
18549         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
18550         as witness of libpthread.
18551         * lib/glthread/cond.h (pthread_in_use): Likewise.
18552         * lib/glthread/thread.h (pthread_in_use): Likewise.
18553         * lib/glthread/tls.h (pthread_in_use): Likewise.
18555 2018-05-10  Bruno Haible  <bruno@clisp.org>
18557         cond tests: Fix compilation error on Solaris.
18558         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
18559         macro.
18561 2018-05-10  Bruno Haible  <bruno@clisp.org>
18563         doc: Add partial info about Android 4.3.
18564         * doc/*-functions/*.texi: Add info about functions that were added
18565         to Bionic between Android 4.3 and Android 9.0.
18567 2018-05-10  Bruno Haible  <bruno@clisp.org>
18569         doc: Add info about Android 9.0.
18570         * doc/**/*.texi: Add info about functions and headers in Bionic from
18571         Android 9.0.
18573 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
18575         af_alg: fix my typo in afalg_buffer
18576         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
18577         (afalg_stream): Simplify and avoid the need for a runtime test
18578         at the end.
18580         af_alg: recover better from crypto failures
18581         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
18582         input stream is seekable, by repositioning the stream back to
18583         where it was, possibly by just calling sendfile with an offset
18584         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
18585         cases, which lets our callers try again with user-mode code.
18586         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
18587         instead of on fflush and lseek.
18589         af_alg: distiguish I/O errors better
18590         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
18591         not -EIO, if it’s OK for the caller to try again with user-mode code.
18592         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
18593         some other error number) if fflush fails, as the caller should not
18594         try again that case.
18596         af_alg: avoid gotos
18597         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
18598         gotos, as they were a source of unreliability and made the code a
18599         bit harder to follow.
18601         af_alg: don’t leak file descriptors into children
18602         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
18603         This code should be compiled only on recent GNU/Linux platforms
18604         so we shouldn’t have to also depend on the accept4 module.
18606         af_alg: coalesce socket creation
18607         * lib/af_alg.c (alg_socket): New function.
18608         (afalg_buffer, afalg_stream): Use it.  This avoids some
18609         code duplication and gotos.
18611         af_alg: fix file descriptor leak
18612         * lib/af_alg.c (afalg_stream): Close leak.
18614         af_alg: Pacify --enable-gcc-warnings on GCC 8
18615         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
18616         and checking to pacify gcc -Wjump-misses-init on GCC 8.
18618 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18620         af_alg: Pacify --enable-gcc-warnings
18621         Problem reported by Assaf Gordon in:
18622         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
18623         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
18624         gcc -Wjump-misses-init.
18625         * lib/sha512.c (shaxxx_stream): Now static.
18627 2018-05-06  Bruno Haible  <bruno@clisp.org>
18629         af_alg: Add ability to use Linux kernel crypto API on data in memory.
18630         * lib/af_alg.h (afalg_buffer): New declaration.
18631         * lib/af_alg.c (afalg_buffer): New function.
18633 2018-05-06  Bruno Haible  <bruno@clisp.org>
18635         af_alg: Avoid warnings.
18636         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
18637         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
18639 2018-05-06  Bruno Haible  <bruno@clisp.org>
18641         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
18642         * tests/bench-digest.h: New file.
18643         * tests/bench-md5.c: New file.
18644         * tests/bench-sha1.c: New file.
18645         * tests/bench-sha224.c: New file.
18646         * tests/bench-sha256.c: New file.
18647         * tests/bench-sha384.c: New file.
18648         * tests/bench-sha512.c: New file.
18649         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
18650         tests/bench-digest.h.
18651         (Depends-on): Add getrusage, gettimeofday.
18652         (Makefile.am): Add variables to build bench-md5.
18653         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
18654         tests/bench-digest.h.
18655         (Depends-on): Add getrusage, gettimeofday.
18656         (Makefile.am): Add variables to build bench-sha1.
18657         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
18658         tests/bench-sha256.c, tests/bench-digest.h.
18659         (Depends-on): Add getrusage, gettimeofday.
18660         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
18661         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
18662         tests/bench-sha512.c, tests/bench-digest.h.
18663         (Depends-on): Add getrusage, gettimeofday.
18664         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
18666 2018-05-06  Bruno Haible  <bruno@clisp.org>
18668         af_alg: Fix a resource leak.
18669         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
18670         New local variable 'result'.
18672 2018-05-06  Bruno Haible  <bruno@clisp.org>
18674         af_alg: Fix bug with streams that are not at position 0.
18675         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
18676         assume that the stream is positioned at position 0.
18677         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
18678         of the stream.
18679         * lib/md5.h (md5_stream): Likewise.
18680         * lib/sha1.h (sha1_stream): Likewise.
18681         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
18682         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
18683         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
18685         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
18686         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
18687         stream that is not positioned at the beginning.
18689 2018-05-06  Bruno Haible  <bruno@clisp.org>
18691         af_alg: Add configure option to enable/disable use of Linux crypto API.
18692         Suggested by Assaf Gordon <assafgordon@gmail.com>.
18693         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
18694         USE_LINUX_CRYPTO_API.
18695         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
18696         * lib/af_alg.c: Likewise.
18698 2018-05-06  Bruno Haible  <bruno@clisp.org>
18700         Followup to 'af_alg: New module.'.
18701         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
18702         * modules/crypto/sha1 (Depends-on): Likewise.
18703         * modules/crypto/sha256 (Depends-on): Likewise.
18704         * modules/crypto/sha512 (Depends-on): Likewise.
18706 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18708         crypto/{md5,sha1,sha256,sha512}: simplify
18709         * lib/md5.c (md5_stream):
18710         * lib/sha1.c (sha1_stream):
18711         * lib/sha256.c (shaxxx_stream):
18712         Simplify, partly by assuming C99.
18713         * lib/sha256.c (shaxxx_stream):
18714         New function, which implements both sha256 and sha224.
18715         Simplify, partly by assuming C99.
18716         (sha256_stream, sha224_stream):
18717         Use it to avoid code duplication, removing a FIXME.
18718         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
18719         Likewise.
18721         af_alg: Improve comments.
18722         * lib/af_alg.h: Use imperatives and tighten up wording.
18724 2018-05-05  Bruno Haible  <bruno@clisp.org>
18726         af_alg: Improve comments.
18727         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
18729 2018-05-05  Bruno Haible  <bruno@clisp.org>
18731         af_alg: New module.
18732         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
18733         * lib/af_alg.c: Include "af_alg.h" before the other header files.
18734         * lib/md5.c: Include "af_alg.h" unconditionally.
18735         (md5_stream): Invoke afalg_stream unconditionally.
18736         * lib/sha1.c: Include "af_alg.h" unconditionally.
18737         (sha1_stream): Invoke afalg_stream unconditionally.
18738         * lib/sha256.c: Include "af_alg.h" unconditionally.
18739         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
18740         * lib/sha512.c: Include "af_alg.h" unconditionally.
18741         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
18742         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
18743         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
18744         * modules/crypto/af_alg: New file.
18745         * modules/crypto/md5 (Files): Remove files that are now in the
18746         'crypto/af_alg' module.
18747         (Depends-on): Add crypto/af_alg.
18748         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18749         (Makefile.am): Don't mention af_alg.c here.
18750         * modules/crypto/sha1 (Files): Remove files that are now in the
18751         'crypto/af_alg' module.
18752         (Depends-on): Add crypto/af_alg.
18753         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18754         (Makefile.am): Don't mention af_alg.c here.
18755         * modules/crypto/sha256 (Files): Remove files that are now in the
18756         'crypto/af_alg' module.
18757         (Depends-on): Add crypto/af_alg.
18758         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18759         (Makefile.am): Don't mention af_alg.c here.
18760         * modules/crypto/sha512 (Files): Remove files that are now in the
18761         'crypto/af_alg' module.
18762         (Depends-on): Add crypto/af_alg.
18763         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18764         (Makefile.am): Don't mention af_alg.c here.
18766 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18768         crypto tests: pacify GCC
18769         * tests/test-digest.h (test_digest_on_files):
18770         Don’t assume digest size fits in int (!).
18772         af_alg: minor style improvements
18773         * lib/af_alg.c (afalg_stream): Prefer C99 style
18774         decl-after-statement, since we’re already assuming C99.  Clarify
18775         by strengthening the bind test and omit unnecessary assignment.
18777 2018-05-05  Bruno Haible  <bruno@clisp.org>
18779         af_alg: Fix bug on empty files.
18780         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
18781         stream is empty.
18783 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18785         sys-limits.h: new file for crypto and safe I/O
18786         * lib/af_alg.c: Include sys-limits.h.
18787         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
18788         (afalg_stream): Also reject negative sizes for sendfile; they
18789         should not happen and the code is a bit cleaner and faster this way.
18790         * lib/safe-read.c: Include sys-limits.h.
18791         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
18792         * lib/sys-limits.h: New file, with values and commentary derived
18793         from the old safe-read.c and from GNU Emacs sysdep.c.
18794         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
18795         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
18796         Add lib/sys-limits.h to Files section.
18798 2018-05-05  Bruno Haible  <bruno@clisp.org>
18800         af_alg: Improve function signature.
18801         * lib/af_alg.h (afalg_stream): Swap second and third argument.
18802         * lib/af_alg.c (afalg_stream): Likewise.
18803         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
18805 2018-05-05  Bruno Haible  <bruno@clisp.org>
18807         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
18808         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
18809         * modules/crypto/sha1 (Depends-on): Likewise.
18810         * modules/crypto/sha256 (Depends-on): Likewise.
18811         * modules/crypto/sha512 (Depends-on): Likewise.
18813 2018-05-05  Bruno Haible  <bruno@clisp.org>
18815         crypto/{md5,sha1,sha256,sha512}: Fix module description.
18816         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
18817         * modules/crypto/sha1 (Depends-on): Likewise.
18818         * modules/crypto/sha256 (Depends-on): Likewise.
18819         * modules/crypto/sha512 (Depends-on): Likewise.
18821 2018-05-05  Bruno Haible  <bruno@clisp.org>
18823         af_alg: Add documentation.
18824         * lib/af_alg.h: Add comments.
18826 2018-05-05  Bruno Haible  <bruno@clisp.org>
18828         sha512: Add tests.
18829         * tests/test-sha512.c: New file.
18830         * modules/crypto/sha512-tests: New file.
18832 2018-05-05  Bruno Haible  <bruno@clisp.org>
18834         sha256: Add tests.
18835         * tests/test-sha256.c: New file.
18836         * modules/crypto/sha256-tests: New file.
18838 2018-05-05  Bruno Haible  <bruno@clisp.org>
18840         sha1 tests: Add test for sha1_stream.
18841         * tests/test-sha1.c: Include test-digest.h.
18842         (main): Invoke test_digest_on_files on 'sha1_stream'.
18843         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
18845 2018-05-05  Bruno Haible  <bruno@clisp.org>
18847         md5 tests: Add test for md5_stream.
18848         * tests/test-digest.h: New file.
18849         * tests/test-md5.c: Include test-digest.h.
18850         (main): Invoke test_digest_on_files on 'md5_stream'.
18851         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
18853 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18855         md5sum: Use AF_ALG when available.
18856         * lib/md5.c: Include af_alg.h.
18857         (md5_stream): Use afalg_stream when available.
18858         * modules/crypto/md5 (Files): Add the af_alg files.
18859         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18860         (Makefile.am): Add af_alg.c.
18862 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18864         sha512sum: Use AF_ALG when available.
18865         * lib/sha512.c: Include af_alg.h.
18866         (sha512_stream, sha384_stream): Use afalg_stream when available.
18867         * modules/crypto/sha512 (Files): Add the af_alg files.
18868         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18869         (Makefile.am): Add af_alg.c.
18871 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18873         sha256sum: Use AF_ALG when available.
18874         * lib/sha256.c: Include af_alg.h.
18875         (sha256_stream, sha224_stream): Use afalg_stream when available.
18876         * modules/crypto/sha256 (Files): Add the af_alg files.
18877         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18878         (Makefile.am): Add af_alg.c.
18880 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18882         sha1sum: Use AF_ALG when available.
18883         * lib/af_alg.h: New file.
18884         * lib/af_alg.c: New file.
18885         * lib/sha1.c: Include af_alg.h.
18886         (sha1_stream): Use afalg_stream when available.
18887         * m4/linux-if-alg.m4: New file.
18888         * modules/crypto/sha1 (Files): Add the new files.
18889         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18890         (Makefile.am): Add af_alg.c.
18892 2018-05-05  Bruno Haible  <bruno@clisp.org>
18894         all: Replace more http URLs by https URLs.
18895         * lib/localename.c: Use https: URL.
18896         * lib/timespec.h: Likewise.
18898 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
18900         maint: port more modules to GCC 8
18901         * lib/dirname.h (base_name):
18902         * lib/exclude.h (new_exclude):
18903         * lib/xstrndup.h (xstrndup):
18904         Add malloc attribute.
18905         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
18906         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
18907         This pacifies GCC 8.
18908         * m4/gnulib-common.m4 (gl_COMMON_BODY):
18909         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
18911 2018-05-03  Bruno Haible  <bruno@clisp.org>
18913         Simplify code. Drop support for Borland C++ on Windows.
18914         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
18915         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
18916         'defined _WIN32'.
18917         * lib/canonicalize-lgpl.c: Likewise.
18918         * lib/classpath.c: Likewise.
18919         * lib/clean-temp.c: Likewise.
18920         * lib/csharpexec.c: Likewise.
18921         * lib/ctime.c: Likewise.
18922         * lib/dosname.h: Likewise.
18923         * lib/dup2.c: Likewise.
18924         * lib/errno.in.h: Likewise.
18925         * lib/error.c: Likewise.
18926         * lib/euidaccess.c: Likewise.
18927         * lib/execute.c: Likewise.
18928         * lib/fcntl.in.h: Likewise.
18929         * lib/fcntl.c: Likewise.
18930         * lib/filename.h: Likewise.
18931         * lib/findprog.c: Likewise.
18932         * lib/flock.c: Likewise.
18933         * lib/fopen.c: Likewise.
18934         * lib/freopen.c: Likewise.
18935         * lib/fstat.c: Likewise.
18936         * lib/fsync.c: Likewise.
18937         * lib/gc-gnulib.c: Likewise.
18938         * lib/get-rusage-data.c: Likewise.
18939         * lib/getaddrinfo.c: Likewise.
18940         * lib/getdelim.c: Likewise.
18941         * lib/getdtablesize.c: Likewise.
18942         * lib/gethostname.c: Likewise.
18943         * lib/getlogin.c: Likewise.
18944         * lib/getlogin_r.c: Likewise.
18945         * lib/getopt.c: Likewise.
18946         * lib/getpagesize.c: Likewise.
18947         * lib/getpass.c: Likewise.
18948         * lib/getrusage.c: Likewise.
18949         * lib/gettimeofday.c: Likewise.
18950         * lib/glob.c: Likewise.
18951         * lib/inttypes.in.h: Likewise.
18952         * lib/isapipe.c: Likewise.
18953         * lib/javaexec.c: Likewise.
18954         * lib/link.c: Likewise.
18955         * lib/localcharset.c: Likewise.
18956         * lib/localename.h: Likewise.
18957         * lib/localename.c: Likewise.
18958         * lib/localtime.c: Likewise.
18959         * lib/lseek.c: Likewise.
18960         * lib/mbsinit.c: Likewise.
18961         * lib/mkdir.c: Likewise.
18962         * lib/msvc-nothrow.h: Likewise.
18963         * lib/nanosleep.c: Likewise.
18964         * lib/nl_langinfo.c: Likewise.
18965         * lib/nonblocking.c: Likewise.
18966         * lib/nproc.c: Likewise.
18967         * lib/open.c: Likewise.
18968         * lib/openpty.c: Likewise.
18969         * lib/pathmax.h: Likewise.
18970         * lib/pipe-filter-aux.c: Likewise.
18971         * lib/pipe-filter-gi.c: Likewise.
18972         * lib/pipe-filter-ii.c: Likewise.
18973         * lib/pipe.c: Likewise.
18974         * lib/pipe2.c: Likewise.
18975         * lib/poll.c: Likewise.
18976         * lib/popen.c: Likewise.
18977         * lib/posix_openpt.c: Likewise.
18978         * lib/printf-parse.c: Likewise.
18979         * lib/progreloc.c: Likewise.
18980         * lib/putenv.c: Likewise.
18981         * lib/read.c: Likewise.
18982         * lib/relocatable.c: Likewise.
18983         * lib/rename.c: Likewise.
18984         * lib/same-inode.h: Likewise.
18985         * lib/secure_getenv.c: Likewise.
18986         * lib/select.c: Likewise.
18987         * lib/sethostname.c: Likewise.
18988         * lib/setlocale.c: Likewise.
18989         * lib/sigaction.c: Likewise.
18990         * lib/sigprocmask.c: Likewise.
18991         * lib/sleep.c: Likewise.
18992         * lib/spawn-pipe.h: Likewise.
18993         * lib/spawn-pipe.c: Likewise.
18994         * lib/spawni.c: Likewise.
18995         * lib/stat-time.h: Likewise.
18996         * lib/stat-w32.c: Likewise.
18997         * lib/stat.c: Likewise.
18998         * lib/stdio.in.h: Likewise.
18999         * lib/stdio-impl.h: Likewise.
19000         * lib/stdio-read.c: Likewise.
19001         * lib/stdio-write.c: Likewise.
19002         * lib/stdlib.in.h: Likewise.
19003         * lib/strerror_r.c: Likewise.
19004         * lib/strftime-fixes.c: Likewise.
19005         * lib/sys_stat.in.h: Likewise.
19006         * lib/sys_types.in.h: Likewise.
19007         * lib/sys_wait.in.h : Likewise.
19008         * lib/system-quote.h: Likewise.
19009         * lib/system-quote.c: Likewise.
19010         * lib/tmpdir.c: Likewise.
19011         * lib/tzset.c: Likewise.
19012         * lib/uname.c: Likewise.
19013         * lib/unistd.in.h: Likewise.
19014         * lib/utime.in.h: Likewise.
19015         * lib/utime.c: Likewise.
19016         * lib/utimecmp.c: Likewise.
19017         * lib/utimens.c: Likewise.
19018         * lib/vasnprintf.c: Likewise.
19019         * lib/vma-iter.h: Likewise.
19020         * lib/vma-iter.c: Likewise.
19021         * lib/wait-process.c: Likewise.
19022         * lib/wcsftime.c: Likewise.
19023         * lib/wctype.in.h: Likewise.
19024         * lib/write.c: Likewise.
19025         * tests/nap.h: Likewise.
19026         * tests/test-cloexec.c: Likewise.
19027         * tests/test-dup-safer.c: Likewise.
19028         * tests/test-dup2.c: Likewise.
19029         * tests/test-dup3.c: Likewise.
19030         * tests/test-fcntl.c: Likewise.
19031         * tests/test-get-rusage-data.c: Likewise.
19032         * tests/test-getaddrinfo.c: Likewise.
19033         * tests/test-getlogin.h: Likewise.
19034         * tests/test-isatty.c: Likewise.
19035         * tests/test-localename.c: Likewise.
19036         * tests/test-mbrtowc-w32.c: Likewise.
19037         * tests/test-nonblocking.c: Likewise.
19038         * tests/test-nonblocking-pipe-main.c: Likewise.
19039         * tests/test-nonblocking-socket-main.c: Likewise.
19040         * tests/test-nonblocking-socket.h: Likewise.
19041         * tests/test-pipe.c: Likewise.
19042         * tests/test-pipe2.c: Likewise.
19043         * tests/test-poll.c: Likewise.
19044         * tests/test-pthread_sigmask1.c: Likewise.
19045         * tests/test-select.h: Likewise.
19046         * tests/test-sethostname2.c: Likewise.
19047         * tests/test-sigprocmask.c: Likewise.
19048         * tests/test-spawn-pipe-child.c: Likewise.
19049         * tests/test-stat-time.c: Likewise.
19050         * tests/test-system-quote-main.c: Likewise.
19051         * tests/test-utimens-common.h: Likewise.
19052         * tests/test-wcrtomb-w32.c: Likewise.
19053         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
19054         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19055         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
19056         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
19057         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
19058         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19059         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19060         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19061         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19062         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19063         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
19064         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
19065         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
19066         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19067         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
19068         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19070 2018-05-02  Bruno Haible  <bruno@clisp.org>
19072         localename: Fix test failures on mingw.
19073         * lib/localename.c (gl_locale_name_thread): Remove code specific to
19074         native Windows.
19075         (gl_locale_name_posix): Move code specific to native Windows here.
19076         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
19077         Accept result without charset suffix, as it appears on mingw.
19079 2018-04-28  Paul Smith  <psmith@gnu.org>
19081         bootstrap: Avoid gnulib operations if not needed
19082         * build-aux/bootstrap: Remove unused variable gnulib_mk.
19083         Set $gnulib_extra_files early so it can be overridden in .conf.
19084         Remove redundant --import flag from $gnulib_tool_options.
19085         Set $use_gnulib to false if no gnulib modules or files are needed.
19086         If $use_gnulib is false, don't do anything related to gnulib.
19087         A lot of this is just whitespace (indentation) changes.
19089 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19091         manywarnings: port to GCC 8.0
19092         * build-aux/gcc-warning.spec: Add -Wcatch-value,
19093         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
19094         fact that the GCC help message now mentions operands for
19095         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
19096         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
19097         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
19098         and -Wunused-const-variable.
19099         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
19100         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
19101         -Wmissing-attributes, -Wmultistatement-macros,
19102         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
19103         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
19105 2018-04-24  Bruno Haible  <bruno@clisp.org>
19107         sys_socket: Make SO_REUSEPORT available across platforms.
19108         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19109         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
19110         * doc/posix-headers/sys_socket.texi: Mention the issue.
19111         * tests/test-poll.c (SO_REUSEPORT): Remove.
19112         * tests/test-select.h: Include <sys/socket.h>.
19113         (SO_REUSEPORT): Remove.
19114         * modules/select-tests (Depends-on): Add 'sys_socket'.
19116 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
19118         localcharset: short-circuit the search for an alias on a Mac
19119         * lib/localcharset.c (get_charset_aliases): Add a tautological
19120         UTF-8 entry to speed up the search for this case.
19121         Most machines default to a UTF-8 locale nowadays, so begin the
19122         list of aliases with a dummy UTF-8 entry so it will be found
19123         immediately and a time-consuming search through the rest of
19124         the list is avoided.
19126 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
19128         fts: add comment
19129         * lib/fts.c (fts_build): Explain why ==, not >.
19130         See remark by Bernhard Voelker in:
19131         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
19133         fts: fix bug in find across filesystems
19134         This fixes a bug I introduced last summer.
19135         Problem reported by Kamil Dudka in:
19136         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
19137         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
19138         (leaf_optimization):
19139         New arg for file descriptor.  All callers changed.
19140         (fts_build): Check for whether inodes should be sorted
19141         before closing the directory.
19143 2018-04-07  Bruno Haible  <bruno@clisp.org>
19145         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
19146         Reported by Genki Sky <sky@genki.is>.
19147         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
19148         version 0.9.10 or newer.
19149         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
19150         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
19151         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
19152         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
19153         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
19155 2018-04-07  Bruno Haible  <bruno@clisp.org>
19157         execute: Update comment.
19158         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
19160 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19162         fts: treat CIFS like NFS
19163         Problem reported by Kamil Dudka in:
19164         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
19165         * lib/fts.c (S_MAGIC_CIFS): New macro.
19166         (dirent_inode_sort_may_be_useful, leaf_optimization):
19167         Treat CIFS like NFS.
19169 2018-03-28  Bruno Haible  <bruno@clisp.org>
19171         c-stack: Fix possible build failure on some platforms.
19172         * lib/c-stack.c (die): Define whenever this function is referenced.
19174 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
19176         time_rz: fix workaround for Mac OS X 10.6 infloop
19177         Problems reported by Charles A. Roelli (Bug#27736#117).
19178         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
19179         Also, discard output, which clutters the 'configure' log.
19181 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
19183         havelib: port to Solaris 10 /bin/sh
19184         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
19185         instead of '! test EXPR'.
19187 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
19189         time_rz: work around Mac OS X 10.6 infloop
19190         * doc/posix-functions/localtime.texi:
19191         * doc/posix-functions/localtime_r.texi: Mention the bug.
19192         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
19193         better to fix localtime and localtime_r instead, but that would be
19194         more work and is not needed to fix the Emacs problem.
19195         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
19197 2018-03-24  Jim Meyering  <meyering@fb.com>
19199         test-version-etc.sh: don't use diff directly: use init.sh's compare
19200         We'd rather not sacrifice readable "diff -u" output even for
19201         "diff -c" output (not supported by busybox) or for even less
19202         readable ed-style "diff" output.  So use init.sh's compare function
19203         * tests/test-version-etc.sh: Source init.sh and add "." to path.
19204         Remove "./" from invocation of test-version-etc, so we use path.
19205         And s/diff/compare/.
19206         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
19207         to get init.sh.
19208         Prompted by Eric Blake's comments in
19209         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
19211 2018-03-24  Bruno Haible  <bruno@clisp.org>
19213         javacomp-script, javacomp: Add support for Java 10.
19214         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
19215         target-version 10.
19216         * lib/javaversion.h: Update comments.
19217         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
19218         source_version_index, get_goodcode_snippet, get_failcode_snippet,
19219         TARGET_VERSION_BOUND, target_version_index,
19220         corresponding_classfile_version): Accept source_version 10 and
19221         target_version 10.
19222         * lib/javacomp.h: Update comments accordingly.
19224 2018-03-24  Bruno Haible  <bruno@clisp.org>
19226         javacomp-script, javacomp: Update comments.
19227         * m4/javacomp.m4: Update comments regarding gcj.
19228         * lib/javacomp.h: Likewise.
19230 2018-03-24  Bruno Haible  <bruno@clisp.org>
19232         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
19233         * lib/javaversion.h: Update comments.
19234         * lib/javacomp.h: Likewise.
19235         * lib/javacomp.c (default_target_version, source_version_index,
19236         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
19237         "1.9".
19238         (TARGET_VERSION_BOUND): Bump to 9.
19239         (target_version_index, corresponding_classfile_version): Recognize "9"
19240         instead of "1.9".
19241         (get_source_version_for_javac): New function.
19242         (is_envjavac_nongcj_usable, is_javac_usable): Add
19243         source_version_for_javac argument.
19244         (compile_java_class): Determine and pass source_version_for_javac.
19245         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
19246         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
19247         appropriate.
19249 2018-03-23  Jim Meyering  <meyering@fb.com>
19251         test-version-etc.sh: port to diff without -c
19252         * tests/test-version-etc.sh: Don't use diff's -c option.
19253         This caused spurious test failure on Alpine Linux, which
19254         uses busybox's diff. Reported by Assaf Gordon in
19255         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
19257 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
19259         c-stack: port to recent GCC build
19260         Problem reported by The Fireplace (Bug#30913).
19261         * lib/c-stack.c (die): Define only if used.
19263 2018-03-20  Bruno Haible  <bruno@clisp.org>
19265         euidaccess: Port to native Windows.
19266         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
19267         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
19269 2018-03-19  Bruno Haible  <bruno@clisp.org>
19271         javacomp: Add support for Java 7, 8, 9.
19272         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
19273         source_version_index, get_goodcode_snippet, get_failcode_snippet,
19274         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
19275         and target_version 1,7, 1.8, 1.9.
19276         * lib/javacomp.h: Update comments accordingly.
19278 2018-03-19  Bruno Haible  <bruno@clisp.org>
19280         javacomp-script: Add support for Java 9.
19281         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
19282         target-version 1.9.
19284 2018-03-16  Bruno Haible  <bruno@clisp.org>
19286         glob: Don't compile replacements on recent glibc systems.
19287         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
19288         REPLACE_GLOB is 0, include the system's <glob.h> and use
19289         _GL_CXXALIAS_SYS.
19290         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
19291         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
19292         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
19293         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
19294         Remove snippet/warn-on-use.
19295         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
19296         (Makefile.am): Create glob.h always. Update list of substitutions in
19297         glob.h. Don't depend on $(WARN_ON_USE_H).
19299 2018-03-16  Bruno Haible  <bruno@clisp.org>
19301         glob: Fix link error on native Windows.
19302         * modules/glob (Depends-on): Add 'lstat'.
19304 2018-03-15  Bruno Haible  <bruno@clisp.org>
19306         glob: Fix compilation error in C++ mode.
19307         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
19309 2018-03-15  Bruno Haible  <bruno@clisp.org>
19311         host-cpu-c-abi: Support for RISC-V CPU.
19312         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
19313         riscv32 and riscv64 ABIs.
19314         References:
19315         https://github.com/riscv/riscv-toolchain-conventions
19316         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
19317         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
19319 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19321         fflush: be more paranoid about libio.h change
19322         Suggested by Eli Zaretskii in:
19323         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
19324         * lib/fbufmode.c (fbufmode):
19325         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19326         (disable_seek_optimization, rpl_fflush):
19327         * lib/fpending.c (__fpending):
19328         * lib/fpurge.c (fpurge):
19329         * lib/freadable.c (freadable):
19330         * lib/freadahead.c (freadahead):
19331         * lib/freading.c (freading):
19332         * lib/freadptr.c (freadptr):
19333         * lib/freadseek.c (freadptrinc):
19334         * lib/fseeko.c (fseeko):
19335         * lib/fseterr.c (fseterr):
19336         * lib/fwritable.c (fwritable):
19337         * lib/fwriting.c (fwriting):
19338         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
19340 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
19342         maint: write-file-hooks -> before-save-hook
19343         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
19344         it's time to use the recommended replacement.
19345         Problem reported by Glenn Morris in:
19346         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
19347         * build-aux/announce-gen, build-aux/bootstrap:
19348         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
19349         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
19350         * build-aux/gnu-web-doc-update, build-aux/gnupload:
19351         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
19352         * build-aux/update-copyright, build-aux/useless-if-before-free:
19353         * build-aux/vc-list-files:
19354         Update hook usage for files where Gnulib is the canonical source.
19356 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
19358         binary-io: pacify gcc -Wunused-parameter
19359         Problem reported by Reuben Thomas in:
19360         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
19361         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
19362         Use _GL_UNUSED where appropriate.
19364         fflush: adjust to glibc 2.28 libio.h removal
19365         Problem reported by Daniel P. Berrangé in:
19366         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
19367         * lib/fbufmode.c (fbufmode):
19368         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19369         (disable_seek_optimization, rpl_fflush):
19370         * lib/fpending.c (__fpending):
19371         * lib/fpurge.c (fpurge):
19372         * lib/freadable.c (freadable):
19373         * lib/freadahead.c (freadahead):
19374         * lib/freading.c (freading):
19375         * lib/freadptr.c (freadptr):
19376         * lib/freadseek.c (freadptrinc):
19377         * lib/fseeko.c (fseeko):
19378         * lib/fseterr.c (fseterr):
19379         * lib/fwritable.c (fwritable):
19380         * lib/fwriting.c (fwriting):
19381         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
19382         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
19383         Define if not already defined.
19385 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
19387         environ: fix link error on 32-bit Cygwin
19388         Problem reported for GNU Emacs by Ken Brown in:
19389         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
19390         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
19392 2018-02-24  Bruno Haible  <bruno@clisp.org>
19394         mbrtowc tests: Fix regression on glibc.
19395         Reported by Bernhard Voelker.
19396         * tests/test-mbrtowc.c (main): Fix expected value of wc.
19398 2018-02-24  Bruno Haible  <bruno@clisp.org>
19400         striconveha, uniconv/*: Avoid test failures on musl libc.
19401         * tests/iconvsupport.c: New file.
19402         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
19403         does not support the ISO-2022-JP-2 encoding.
19404         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
19405         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19406         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19407         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19408         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19409         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19410         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
19411         (Makefile.am): Link test-striconveha with iconvsupport.o.
19412         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
19413         tests/iconvsupport.c.
19414         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
19415         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
19416         tests/iconvsupport.c.
19417         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
19418         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
19419         tests/iconvsupport.c.
19420         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
19421         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
19422         tests/iconvsupport.c.
19423         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
19424         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
19425         tests/iconvsupport.c.
19426         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
19427         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
19428         tests/iconvsupport.c.
19429         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
19431 2018-02-24  Bruno Haible  <bruno@clisp.org>
19433         localename: Add support for musl libc.
19434         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
19435         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
19436         on Linux platforms which define NL_LOCALE_NAME.
19438 2018-02-24  Bruno Haible  <bruno@clisp.org>
19440         mbrtowc tests: Don't make assumptions about the charset the C locale.
19441         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
19442         particular mapping in the C locale.
19444 2018-02-24  Bruno Haible  <bruno@clisp.org>
19446         ptsname_r: Don't expect that this function sets errno.
19447         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
19448         from ptsname_r().
19449         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
19451 2018-02-23  Bruno Haible  <bruno@clisp.org>
19453         xmalloca: pacify gcc -Wbad-function-cast
19454         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
19456 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
19458         nl_langinfo: pacify gcc -Wunused-function
19459         * lib/nl_langinfo.c (ctype_codeset): Do not define if
19460         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
19461         this case.  Without this change, I got a diagnostic when building
19462         coreutils on Fedora 27 with gcc 7.3.1 20180130.
19464         same: pacify gcc -Wunused-variable
19465         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
19466         Omit unused variable.
19468         malloca: pacify gcc -Wbad-function-cast
19469         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
19470         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
19471         To pacify GCC, I had to cast alloca’s result to some type other
19472         than void * before casting that to uintptr_t.
19474 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19476         utimecmp: new function utimecmpat
19477         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
19478         Do not include utimens.h.
19479         (utimecmpat): New function, generalizing utimecmp.
19480         (utimecmp): Now a thin layer around utimecmpat.
19481         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
19482         utimensat instead of on lstat and utimens.
19484         same: new function same_nameat
19485         * lib/same.c: Include fcntl.h.
19486         * lib/same.c (same_nameat): New function, generalizing same_name.
19487         (same_name): Now a thin layer around same_nameat.
19488         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
19489         * modules/same (Depends-on): Depend on fstatat, openat.
19491 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
19493         warnings: Add support for Objective C.
19494         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
19495         macro.
19497 2018-02-17  Bruno Haible  <bruno@clisp.org>
19499         lock: Fix test-once1 crash on FreeBSD11.
19500         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
19501         'pthread_create', not 'pthread_cancel'.
19503 2018-02-17  Bruno Haible  <bruno@clisp.org>
19505         lock: Add test of gl_once.
19506         * tests/test-once.c: New file.
19507         * modules/lock-tests (Files): Add it.
19508         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
19510 2018-02-17  Bruno Haible  <bruno@clisp.org>
19512         thread: Fix compilation error on IRIX.
19513         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
19514         needed; include it outside the C++ extern "C" {} block.
19515         * doc/posix-headers/pthread.texi: Mention the problem with
19516         pthread_atfork on IRIX.
19518 2018-02-04  Bruno Haible  <bruno@clisp.org>
19520         nl_langinfo: Override the system's nl_langinfo() when needed.
19521         Reported by Jim Meyering.
19522         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
19523         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
19525 2018-02-04  Bruno Haible  <bruno@clisp.org>
19527         signal-h, monetary, strings: Fix build failure in some cases.
19528         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19529         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
19530         as delimiter in sed command, not '|'.
19531         * modules/monetary (Makefile.am): Likewise.
19532         * modules/strings (Makefile.am): Likewise.
19534 2018-02-03  Jim Meyering  <meyering@fb.com>
19536         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
19537         * top/maint.mk (sc_file_system): Don't complain about
19538         "/proc/filesystems".
19540 2018-02-03  Bruno Haible  <bruno@clisp.org>
19542         stdlib: Fix compilation error on OpenIndiana.
19543         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
19544         <sys/time.h>.
19545         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19546         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
19548 2018-02-03  Bruno Haible  <bruno@clisp.org>
19550         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
19551         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
19552         and use $EGREP instead of 'grep -E'.
19553         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
19554         'grep -E'.
19556 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
19558         malloca: Add a compile-time verification.
19559         * lib/malloca.c (small_t): Verify that it is wide enough.
19560         * modules/malloca (Depends-on): Add verify.
19562 2018-02-02  Bruno Haible  <bruno@clisp.org>
19564         malloca: Add an argument check.
19565         Suggested by Paul Eggert.
19566         * lib/malloca.c (freea): Check against an invalid argument.
19568 2018-02-02  Bruno Haible  <bruno@clisp.org>
19570         localename: Add support for OpenIndiana.
19571         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
19572         Solaris 11 variants with uselocale() but without getlocalename_l().
19574 2018-02-02  Bruno Haible  <bruno@clisp.org>
19576         malloca, xmalloca: Make multithread-safe.
19577         Reported by Florian Weimer <fweimer@redhat.com>.
19578         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
19579         * lib/malloca.h (malloca): In the stack allocation case, return a
19580         pointer that is a multiple of 2 * sa_alignment_max.
19581         (sa_increment): Remove enum item.
19582         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
19583         a pointer that is a multiple of 2 * sa_alignment_max.
19584         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
19585         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
19586         HASH_TABLE_SIZE, mmalloca_results): Remove.
19587         (small_t): New type.
19588         (mmalloca, free): Rewritten.
19589         * lib/malloca.valgrind: Remove file.
19590         * modules/malloca (Files): Remove it.
19591         (Depends-on): Remove verify.
19593 2018-01-31  Bruno Haible  <bruno@clisp.org>
19595         environ: Fix link error on 64-bit Cygwin.
19596         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
19597         __declspec(dllimport) attribute.
19598         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
19600 2018-01-30  Bruno Haible  <bruno@clisp.org>
19602         get-rusage-data: Add support for Minix 3.
19603         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
19605 2018-01-30  Bruno Haible  <bruno@clisp.org>
19607         vma-iter: Add support for Minix 3.
19608         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
19609         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
19611 2018-01-27  Bruno Haible  <bruno@clisp.org>
19613         Fix malfunction of socket functions on HP-UX in 64-bit mode.
19614         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
19615         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
19616         _HPUX_ALT_XOPEN_SOCKET_API.
19617         * modules/accept (Depends-on): Add 'extensions'.
19618         * modules/getpeername (Depends-on): Likewise.
19619         * modules/getsockname (Depends-on): Likewise.
19620         * modules/getsockopt (Depends-on): Likewise.
19621         * modules/recvfrom (Depends-on): Likewise.
19622         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
19623         * doc/posix-functions/getpeername.texi: Likewise.
19624         * doc/posix-functions/getsockname.texi: Likewise.
19625         * doc/posix-functions/getsockopt.texi: Likewise.
19626         * doc/posix-functions/recvfrom.texi: Likewise.
19628 2018-01-27  Bruno Haible  <bruno@clisp.org>
19630         getsockname tests: More tests.
19631         * tests/test-getsockname.c (open_server_socket): New function, mostly
19632         copied from test-poll.c.
19633         (main): Check that getsockname fills in addr.
19634         * modules/getsockname-tests (Depends-on): Add the necessary
19635         dependencies.
19636         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
19638 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
19640         manywarnings: fix maintainer comment
19641         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
19642         it does not mistakenly think that ‘-1)’ is an option.
19644 2018-01-26  Bruno Haible  <bruno@clisp.org>
19646         langinfo: Fix last commit.
19647         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19648         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
19650 2018-01-24  Bruno Haible  <bruno@clisp.org>
19652         langinfo, nl_langinfo: Add support for alternative month names.
19653         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
19654         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
19655         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
19656         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
19657         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
19658         * doc/posix-functions/nl_langinfo.texi: Likewise.
19660 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19662         Merge strftime.c changes from glibc
19663         This incorporates:
19664         2017-11-14 [BZ #10871] Implement alternative month names
19665         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
19666         2017-06-20 Use locale_t, not __locale_t, throughout glibc
19667         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
19668         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
19669         Use locale_t, not __locale_t.
19670         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
19671         (__strftime_internal): Add support for alternate months.
19673 2018-01-23  Bruno Haible  <bruno@clisp.org>
19675         doc: Mention another prerequisite for using Gnulib.
19676         Reported at <https://stackoverflow.com/questions/48378214/>.
19677         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
19678         AC_CONFIG_HEADERS.
19680 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
19682         build: GuixSD doesn't have /bin/bash
19683         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
19685 2018-01-21  Bruno Haible  <bruno@clisp.org>
19687         Avoid test failures on Microsoft Windows Subsystem for Linux.
19688         * tests/test-fcntl.c (main): Allow a different errno.
19689         * tests/test-rename.h (test_rename): Likewise.
19690         * tests/test-renameat.c (main): Likewise.
19691         * tests/test-renameat2.c (main): Likewise.
19693 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
19695         filenamecat: make base a suffix of result
19696         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
19697         (mfile_name_concat): Always make BASE a suffix of the result, as
19698         cp expects this.  To implement this, separate with '.' instead of
19699         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
19700         * tests/test-filenamecat.c (main): Adjust tests to match
19701         current behavior.  Check that BASE_IN_RESULT points to
19702         a copy of BASE and is a suffix of the resultk, and that DIR
19703         is a prefix of the result that is no longer than the prefix
19704         indicated by BASE_IN_RESULT.
19706 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
19708         update-copyright: Handle use of ©
19709         * build-aux/update-copyright ($circle_c_re): Update regex to
19710         handle use of © in headers.
19712 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
19714         Fix -Wundef warning in user-included header lib/cdefs.h.
19715         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
19717 2018-01-04  Bruno Haible  <bruno@clisp.org>
19719         pthread_sigmask: Avoid compilation error on mingw.
19720         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19721         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
19722         macro.
19724 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
19726         test-framework-sh: ‘ps -ef’, not ‘ps ef’
19727         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
19728         Suggested by Bob Proulx (Bug#29968).
19729         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
19731 2018-01-02  Eric Blake  <eblake@redhat.com>
19733         stat-time: silence -Wunused-parameter regression
19734         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
19735         Prefer attribute over cast-to-void.
19736         (stat_time_normalize): Mark st as potentially unused.
19738 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
19740         test-framework-sh: avoid netstat
19741         Problem reported by Kristýna Streitová (Bug#29947).
19742         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
19743         deprecated on SuSE and it's not that important anyway.
19745 2018-01-01  Jim Meyering  <meyering@fb.com>
19747         update-copyright: add code to handle more special cases
19748         After running "make update-copyright" this year, five files
19749         required additional manual changes.  Automate those adjustments
19750         for next year.
19751         * Makefile (_year_and_prev): Define.
19752         (update-copyright): Add perl commands to induce this year's post-
19753         update-copyright adjustments.
19755 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
19757         version-etc: new year
19758         * build-aux/gendocs.sh (version):
19759         * doc/gendocs_template:
19760         * doc/gendocs_template_min:
19761         * doc/gnulib.texi:
19762         * lib/version-etc.c (COPYRIGHT_YEAR):
19763         Update copyright dates by hand in templates and the like.
19765         maint: fix 'make update-copyright'
19766         * Makefile (update-copyright): Adjust to 2016-11-23 change
19767         to config/srclist-update, which changed the format of srclist.txt.
19769 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19771         chdir-safer: remove this module
19772         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
19773         * NEWS: Document removal.
19774         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
19775         * modules/chdir-safer: Remove these files.
19777 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
19779         Add cross-compilation results for GNU/Hurd.
19780         * m4/calloc.m4: Add GNU/Hurd guess.
19781         * m4/cbrtl.m4: Likewise.
19782         * m4/ceil.m4: Likewise.
19783         * m4/ceilf.m4: Likewise.
19784         * m4/ceill.m4: Likewise.
19785         * m4/chown.m4: Likewise.
19786         * m4/duplocale.m4: Likewise.
19787         * m4/exp2l.m4: Likewise.
19788         * m4/expm1.m4: Likewise.
19789         * m4/fchdir.m4: Likewise.
19790         * m4/floor.m4: Likewise.
19791         * m4/floorf.m4: Likewise.
19792         * m4/fmod.m4: Likewise.
19793         * m4/fmodf.m4: Likewise.
19794         * m4/fmodl.m4: Likewise.
19795         * m4/getcwd.m4: Likewise.
19796         * m4/getgroups.m4: Likewise.
19797         * m4/gettimeofday.m4: Likewise.
19798         * m4/hypot.m4: Likewise.
19799         * m4/hypotf.m4: Likewise.
19800         * m4/hypotl.m4: Likewise.
19801         * m4/link-follow.m4: Likewise.
19802         * m4/link.m4: Likewise.
19803         * m4/linkat.m4: Likewise.
19804         * m4/log.m4: Likewise.
19805         * m4/log10.m4: Likewise.
19806         * m4/log10f.m4: Likewise.
19807         * m4/log1p.m4: Likewise.
19808         * m4/log1pf.m4: Likewise.
19809         * m4/log1pl.m4: Likewise.
19810         * m4/log2.m4: Likewise.
19811         * m4/log2f.m4: Likewise.
19812         * m4/logf.m4: Likewise.
19813         * m4/lstat.m4: Likewise.
19814         * m4/malloc.m4: Likewise.
19815         * m4/mbrlen.m4: Likewise.
19816         * m4/mbrtowc.m4: Likewise.
19817         * m4/mkdir.m4: Likewise.
19818         * m4/mkfifo.m4: Likewise.
19819         * m4/mknod.m4: Likewise.
19820         * m4/mkstemp.m4: Likewise.
19821         * m4/modf.m4: Likewise.
19822         * m4/modff.m4: Likewise.
19823         * m4/modfl.m4: Likewise.
19824         * m4/printf.m4: Likewise.
19825         * m4/pselect.m4: Likewise.
19826         * m4/ptsname.m4: Likewise.
19827         * m4/putenv.m4: Likewise.
19828         * m4/readlink.m4: Likewise.
19829         * m4/realloc.m4: Likewise.
19830         * m4/remainder.m4: Likewise.
19831         * m4/remainderf.m4: Likewise.
19832         * m4/remainderl.m4: Likewise.
19833         * m4/rmdir.m4: Likewise.
19834         * m4/round.m4: Likewise.
19835         * m4/roundf.m4: Likewise.
19836         * m4/roundl.m4: Likewise.
19837         * m4/select.m4: Likewise.
19838         * m4/setenv.m4: Likewise.
19839         * m4/signbit.m4: Likewise.
19840         * m4/sleep.m4: Likewise.
19841         * m4/stat.m4: Likewise.
19842         * m4/strerror.m4: Likewise.
19843         * m4/strtok_r.m4: Likewise.
19844         * m4/symlink.m4: Likewise.
19845         * m4/symlinkat.m4: Likewise.
19846         * m4/trunc.m4: Likewise.
19847         * m4/truncf.m4: Likewise.
19848         * m4/truncl.m4: Likewise.
19849         * m4/tzset.m4: Likewise.
19850         * m4/ungetc.m4: Likewise.
19851         * m4/usleep.m4: Likewise.
19852         * m4/wcwidth.m4: Likewise.
19854 2017-12-28  Bruno Haible  <bruno@clisp.org>
19856         gnulib-tool: Make --conditional-dependencies work better.
19857         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
19858         * gnulib-tool (Options): Don't reject the combination of
19859         --conditional-dependencies with --with-tests.
19860         (func_emit_autoconf_snippets): Add argument referenceable_modules.
19861         Don't reference $modules.
19862         (func_import, func_create_testdir): Pass it.
19864 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19866         regex: use re_malloc etc. consistently
19867         Problem and original patch reported by Arnold Robbins in:
19868         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
19869         * lib/regcomp.c (re_comp):
19870         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
19871         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
19873 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
19874             Paul Eggert  <eggert@cs.ucla.edu>
19876         glob: Silence warning about void pointer arithmetic.
19877         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
19878         arithmetic.
19880 2017-12-15  Bruno Haible  <bruno@clisp.org>
19882         spawn-pipe: Silence a clang warning.
19883         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19884         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
19885         in this file.
19887 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
19889         explicit_bzero: port to macOS + Clang 9.0.0
19890         Problem reported by Marcus Johnson (Bug#29658).
19891         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
19892         Don’t use asm.
19894 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
19896         doc: Improve explanation of supporting relocatable libraries.
19897         * doc/relocatable-maint.texi (Supporting Relocation): Explain
19898         properly how to build the relocatable module for
19899         libraries. (Method and example code from Bruno Haible.)
19901 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
19903         doc: Use better texinfo tags in a few cases.
19904         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
19905         instead of @samp in a few places.
19907 2017-12-11  Bruno Haible  <bruno@clisp.org>
19909         unistr/base: Update comment.
19910         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
19912 2017-12-10  Pádraig Brady  <P@draigBrady.com>
19914         test-faccessat.c: unlink temp file to avoid subsequent test failure
19915         * tests/test-faccessat.c: Remove the file to avoid failure
19916         to open the file on subsequent runs due to being created
19917         with no permissions.
19919 2017-12-10  Bruno Haible  <bruno@clisp.org>
19921         doc: New sect. "Modifying the build rules of a Gnulib import directory".
19922         * doc/gnulib-tool.texi (Modified build rules): New node.
19924 2017-12-10  Bruno Haible  <bruno@clisp.org>
19926         doc: Tweak wording.
19927         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
19928         "binaries".
19930 2017-12-05  Sam Steingold  <sds@gnu.org>
19931             Bruno Haible  <bruno@clisp.org>
19933         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
19934         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
19935         AC_EGREP_CPP pattern.
19937 2017-12-03  Bruno Haible  <bruno@clisp.org>
19939         all: Replace more http URLs by https URLs.
19940         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
19941         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
19942         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
19943         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
19945 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
19947         Port better to CentOS 5
19948         Problems reported by Tom G. Christensen in:
19949         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
19950         * doc/glibc-functions/strverscmp.texi (strverscmp):
19951         Document strverscmp bug with glibc 2.9 and earlier.
19952         * doc/posix-functions/tzset.texi (tzset):
19953         Document that TZ with angle brackets is POSIX-2001 and later.
19954         * tests/test-nstrftime.c: Include unistd.h.
19955         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
19956         (TZ): Use it to skip tests with angle brackets in TZ,
19957         for older systems.
19959         stat: add missing module dependencies
19960         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
19961         Add stat-time.
19963 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
19965         stat: fix compilation failure on macOS Sierra
19966         Reported by Marius Schamschula <mschamschula@gmail.com> in:
19967         https://savannah.gnu.org/bugs/?52546
19968         * lib/stat.c: Add missing include of stat-time.h.
19970 2017-11-28  Jim Meyering  <meyering@fb.com>
19972         test-faccessat.c: correct BASE definition to avoid parallel test failure
19973         * tests/test-faccessat.c (BASE): Define using this file's name, not
19974         that of test-lstat.c.  Using the latter caused this test to fail
19975         sometimes when run concurrently with test-lstat.
19977 2017-11-27  Daiki Ueno  <ueno@gnu.org>
19979         unicase: fix VPATH build
19980         * modules/unicase/special-casing (Makefile.am): Ensure that the
19981         base directory is created when generating
19982         unicase/special-casing.h.
19984 2017-11-27  Daiki Ueno  <ueno@gnu.org>
19986         libunistring: update to Unicode 9.0.0
19987         * lib/gen-uni-tables.c (fill_properties): Recognize
19988         Sentence_Terminal and Prepended_Concatenation_Mark.
19989         (is_property_default_ignorable_code_point): Exclude U+08E2.
19990         (fill_arabicshaping): Allow missing whitespace when parsing;
19991         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
19992         (output_blocks): Increase the element size of the level1 table to
19993         accommodate more blocks.
19994         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
19995         Update each class according to the standard.
19996         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
19997         E_Base_GAZ characters.
19998         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
19999         Glue_After_Zwj, and E_Base_GAZ characters.
20000         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
20001         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
20002         enum value.
20003         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
20004         value.
20005         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
20006         LBP_ZWJ, LBP_EB, and LBP_EM.
20007         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
20008         enum value.
20009         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
20010         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
20011         declaration.
20012         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
20013         (uniwbrk_table): Implement WB14.
20014         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
20015         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
20016         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
20017         uc-is-grapheme-break.
20018         * modules/unigbrk/uc-grapheme-breaks: New module.
20019         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
20020         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
20021         enum value.
20022         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
20023         * lib/unigbrk/u-grapheme-breaks.h: New file.
20024         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
20025         u-grapheme-breaks.h instead of uc_is_grapheme_break.
20026         * lib/unigbrk/uc-grapheme-breaks.c: New file.
20027         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
20028         29.
20029         * tests/unigbrk/test-uc-gbrk-prop.c
20030         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20031         GBP_GAZ, and GBP_EBG.
20032         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
20033         * tests/unigbrk/test-uc-is-grapheme-break.c
20034         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20035         GBP_GAZ, and GBP_EBG.
20036         (main): Skip unsupported rules involving 3 or more characters,
20037         namely GB10, GB12, and GB13.
20038         * lib/uniwidth/width.c (nonspacing_table_data): Update.
20039         * all generated files under lib/uni* and tests/uni*: Regenerate.
20040         * all the affected modules: Bump version.
20042 2017-11-26  Bruno Haible  <bruno@clisp.org>
20044         strfmon_l: Fix compilation error with glibc 2.5.
20045         Reported by Tom G. Christensen <tgc@jupiterrise.com>
20046         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
20047         * lib/monetary.in.h: Include also <locale.h>.
20049 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20051         posixtm: remove PDS_LEADING_YEAR
20052         This changes the API slightly, in a hopefully-innocuous way.
20053         Without this change the code had undefined behavior when a
20054         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
20055         Problem reported by Pádraig Brady in:
20056         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
20057         * NEWS: Mention this.
20058         * lib/posixtm.c (posix_time_parse): Treat the absence of
20059         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
20060         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
20061         present, but define it as zero, for compatibility with existing
20062         source code).  All other PDS_* values moved up.
20063         * tests/test-posixtm.c (LY): New macro.
20064         (T): Use it.  Do not expect a particular numeric encoding
20065         for PDS_CENTURY etc.
20067 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20069         stat: work around Solaris bug with tv_nsec < 0
20070         * doc/posix-functions/fstat.texi (fstat):
20071         * doc/posix-functions/fstatat.texi (fstatat):
20072         * doc/posix-functions/lstat.texi (lstat):
20073         * doc/posix-functions/stat.texi (stat):
20074         Mention Solaris 11 bug.
20075         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
20076         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
20077         * lib/lstat.c (rpl_lstat):
20078         * lib/stat.c (rpl_stat):
20079         Normalize resulting timestamps.
20080         * lib/fstatat.c (normal_fstatat): New function.
20081         (rpl_fstatat): Use it.
20082         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
20083         (stat_time_normalize): New function.
20084         * m4/fstat.m4 (gl_FUNC_FSTAT):
20085         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
20086         * m4/lstat.m4 (gl_FUNC_LSTAT):
20087         * m4/stat.m4 (gl_FUNC_STAT):
20088         Replace on Solaris.
20089         * modules/fstat (Depends-on):
20090         * modules/fstatat (Depends-on):
20091         Add stat-time.
20092         * modules/stat-time (Depends-on): Add errno, intprops.
20094 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
20096         regex: merge from glibc
20097         * lib/regcomp.c (init_word_char): Add comments.
20099 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20101         regex: merge from glibc
20102         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
20103         * lib/regex_internal.h (internal_function): Remove.
20104         All uses removed.
20106 2017-11-20  Bruno Haible  <bruno@clisp.org>
20108         crypto/gc-sm3: Fix buffer overrun.
20109         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
20110         Reported by Coverity.
20112 2017-11-12  Jim Meyering  <meyering@fb.com>
20114         maint: shorten https://lists.gnu.org/archive/html/... links
20115         Each /archive/html/ part can be replace with /r/.
20116         Run this to induce the change:
20117         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
20118         * ChangeLog: Perform that substitution.
20119         * Makefile: Likewise.
20120         * STATUS-libposix: Likewise.
20121         * build-aux/bootstrap: Likewise.
20122         * doc/maintain.texi: Likewise.
20123         * gnulib-tool: Likewise.
20124         * lib/allocator.h: Likewise.
20125         * lib/argp-ba.c: Likewise.
20126         * lib/argp-pv.c: Likewise.
20127         * lib/canon-host.c: Likewise.
20128         * lib/canonicalize-lgpl.c: Likewise.
20129         * lib/float.in.h: Likewise.
20130         * lib/fstat.c: Likewise.
20131         * lib/getdelim.c: Likewise.
20132         * lib/getprogname.c: Likewise.
20133         * lib/glthread/thread.h: Likewise.
20134         * lib/intprops.h: Likewise.
20135         * lib/mbsrtowcs-state.c: Likewise.
20136         * lib/safe-read.c: Likewise.
20137         * lib/signal.in.h: Likewise.
20138         * lib/stat.c: Likewise.
20139         * lib/stdbool.in.h: Likewise.
20140         * lib/stdio-impl.h: Likewise.
20141         * lib/stdio.in.h: Likewise.
20142         * lib/sysexits.in.h: Likewise.
20143         * lib/timespec.h: Likewise.
20144         * lib/wcsrtombs-state.c: Likewise.
20145         * m4/alloca.m4: Likewise.
20146         * m4/extern-inline.m4: Likewise.
20147         * m4/fstatat.m4: Likewise.
20148         * m4/gnulib-common.m4: Likewise.
20149         * m4/lib-ignore.m4: Likewise.
20150         * m4/printf.m4: Likewise.
20151         * m4/regex.m4: Likewise.
20152         * m4/stat-size.m4: Likewise.
20153         * m4/std-gnu11.m4: Likewise.
20154         * m4/stdbool.m4: Likewise.
20155         * m4/sys_types_h.m4: Likewise.
20156         * m4/threadlib.m4: Likewise.
20157         * m4/vararrays.m4: Likewise.
20158         * pygnulib/GLImport.py: Likewise.
20159         * tests/test-exp.h: Likewise.
20160         * tests/test-exp2.h: Likewise.
20161         * tests/test-expm1.h: Likewise.
20162         * tests/test-fflush2.c: Likewise.
20163         * tests/test-getopt_long.h: Likewise.
20164         * tests/test-intprops.c: Likewise.
20165         * tests/test-log.h: Likewise.
20166         * tests/test-log10.h: Likewise.
20167         * tests/test-log1p.h: Likewise.
20168         * tests/test-log2.h: Likewise.
20169         * tests/test-printf-posix.h: Likewise.
20170         * tests/test-regex.c: Likewise.
20171         * tests/test-snprintf-posix.h: Likewise.
20172         * tests/test-sprintf-posix.h: Likewise.
20173         * tests/test-stdalign.c: Likewise.
20174         * tests/test-stdbool.c: Likewise.
20175         * tests/test-vasnprintf-posix.c: Likewise.
20176         * tests/test-vasprintf-posix.c: Likewise.
20177         * top/maint.mk: Likewise.
20179 2017-11-12  Bruno Haible  <bruno@clisp.org>
20181         faccessat: Make the last change more robust.
20182         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
20183         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
20185 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20187         faccessat: port to macOS (Bug#29231)
20188         macOS faccessat has the same bug that lstat does: if the file
20189         name ends in '/' it ignores the trailing slash.
20190         Problem reported for Emacs by Vincent Zhang.
20191         * doc/posix-functions/faccessat.texi (faccessat): Document this.
20192         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
20193         around the initial includes.  Include errno.h, string.h, sys/stat.h.
20194         (orig_faccessat) [HAVE_FACCESSAT]: New function.
20195         Include "unistd.h" after defining it.
20196         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
20197         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
20198         Handle in the usual way.
20199         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
20200         lstat dereferences symlinks, since faccessat is likely to
20201         have the same problem.
20202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
20203         * modules/faccessat (Depends-on): Add fstatat.
20204         Depend if REPLACE_FACCESSAT is 1, too.
20205         (configure.ac): Link if REPLACE_FACCESSAT is 1.
20206         * modules/faccessat-tests (Depends-on): Add symlink.
20207         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
20208         * tests/test-faccessat.c (main): Test for the bug.
20210 2017-11-11  Bruno Haible  <bruno@clisp.org>
20212         getprogname: Fix compilation error on IRIX.
20213         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
20214         'namesize'.
20216 2017-11-11  Bruno Haible  <bruno@clisp.org>
20218         year2038: Tweak last patch.
20219         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
20221 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20223         year2038: be more insistent about 64-bit time_t
20224         Applications requiring access to arbitrary files should not be
20225         built with 32-bit time_t on hosts that have 64-bit timestamps,
20226         as this can lead to real trouble at runtime.
20227         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
20228         Check on all systems, not just MinGW.  Use a heuristic involving
20229         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
20230         output a failure or just a warning, to make it more likely that
20231         builders will select 64-bit time_t.
20233 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20235         havelib: fix typo in previous change
20236         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
20238         Don’t use AC_EGREP_CPP if affected by CFLAGS
20239         * m4/float_h.m4 (gl_FLOAT_H):
20240         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
20241         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
20242         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
20243         * m4/year2038.m4 (gl_YEAR2038):
20244         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
20245         likely to be affected by the choice of CFLAGS, since CFLAGS are
20246         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
20247         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
20249         fstatat: pacify GCC on unusual platform
20250         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
20251         Omit, as it’s unused in this case.
20253 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20255         timespec: prefer ‘assume’ to ‘assure’
20256         This avoids some runtime tests.  The rest of the module makes
20257         similar assumptions and there is little point to testing here.
20258         * lib/timespec.h: Include verify.h instead of assure.h.
20259         (timespec_cmp): Use ‘assume’, not ‘assure’.
20260         Also, remove an unnecessary cast to ‘int’, as lots of other
20261         code in this module now causes -Wconversion to complain, and
20262         this is a problem with -Wconversion not with the code.
20264         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
20266         Port recent gnulib-tool change to Dash
20267         * gnulib-tool (func_create_testdir): Don't assume that the shell
20268         retokenizes after expanding "$@" inside the call to
20269         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
20271 2017-10-27  Jim Meyering  <meyering@fb.com>
20273         timespec.h: use "assure" to avoid a spurious warning
20274         * lib/timespec.h: Include "assure.h" and use it to help
20275         gcc7's -Wstrict-overflow avoid a false positive warning
20276         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
20277         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
20278         * modules/timespec (Depends-on): Add assure.
20280 2017-10-29  Bruno Haible  <bruno@clisp.org>
20282         Avoid several test failures with traditional locales on Haiku.
20283         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
20284         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
20285         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
20286         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
20287         LOCALE_ZH_CN=none.
20289 2017-10-29  Bruno Haible  <bruno@clisp.org>
20291         strerror_r-posix: Fix behaviour and test failure on Haiku.
20292         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
20293         are positive. Work around return value 0 instead of ERANGE on Haiku.
20294         For unknown error numbers, use a format string consistent with perror().
20295         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
20296         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
20297         are positive.
20299 2017-10-29  Bruno Haible  <bruno@clisp.org>
20301         get-rusage-data: Avoid crash on Haiku.
20302         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
20304 2017-10-29  Bruno Haible  <bruno@clisp.org>
20306         get-rusage-as: Avoid crash on Haiku.
20307         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
20309 2017-10-29  Bruno Haible  <bruno@clisp.org>
20311         ilogbl: Ensure replacement on Haiku.
20312         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
20313         REPLACE_ILOGBL if ilogbl does not work.
20314         (gl_FUNC_ILOGBL_WORKS): New macro.
20315         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
20316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
20317         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
20318         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
20319         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
20321 2017-10-29  Bruno Haible  <bruno@clisp.org>
20323         expl: Ensure replacement on Haiku.
20324         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
20325         zero.
20326         * doc/posix-functions/expl.texi: Mention the Haiku problem.
20328 2017-10-29  Bruno Haible  <bruno@clisp.org>
20330         math: Fix test failure on Haiku.
20331         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
20332         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
20333         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
20334         * doc/posix-headers/math.texi: Mention the Haiku problem.
20336 2017-10-29  Bruno Haible  <bruno@clisp.org>
20338         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
20339         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
20340         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
20342 2017-10-29  Bruno Haible  <bruno@clisp.org>
20344         crypto/*: Verify that the header file is self-contained.
20345         * tests/test-gc-*.c: Include the module's header file immediately after
20346         <config.h>.
20347         * tests/test-hmac-*.c: Likewise.
20348         * tests/test-arcfour.c: Likewise.
20349         * tests/test-arctwo.c: Likewise.
20350         * tests/test-des.c: Likewise.
20351         * tests/test-md2.c: Likewise.
20352         * tests/test-md4.c: Likewise.
20353         * tests/test-md5.c: Likewise.
20354         * tests/test-rijndael.c: Likewise.
20355         * tests/test-sha1.c: Likewise.
20356         * tests/test-sm3.c: Likewise.
20358 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20359             Bruno Haible  <bruno@clisp.org>
20361         crypto/gc: fix build failure with -Werror=suggest-attribute=const
20362         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
20364 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20366         New module: crypto/gc-sm3
20367         * lib/gc.h: Declare SM3-related stuffs.
20368         * lib/gc-gnulib.c: Support sm3 in internal functions.
20369         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
20370         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
20371         * modules/crypto/gc-sm3: Define gc-sm3 module.
20372         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
20373         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
20374         * MODULES.html.sh: List gc-sm3 module.
20376 2017-10-29  Bruno Haible  <bruno@clisp.org>
20378         random, random_r: Mention different prototypes on Haiku.
20379         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
20380         * doc/glibc-functions/random_r.texi: Likewise.
20381         * doc/glibc-functions/initstate_r.texi: Likewise.
20382         * doc/glibc-functions/setstate_r.texi: Likewise.
20384 2017-10-28  Bruno Haible  <bruno@clisp.org>
20386         posix_spawn: Avoid spurious message in configure output.
20387         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
20388         'cmp' command.
20390 2017-10-28  Bruno Haible  <bruno@clisp.org>
20392         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
20393         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
20394         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
20396 2017-10-28  Bruno Haible  <bruno@clisp.org>
20398         ioctl: Override non-POSIX declaration on Haiku.
20399         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
20400         * lib/sys_ioctl.in.h: Add comment about Haiku.
20401         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
20402         * doc/glibc-headers/sys_ioctl.texi: Likewise.
20404 2017-10-28  Bruno Haible  <bruno@clisp.org>
20406         crypto/sm3: Add overview documentation to the .h file.
20407         * lib/sm3.h: Add comments.
20409 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20411         New module: crypto/sm3
20412         This new module can be used to compute SM3 message digest of files or
20413         memory blocks according to the specification GM/T 004-2012
20414         Cryptographic Hash Algorithm SM3, published by State Cryptography
20415         Administration, China.
20416         The official SM3 cryptographic hash algorithm specification is
20417         available at
20418         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
20419         * lib/sm3.h: Declare the APIs of sm3 module.
20420         * lib/sm3.c: Implement SM3 hash algorithm.
20421         * m4/sm3.m4: m4 file for sm3 module.
20422         * modules/crypto/sm3: Define sm3 module.
20423         * tests/test-sm3.c: Implement SM3 test case.
20424         * modules/crypto/sm3-tests: Define sm3 test module.
20425         * MODULES.html.sh: List sm3 module.
20427 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20429         gc-libgcrypt: fix undefined enum type in switch statement
20430         Resolve the following build failure:
20431         lib/gc-libgcrypt.c: In function 'gc_hash_open':
20432         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
20433         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
20434              case 0:
20435              ^~~~
20436         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
20437         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
20439 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20441         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
20442         Resolve the following build failure:
20443         lib/gc-libgcrypt.c: In function 'gc_hash_read':
20444         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
20445         in signedness [-Werror=pointer-sign]
20446             digest = gcry_md_read (ctx->gch, 0);
20447                    ^
20448         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
20450 2017-10-26  Bruno Haible  <bruno@clisp.org>
20452         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
20453         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
20454         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
20456 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20458         glob: fix another heap buffer overflow
20459         Problem reported by Tim Rühsen in:
20460         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
20461         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
20463 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
20465         quotearg: pacify compiler re unsigned
20466         * lib/quotearg.c (quotearg_n_options):
20467         Rewrite to avoid diagnostic from overly-picky compiler.
20468         Problem reported by Sami Kerola in:
20469         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
20471         glob: fix heap buffer overflow
20472         * lib/glob.c (glob): Fix off-by-one error introduced into
20473         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
20474         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
20475         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
20476         Fix suggested by Bruno Haible.
20478 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
20480         glob: pacify fuzzer for mempcpy
20481         Problem reported by Tim Rühsen in:
20482         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
20483         * lib/glob.c (glob): Do not pass NULL to mempcpy.
20485 2017-10-12  Bruno Haible  <bruno@clisp.org>
20487         doc: Fix syntax error (regression from 2017-10-03).
20488         * doc/posix-functions/strncpy.texi: Fix syntax error.
20490 2017-10-12  Bruno Haible  <bruno@clisp.org>
20492         doc: Update for Solaris 11.3.
20493         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
20494         mention Solaris 11.3.
20495         * m4/log2.m4: Fix comments.
20496         * m4/log2f.m4: Likewise.
20497         * m4/printf.m4: Update comments.
20498         * m4/rename.m4: Likewise.
20499         * m4/strncat.m4: Likewise.
20501         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
20503 2017-10-10  Bruno Haible  <bruno@clisp.org>
20505         doc: Improve doc about ioctl.
20506         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
20507         prototype.
20509 2017-10-09  Bruno Haible  <bruno@clisp.org>
20511         wcwidth: Don't use obsolete syntax of 'test'.
20512         Reported by Eric Blake.
20513         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
20514         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
20516 2017-10-09  Bruno Haible  <bruno@clisp.org>
20518         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
20519         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
20520         and Daniel P. Berrange <berrange@redhat.com>.
20521         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
20522         on glibc systems. The getopt-pfx-core.h file declares exactly what
20523         unistd.h needs, nothing more.
20525 2017-10-08  Bruno Haible  <bruno@clisp.org>
20527         vma-iter: Improve support for FreeBSD.
20528         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
20529         vma_iterate.
20530         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
20532 2017-10-08  Bruno Haible  <bruno@clisp.org>
20534         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
20535         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
20537 2017-10-07  KO Myung-Hun  <komh@chollian.net>
20539         test-framework-sh: Fix 'invalid path dir' error.
20540         On OS/2, a path separator is ';' not ':'. And ':' is used as a
20541         separator between a drive letter and directory parts.
20542         As a result, an absolute path such as x:/path/to/dir on OS/2 is
20543         treated as an invalid path dir.
20544         * tests/init.sh (PATH_SEPARATOR): Set at startup.
20545         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
20546         instead of hard coded ':'.
20548 2017-10-07  Bruno Haible  <bruno@clisp.org>
20550         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
20551         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
20552         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
20553         (rof_open): On Linux, do multiple read() calls and make sure
20554         MIN_LEFTOVER bytes are left when read() returns.
20556 2017-10-07  Bruno Haible  <bruno@clisp.org>
20558         vma-iter: Improve support for GNU/Hurd.
20559         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
20560         API, not the /proc file system.
20562 2017-10-07  Bruno Haible  <bruno@clisp.org>
20564         test-framework-sh: Don't require bash on Windows and OS/2.
20565         Reported by KO Myung-Hun.
20566         * tests/test-init.sh: Use 'shopt' only when running in bash.
20568 2017-10-06  KO Myung-Hun  <komh@chollian.net>
20570         wcwidth: check a macro version of wcwidth () as well
20571         * lib/wchar.in.h: Revert commit from 2016-01-14.
20572         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
20574 2017-10-06  Bruno Haible  <bruno@clisp.org>
20576         getopt-posix: Clarify copyright header.
20577         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
20578         * lib/getopt-pfx-core.h: Likewise.
20579         * lib/getopt-pfx-ext.h: Likewise.
20580         * lib/getopt-cdefs.in.h: Likewise.
20582 2017-10-03  Bruno Haible  <bruno@clisp.org>
20584         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
20585         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
20586         gl_HOST_CPU_C_ABI.
20588 2017-10-03  Bruno Haible  <bruno@clisp.org>
20590         doc: warn about misuse of strncpy and wcsncpy.
20591         * doc/posix-functions/strcpy.texi: Describe requirements on prior
20592         memory allocation.
20593         * doc/posix-functions/wcscpy.texi: Likewise.
20594         * doc/posix-functions/strncpy.texi: Describe what this function is not
20595         useful for.
20596         * doc/posix-functions/wcsncpy.texi: Likewise.
20598 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
20600         fsuage: fix typo in previous change
20601         * lib/fsusage.c: Remove stray include of full-read.h.
20602         Problem reported by Sam Steingold for macOS (Bug#28669).
20604 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
20606         fsusage: remove SVR2 support
20607         SVR2 was obsolete by 1986 and is no longer supported by anybody,
20608         and its code was getting in the way of use of this module by
20609         Emacs, which has its own ‘read’ function anyway.
20610         * lib/fsusage.c: Do not include sys/filsys.h.
20611         (get_fs_usage): Remove SVR2-specific code.
20612         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
20613         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
20614         * modules/fsusage (Depends-on): Do not depend on full-read.
20616         Simplify autoupdate of licenses
20617         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
20618         place.
20620 2017-10-01  Bruno Haible  <bruno@clisp.org>
20622         vma-iter: Add support for GNU/Hurd.
20623         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
20624         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
20626 2017-09-30  Bruno Haible  <bruno@clisp.org>
20628         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
20629         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
20630         fail when module 'largefile' is in use.
20631         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
20632         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
20633         Don't test HAVE_SYS_PROCFS_H.
20635 2017-09-30  Bruno Haible  <bruno@clisp.org>
20637         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
20638         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
20639         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
20640         * modules/havelib (Depends-on): Add host-cpu-c-abi.
20642 2017-09-30  Bruno Haible  <bruno@clisp.org>
20644         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
20645         * lib/uniname/uniname.c (unicode_name_character): Add braces around
20646         scope of local variables.
20648 2017-09-28  Bruno Haible  <bruno@clisp.org>
20650         string: code style
20651         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
20652         substitutable variables.
20653         * modules/string (Makefile.am): Likewise.
20655 2017-09-26  Bruno Haible  <bruno@clisp.org>
20657         uniname/uniname-tests: Tighten code.
20658         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
20659         local variables into one.
20661 2017-09-26  Bruno Haible  <bruno@clisp.org>
20663         vma-iter: Improvements for Linux and BSD platforms.
20664         - Add support for DragonFly BSD.
20665         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
20666         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
20667         Read the entire file into memory in a single system call.
20668         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
20669         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
20671 2017-09-26  Bruno Haible  <bruno@clisp.org>
20673         vma-iter: Provide the protection flags on FreeBSD.
20674         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
20675         skip three fields between the addresses and the protection flags.
20677 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20679         glob: remove bogus extern decl
20680         * lib/glob.c (__glob_pattern_type): Remove now-spurious
20681         extern declaration.  Problem reported by Adhemerval Zanella in:
20682         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
20684 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20686         uniname/uniname-tests: integer overflow fix
20687         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
20688         Check for integer overflow.
20690         duplocale-tests: fix unlikely crash
20691         * tests/test-duplocale.c (get_locale_dependent_values):
20692         Don’t crash with absurdly long month names.
20694         maint: fix overflow checking in nap.h
20695         * modules/chown-tests:
20696         * modules/fchownat-tests, modules/fdutimensat-tests:
20697         * modules/futimens-tests, modules/lchown-tests:
20698         * modules/stat-time-tests, modules/utime-tests:
20699         * modules/utimens-tests, modules/utimensat-tests:
20700         Depend on intprops.
20701         * tests/nap.h: Include intprops.h.
20702         (diff_timespec): Handle overflow properly.
20704         sys_types: update URL
20705         * m4/sys_types_h.m4: Use https: URL.
20707         parse-datetime: fix dependency
20708         * modules/parse-datetime (Depends-on): Depend
20709         on nstrftime, not strftime.
20711         parse-datetime, posixtm: avoid uninit access
20712         * lib/parse-datetime.y (parse_datetime2):
20713         * lib/posixtm.c (posixtime):
20714         Do not access uninitialized storage, even though the resulting
20715         value is never used.
20717 2017-09-25  Bruno Haible  <bruno@clisp.org>
20719         vma-iter: Improvements for BSD platforms.
20720         - Add support for GNU/kFreeBSD.
20721         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
20722         - Speed up on OpenBSD.
20723         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
20724         (vma_iterate_bsd): New function.
20725         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
20726         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
20727         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
20728         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
20730 2017-09-23  Bruno Haible  <bruno@clisp.org>
20732         strfmon_l: New module.
20733         * modules/strfmon_l: New file.
20734         * lib/strfmon_l.c: New file.
20735         * m4/strfmon_l.m4: New file.
20736         * doc/posix-functions/strfmon_l.texi: Mention the new module.
20737         * modules/strfmon_l-tests: New file.
20738         * tests/test-strfmon_l.c: New file.
20740         monetary: New module.
20741         * modules/monetary: New file.
20742         * lib/monetary.in.h: New file.
20743         * m4/monetary_h.m4: New file.
20744         * doc/posix-headers/monetary.texi: Mention the new module.
20745         * modules/monetary-tests: New file.
20746         * tests/test-monetary.c: New file.
20747         * modules/monetary-c++-tests: New file.
20748         * tests/test-monetary-c++.cc: New file.
20749         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
20751 2017-09-23  Bruno Haible  <bruno@clisp.org>
20753         duplocale tests: Fix test crash on Linux/x86.
20754         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
20755         locale from the current thread before freeing it.
20757 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
20759         mktime: port to OpenVMS
20760         Problem reported by John E. Malmberg in:
20761         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
20762         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
20764 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
20766         manywarnings: port to GCC on 64-bit MS-Windows
20767         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
20768         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
20769         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
20771 2017-09-13  Bruno Haible  <bruno@clisp.org>
20773         all: Replace many more http URLs by https URLs. Update stale URLs.
20774         * users.txt: Remove mention of 'newts'.
20775         * lib/localename.c: Update comment about LANG_SOTHO.
20777 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20779         all: Replace many http URLs by https URLs.
20781 2017-09-12  Bruno Haible  <bruno@clisp.org>
20783         doc: Prefer https URLs where possible.
20784         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
20785         * doc/ld-output-def.texi: Remove unavailable URL.
20787 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20789         maintainer-makefile: FTP -> HTTPS
20790         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
20791         of FTP, which is planned to be decommissioned on 2017-11-01.
20793 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
20795         libc-config: Fix __GNUC_PREREQ macro.
20796         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
20797         __GNUC_MINOR.
20799 2017-09-09  Bruno Haible  <bruno@clisp.org>
20801         gnulib-tool: Simplify commit from 2015-08-20.
20802         * gnulib-tool (func_add_or_update): Remove local variable
20803         is_binary_file.
20805 2017-09-08  Bruno Haible  <bruno@clisp.org>
20807         stddef: Avoid conflict with system-defined max_align_t.
20808         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
20809         Reported by Werner Lemberg <wl@gnu.org> in
20810         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
20811         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
20812         (max_align_t): Define as a macro.
20813         (GNULIB_defined_max_align_t): New macro. Guards against multiple
20814         definitions of rpl_max_align_t in different copies of gnulib-generated
20815         <stddef.h>.
20817 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
20819         libc-config: port to MSVC
20820         Problems reported by Gisle Vanem in:
20821         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
20822         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
20823         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
20824         * m4/__inline.m4: New file.
20825         * modules/libc-config (Files): Add it.
20826         (Depends-on): Use it.
20828         glob: Use enum for __glob_pattern_type result
20829         From a patch proposed by Adhemerval Zanella in:
20830         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
20831         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
20832         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
20833         * lib/glob_internal.h (__glob_pattern_type):
20834         * lib/glob.c (glob):
20835         * lib/glob_pattern_p.c (__glob_pattern_p):
20836         Use them.
20838         glob: fix for use in glibc
20839         Problem reported by Adhemerval Zanella in:
20840         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
20841         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
20842         Do not redefine if _LIBC.
20844 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20846         glob: fix bugs with long login names
20847         Problem reported by Adhemerval Zanella in:
20848         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
20849         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
20850         (glob): Use the same scratch buffer for both getlogin_r and
20851         getpwnam_r.  Don’t require preallocation of the login name.  This
20852         simplifies storage allocation, and corrects the handling of
20853         long login names.
20855 2017-09-02  Bruno Haible  <bruno@clisp.org>
20857         dirent: Update doc.
20858         * doc/posix-headers/dirent.texi: More concrete list of platforms.
20860 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20862         glob: fix getpwnam_r errno typo
20863         * lib/glob.c (glob): Fix longstanding misuse of errno after
20864         getpwnam_r, which returns an error number rather than setting
20865         errno.
20867         glob: fix typo in recent change
20868         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
20869         Fix recently-introduced typo.
20871 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20873         glob: don't save and restore errno unnecessarily
20874         * lib/glob.c (glob): Don't save and restore errno
20875         merely because we have getpwnam_r.
20877         glob: don't assume getpwnam_r
20878         * lib/glob.c (glob): Port recent patches to platforms
20879         lacking getpwnam_r.
20881         scratch_buffer: don’t use private glibc API
20882         Suggested by Florian Weimer in:
20883         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
20884         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
20885         * lib/scratch_buffer_grow.c: Rename to
20886         lib/malloc/scratch_buffer_grow.c.
20887         * lib/scratch_buffer_grow_preserve.c: Rename to
20888         lib/malloc/scratch_buffer_grow_preserve.c.
20889         * lib/scratch_buffer_set_array_size.c: Rename to
20890         lib/malloc/scratch_buffer_set_array_size.c.
20891         * lib/scratch_buffer.h: New file.
20892         * modules/scratch_buffer (Files, Makefile.am):
20893         Adjust to source-file renaming.
20895 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20897         glob: use scratch_buffer instead of extend_alloca
20898         Much of the lib/glob.c part of this patch comes from a glibc patch
20899         proposed by Adhemerval Zanella in:
20900         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
20901         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
20902         included via glob.h, does this for us now.
20903         (__set_errno): Remove, as libc-config does this for us now.
20904         Include <scratch_buffer.h>.
20905         (GETPW_R_SIZE_MAX): Remove.
20906         (glob): Use struct scratch_buffer instead of extend_alloca.
20907         * lib/glob.in.h: Include libc-config.h rather than
20908         including <sys/cdefs.h> conditionally.
20909         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
20910         (__glibc_unlikely, __restrict, weak_alias):
20911         Remove, as libc-config does this for us now.
20912         * m4/glob.m4 (gl_PREREQ_GLOB):
20913         Remove sys/cdefs.h tests; no longer needed.
20914         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
20915         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
20917         scratch_buffer: new module
20918         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
20919         * lib/scratch_buffer_grow_preserve.c:
20920         * lib/scratch_buffer_set_array_size.c:
20921         New files, copied from glibc with very minor changes that can be
20922         copied back.
20923         * modules/scratch_buffer: New file.
20925         libc-config: new module
20926         * MODULES.html.sh: Add libc-config.
20927         * lib/cdefs.h: New file, copied from the GNU C Library with very
20928         minor changes that can be copied back.
20929         * lib/libc-config.h, modules/libc-config: New files.
20931 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
20933         glob: match dangling symlinks
20934         This fixes a bug I inadvertently introduced to Gnulib when I
20935         merged glibc glob back into gnulib on 2007-10-16.  This fix is
20936         inspired by a patch proposed for glibc by Adhemerval Zanella in:
20937         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
20938         * doc/posix-functions/glob.texi: Update list of affected platforms.
20939         * lib/glob.c (__lstat64): New macro.
20940         (is_dir): New function.
20941         (glob, glob_in_dir): Match symlinks even if they are dangling.
20942         (link_stat, link_exists_p): Remove.  All uses removed.
20943         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
20944         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
20945         * modules/glob-tests (Depends-on): Add symlink.
20946         * tests/test-glob.c: Include errno.h, unistd.h.
20947         (BASE): New macro.
20948         (main): Test dangling symlinks, if symlinks are supported.
20950         glob, backupfile: inode 0 is a valid inode number
20951         * doc/posix-functions/readdir.texi (readdir):
20952         * doc/posix-headers/dirent.texi (dirent.h):
20953         Document more readdir portability issues.
20954         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
20955         (numbered_backup): Don’t treat inode 0 any differently from
20956         other inode values.
20957         * lib/glob.c (struct readdir_result): Remove skip_entry member.
20958         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
20959         All uses removed.
20960         * modules/glob (Depends-on): Remove d-ino.
20962         glob: simplify symlink detection
20963         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
20964         uint8_t, as C99 does not require uint8_t.
20965         (struct readdir_result): Use it.  Do not define skip_entry unless
20966         it is needed; this saves a byte on platforms lacking d_ino.
20967         (readdir_result_type, readdir_result_skip_entry):
20968         New functions, replacing ...
20969         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
20970         ... these functions, which were removed.  This makes the callers
20971         easier to read.  All callers changed.
20972         (D_INO_TO_RESULT): Now empty if there is no d_ino.
20974 2017-08-30  Pádraig Brady  <P@draigBrady.com>
20976         fts-tests: tag as a longrunning-test so not included by default
20977         * modules/fts-tests: This test takes about 20s on current systems,
20978         and uses about 285M of space on ext4.
20980 2017-08-30  Pádraig Brady  <P@draigBrady.com>
20982         renameat2: fix compilation on alpine linux
20983         * m4/renameat.m4: Check for <linux/fs.h> presence.
20984         * lib/renameat2.h: Only include <linux/fs.h> if present.
20985         Reported by Assaf Gordon on Alpine Linux.
20987 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20989         glob: try to port recent changes to MS-Windows
20990         Problem reported by Bruno Haible in:
20991         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
20992         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
20993         * lib/glob.in.h (__glob_pattern_p): ... to here.
20995 2017-08-24  Eric Blake  <eblake@redhat.com>
20997         warnings: fix compilation with old autoconf
20998         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
20999         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
21000         AC_DEFUN.
21001         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
21002         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
21004 2017-08-24  Bruno Haible  <bruno@clisp.org>
21006         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
21007         * modules/glob (Depends-on): Add c99.
21009 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21011         glob: fix typo that broke platforms lacking d_ino
21012         This typo also hurt performance on GNU/Linux and similar hosts.
21013         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
21014         in previous change.
21016 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21018         glob: merge from glibc with Zanella glob changes
21019         Merge glob from glibc, with changes for glob proposed
21020         by Adhemerval Zanella in the thread starting here:
21021         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
21022         plus some fixes for this merge.
21023         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
21024         New files, ported from glibc.
21025         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
21026         with __restrict.
21027         (__size_t): Remove.  All uses replaced by size_t.
21028         (size_t): Define by defining __need_size_t and including <stddef.h>.
21029         This should work even in non-glibc platforms, where any name
21030         pollution is OK.
21031         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
21032         (struct stat64): Don’t worry about __GLOB_GNULIB.
21033         (glob, globfree, glob_pattern_p): Remove macros for
21034         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
21035         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
21036         but set errno.
21037         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
21038         removed since the glibc behavior works on null pointers.
21039         Do not include stdio.h; old SunOS is irrelevant now.
21040         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
21041         Include glob_internal.h.
21042         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
21043         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
21044         worked only coincidentally.
21045         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
21046         Remove macros; now done in glob.in.h.
21047         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
21048         (glob): Properly initialize glob structure with
21049         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
21050         Remove old code using SHELL since Bash no longer
21051         uses this.
21052         (glob, prefix_array): Separate MS code better.
21053         (glob, glob_in_dir): Use C99 decls before statements when glibc
21054         does.
21055         (glob_in_dir): Remove old Amiga and VMS code.
21056         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
21057         separate files.
21058         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
21059         (__glibc_unlikely):
21060         Move here from glob.c.
21061         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
21062         (weak_alias): New macro.
21063         (__size_t): Remove.  All uses replaced by size_t.
21064         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
21065         * modules/glob (Files): Add +lib/glob_internal.h,
21066         lib/glob_pattern_p.c, lib/globfree.c.
21067         (Depends-on): Remove snippet/arg-nonnull.
21069 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21071         glob: port to clang's Undefined Sanitizer
21072         Problem reported by Tim Rühsen in:
21073         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
21074         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
21075         (glob_in_dir): Do not rely on undefined behavior in accessing
21076         struct members beyond their bounds.  Use a flexible array member
21077         instead.
21079 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
21081         vc-list-files: port to Solaris 10
21082         * build-aux/vc-list-files: Don't assume test -e works.
21084 2017-08-21  Karl Berry  <karl@freefriends.org>
21086         * doc/posix-functions/srandom.texi (srandom): typo }.
21088 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21090         git-version-gen: port to Solaris 10
21091         Problem reported by Dagobert Michelsen in:
21092         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
21093         * build-aux/git-version-gen (v_from_git):
21094         Use expr instead of shell substitution.
21096 2017-08-19  Bruno Haible  <bruno@clisp.org>
21098         host-cpu-c-abi: Improve detection of MIPS ABI.
21099         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
21100         _MIPS_SIM.
21102 2017-08-17  Bruno Haible  <bruno@clisp.org>
21104         hypot tests: Fix test failure on FreeBSD 11.0/x86.
21105         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
21107 2017-08-17  Bruno Haible  <bruno@clisp.org>
21109         float: Fix LDBL_MIN value on FreeBSD/x86.
21110         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
21112 2017-08-17  Bruno Haible  <bruno@clisp.org>
21114         random: Fix test compilation failure on Cygwin 1.5.25.
21115         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
21116         HAVE_DECL_SETSTATE.
21117         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
21118         declared.
21119         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
21120         HAVE_DECL_SETSTATE.
21121         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
21122         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
21123         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
21124         * doc/posix-functions/random.texi: Likewise.
21125         * doc/posix-functions/setstate.texi: Likewise.
21126         * doc/posix-functions/srandom.texi: Likewise.
21128 2017-08-16  Bruno Haible  <bruno@clisp.org>
21130         stdnoreturn: Fix test compilation failure on Cygwin.
21131         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
21132         <stdnoreturn.h> replacement.
21133         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
21134         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
21136 2017-08-16  Bruno Haible  <bruno@clisp.org>
21138         thread: Fix conflict with pthread_sigmask module.
21139         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
21140         it's defined as a macro.
21141         * modules/thread (Depends-on): Add pthread_sigmask.
21143 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
21145         rename: port better to NetBSD
21146         * doc/posix-functions/rename.texi (rename): NetBSD 7
21147         does not have the link-count bug.
21148         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
21149         broken merely because rename ("a", "b") removes "a" when the two
21150         names are hard links to the same file.
21152 2017-08-16  Bruno Haible  <bruno@clisp.org>
21154         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
21155         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
21156         the target file names with '$(srcdir)/'.
21157         * modules/unicase/locale-language (Makefile.am): Likewise.
21158         * modules/unicase/special-casing (Makefile.am): Likewise.
21159         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
21160         * modules/unictype/category-byname (Makefile.am): Likewise.
21161         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
21162         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
21163         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
21164         * modules/unictype/property-byname (Makefile.am): Likewise.
21165         * modules/unictype/scripts (Makefile.am): Likewise.
21166         * modules/uninorm/composition (Makefile.am): Likewise.
21168 2017-08-16  Bruno Haible  <bruno@clisp.org>
21170         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
21171         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
21172         value for OpenBSD.
21174 2017-08-16  Bruno Haible  <bruno@clisp.org>
21176         rename, renameat: Update doc regarding NetBSD.
21177         * doc/posix-functions/rename.texi: Clarify that when using
21178         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
21179         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
21180         version.
21182 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21184         renameat2: port better to macOS
21185         * lib/renameat2.c (renameat2): Use renameatx_np if available.
21187         futimens: don’t assume struct timespec layout
21188         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
21189         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
21190         * tests/test-fdutimensat.c (main):
21191         * tests/test-futimens.h (test_futimens):
21192         * tests/test-lutimens.h (test_lutimens):
21193         * tests/test-utimens.h (test_utimens):
21194         * tests/test-utimensat.c (main):
21195         Don’t assume that struct timespec is a two-member structure in
21196         tv_sec, tv_nsec order.  Although this is true on all platforms we
21197         know about, POSIX does not guarantee it.
21199         rename: document+test NetBSD rename
21200         Test failure reported by Bruno Haible in:
21201         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
21202         This is an area where NetBSD is better-behaved than POSIX,
21203         so allow the NetBSD behavior in tests.
21204         * doc/posix-functions/rename.texi:
21205         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
21206         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
21208 2017-08-15  Bruno Haible  <bruno@clisp.org>
21210         renameat: Ensure declaration in <stdio.h> on NetBSD.
21211         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
21212         * doc/posix-functions/renameat.texi: Mention this problem.
21214 2017-08-15  Bruno Haible  <bruno@clisp.org>
21216         duplocale: Work around NetBSD 7.0 bug.
21217         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
21218         * lib/duplocale.c: Add comment about NetBSD problem.
21219         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
21221 2017-08-15  Bruno Haible  <bruno@clisp.org>
21223         duplocale tests: Verify use with *_l functions.
21224         * modules/duplocale-tests (configure.ac): Test for uselocale and
21225         some *_l functions.
21226         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
21227         from main.
21228         (get_locale_dependent_values_from, test_with_locale_parameter): New
21229         functions.
21230         (main): Test both test_with_uselocale and test_with_locale_parameter.
21232 2017-08-15  Bruno Haible  <bruno@clisp.org>
21234         extensions: Enable NetBSD specific extensions.
21235         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
21237 2017-08-14  Bruno Haible  <bruno@clisp.org>
21239         open, openat: Update doc about O_CLOEXEC.
21240         * doc/posix-functions/open.texi: More concrete list of platforms.
21241         * doc/posix-functions/openat.texi: Likewise.
21243 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21245         open: support O_CLOEXEC
21246         * NEWS, doc/posix-functions/open.texi:
21247         * doc/posix-functions/openat.texi: Document this.
21248         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
21249         (GNULIB_defined_O_CLOEXEC): New symbol.
21250         * lib/open.c: Include cloexec.h.
21251         (open): Support O_CLOEXEC.
21252         * lib/openat.c: Include cloexec.h.
21253         (rpl_openat): Support O_CLOEXEC.
21254         * lib/popen-safer.c: Do not include cloexec.h.
21255         (open_noinherit): Remove.
21256         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
21257         * lib/save-cwd.c: Do not include cloexec.h.
21258         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
21259         * m4/open-cloexec.m4: New file.
21260         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
21261         Replace 'open' if O_CLOEXEC is not present.
21262         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
21263         Replace 'openat' if O_CLOEXEC is not present.
21264         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
21265         * modules/open (Files): Add m4/open-cloexec.m4.
21266         (Depends-on): Depend on cloexec if replacing 'open'.
21267         * modules/openat (Files): Add m4/open-cloexec.m4.
21268         (Depends-on): Depend on cloexec if replacing openat.
21269         * modules/popen-safer (Depends-on): Remove cloexec.
21270         * modules/save-cwd (Depends-on): Remove cloexec, and add
21271         fd-safer-flag and 'open'.
21273 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
21275         reallocarray: minor fixes
21276         * doc/glibc-functions/reallocarray.texi: Update version numbers.
21277         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
21278         * modules/reallocarray (License): Change from GPL to LGPL.
21279         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
21280         Indent properly and don't use tabs.
21282 2017-08-13  Darshit Shah  <darnir@gnu.org>
21284         reallocarray: New module
21285         reallocarray is a new function in glibc 2.26 to safely allocate an array
21286         of memory locations with integer overflow protection.
21287         * MODULES.html.sh: Add reallocarray.
21288         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
21289         * lib/reallocarray.c: New file to implement module reallocarray.
21290         * lib/stdlib.in.h: Add function declarations for reallocarray.
21291         * m4/reallocarray.m4: New file.
21292         * m4/stdlib_h.m4: Declare reallocarray.
21293         * modules/reallocarray: New file.
21294         * modules/reallocarray-test: New file.
21295         * modules/stdlib: Coerce stdlib.h to export reallocarray.
21296         * tests/test-reallocarray.c: New test.
21298 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21300         dirent-safer: fix cloexec race
21301         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
21302         (opendir_safer): Use F_DUPFD_CLOEXEC.
21303         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
21304         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
21305         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
21306         instead of dup_safer.
21308         fts: fix cloexec races
21309         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
21310         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
21311         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
21312         (fd_ring_check): Set cloexec flag on new file descriptors.
21313         (fts_build, fd_ring_check): While we’re at it, make sure the
21314         resulting file descriptor is not 0, 1, or 2, since that is easy.
21316 2017-08-11  Bruno Haible  <bruno@clisp.org>
21318         fts tests: Fix link error.
21319         Reported by Tom G. Christensen in
21320         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
21321         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
21323 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21325         fts: port recent changes to CentOS 6
21326         Problem reported by Tom G. Christensen in:
21327         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
21328         * lib/fts.c (fsword): New type.
21329         (struct dev_type, filesystem_type): Use it.
21330         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
21331         Also, check for f_type only if fstatfs and sys/vfs.h work.
21333 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21335         tempname: do not depend on secure_getenv
21336         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
21337         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
21338         * modules/tempname (Depends-on): Remove secure_getenv.
21340 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
21342         extensions: add _OPENBSD_SOURCE
21343         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
21345 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
21346             Bruno Haible  <bruno@clisp.org>
21348         manywarnings: Add support for C++.
21349         * build-aux/g++-warning.spec: New file.
21350         * m4/manywarnings-c++.m4: New file.
21351         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
21352         redirects to manywarnings-c++.m4.
21353         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
21355 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21357         git-version-gen: another fix for tags with "-"
21358         * build-aux/git-version-gen: Improve fix for tags containing "-".
21359         Suggested by Markus Armbruster in:
21360         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
21362 2017-08-06  Bruno Haible  <bruno@clisp.org>
21364         warnings, manywarnings: Add support for multiple languages, not just C.
21365         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
21366         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
21367         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
21368         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
21369         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
21370         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
21371         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
21372         of the current language. If C++ is the current language, modify
21373         WARN_CXXFLAGS instead of WARN_CFLAGS.
21374         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
21375         gl_MANYWARN_ALL_GCC.
21376         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
21378 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
21380         git-version-gen: Fix for tags containing '-'
21382         Really old versions of git-describe (before v1.5.0, Feb 2007)
21383         don't have the number of commits in their long format output,
21384         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
21385         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
21386         recognizes both patterns, and normalizes the old format to the new one.
21388         Unfortunately, this normalization code gets confused when the tag
21389         contains '-'.  Reproducer:
21391             $ git-tag -m test v0.2-rc1
21392             $ build-aux/git-version-gen .tarball-version; echo
21393             build-aux/git-version-gen: WARNING: git rev-list failed
21394             UNKNOWN
21396         We take exact tag "v0.2-rc1" for the old format, extract the presumed
21397         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
21398         commits since tha tag.  Fails, because tag "v0.2" does not exist.
21400         * git-version-gen: We could perhaps drop support for versions from
21401         more than a decade ago.  But tightening the pattern match is easy
21402         enough, so do that.  Still breaks when you use version tags ending in
21403         something matching -g????, but you arguably get what you deserve then.
21405 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21407         valgrind-tests: use ls, and cache
21408         * m4/valgrind-tests.m4: Test ls, not bash.
21409         Problem reported by Reuben Thomas.
21410         Also, cache the result so that it can be overridden.
21412 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
21414         manywarnings: port to 64-bit GCC builds of Emacs
21415         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
21416         object size rather than hardwiring 2147483647.  This is needed to
21417         build GNU Emacs, which has one conditional (and used
21418         only-in-theory) call to malloc with a literal greater than
21419         2147483647.
21421 2017-08-04  Bruno Haible  <bruno@clisp.org>
21423         Relax the license of some modules with no runtime code.
21424         * modules/std-gnu11 (License): Set to 'unlimited'.
21425         * modules/c99 (License): Likewise.
21426         Reported by Reuben Thomas <rrt@sc3d.org>.
21427         * modules/d-ino (License): Set to 'LGPL'.
21428         * modules/host-os (License): Likewise.
21429         * modules/longlong (License): Likewise.
21431 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21433         renameat2: port to RHEL 7 + NFS
21434         * lib/renameat2.c (renameat2) [SYS_renameat2]:
21435         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
21436         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
21438 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21440         renameat2: port to non-renameat platforms
21441         Problem reported for MSVC-2015 by Gisle Vanem in:
21442         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
21443         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
21444         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
21446 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21448         manywarnings: port to 32-bit GCC bug
21449         Problem reported by Pino Toscano in:
21450         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
21451         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
21452         not 2**63 - 1, to work around the following GCC bug:
21453         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
21455 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
21457         backupfile: new function to validate backup suffix
21458         * lib/backupfile.c (set_simple_backup_suffix): New function.
21459         (backupfile_internal): Use it.
21461         canonicalize: fix EOVERFLOW commentary
21462         Problem reported by Bruno Haible in:
21463         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
21464         * lib/canonicalize.c (canonicalize_filename_mode):
21465         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
21467         Don't interpret EOVERFLOW to mean nonexistence
21468         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
21469         may be EOVERFLOW; this is likely more useful than reporting the
21470         stat errno.
21471         * lib/glob.c (link_stat): Rename from link_exists2_p and
21472         return -1/0 instead of 0/1.  Caller changed.
21473         * lib/glob.c (link_exists_p):
21474         * lib/renameat2.c (rename_noreplace, renameat2):
21475         * lib/tempname.c (try_nocreate):
21476         If errno == EOVERFLOW then the directory entry exists, so do not
21477         act as if it does not exist.
21479         backup-rename: new module
21480         It is like backupfile, except it avoids some race conditions,
21481         and it does not output to stderr or exit.
21482         * MODULES.html.sh: Add backup-rename.
21483         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
21484         * modules/backup-rename: New files.
21485         * lib/backupfile.c: Turn this into an internals file, which
21486         contains code common to backupfile and backup_rename.  Include
21487         backupfile-internal.h instead of backupfile.h.  Do not include
21488         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
21489         renameat2.h and fcntl.h.
21490         (BACKUP_NOMEM): New constant.
21491         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
21492         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
21493         (backupfile_internal): Rename from find_backup_file_name.
21494         Support new arg RENAME.
21495         (backup_args, backup_types, get_version, xget_version):
21496         Move to lib/backup-find.c.
21497         * lib/backupfile.h (backup_file_rename): New decl.
21498         * modules/backupfile (Files): Add lib/backup-internal.h,
21499         lib/backup-find.c.
21500         (Depends-on): Add dirfd, fcntl, renameat2.
21501         (lib_SOURCES): Add backup-find.c.
21503         renameat2: port better to older Solaris
21504         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
21505         Add goto to use a label, to silence picky compilers.
21507         fts-tests: port to gcc -Wwrite-strings
21508         * tests/test-fts.c (base, base_d): New static vars.
21509         (argv, remove_tree, main): Use them.
21511 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21513         relocatable-lib{,-lgpl}: improve documentation
21514         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
21515         Various other updates.
21517 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
21518             Bruno Haible  <bruno@clisp.org>
21520         relocatable-lib{,-lgpl}: add Valgrind suppressions
21521         * lib/relocatable.valgrind: New file.
21522         * modules/relocatable-lib (Files): Add relocatable.valgrind.
21523         * modules/relocatable-lib-lgpl: Likewise.
21525 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21527         relocatable: Make the license on the sources the GPL.
21528         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
21529         LGPL, which was a special case so that the relocatable source files
21530         could be used without gnulib-tool, to GPL. They can still be used under
21531         the LGPL, using the --lgpl option to gnulib-tool.
21533 2017-07-30  Bruno Haible  <bruno@clisp.org>
21535         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
21536         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
21537         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
21538         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
21539         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
21541 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
21543         faccessat: document AT_SYMLINK_NOFOLLOW issue
21544         * doc/posix-functions/faccessat.texi: Modernize platform list.
21545         Document AT_SYMLINK_NOFOLLOW limitation.
21547         renameat2: port to Solaris 10
21548         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
21549         with AT_SYMLINK_NOFOLLOW (which is not portable).
21550         (renameat): Undef before using, to avoid endless recursion when
21551         the replacement renameat calls renameat2 which calls the
21552         replacement renameat.
21553         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
21554         * modules/renameat2 (Depends-on): Remove faccessat.
21555         * modules/renameat-tests (test_renameat_LDADD):
21556         * modules/renameat2-tests (test_renameat2_LDADD):
21557         Remove $(LIB_EACCESS).
21559         renameat2: new module
21560         Although the Linux syscall renameat2 is not in glibc (yet?), it is
21561         useful to have access to its RENAME_NOREPLACE flag.
21562         * MODULES.html.sh (func_all_modules): Add renameat2.
21563         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
21564         * modules/renameat2-tests, tests/test-renameat2.c: New files.
21565         * lib/renameat.c (renameat): Move most of the implementation
21566         to renameat2, and just call renameat2.
21567         * modules/renameat (Files): Remove lib/at-func2.c.
21568         (Depends-on): Depend only on renameat2.
21569         (Include): Remove <fcntl.h>.
21570         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
21571         since renameat (via renameat2) might use faccessat.
21573 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
21575         vc-list-files: Adjust the script to support git worktrees
21576         * build-aux/vc-list-files: Require existence, not directory.
21578 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21580         doc: bring MODULES.html.sh up to date
21581         Somehow a few months ago we stopped updating MODULES.html.sh.
21582         I don’t recall explicitly deciding this, so I updated it now.
21583         Alternatively I suppose we could remove it.
21584         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
21585         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
21586         truncate, utime, utime-h, windows-stat-inodes,
21587         windows-stat-override, windows-stat-timespec, year2038.  Sort.
21589 2017-07-26  Jim Meyering  <meyering@fb.com>
21591         fprintftime: fix build-break caused by recent renaming
21592         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
21593         "strftime.c".
21594         * modules/fprintftime: Depend directly on nstrftime.
21596 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21598         regex: work with GCC7's -Werror=implicit-fallthrough=
21599         * lib/regex_internal.h (FALLTHROUGH): New macro.
21600         * lib/regcomp.c (peek_token_bracket, parse_expression):
21601         * lib/regexec.c (check_node_accept): Use it.
21603 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21605         fts: simplify fts_build
21606         * lib/fts.c (fts_build): Simplify, and be lazier about
21607         calling leaf_optimization.
21609         fts: three levels of leaf optimization
21610         * lib/fts.c (enum leaf_optimization): New type with three values.
21611         (S_MAGIC_AFS): New macro.  Sort them.
21612         (leaf_optimization): Rename from leaf_optimization_applies, and
21613         return enum leaf_optimization instead of bool.  All uses changed.
21614         Add cases for unknown type and for AFS.
21615         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
21617         fts: cache dirent_inode_sort_may_be_useful too
21618         * lib/fts.c (struct dev_type): New struct.
21619         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
21620         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
21621         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
21622         Now takes FTSENT const *, not int.  All uses changed.  Use
21623         filesystem_type to cache.
21624         (link_count_optimize_ok): Remove.  Caller changed to use
21625         leaf_optimization_applies, which now uses shared cache.
21627         fts: introduce MIN_DIR_NLINK
21628         * lib/fts.c (MIN_DIR_NLINK): New constant.
21629         Use it instead of 2, whenever we are talking about link counts.
21631         fts: nlink_t signedness fixups
21632         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
21633         so that root need not be a special case later.
21634         (fts_read): Remove now-redundant test for fts_level.
21635         Do not assume that nlink_t is signed.
21636         (fts_build): Remove useless decrement of nlinks.
21637         (fts_stat): Avoid unlikely signed integer overflow later, if
21638         nlink_t is signed.
21640         fts-tests: new module
21641         * modules/fts-tests, tests/test-fts.c: New files.
21643 2017-07-23  Bruno Haible  <bruno@clisp.org>
21645         Rename module 'strftime' to 'nstrftime'.
21646         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
21647         * lib/nstrftime.c: Renamed from lib/strftime.c.
21648         * modules/nstrftime: Renamed from modules/strftime.
21649         (Files, Makefile.am): Update.
21650         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
21651         Fix comment.
21652         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
21653         (Files, Makefile.am): Update.
21654         * modules/strftime: New file, an obsolete indirection.
21655         * doc/posix-functions/strftime.texi: Update reference.
21656         * config/srclist.txt: Update info.
21657         * NEWS: Mention the change.
21659 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
21661         malloca: Silence a warning from clang's memory sanitizer.
21662         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
21663         (freea): Use it.
21665 2017-07-18  Bruno Haible  <bruno@clisp.org>
21667         host-cpu-c-abi: Fix detection of MIPS ABI.
21668         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
21669         ABI, not the CPU instruction set.
21671 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21673         explicit_bzero: new module
21674         The explicit_bzero function has been added to glibc.
21675         This module is intended to supports its use in GNU programs.
21676         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
21677         * m4/explicit_bzero.m4, modules/explicit_bzero:
21678         New files.
21679         * doc/gnulib.texi (Glibc string.h): Link to new doc.
21680         * lib/string.in.h (explicit_bzero): Declare.
21681         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
21682         * modules/string (string.h): Substitute its vars.
21684 2017-07-16  Bruno Haible  <bruno@clisp.org>
21686         threadlib: Support static linking.
21687         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
21688         set gl_cv_have_weak to 'no'.
21690 2017-07-16  Bruno Haible  <bruno@clisp.org>
21692         unicase/locale-language: Fix link dependencies.
21693         * modules/unicase/locale-language (Link): New section.
21694         * modules/unicase/locale-language-tests (Makefile.am): Link
21695         test-locale-language program with $(LIBTHREAD).
21697 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21699         sys_socket: Add support for OpenVMS.
21700         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
21701         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
21703 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21705         sys_resource: Add support for OpenVMS.
21706         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
21707         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
21709 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21710             Bruno Haible  <bruno@clisp.org>
21712         math: Add support for OpenVMS.
21713         * lib/math.in.h [__VMS]: Include <fp.h>.
21714         * doc/posix-headers/math.texi: Mention OpenVMS issues.
21716 2017-07-15  Bruno Haible  <bruno@clisp.org>
21718         getdtablesize: Add minimal support for OpenVMS.
21719         Reported by John E. Malmberg <wb8tyw@qsl.net>.
21720         * modules/getdtablesize (Description): Fix.
21721         * lib/getdtablesize.c: Fix comment.
21722         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
21723         getdtablesize() function, even though the test fails.
21724         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
21725         limitation on OpenVMS.
21727 2017-07-13  Bruno Haible  <bruno@clisp.org>
21729         Revisit cross-compilation guesses.
21730         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
21732 2017-07-13  Bruno Haible  <bruno@clisp.org>
21734         Improve cross-compilation guesses for native Windows.
21735         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
21736         Windows.
21737         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
21738         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
21739         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
21740         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
21741         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
21742         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
21743         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
21744         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21745         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21746         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
21747         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21748         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
21749         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
21750         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
21751         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
21752         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21753         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
21754         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
21755         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
21756         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
21757         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
21758         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21759         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
21760         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
21761         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
21762         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
21763         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
21764         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21765         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21766         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
21767         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21768         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
21769         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
21770         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
21771         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
21772         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
21773         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
21774         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21775         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
21776         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21777         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21778         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21779         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
21780         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
21781         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
21782         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
21783         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
21784         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
21785         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
21786         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
21787         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
21788         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
21789         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
21790         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
21791         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
21792         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
21793         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
21794         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
21795         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
21796         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
21797         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
21798         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
21799         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
21800         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
21801         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
21802         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21803         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
21804         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
21805         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
21806         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
21807         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
21808         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
21809         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21810         * m4/regex.m4 (gl_REGEX): Likewise.
21811         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
21812         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
21813         gl_FUNC_REMAINDERF_WORKS): Likewise.
21814         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
21815         gl_FUNC_REMAINDERL_WORKS): Likewise.
21816         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21817         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21818         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21819         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
21820         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21821         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
21822         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21823         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
21824         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
21825         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21826         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
21827         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
21828         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21829         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21830         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
21831         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21832         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21833         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21834         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21835         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
21836         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
21837         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21838         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21839         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21840         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
21841         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21842         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21843         Likewise.
21844         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21845         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
21846         Windows. Enable also on Autoconf 2.70.
21847         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21848         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21849         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21850         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
21851         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21852         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
21853         for native Windows.
21854         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21855         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
21857 2017-07-13  Bruno Haible  <bruno@clisp.org>
21859         Improve cross-compilation guesses for native Windows.
21860         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
21861         Windows.
21862         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
21863         memchr.m4.
21864         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
21866 2017-07-13  Bruno Haible  <bruno@clisp.org>
21868         Improve cross-compilation guesses for native Windows.
21869         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
21870         native Windows.
21871         (gl_FUNC_FFLUSH): Update accordingly.
21872         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
21873         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
21875 2017-07-11  Bruno Haible  <bruno@clisp.org>
21877         More systematic m4 quoting and indentation.
21878         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
21879         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21880         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
21881         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21882         * m4/host-os.m4 (gl_HOST_OS): Likewise.
21883         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
21884         gl_WINSIZE_IN_PTEM): Likewise.
21885         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
21886         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
21887         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
21888         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
21889         Correct indentation.
21890         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
21891         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21892         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
21893         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21894         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
21895         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21897 2017-07-10  Bruno Haible  <bruno@clisp.org>
21899         round, roundf: Avoid compiler warning in configure test.
21900         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
21901         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21903 2017-07-10  Bruno Haible  <bruno@clisp.org>
21905         getlogin tests: Avoid #ifdefs when sharing code between modules.
21906         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
21907         * modules/getlogin-tests (Files): Likewise. Remove
21908         tests/test-getlogin_r.c.
21909         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
21910         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
21911         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
21912         getlogin().
21914 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21916         getlogin: don’t assume one name per uid
21917         Problem reported by Wolfgang F. Muthmann (Bug#27640).
21918         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
21919         (ttyname): Remove test.
21920         * modules/getlogin_r-tests (ttyname): Remove test.
21921         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
21922         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
21923         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
21924         getlogin rather than getlogin_r.  This avoids code duplication.
21925         (main): Use isatty and fstat rather than ttyname and stat.
21926         Use getpwnam instead of getpwuid, to be portable to test platforms
21927         that have multiple login names for the same uid.
21929 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
21930             Bruno Haible  <bruno@clisp.org>
21932         glob: Fix more memory leaks.
21933         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
21934         returning.
21935         Reported by Tim Rühsen.
21937 2017-07-10  Bruno Haible  <bruno@clisp.org>
21939         Make sure $host and $host_os are defined when used.
21940         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
21941         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
21942         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
21943         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21944         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21945         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
21946         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
21947         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
21948         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21949         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
21950         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
21951         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
21952         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
21953         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
21954         m4_ifdef block.
21956 2017-07-09  Bruno Haible  <bruno@clisp.org>
21958         *printf: Fix cross-compilation guess for Solaris.
21959         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
21960         2010-12-21.
21962 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
21963             Bruno Haible  <bruno@clisp.org>
21965         vasnprintf: port to macOS 10.13
21966         Problem reported by comex in:
21967         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
21968         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
21970 2017-07-06  Bruno Haible  <bruno@clisp.org>
21972         imaxdiv tests: Fix logic.
21973         * tests/test-imaxdiv.c (main): Use == instead of =.
21974         Reported by Coverity.
21976 2017-07-06  Bruno Haible  <bruno@clisp.org>
21978         uninorm/filter: Fix use-after-free bug.
21979         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
21980         sortbuf == filter->sortbuf invariant.
21981         Reported by Coverity.
21983 2017-07-06  Bruno Haible  <bruno@clisp.org>
21985         glob: Fix more memory leaks.
21986         * lib/glob.c (glob): Free dirname before returning.
21987         Reported by Coverity and Tim Rühsen.
21989 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21991         parse-datetime: fix uninit var bug
21992         Reported by Bruno Haible in:
21993         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
21994         * lib/parse-datetime.y (parse_datetime2): Do not use
21995         uninitialized.
21997 2017-07-05  Bruno Haible  <bruno@clisp.org>
21999         doc: Update for MSVC 14.
22000         * doc/posix-headers/*.texi: Add info about MSVC 14.
22001         * doc/posix-functions/*.texi: Likewise.
22002         * doc/pastposix-functions/*.texi: Likewise.
22003         * doc/glibc-headers/*.texi: Likewise.
22004         * doc/glibc-functions/*.texi: Likewise.
22006 2017-07-05  Bruno Haible  <bruno@clisp.org>
22008         sched: Fix build failure on native Windows (regression from 2017-06-19).
22009         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
22011 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
22013         stdioext: Port to OpenVMS.
22014         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
22015         * lib/fpending.c (fpending): Remove non-working VMS specific code.
22016         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
22017         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
22018         * lib/fpurge.c (fpurge): Likewise.
22019         * lib/freadable.c (freadable): Likewise.
22020         * lib/freadahead.c (freadahead): Likewise.
22021         * lib/freading.c (freading): Likewise.
22022         * lib/freadptr.c (freadptr): Likewise.
22023         * lib/freadseek.c (freadseek): Likewise.
22024         * lib/fseeko.c (fseeko): Likewise.
22025         * lib/fseterr.c (fseterr): Likewise.
22026         * lib/fwritable.c (fwriteable): Likewise.
22027         * lib/fwriting.c (fwriting): Likewise.
22029 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
22031         glob: Declare variables at the very start of their scope.
22032         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
22033         its separate scope, so the functions will compile on Haiku.
22035 2017-07-01  Bruno Haible  <bruno@clisp.org>
22037         logbl: Work around a glibc bug on PowerPC64LE.
22038         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
22039         numbers.
22040         * doc/posix-functions/logbl.texi: Update.
22042 2017-06-29  Bruno Haible  <bruno@clisp.org>
22044         stat, fstat: Compile stat-w32.c only on platforms that need it.
22045         Suggested by Paul Eggert.
22046         * modules/stat (configure.ac): Request stat-w32.o only on native
22047         Windows.
22048         * modules/fstat (configure.ac): Likewise.
22050 2017-06-25  Bruno Haible  <bruno@clisp.org>
22052         stat: Improve last change.
22053         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
22055 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
22057         stat: port to xlc 12.01
22058         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
22059         12.01 complains "Compilation unit is empty."
22061 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
22063         xalloc-oversized: port to icc
22064         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
22065         __builtin_mul_overflow if ICC is defined, as this results in
22066         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
22067         20170213.
22069 2017-06-19  Bruno Haible  <bruno@clisp.org>
22071         classpath: Avoid including config.h twice, as it produces warnings.
22072         Reported by John E. Malmberg <wb8tyw@gmail.com>.
22073         * lib/classpath.h: Conditionalize the include of config.h.
22075 2017-06-19  Bruno Haible  <bruno@clisp.org>
22076             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
22078         sched: Fix compilation failure on OpenVMS.
22079         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
22080         test whether <pthread.h> exists and defines struct sched_param.
22081         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
22083 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22085         diffseq: port to GCC 7 with --enable-gcc-warnings
22086         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
22087         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
22088         not complain about big_snake being defined but not used.
22090 2017-06-15  Bruno Haible  <bruno@clisp.org>
22092         gettext-h: Update theoretical condition for use of variable size arrays.
22093         Reported by Paul Eggert.
22094         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
22095         to include the theoretical condition for availability of variable size
22096         arrays, if we could trust the value of __STDC_VERSION__.
22098 2017-06-12  Bruno Haible  <bruno@clisp.org>
22100         Relicense some modules under LGPLv2+.
22101         Daiki Ueno's approval is in
22102         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
22103         * modules/uniwidth/base (License): Change to LGPLv2+.
22104         * modules/uniwidth/width (License): Likewise.
22106 2017-06-11  Bruno Haible  <bruno@clisp.org>
22108         localename: Fix test failure on DragonFly BSD.
22109         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
22110         like FreeBSD.
22112 2017-06-11  Bruno Haible  <bruno@clisp.org>
22114         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
22115         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
22116         * lib/float.in.h: Likewise.
22117         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
22119 2017-06-11  Bruno Haible  <bruno@clisp.org>
22121         gnulib-tool: Clean up after autotools.
22122         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
22123         useless directory left over by the Autotools.
22125 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
22127         getopt-posix: port to glibc 2.25.90
22128         Problem reported by Daniel P. Berrange in:
22129         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
22130         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
22131         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
22132         #undef if __GETOPT_PREFIX is defined.
22134 2017-06-11  Bruno Haible  <bruno@clisp.org>
22136         strtod-obsolete: Fix license.
22137         * modules/strtod-obsolete (License): Change to LGPL.
22139 2017-06-10  Jim Meyering  <meyering@fb.com>
22141         maint: update to work with GCC7's -Werror=implicit-fallthrough=
22142         * lib/savewd.c (FALLTHROUGH): Define.
22143         (savewd_save, savewd_restore): Use this, rather than a comment,
22144         whenever one switch case falls through into the next.
22146 2017-06-08  Bruno Haible  <bruno@clisp.org>
22148         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
22149         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
22150         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
22151         case.
22153 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
22155         doc: remove robots, add prereqs
22156         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
22157         builds.  Simon's robot site does not seem to be up, so remove
22158         mentions of it for now.
22160 2017-06-08  Bruno Haible  <bruno@clisp.org>
22162         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
22163         * gnulib-tool (func_symlink_target): New function, extracted from
22164         func_symlink.
22165         (func_symlink, func_symlink_if_changed): Use it.
22167 2017-06-08  Bruno Haible  <bruno@clisp.org>
22169         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
22170         * gnulib-tool (func_ln_s): Determine cp_src correctly.
22172 2017-06-07  Bruno Haible  <bruno@clisp.org>
22174         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
22175         Reported by John E. Malmberg <wb8tyw@gmail.com> in
22176         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
22177         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
22178         override, pass 2 arguments to getcwd, not 3.
22180 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
22182         same-inode: port better to VMS 8.2 and later
22183         Problem reported by John E. Malmberg in:
22184         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
22185         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
22186         Use the usual POSIX definition.
22187         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
22189 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22191         error: fix POSIX violation for va_end
22192         Problem reported by Bruno Haible in:
22193         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
22194         * lib/error.c (error_tail): Do not call va_end here.
22195         (error, error_at_line): Call it here instead.
22197 2017-05-28  Bruno Haible  <bruno@clisp.org>
22199         c-strtod: Make it usable in C++ mode.
22200         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
22202 2017-05-25  Jim Meyering  <meyering@fb.com>
22204         quotearg: fix compilation failure due to FALLTHROUGH misuse
22205         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
22206         macro back to /* fall through */ comment.  The macro can apply only
22207         to a following case statement.  Reported by Assaf Gordon.
22209 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
22211         intprops: port to recent icc
22212         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
22213         but does not support __builtin_add_overflow etc.
22214         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
22215         Define to 0.
22217 2017-05-23  Karl Berry  <karl@freefriends.org>
22219         * config/srclist.txt (iconv.m4): sync broken, comment out
22220         until (hopefully) the next gettext release.
22222 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
22224         Remove repeated words in comments.
22226 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
22228         fallthrough: reinstate a FALLTHROUGH instance in quotearg
22229         quotearg.c: Reinstate this instance which is significant
22230         when the if branch is not taken.
22232 2017-05-21  Bruno Haible  <bruno@clisp.org>
22234         gnulib-tool: Add options to create hard links.
22235         * gnulib-tool (func_usage): Document options --hardlink,
22236         --local-hardlink, --more-hardlinks.
22237         (func_symlink): Renamed from func_ln.
22238         (func_symlink_if_changed): Renamed from func_ln_if_changed.
22239         (func_hardlink): New function.
22240         (copymode, lcopymode): New variables.
22241         (symbolic, lsymbolic): Remove variables.
22242         (Options): Implement options --hardlink, --local-hardlink,
22243         --more-hardlinks.
22244         (func_should_link): Renamed from func_should_symlink. Set copyaction.
22245         (func_add_file, func_update_file): Update invocation of
22246         func_should_link. Invoke func_hardlink when appropriate.
22247         (func_import): Update comments.
22248         (func_create_testdir): Update invocation of func_should_link. Invoke
22249         func_hardlink when appropriate.
22250         Finally, invoke 'git update-index --refresh' to mitigate the effects of
22251         the hard links on git.
22253 2017-05-20  Bruno Haible  <bruno@clisp.org>
22255         argp: Simplify bit manipulation.
22256         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
22257         on a signed integer type.
22259 2017-05-20  Bruno Haible  <bruno@clisp.org>
22261         Avoid wrong configure results with gcc -fsanitize=address.
22262         This completes the work done on 2016-02-06 on this topic.
22263         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
22264         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22265         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22266         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22267         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
22268         returning.
22269         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
22270         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
22271         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22272         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22273         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22274         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
22275         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
22276         free allocated memory before returning.
22277         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22278         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
22279         objects before returning.
22280         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
22281         returning.
22283 2017-05-20  Bruno Haible  <bruno@clisp.org>
22285         gnulib-tool: Don't create hard links between gnulib and its testdirs.
22286         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
22288 2017-05-20  Bruno Haible  <bruno@clisp.org>
22290         argp, tsearch tests: Fix file list.
22291         * modules/argp-tests (Files): Add tests/macros.h.
22292         * modules/tsearch-tests (Files): Likewise.
22294 2017-05-20  Bruno Haible  <bruno@clisp.org>
22296         getopt-posix tests: Remove redundant include.
22297         * tests/test-getopt.h: Don't include "macros.h". It's already included
22298         by tests/test-getopt-main.h.
22300 2017-05-19  Jim Meyering  <meyering@fb.com>
22302         dfa: two small simplifications
22303         * lib/dfa.c (build_state): Avoid repeating longer expressions.
22305 2017-05-18  Jim Meyering  <meyering@fb.com>
22307         fallthrough: update for GCC 7/8
22308         * lib/quotearg.c (FALLTHROUGH): New macro.
22309         Use it whenever one switch case falls through into the next,
22310         replacing "/* Fall through */" comments.  This exposed one
22311         instance of an unwarranted "fall through" comment: unwarranted
22312         because it preceded a "goto" label not a case statement.
22313         * lib/freopen-safer.c (freopen_safer): Likewise.
22314         * lib/fts.c (leaf_optimization_applies): Likewise.
22315         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22316         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
22317         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
22318         tests/macros.h for the definition.
22319         * tests/test-argp.c (group1_parser): Likewise.
22320         * tests/test-getopt.h (getopt_loop): Likewise.
22322 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22324         argp: fix shift bug
22325         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
22326         behavior on shift overflow, caught by gcc -fsanitize=undefined.
22328         argp: fix pointer-subtraction bug
22329         * lib/argp-help.c (hol_append): Don’t subtract pointers to
22330         different arrays, as this can run afoul of -fcheck-pointer-bounds.
22331         See the thread containing Bruno Haible’s report in:
22332         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
22334 2017-05-19  Bruno Haible  <bruno@clisp.org>
22336         printf-posix tests: Avoid test failure with "gcc --coverage".
22337         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22338         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
22339         than 5000000.
22340         * tests/test-fprintf-posix2.c (main): Likewise.
22342 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22344         closeout: don’t close stderr when sanitizing
22345         * NEWS: Document this.
22346         * lib/closeout.c (__has_feature): New macro, if not already defined.
22347         (SANITIZE_ADDRESS): New constant.
22348         (close_stdout): Don’t close stderr if sanitizing addresses.
22350 2017-05-19  Bruno Haible  <bruno@clisp.org>
22352         get-rusage-data tests: Avoid failure on Linux/glibc.
22353         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
22354         on glibc systems.
22356 2017-05-18  Bruno Haible  <bruno@clisp.org>
22358         localename: Include necessary header files on Cygwin.
22359         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
22360         where NL_LOCALE_NAME is defined.
22362 2017-05-18  Bruno Haible  <bruno@clisp.org>
22364         gettext: Update macros from gettext git.
22365         * m4/intldir.m4: Require Autoconf >= 2.60.
22366         * m4/progtest.m4: Fix typos in copyright notice.
22368 2017-05-18  Bruno Haible  <bruno@clisp.org>
22370         copy-file tests: Fix link error (regression from 2017-05-01).
22371         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22372         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
22373         $(LIB_CLOCK_GETTIME).
22375 2017-05-18  Bruno Haible  <bruno@clisp.org>
22377         unicase/special-casing: Fix incompatibility with gperf-3.0.4
22378         (regression from 2017-02-13).
22379         * lib/unicase/special-casing.in.h: Renamed from
22380         lib/unicase/special-casing.h.
22381         * modules/unicase/special-casing (Files): Add
22382         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
22383         (Makefile.am): Add rule for generating unicase/special-casing.h.
22384         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
22385         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
22386         not "special-casing.h".
22387         * lib/unicase/u*.c: Likewise.
22389 2017-05-17  Bruno Haible  <bruno@clisp.org>
22391         README: Don't ask people to read a TeXinfo file.
22392         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22393         * README: Tell people how to read the HTML formatted manual.
22395 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
22397         parse-datetime: Fix memleak
22398         * lib/parse-datetime.y (parse_datetime2): Cleanup on
22399         localtime_rz() failure.
22401 2017-05-16  Bruno Haible  <bruno@clisp.org>
22403         javacomp: Fix handle leak.
22404         Found by Coverity.
22405         * lib/javacomp.c (get_classfile_version): Close fd before returning.
22407 2017-05-16  Bruno Haible  <bruno@clisp.org>
22409         relocate: Make it easier to reclaim allocated memory.
22410         * lib/relocatable.h (relocate2): New declaration/macro.
22411         * lib/relocatable.c (relocate2): New function.
22412         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
22413         relocate2 function.
22414         * lib/localcharset.c (relocate2): Define fallback.
22415         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
22416         allocated memory.
22417         * lib/javaversion.c (relocate2): Define fallback.
22418         (javaexec_version): Invoke relocate2 instead of relocate. Free the
22419         allocated memory.
22421 2017-05-16  Bruno Haible  <bruno@clisp.org>
22423         relocate: Simplify EMX specific code.
22424         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
22425         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
22427 2017-05-16  Bruno Haible  <bruno@clisp.org>
22429         sigpipe tests: Fix file list.
22430         * modules/sigpipe-tests (Files): Add tests/macros.h.
22432 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22434         manywarnings: update for GCC 7
22435         * build-aux/gcc-warning.spec:
22436         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
22437         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
22438         requires a non-comment fallthrough attribute.  This is a bit
22439         cleaner than the comment versions.
22440         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
22441         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
22442         Use it whenever one switch case falls through into the next.
22443         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
22444         Use FALLTHROUGH macro.
22446 2017-05-15  Bruno Haible  <bruno@clisp.org>
22448         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
22449         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
22450         @ALLOCA@, not @LTALLOCA@.
22452 2017-05-15  Bruno Haible  <bruno@clisp.org>
22454         sys_select: Avoid "was expanded before it was required" warning.
22455         * modules/sys_select (configure.ac): Require, not invoke,
22456         gl_HEADER_SYS_SELECT.
22458 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22460         gnulib-tool: improve GNU Make debugging
22461         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
22462         Report autoconf diagnostics when it fails, in the output makefile.
22464 2017-05-14  Bruno Haible  <bruno@clisp.org>
22466         stat-time tests: Improve comment.
22467         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
22469 2017-05-14  Bruno Haible  <bruno@clisp.org>
22471         same-inode: Adapt for windows-stat-inodes.
22472         * lib/same-inode.h: Include <sys/types.h>.
22473         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
22474         * modules/same-inode (Depends-on): Add sys_types.
22476 2017-05-14  Bruno Haible  <bruno@clisp.org>
22478         windows-stat-inodes: New module.
22479         * m4/windows-stat-inodes.m4: New file.
22480         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
22481         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
22482         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
22483         (_GL_WINDOWS_STAT_INODES): New macro.
22484         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
22485         (GetFileInformationByHandleExFunc): New variable.
22486         (initialize): Initialize it.
22487         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
22488         st_ino appropriately.
22489         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
22490         a fallback, because it does not provide st_dev and st_ino values.
22491         * modules/fstat (Depends-on): Add 'verify'.
22492         * modules/windows-stat-inodes: New file.
22493         * doc/windows-stat-inodes.texi: New file.
22494         * doc/gnulib.texi: Include it.
22495         * doc/posix-headers/sys_stat.texi: Mention the new module.
22497 2017-05-14  Bruno Haible  <bruno@clisp.org>
22499         stat-time tests: Workaround for native Windows.
22500         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
22501         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
22502         New variables.
22503         (initialize_filenames): New function.
22504         (main): Invoke it.
22505         (cleanup, prepare_test): Update.
22507 2017-05-14  Bruno Haible  <bruno@clisp.org>
22509         stat-time: Adapt for windows-stat-timespec.
22510         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
22511         entire st_ctim field.
22513 2017-05-13  Jim Meyering  <meyering@fb.com>
22515         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
22516         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
22517         file that uses the assume macro, claiming that verify.h is unused.
22519 2017-05-13  Bruno Haible  <bruno@clisp.org>
22521         Use symbolic values for _WIN32_WINNT.
22522         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
22523         * lib/sethostname.c (_WIN32_WINNT): Likewise.
22525 2017-05-13  Bruno Haible  <bruno@clisp.org>
22527         year2038: New module.
22528         * m4/year2038.m4: New file.
22529         * modules/year2038: New file.
22530         * doc/year2038.texi: New file.
22531         * doc/gnulib.texi: Include it.
22533 2017-05-13  Bruno Haible  <bruno@clisp.org>
22535         largefile: Simplify.
22536         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
22537         of _GL_WINDOWS_64_BIT_ST_SIZE.
22539 2017-05-13  Bruno Haible  <bruno@clisp.org>
22541         largefile: Improve and document.
22542         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
22543         the mingw headers already define 'stat' appropriately.
22544         * modules/largefile (Description): Clarify.
22545         * doc/largefile.texi: New file.
22546         * doc/gnulib.texi: Include it.
22547         * doc/posix-headers/sys_types.texi: Update.
22549 2017-05-13  Bruno Haible  <bruno@clisp.org>
22551         truncate: New module.
22552         * lib/unistd.in.h (truncate): New declaration.
22553         * lib/truncate.c: New file.
22554         * m4/truncate.m4: New file.
22555         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
22556         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
22557         REPLACE_TRUNCATE.
22558         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
22559         HAVE_TRUNCATE, REPLACE_TRUNCATE.
22560         * modules/truncate: New file.
22561         * tests/test-unistd-c++.cc (truncate): Test signature.
22562         * doc/posix-functions/truncate.texi: Mention the new module.
22564         * tests/test-truncate.c: New file.
22565         * modules/truncate-tests: New file.
22567 2017-05-13  Bruno Haible  <bruno@clisp.org>
22569         windows-stat-timespec: New module.
22570         * modules/windows-stat-timespec: New file.
22571         * m4/windows-stat-timespec.m4: New file.
22572         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
22573         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
22574         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
22575         fields st_atim, st_mtim, st_ctim.
22576         (st_atime, st_mtime, st_ctime): Define as macros.
22577         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
22578         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
22579         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
22580         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
22581         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
22582         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
22583         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22584         FILETIME to 'struct timespec', not 'time_t'.
22585         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22586         FILETIME to 'struct timespec', not 'time_t'.
22587         * lib/stat-time.h (STAT_TIMESPEC): Define also if
22588         _GL_WINDOWS_STAT_TIMESPEC.
22589         * doc/windows-stat-timespec.texi: New file.
22590         * doc/gnulib.texi: Include it.
22592 2017-05-13  Bruno Haible  <bruno@clisp.org>
22594         windows-stat-override: New module.
22595         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
22596         definition. Define GNULIB_defined_struct_stat.
22597         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
22598         link error if this symbol is used and the corresponding module is not
22599         in use.
22600         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
22601         GNULIB_OVERRIDES_STRUCT_STAT.
22602         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
22603         GNULIB_OVERRIDES_STRUCT_STAT.
22604         * modules/sys_stat (Makefile.am): Substitute
22605         GNULIB_OVERRIDES_STRUCT_STAT.
22606         * modules/windows-stat-override: New file.
22608 2017-05-13  Bruno Haible  <bruno@clisp.org>
22610         fstat: Fix module dependency conditions.
22611         * modules/fstat (Depends-on): Fix typo.
22613 2017-05-13  Bruno Haible  <bruno@clisp.org>
22615         stat, fstat: Complete removal of old native Windows code.
22616         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
22617         * lib/fstat.c: Likewise.
22618         * lib/stat-w32.c: Likewise.
22620 2017-05-13  Bruno Haible  <bruno@clisp.org>
22622         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
22623         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
22625 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
22627         getopt-posix: port to mingw
22628         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
22629         Problem reported by Daniel P. Berrage in:
22630         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
22632 2017-05-11  Bruno Haible  <bruno@clisp.org>
22634         gettimeofday: Increase precision on mingw.
22635         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
22636         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
22637         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
22638         GetSystemTimePreciseAsFileTime based implementation always.
22639         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
22640         mingw.
22642 2017-05-11  Bruno Haible  <bruno@clisp.org>
22644         poll: Fix confusion between SOCKETs and FDs on native Windows.
22645         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
22646         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
22648 2017-05-11  Bruno Haible  <bruno@clisp.org>
22650         doc: Clarify doc about socket functions on native Windows.
22651         This reworks doc that was added on 2008-09-29.
22652         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
22653         clearer wording.
22654         * doc/posix-functions/accept.texi: Use clearer wording.
22655         * doc/posix-functions/bind.texi: Likewise.
22656         * doc/posix-functions/connect.texi: Likewise.
22657         * doc/posix-functions/getpeername.texi: Likewise.
22658         * doc/posix-functions/getsockname.texi: Likewise.
22659         * doc/posix-functions/getsockopt.texi: Likewise.
22660         * doc/posix-functions/ioctl.texi: Likewise.
22661         * doc/posix-functions/listen.texi: Likewise.
22662         * doc/posix-functions/recv.texi: Likewise.
22663         * doc/posix-functions/recvfrom.texi: Likewise.
22664         * doc/posix-functions/send.texi: Likewise.
22665         * doc/posix-functions/sendto.texi: Likewise.
22666         * doc/posix-functions/setsockopt.texi: Likewise.
22667         * doc/posix-functions/shutdown.texi: Likewise.
22668         * doc/posix-functions/socket.texi: Likewise.
22670 2017-05-10  Bruno Haible  <bruno@clisp.org>
22672         poll: Fix link error on native Windows.
22673         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
22675 2017-05-10  Bruno Haible  <bruno@clisp.org>
22677         time: Fix missing initialization of HAVE_TIMEZONE_T.
22678         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
22679         here...
22680         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
22681         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
22682         gl_HEADER_SYS_TIME_H_DEFAULTS.
22683         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
22684         (configure.ac): Remove useless quoting.
22686 2017-05-10  Bruno Haible  <bruno@clisp.org>
22688         Implement a way to opt out from MSVC support, part 2.
22689         * modules/msvc-inval (Include): Document recommended idiom.
22690         * modules/msvc-nothrow (Include): Likewise.
22692         Implement a way to opt out from MSVC support.
22693         This is useful for Emacs.
22694         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
22695         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
22696         * lib/error.c: Likewise.
22697         * lib/fcntl.c: Likewise.
22698         * lib/flock.c: Likewise.
22699         * lib/fstat.c: Likewise.
22700         * lib/fsync.c: Likewise.
22701         * lib/ioctl.c: Likewise.
22702         * lib/isapipe.c: Likewise.
22703         * lib/lseek.c: Likewise.
22704         * lib/nonblocking.c: Likewise.
22705         * lib/poll.c: Likewise.
22706         * lib/select.c: Likewise.
22707         * lib/sockets.h: Likewise.
22708         * lib/sockets.c: Likewise.
22709         * lib/stdio-read.c: Likewise.
22710         * lib/stdio-write.c: Likewise.
22711         * lib/utimens.c: Likewise.
22712         * lib/w32sock.h: Likewise.
22713         * lib/w32spawn.h: Likewise.
22714         * tests/test-cloexec.c: Likewise.
22715         * tests/test-dup-safer.c: Likewise.
22716         * tests/test-dup2.c: Likewise.
22717         * tests/test-dup3.c: Likewise.
22718         * tests/test-fcntl.c: Likewise.
22719         * tests/test-pipe.c: Likewise.
22720         * tests/test-pipe2.c: Likewise.
22721         * lib/ftruncate.c: Likewise.
22722         (chsize_nothrow): Renamed from chsize.
22723         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
22724         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22725         * lib/close.c: Likewise.
22726         * lib/dup.c: Likewise.
22727         * lib/fclose.c: Likewise.
22728         * lib/raise.c: Likewise.
22729         * tests/test-fgetc.c: Likewise.
22730         * tests/test-fputc.c: Likewise.
22731         * tests/test-fread.c: Likewise.
22732         * tests/test-fwrite.c: Likewise.
22733         * lib/getdtablesize.c: Likewise.
22734         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
22735         * lib/isatty.c: Don't include msvc-inval.h if
22736         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22737         Include <io.h> as an alternative to msvc-nothrow.h.
22738         * lib/read.c: Likewise.
22739         * lib/write.c: Likewise.
22740         * lib/dup2.c: Likewise.
22741         (dup2_nothrow): New function.
22742         (ms_windows_dup2): Use it.
22743         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
22744         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
22745         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
22746         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
22747         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
22748         * m4/read.m4 (gl_FUNC_READ): Likewise.
22749         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
22750         * doc/windows-without-msvc.texi: New file.
22751         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
22752         section.
22754 2017-05-10  Bruno Haible  <bruno@clisp.org>
22756         wait-process: Adjust native Windows support.
22757         * lib/wait-process.c: Use the usual condition for recognizing a native
22758         Windows platform.
22760 2017-05-10  Bruno Haible  <bruno@clisp.org>
22762         doc: New chapter "Native Windows Support".
22763         * doc/gnulib.texi (Native Windows Support): New chapter.
22764         * doc/windows-libtool.texi: Small wording changes.
22765         * doc/windows-sockets.texi: Small wording and formatting changes.
22767 2017-05-10  Bruno Haible  <bruno@clisp.org>
22769         doc: Move section "Library version handling".
22770         * doc/gnulib.texi: Move section "Library version handling"
22771         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
22773 2017-05-10  Bruno Haible  <bruno@clisp.org>
22775         doc: Move section "Running self-tests under valgrind".
22776         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
22777         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
22779 2017-05-10  Bruno Haible  <bruno@clisp.org>
22781         doc: New chapter "Build Infrastructure Modules".
22782         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
22784 2017-05-10  Bruno Haible  <bruno@clisp.org>
22786         Prepare for reordering sections in the manual.
22787         * doc/gnulib.texi: Move several sections to separate files. Include
22788         these files.
22789         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
22790         * doc/obsolete.texi: Likewise.
22791         * doc/extra-tests.texi: Likewise.
22792         * doc/transversal.texi: Likewise.
22793         * doc/namespace.texi: Likewise.
22794         * doc/check-version.texi: Likewise.
22795         * doc/windows-sockets.texi: Likewise.
22796         * doc/windows-libtool.texi: Likewise.
22797         * doc/licenses-texi.texi: Likewise.
22798         * doc/build-automation.texi: Likewise.
22799         * doc/c-locale.texi: Likewise.
22801 2017-05-10  Bruno Haible  <bruno@clisp.org>
22803         Fix instructions how to update manual on www.gnu.org.
22804         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
22806 2017-05-09  Bruno Haible  <bruno@clisp.org>
22808         tzset: Expand comment about TZ problem on native Windows.
22809         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
22810         Paul Eggert.
22811         * lib/ctime.c (rpl_ctime): Likewise.
22812         * lib/localtime.c (rpl_localtime): Likewise.
22813         * lib/mktime.c (mktime): Likewise.
22814         * lib/strftime-fixes.c (rpl_strftime): Likewise.
22815         * lib/wcsftime.c (rpl_wcsftime): Likewise.
22817 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
22819         intprops: don’t depend on ‘verify’
22820         Problem reported by Ævar Arnfjörð Bjarmason in:
22821         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
22822         * lib/intprops.h: Do not include verify.h, and move compile-time
22823         checks from here ...
22824         * tests/test-intprops.c (main): ... to here, if they’re not here
22825         already.  Check widths of other standard integer types.
22826         * modules/intprops (Depends-on): Remove ‘verify’.
22828 2017-05-07  Bruno Haible  <bruno@clisp.org>
22830         utimens: On native Windows, support 100ns resolution also if fd < 0.
22831         * lib/utime.in.h: Include <time.h>.
22832         (_gl_utimens_windows): New declaration.
22833         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
22834         (utime): Invoke it.
22835         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
22836         instead of utime.
22837         * modules/utime (Depends-on): Add 'time'.
22839 2017-05-07  Bruno Haible  <bruno@clisp.org>
22841         utimens: Improve error code on native Windows.
22842         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
22843         error code EACCES, not EINVAL.
22845 2017-05-07  Bruno Haible  <bruno@clisp.org>
22847         utime: Handle more Windows error codes.
22848         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
22849         Based on explanations by Billy O'Neal.
22851 2017-05-05  Bruno Haible  <bruno@clisp.org>
22853         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
22854         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
22855         union.
22856         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
22857         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
22858         value of cipher->IV.
22860 2017-05-05  Bruno Haible  <bruno@clisp.org>
22862         wctype-h-c++-tests: Update.
22863         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
22865 2017-05-05  Bruno Haible  <bruno@clisp.org>
22867         wchar-c++-tests: Update.
22868         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
22870 2017-05-05  Bruno Haible  <bruno@clisp.org>
22872         utime-h-c++-tests: New module.
22873         * tests/test-utime-h-c++.cc: New file.
22874         (utime): Declare, missing since 2017-04-30.
22875         * modules/utime-h-c++-tests: New file.
22877 2017-05-05  Bruno Haible  <bruno@clisp.org>
22879         unistd-c++-tests: Update.
22880         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
22881         (read): Declare, missing since 2011-04-15.
22882         (sethostname): Declare, missing since 2011-12-03.
22884 2017-05-05  Bruno Haible  <bruno@clisp.org>
22886         time-c++-tests: Update.
22887         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
22888         (localtime, gmtime): Declare, missing since 2017-04-30.
22889         (ctime): Declare, missing since 2017-04-30.
22890         (strftime): Declare, missing since 2017-04-30.
22891         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
22892         2015-07-24.
22894 2017-05-05  Bruno Haible  <bruno@clisp.org>
22896         sys_resource-c++-tests: New module.
22897         * tests/test-sys_resource-c++.cc: New file.
22898         (getrusage): Declare, missing since 2012-04-13.
22899         * modules/sys_resource-c++-tests: New file.
22901 2017-05-05  Bruno Haible  <bruno@clisp.org>
22903         strings-c++-tests: New module.
22904         * tests/test-strings-c++.cc: New file.
22905         (ffs): Declare, missing since 2011-07-12.
22906         * modules/strings-c++-tests: New file.
22908 2017-05-05  Bruno Haible  <bruno@clisp.org>
22910         string-c++-tests: Update.
22911         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
22912         (ffsll): Declare, missing since 2011-07-15.
22914 2017-05-05  Bruno Haible  <bruno@clisp.org>
22916         stdlib-c++-tests: Update.
22917         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
22918         2011-10-18.
22919         (ptsname_r): Declare, missing since 2011-11-07.
22920         (qsort_r): Declare, missing since 2014-08-29.
22921         (random, srandom, initstate, setstate): Declare, missing since
22922         2012-01-14.
22923         (secure_getenv): Declare, missing since 2013-02-05.
22925 2017-05-05  Bruno Haible  <bruno@clisp.org>
22927         stdio-c++-tests: Update.
22928         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
22930 2017-05-05  Bruno Haible  <bruno@clisp.org>
22932         signal-h-c++-tests: Update.
22933         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
22935 2017-05-05  Bruno Haible  <bruno@clisp.org>
22937         math-c++-tests: Update.
22938         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
22939         (fma): Declare, missing since 2011-10-17.
22940         (fmal): Declare, missing since 2011-10-17.
22942 2017-05-05  Bruno Haible  <bruno@clisp.org>
22944         locale-c++-tests: Update.
22945         * tests/test-locale-c++.cc (localeconv): Declare, missing since
22946         2012-03-25.
22948 2017-05-05  Bruno Haible  <bruno@clisp.org>
22950         inttypes-c++-tests: New module.
22951         * tests/test-inttypes-c++.cc: New file.
22952         (strtoimax): Declare, missing since 2012-01-05.
22953         (strtoumax): Declare, missing since 2012-01-05.
22954         * modules/inttypes-c++-tests: New file.
22956 2017-05-05  Bruno Haible  <bruno@clisp.org>
22958         dirent-c++-tests: Update.
22959         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
22960         (rewinddir): Declare, missing since 2011-09-13.
22961         (dirfd): Declare, missing since 2010-03-08.
22963 2017-05-04  Bruno Haible  <bruno@clisp.org>
22965         argp: Fix mistake in 2017-04-23 commit.
22966         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
22967         assume that strerror_r returns 'int', not 'char *'.
22969 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
22971         argp: Fix typo.
22972         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
22974 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22976         utimens: port to Emacs + MS-Windows
22977         Skip the new MS-Windows-specific code if Emacs.
22978         * lib/utimens.c [EMACS_CONFIGUATION]:
22979         Avoid new MS-Windows-specific code.
22980         (USE_SETFILETIME): New macro.
22981         (fdutimens): Use it.
22983 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
22985         tzset: update doc for TZ problems on MS-Windows
22986         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
22987         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
22988         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
22989         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
22990         * doc/posix-functions/wcsftime.texi:
22991         Mention some issues with TZ under MS-Windows.
22993 2017-05-01  Bruno Haible  <bruno@clisp.org>
22995         copy-file: Fix build error on mingw.
22996         * modules/copy-file (Depends-on): Add 'close'.
22998 2017-05-01  Bruno Haible  <bruno@clisp.org>
23000         tzset: Work around TZ problem on native Windows.
23001         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
23002         Windows, set REPLACE_TZSET to 1.
23003         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
23004         invoke '_tzset' instead of 'tzset'.
23005         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
23007         * modules/time_rz (Depends-on): Add tzset.
23008         * lib/time_rz.c (tzset): Remove fallback definition.
23009         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
23011 2017-05-01  Bruno Haible  <bruno@clisp.org>
23013         mktime: Fix dependencies.
23014         * modules/mktime (Depends-on): Add 'time'.
23016 2017-05-01  Bruno Haible  <bruno@clisp.org>
23018         New module 'localtime-buffer', split off from module 'gettimeofday'.
23019         * lib/localtime-buffer.h: New file.
23020         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
23021         * lib/time.in.h (tzset): New declaration.
23022         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
23023         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
23024         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
23025         moved to lib/localtime-buffer.c or lib/tzset.c.
23026         * m4/localtime-buffer.m4: New file.
23027         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
23028         HAVE_TZSET, REPLACE_TZSET.
23029         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
23030         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
23031         gl_LOCALTIME_BUFFER_NEEDED.
23032         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
23033         since 2007-01-18.
23034         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
23035         tzset.
23036         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
23037         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
23038         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
23039         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
23040         * modules/localtime-buffer: New file.
23041         * modules/time (Depends-on): Remove 'gettimeofday'.
23042         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
23043         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
23044         * modules/tzset (Description): Enable hyperlink to POSIX spec.
23045         (Files): Add lib/tzset.c.
23046         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
23047         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
23048         gl_TIME_MODULE_INDICATOR.
23049         * modules/gettimeofday (Depends-on): Add localtime-buffer.
23051 2017-05-01  Bruno Haible  <bruno@clisp.org>
23053         copy-file: Preserve sub-second time stamps.
23054         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
23055         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
23056         transport the time stamps from the original file to the destination
23057         file.
23058         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
23059         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
23060         utime-h.
23062 2017-05-01  Bruno Haible  <bruno@clisp.org>
23064         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
23065         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
23066         also on MSVC.
23067         Reported by Eli Zaretskii <eliz@gnu.org>.
23069 2017-05-01  Bruno Haible  <bruno@clisp.org>
23071         wchar: Fix compilation error with the original mingw.org mingw.
23072         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23073         <stddef.h> instead.
23074         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
23075         gl_WCTYPE_H.
23076         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
23077         gl_TYPE_WINT_T_PREREQ instead.
23078         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
23079         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
23080         Reported by Eli Zaretskii <eliz@gnu.org>.
23082 2017-04-30  Bruno Haible  <bruno@clisp.org>
23084         utimecmp: Add support for native Windows.
23085         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
23087 2017-04-30  Bruno Haible  <bruno@clisp.org>
23089         utimens: Add support for native Windows.
23090         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
23091         (fdutimens): Provide a native Windows implementation, like utime.c with
23092         added tv_nsec support.
23093         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
23094         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
23096 2017-04-30  Bruno Haible  <bruno@clisp.org>
23098         wcsftime: New module.
23099         * lib/wchar.in.h (wcsftime): New declaration.
23100         * lib/wcsftime.c: New file.
23101         * m4/wcsftime.m4: New file.
23102         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
23103         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
23104         HAVE_WCSFTIME, REPLACE_WCSFTIME.
23105         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
23106         HAVE_WCSFTIME, REPLACE_WCSFTIME.
23107         * modules/wcsftime: New file.
23108         * doc/posix-functions/wcsftime.texi: Mention the new module.
23110 2017-04-30  Bruno Haible  <bruno@clisp.org>
23112         strftime-fixes: New module.
23113         * lib/time.in.h (strftime): New declaration.
23114         * lib/strftime-fixes.c: New file.
23115         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
23116         (gl_FUNC_STRFTIME): Remove macro.
23117         * m4/strftime-fixes.m4: New file.
23118         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
23119         REPLACE_STRFTIME.
23120         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
23121         REPLACE_STRFTIME.
23122         * modules/strftime-fixes: New file.
23123         * doc/posix-functions/strftime.texi: Mention the new module.
23125 2017-04-30  Bruno Haible  <bruno@clisp.org>
23127         mktime: Work around TZ problem on native Windows.
23128         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
23129         from the native Windows workaround.
23130         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
23131         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
23132         'guessing no'.
23133         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
23134         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
23135         NEED_MKTIME_WINDOWS.
23136         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
23137         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
23138         NEED_MKTIME_INTERNAL.
23139         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
23140         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
23141         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
23142         not REPLACE_MKTIME.
23143         * doc/posix-functions/mktime.texi: Mention the native Windows
23144         workaround.
23146 2017-04-30  Bruno Haible  <bruno@clisp.org>
23148         localtime: New module.
23149         * lib/time.in.h (localtime): Declare also if requested by module
23150         'localtime'.
23151         * lib/localtime.c: New file.
23152         * m4/localtime.m4: New file.
23153         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
23154         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
23155         * modules/localtime: New file.
23156         * doc/posix-functions/localtime.texi: Mention the new module.
23158 2017-04-30  Bruno Haible  <bruno@clisp.org>
23160         ctime: New module.
23161         * lib/time.in.h (ctime): New declaration.
23162         * lib/ctime.c: New file.
23163         * m4/ctime.m4: New file.
23164         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
23165         REPLACE_CTIME.
23166         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
23167         * modules/ctime: New file.
23168         * doc/posix-functions/ctime.texi: Mention the new module.
23170 2017-04-30  Bruno Haible  <bruno@clisp.org>
23172         gettimeofday: Provide higher resolution on native Windows.
23173         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
23174         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
23175         (initialize): Initialize it.
23176         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
23177         'struct timeval'. Don't use _ftime().
23178         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
23179         <sys/timeb.h> and _ftime.
23181 2017-04-30  Bruno Haible  <bruno@clisp.org>
23183         Document the problem with the Cygwin environment variable TZ.
23184         * doc/posix-functions/tzset.texi: Add note about TZ.
23185         * doc/posix-functions/ctime.texi: Likewise.
23186         * doc/posix-functions/localtime.texi: Likewise.
23187         * doc/posix-functions/mktime.texi: Likewise.
23188         * doc/posix-functions/strftime.texi: Likewise.
23189         * doc/posix-functions/wcsftime.texi: Likewise.
23190         * doc/pastposix-functions/ftime.texi: Likewise.
23192 2017-04-30  Bruno Haible  <bruno@clisp.org>
23194         utime-tests: New module.
23195         * tests/test-utime.c: New file, based on tests/test-utimens.h.
23196         * tests/test-utimens-common.h: Include <sys/stat.h>.
23197         * modules/utime-tests: New file.
23199 2017-04-29  Bruno Haible  <bruno@clisp.org>
23201         utime: New module.
23202         * lib/utime.in.h: Add comment for snippets.
23203         (utime): New declaration.
23204         * lib/utime.c: New file.
23205         * m4/utime.m4: New file.
23206         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
23207         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
23208         REPLACE_UTIME.
23209         * modules/utime-h (Depends-on): Add snippets.
23210         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
23211         Insert snippets.
23212         * modules/utime: New file.
23213         * doc/posix-functions/utime.texi: Mention the new module.
23215 2017-04-29  Bruno Haible  <bruno@clisp.org>
23217         utime-h: Modernize handling of 'struct utimbuf'.
23218         * lib/utime.in.h: Include next <utime.h> if it exists.
23219         (utimbuf): Define to _utimbuf on native Windows.
23220         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
23221         Set UTIME_H on native Windows.
23222         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
23223         * modules/utime-h (Depends-on): Add include_next.
23224         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
23225         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
23227         * lib/utimens.c (utimbuf): Remove fallback definition.
23228         * m4/utimens.m4 (gl_UTIMENS): Don't require
23229         gl_CHECK_TYPE_STRUCT_UTIMBUF.
23230         * m4/utimbuf.m4: Remove file.
23231         * modules/utimens (Files): Remove m4/utimbuf.m4.
23233 2017-04-29  Bruno Haible  <bruno@clisp.org>
23235         Make use of module 'utime-h'.
23236         * modules/copy-file (Depends-on): Add utime-h.
23237         * lib/copy-file.c: Assume that <utime.h> exists.
23238         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
23240         * modules/utimens (Depends-on): Add utime-h.
23241         * lib/utimens.c: Assume that <utime.h> exists.
23243 2017-04-29  Bruno Haible  <bruno@clisp.org>
23245         utime-h: New module.
23246         * m4/utime_h.m4: New file.
23247         * lib/utime.in.h: New file.
23248         * modules/utime-h: New file.
23249         * doc/posix-headers/utime.texi: Mention the new module.
23251         * tests/test-utime-h.c: New file.
23252         * modules/utime-h-tests: New file.
23254 2017-04-30  Bruno Haible  <bruno@clisp.org>
23256         Fix a few typos.
23257         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
23258         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
23259         * doc/posix-functions/fstat.texi: Fix a plural typo.
23260         * doc/posix-functions/stat.texi: Likewise.
23261         * m4/include_next.m4: Update comments.
23263 2017-04-29  Bruno Haible  <bruno@clisp.org>
23265         error: Fix mistake in 2017-04-23 commit.
23266         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
23267         assume that strerror_r returns 'int', not 'char *'.
23269 2017-04-29  Bruno Haible  <bruno@clisp.org>
23271         stat: Fix time_t values and other problems on native Windows platforms.
23272         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
23273         implementations of stat().
23274         * lib/stat.c: Include filename.h instead of dosname.h. Include
23275         malloca.h, stat-w32.h.
23276         (is_unc_root): New function.
23277         (rpl_stat): New implementation for native Windows. Remove
23278         REPLACE_FUNC_STAT_DIR code.
23279         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
23280         Don't define REPLACE_FUNC_STAT_DIR.
23281         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
23282         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
23283         (Depends-on): Remove dosname. Add filename, malloca.
23284         (configure.ac): Also compile lib/stat-w32.c.
23286 2017-04-29  Bruno Haible  <bruno@clisp.org>
23288         fstat: Fix time_t values on native Windows platforms.
23289         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
23290         * lib/stat-w32.h: New file.
23291         * lib/stat-w32.c: New file.
23292         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
23293         stat-w32.h instead.
23294         (fstat_nothrow): Remove function.
23295         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
23296         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
23297         always.
23298         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
23299         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
23300         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
23301         (configure.ac): Also compile lib/stat-w32.c.
23303 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23305         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
23306         Problem reported by Assaf Gordon and Gavin Smith in:
23307         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
23308         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
23309         #define this, too.
23311 2017-04-29  Bruno Haible  <bruno@clisp.org>
23313         strerror_r-posix: Fixes for MSVC 14.
23314         * lib/strerror_r.c: Include <stdarg.h>.
23315         (strerror_r): Provide error messages for errno values 100...140.
23316         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
23318 2017-04-28  Bruno Haible  <bruno@clisp.org>
23320         noreturn: New module.
23321         * lib/noreturn.h: New file.
23322         * modules/noreturn: New file.
23323         * tests/test-noreturn.c: New file.
23324         * modules/noreturn-tests: New file.
23325         * tests/test-noreturn-c++.cc: New file.
23326         * modules/noreturn-c++-tests: New file.
23328 2017-04-27  Bruno Haible  <bruno@clisp.org>
23330         wctype-h: Fix compilation error with the original mingw.org mingw.
23331         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
23332         HAVE_CRTDEFS_H.
23333         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
23334         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23335         <stddef.h> instead.
23336         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
23338 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23340         nap.h: Fix compilation on non windows platforms
23341         * tests/nap.h: Move misplaced endif.
23343 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23344         and Paul Eggert  <eggert@cs.ucla.edu>
23346         time_rz: fix heap buffer overflow vulnerability
23347         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
23348         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
23349         whether there is enough buffer space available, thus avoiding
23350         the problematic promotion of signed to unsigned causing an invalid
23351         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
23352         the start of the buffer.
23353         * tests/test-parse-datetime.c (main): Add a test case written by
23354         Paul Eggert, which overwrites enough of the heap so that
23355         standard glibc will fail with "free(): invalid pointer"
23356         without the patch applied.
23358 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
23360         xalloc: add missing integer overflow check
23361         * lib/xalloc.h (x2nrealloc): Also check for multiplication
23362         overflow when P is null.
23364 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
23366         parse-datetime: make it standalone
23367         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
23368         (_GL_ATTRIBUTE_FORMAT): New macro.
23369         These are needed to get './gnulib-tool --test parse-datetime' to work.
23371 2017-04-23  Bruno Haible  <bruno@clisp.org>
23373         nap.h: Port to native Windows.
23374         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
23375         use nap_fd instead. On native Windows, close and reopen nap_fd.
23376         (nap_works): Don't compare the ctimes, because on native Windows, these
23377         are the creation times.
23378         (nap): Update.
23380 2017-04-23  Bruno Haible  <bruno@clisp.org>
23382         nap.h: Fix logic.
23383         * tests/nap.h (nap): Avoid signed integer overflow in loop.
23385 2017-04-23  Bruno Haible  <bruno@clisp.org>
23387         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
23388         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
23389         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
23390         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
23391         * lib/argp-help.c (__argp_failure): Likewise.
23393 2017-04-23  Bruno Haible  <bruno@clisp.org>
23395         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
23396         * m4/strerror_r.m4: Revert changes since 2016-10-16.
23397         * lib/strerror_r.c: Likewise.
23399 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
23401         Target a C99 subset, not a C89 subset
23402         For many years Gnulib has targeted C89 and has resisted using C99
23403         features, as some Gnulib-using programs still wanted to target
23404         C89.  As this no longer seems to be the case, relax the porting
23405         requirements to allow some C99 features.  This is merely a change
23406         to the documentation, to give other Gnulib developers a chance to
23407         weigh in on the topic.
23408         * doc/extern-inline.texi (extern inline):
23409         * doc/gnulib-readme.texi (Portability guidelines):
23410         * doc/gnulib-tool.texi (Initial import):
23411         * doc/gnulib.texi (Header files):
23412         Modernize to talk about C99 and C11 instead of C89 and C99.
23413         * doc/gnulib-readme.texi (Portability guidelines):
23414         Now a section, not merely a subsection, so that it
23415         can be split up.  Modernize a bit.
23416         (C language versions, C99 features assumed)
23417         (C99 features avoided):
23418         New sections.
23420 2017-04-23  Bruno Haible  <bruno@clisp.org>
23422         doc: New section "Modules that modify the way other modules work".
23423         * doc/gnulib.texi (Modules that modify the way other modules work): New
23424         section.
23426 2017-04-23  Bruno Haible  <bruno@clisp.org>
23428         stat-time: Update comments.
23429         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
23430         * tests/test-utimens-common.h: Add reference regarding st_ctime on
23431         Windows.
23433 2017-04-01  Bruno Haible  <bruno@clisp.org>
23435         glob: Fix more memory leaks.
23436         * lib/glob.c (glob): Free allocated memory before returning.
23437         Reported by Coverity via Tim Rühsen.
23439 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23441         poll: improve fast check for out-of-range NFD
23442         * lib/poll.c: Do not include intprops.h.
23443         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
23444         * modules/poll (Depends-on): Remove intprops.
23446         ftoastr: cite a newer paper
23447         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
23448         instead of Loitsch 2010.
23450 2017-04-22  Bruno Haible  <bruno@clisp.org>
23452         poll: Enable argument check also in the Windows implementation.
23453         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
23454         Reported by Paul Eggert.
23456 2017-04-22  Bruno Haible  <bruno@clisp.org>
23458         getlogin_r: Work around bug in Mac OS X 10.12.
23459         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
23460         bug.
23461         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
23462         given size minus 1, call getlogin_r a second time, on a larger buffer.
23463         * modules/getlogin_r (Depends-on): Add malloca.
23464         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
23466 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23468         parse-datetime: fix %z and prefer signed int
23469         %z problem reported by Pádraig Brady in:
23470         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
23471         While fixing it, I decided to prefer signed ints to size_t, as
23472         they are less error-prone (e.g., ubsan catches overflow).
23473         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
23474         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
23475         counts, since signed integers make for better debugging.
23476         (date): Don’t assume %z works in printf formats.
23477         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
23478         sizes of buffers known to be small, e.g., because we’re using snprintf.
23479         (parse_datetime2): Simplify call to debug_mktime_not_ok.
23481 2017-04-22  Bruno Haible  <bruno@clisp.org>
23483         *printf: Work around rounding bug on Mac OS X.
23484         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
23485         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
23486         Mac OS X and FreeBSD.
23487         * doc/glibc-functions/*printf.texi: Likewise.
23489 2017-04-22  Bruno Haible  <bruno@clisp.org>
23491         vasnprintf tests: Avoid warnings.
23492         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
23493         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
23494         test.
23496 2017-04-22  Bruno Haible  <bruno@clisp.org>
23498         sys_file tests: Avoid warning.
23499         * tests/test-sys_file.c (main): Add a default clause to the switch
23500         statement.
23502 2017-04-22  Bruno Haible  <bruno@clisp.org>
23504         sethostname: Update doc.
23505         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
23506         Mac OS X.
23508 2017-04-22  Bruno Haible  <bruno@clisp.org>
23510         quotearg tests: Avoid warnings.
23511         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
23512         false.
23514 2017-04-22  Bruno Haible  <bruno@clisp.org>
23516         poll: Enable argument check.
23517         * lib/poll.c: Include intprops.h.
23518         (poll): Check value of nfd correctly.
23519         * modules/poll (Depends-on): Add intprops.
23521 2017-04-22  Bruno Haible  <bruno@clisp.org>
23523         get-rusage-data: Avoid warnings on Mac OS X.
23524         * lib/get-rusage-data.c: On Mac OS X, don't define
23525         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
23526         (get_rusage_data) [Mac OS X]: Just return 0.
23528 2017-04-22  Bruno Haible  <bruno@clisp.org>
23530         xbinary-io: Fix build error.
23531         * modules/xbinary-io (Depends-on): Add gettext-h.
23532         * lib/xbinary-io.c: Include gettext.h and define _().
23533         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
23534         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
23536 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23538         parse-datetime: overflow and debug cleanups
23539         This long patch was triggered by this bug report from Ruediger Meier:
23540         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
23541         I fixed the bug he noted, then found some others nearby, and then
23542         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
23543         up some of the code to follow GNU standards while I was at it.
23544         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
23545         use c_isdigit.
23546         (EPOCH_YEAR): Remove; unused.
23547         (TM_YEAR_BASE): Now an enum rather than a macro.
23548         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
23549         time zone offset, since timezones now are in terms of seconds and
23550         not minutes.
23551         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
23552         appropriate.  Verify that intmax_t is wide enough.
23553         (time_overflow, time_zone_str): New functions, used to deal
23554         more reliably with overflow.
23555         (dbg_printf): Add printf attribute, to help catch integer width errors.
23556         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
23557         (%union, to_hour, yylex, parse_datetime2):
23558         Use intmax_t instead of long int and/or long_time_t.
23559         All uses changed.
23560         (DBGBUFSIZE): Move earlier.
23561         (relative_time, set_hhmmss, parser_control):
23562         Just use int for nanoseconds and for time zones; that’s wide enough.
23563         (parser_control): Use bool for members like year_seen that can
23564         be booleans instead of counters.  All uses changed.
23565         Remove debug_default_input_timezone; no longer needed.
23566         All uses removed.
23567         (apply_relative_time): Return a bool overflow flag.
23568         All uses changed to check for overflow.
23569         (apply_relative_time, zone, date, relunit, relunit_snumber)
23570         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
23571         Check for integer overflow portably.
23572         (str_days): Use just int for N, as it’s wide enough.
23573         Prefer 2D char arrays to arrays of char * when it looks like
23574         2D is a win on typical platforms.
23575         Prefer snprintf to strncpy/strncat, for simplicity;
23576         all buffers are smaller than INT_MAX so this is safe.
23577         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
23578         (debug_print_current_time): Don’t assume tv_nsec is of type long,
23579         as this is not true on x32.  Output "." before any nanoseconds.
23580         (debug_print_current_time, parse_datetime2):
23581         Output local zones using a more-consistent format.
23582         (debug_print_current_time, date, parse_datetime2):
23583         (main) [TEST]:
23584         Don’t assume time_t is the same width as long.
23585         (print_rel_part): New function, replacing ...
23586         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
23587         (debug_print_relative_time): Use bool for boolean.
23588         (local_zone): dsts_seen now counts only tDST instances.
23589         (date): Fix printf of size_t to use %z.  Do not assume numeric
23590         tokens have negative values merely because the context suggests
23591         a syntax with "-" separating tokens.
23592         (time_zone_hhmm): Return bool success indicator, which checks for
23593         overflow.  Store result into PC->time_zone instead.  All callers
23594         changed.
23595         (tm_year_str): New function.  Return a bool success indicator and
23596         store the result into a buffer.  All callers changed.  Output the
23597         numerically correct string even if adding 1900 to the year would
23598         overflow.
23599         (to_tm_year): New function, replacing the old to_year.  All
23600         callers changed.
23601         (tm_diff): Sync with glibc.
23602         (lookup_word): Use to_uchar instead of doing it by hand.
23603         (TZBUFSIZE): Now local to the only function that needs it.
23604         (debug_strfdatetime): Simplify now that time zones are int seconds.
23605         (debug_strfdate): Work even if tm_year + 1900 would overflow.
23606         (get_effective_timezone): Remove.  All uses removed.
23607         (parse_datetime2): Use fprintf in pieces instead of snprintfing
23608         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
23609         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
23610         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
23611         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
23612         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
23613         * modules/parse-datetime (Depends-on): Add inttypes.
23615 2017-04-21  Bruno Haible  <bruno@clisp.org>
23617         gettext-h: Avoid -Wundef warning.
23618         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
23619         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
23620         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
23622 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
23624         error: Avoid "function declaration isn't a prototype" warning.
23625         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
23627 2017-04-21  Bruno Haible  <bruno@clisp.org>
23629         vasnprintf: Fix for MSVC 14.
23630         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
23631         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
23632         of !HAVE_SNPRINTF_RETVAL_C99.
23634 2017-04-21  Bruno Haible  <bruno@clisp.org>
23636         mbrtowc tests: Fix test failures on MSVC 14.
23637         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
23638         behaviour for invalid input.
23640 2017-04-21  Bruno Haible  <bruno@clisp.org>
23642         mbsinit: Fix for MSVC 14.
23643         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
23644         implementation that is in sync with mbrtowc.c. On other platforms, use
23645         an adequate ad-hoc implementation.
23647 2017-04-21  Bruno Haible  <bruno@clisp.org>
23649         Fix test-mbrtowc5.sh failure on native Windows.
23650         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
23651         "C".
23653 2017-04-21  Bruno Haible  <bruno@clisp.org>
23655         Avoid accidental use of native Windows APIs on Cygwin.
23656         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
23657         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
23658         * lib/localename.c (WINDOWS_NATIVE): Likewise.
23660 2017-04-20  Bruno Haible  <bruno@clisp.org>
23662         Remove red warnings from the generated MODULES.html.
23663         * modules/fcntl (Description): Disambiguate function references.
23664         * modules/getcwd-lgpl (Description): Likewise.
23665         * modules/hostent (Description): Likewise.
23666         * modules/servent (Description): Likewise.
23667         * modules/tempname (Description): Likewise.
23669 2017-04-20  Bruno Haible  <bruno@clisp.org>
23671         verify tests: Fix spurious failure with parallel make.
23672         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
23673         EXTRA_PROGRAMS.
23674         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
23675         * tests/test-verify-try.c: New file.
23676         * modules/verify-tests (Files): Add it.
23677         (EXTRA_PROGRAMS): Add test-verify-try.
23678         (MOSTLYCLEANFILES): Update accordingly.
23679         Reported by Adam James Stewart <ajstewart@anl.gov>.
23681 2017-04-18  Bruno Haible  <bruno@clisp.org>
23683         vma-iter: Fix compilation error on Solaris 7.
23684         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
23685         like on IRIX, OSF/1.
23686         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23688 2017-04-18  Bruno Haible  <bruno@clisp.org>
23690         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
23691         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
23692         included.
23693         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
23694         <sys/procfs.h>.
23695         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
23696         <sys/procfs.h> cannot be included.
23697         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23699 2017-04-18  Bruno Haible  <bruno@clisp.org>
23701         getopt-gnu: Add comments.
23702         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
23703         * modules/getopt-gnu (configure.ac): Likewise.
23705 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
23707         regex: port better to Solaris 10
23708         Solaris 10 <locale.h> includes <libintl.h>, which #defines
23709         gettext, and this causes a double #define.
23710         Problem reported by Gavin Smith in:
23711         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
23712         * lib/regex_internal.h (gettext): #undef before #defining.
23714 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23716         intprops: improve comments
23717         * lib/intprops.h: Improve and shorten commentary.
23718         For the record, if we ever run into a pedantic compiler that
23719         behaves differently from GCC when converting an out-of-range value
23720         to a signed integer, we can work around the problem with something
23721         like the following code, where UCT is the signed counterpart of T
23722         (UCT is sometimes narrower than UT) and all callers are changed
23723         accordingly:
23724         #if __SUNPRO_C <= 0x5120
23725         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23726            ((t) ((ut) (a) op (ut) (b)))
23727         #else
23728         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23729            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
23730             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
23731                + TYPE_MINIMUM (t)) \
23732             : (t) (uct) ((ut) (a) op (ut) (b)))
23733         #endif
23735 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23737         intprops: try to avoid tickling similar bugs
23738         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
23739         needs to be the same width as T; it can be wider.
23740         Change callers so that UT is at least as wide as unsigned int,
23741         as I suspect that this is less likely to run into compiler bugs.
23743         intprops: port to Oracle Studio 12.3 x86
23744         Problem reported by Gavin Smith in:
23745         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
23746         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
23747         Convert unsigned to signed via the usual rather than the standard way,
23748         to avoid a compiler bug in Oracle Studio 12.3 x86.
23750 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23752         getopt: prefer - to _ in new file names
23753         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
23754         * lib/getopt-core.h: Rename from lib/getopt_core.h.
23755         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
23756         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
23757         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
23758         All uses changed.
23760         getopt: port recent getopt changes to macOS
23761         Problem reported by Harald Maier (Bug#26398).
23762         The macOS C compiler uses __nonnull for its own purposes and that
23763         clashes with glibc's __nonnull.
23764         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
23765         * lib/getopt_cdefs.in.h (__nonnull): Remove.
23766         * lib/getopt_core.h (getopt):
23767         * lib/getopt_ext.h (getopt_long, getopt_long_only):
23768         Use _GL_ARG_NONNULL, not __nonnull.
23769         * lib/unistd.in.h: Move snippet hooks to before where the getopt
23770         .h files are included, so that _GL_ARG_NONNULL is defined in time.
23771         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
23772         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
23774 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23776         getopt-gnu: omit some duplicate code
23777         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
23778         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
23779         gnulib-tool already does this.
23780         * modules/getopt-gnu (configure.ac): Omit code duplicated from
23781         getopt-posix, which we depend on.
23783         getopt-posix: use angle-bracket include
23784         * lib/getopt1.c: Include <config.h>, not "config.h".
23786 2017-04-06  Zack Weinberg  <zackw@panix.com>
23788         getopt: annotate files with relationship to glibc
23790         As the final act in this patchset, adjust the message at the top of
23791         each file to indicate which files are synced with glibc.  (This has
23792         already been done for most of the headers.)
23794         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
23795         Mention in top-of-file boilerplate that these files are shared
23796         between glibc and gnulib.
23799         getopt: split up getopt.in.h and eliminate __need_getopt
23801         Over in glibc, all of the __need macros are being phased out in favor
23802         of small headers that declare only the necessary components, as this
23803         is much simpler and less prone to bugs.  As getopt is shared with
23804         glibc, gnulib needs to do the same for __need_getopt.
23806         __need_getopt is misnamed; what it really means is "we want only the
23807         getopt features specified in POSIX, not the GNU extensions".  glibc
23808         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
23809         these files can be shared verbatim with gnulib.  The portability
23810         wrapper, on the other hand, they have renounced altogether; glibc's
23811         getopt.h will no longer be shared with gnulib at all.  In exchange,
23812         certain glibc-specific quirks (having to do with __posix_getopt) no
23813         longer need appear in gnulib's headers at all.
23815         This patch merges getopt_core.h and getopt_ext.h from glibc, and
23816         splits up the current gnulib-side portability wrapper into three
23817         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
23818         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
23819         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
23820         unistd.in.h just use them.  All new files are clearly marked with
23821         whether they are shared with glibc.
23823         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
23824         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
23825         with glibc, and ...
23826         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
23827         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
23828         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
23829         instead of defining __need_getopt and including the full getopt.h.
23831         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
23832         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
23833         * modules/getopt-posix (Files): Add new headers and sort list.
23834         (Depends-on): No longer need snippet/arg-nonnull.
23835         (Makefile.am): Generate getopt_cdefs.h.
23838         getopt: better handling of ambiguous options
23840         glibc's getopt uses alloca to construct a linked list of possibilities
23841         for an "ambiguous" long option.  In gnulib, malloc should be used
23842         instead.  Providing for both cases complicates things a fair bit.
23844         This patch rewrites ambiguous-option handling to use a boolean vector
23845         instead of a linked list.  There is then only one allocation that
23846         might need freeing; in glibc it can honor __libc_use_alloca as usual,
23847         and in gnulib we define __libc_use_alloca to always be false, so we
23848         don't need ifdefs in the middle of the function.  This should also be
23849         slightly more efficient in the normal case of long options being fully
23850         spelled out -- I think most people aren't even aware they _can_
23851         sometimes abbreviate long options.
23853         One interesting consequence is that the list of possibilities is now
23854         printed in exactly the order they appear in the list of long options,
23855         instead of the first possibility being shuffled to the end.
23857         (The patch looks bigger than it really is because there's a fair bit
23858         of reindentation and code rearrangement.)
23860         * lib/getopt.c: When used standalone, define __libc_use_alloca
23861         as always false and alloca to abort if called.
23862         (process_long_option): Rewrite handling of ambiguous long options
23863         to use a single boolean vector, not a linked list; use
23864         __libc_use_alloca to decide whether to allocate this using alloca.
23867         getopt: refactor long-option handling
23869         There were two copies of the bulk of the code to handle long options.
23870         Now there is only one.
23872         This change temporarily removes the logic to avoid using alloca when
23873         standalone; the next patch in the series will restore it.
23875         * lib/getopt.c (process_long_option): New function split out
23876         from _getopt_internal_r.
23877         (_getopt_internal_r): Replace both copies of the long-option
23878         processing code with calls to process_long_option.
23881         getopt: tidy up _getopt_initialize a bit
23883         _getopt_data.__posixly_correct is completely redundant to
23884         _getopt_data.__ordering, and some work that logically belongs in
23885         _getopt_initialize was being done by _getopt_internal_r, making the
23886         code harder to understand.
23888         As a side effect, getenv will no longer be called if the first
23889         character of the options string is '+' or '-', which is probably a
23890         Good Thing.  (Perhaps we should have a flag character that
23891         specifically asks for the permutation behavior?)
23893         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
23894         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
23895         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
23898         getopt: merge from glibc: repetition reduction
23900         The definitions of the entry point functions 'getopt' and
23901         '__posix_getopt' can be made substantially less repetitive with a
23902         helper macro.
23904         While I was merging the const-correctness changes from gnulib into
23905         glibc I noticed there are still some unnecessary casts in
23906         _getopt_internal_r.
23908         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
23909         a macro.  Consistently cast 'argv' to 'char **' when calling
23910         _getopt_internal.
23911         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
23914         getopt: clean up error reporting
23916         getopt can print a whole bunch of error messages, and when used
23917         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
23918         cancellation point and getopt isn't, and also applying fprintf to a
23919         stream in wide-character mode is not allowed.  So every single error
23920         reporting case has an #ifdef _LIBC block in which it calls internal
23921         libc functions instead.  The counterpart patch series in glibc makes
23922         it possible to simplify all of that down to a set of #defines at the
23923         top of the file; core code is written as if it is safe to just call
23924         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
23925         call any *other* stdio functions.)
23927         * lib/getopt.c: When _LIBC is defined, define fprintf to
23928         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
23929         to _IO_funlockfile.  When neither _LIBC nor
23930         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
23931         funlockfile as no-ops.
23932         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
23933         standalone error-printing code can now be used for libc as well.
23934         Add an flockfile/funlockfile pair around one case where the error
23935         message is printed in several chunks.  Don't use fputc.
23938         getopt: fix fencepost error in ambiguous-W-option handling
23940         getopt_long contains an undocumented (AFAICT) feature in which, if you
23941         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
23942         treated as equivalent to '--foo'.  This is implemented with a partial
23943         second copy of the code for handling long options, and that code
23944         increments optind one too many times when recovering from an ambiguous
23945         abbreviated option, which can cause the main loop to walk past the end
23946         of argv and crash.
23948         I discovered this while writing a test case that tries to exercise all
23949         of getopt's error reporting paths; I wouldn't be surprised to learn
23950         that this feature is never used by real applications.
23952         * lib/getopt.c (_getopt_internal_r): Don't increment
23953         d->optind a second time when reporting ambiguous -W options.
23956         getopt: clean up getopt.c and getopt1.c file headers
23958         In getopt.c, there is no need to include wchar.h at all, and it is
23959         safe nowadays to assume that stdlib.h does declare getenv (several
23960         other gnulib modules make this assumption).
23962         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
23963         by using "" inclusions consistently, and there is no actual need to
23964         include stdlib.h (except in the #ifdef TEST block, where it should be
23965         unconditional), nor to provide a backup definition of NULL at all.
23967         * lib/getopt1.c: Simplify #ifdeffage at top of file.
23968         Move inclusion of stdlib.h to #ifdef TEST block and make
23969         unconditional.  Do not define NULL.
23970         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
23971         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
23972         * modules/getopt-gnu, modules/getopt-posix: Don't call
23973         gl_PREREQ_GETENV.
23976         getopt: harmonize comments with glibc
23978         The comments explaining how the behavior of 'getopt' varies depending
23979         on whether it's the standalone version and whether there are special
23980         characters at the beginning of the options string were inconsistent
23981         between gnulib and glibc, and also out of sync with the code.
23983         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
23986         getopt: remove USE_NONOPTION_FLAGS
23988         getopt includes code to parse an environment variable named
23989         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
23990         in decimal); but all of it has been #ifdefed out since 2001, with no
23991         official way to turn it back on.
23993         According to commentary in glibc's config.h.in, bash version 2.0
23994         set this environment variable to indicate argv elements that were
23995         the result of glob expansion and therefore should not be treated
23996         as options, but the feature was "disabled later" because "it
23997         caused problems".  According to bash's CHANGES file, "later" was
23998         release 2.01; it gives no more detail about what the problems
23999         were.
24001         Version 2.0 of bash was released on the last day of 1996, and version
24002         2.01 in June of 1997.  Twenty years later, I think it is safe to
24003         assume that this environment variable isn't coming back.
24005         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
24006         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
24007         __libc_argc and __libc_argv externs, which were only used by
24008         #ifdef USE_NONOPTION_FLAGS blocks.
24011         getopt: tabify, in preparation for merge with glibc
24013         glibc sticks to the GNU default of indenting with a mix of
24014         8-column tabs and spaces; make the gnulib copy match.
24016         getopt.h is not included because it is *not* going to be merged in its
24017         present form.
24019         * getopt.c, getopt1.c, getopt_int.h: Tabify.
24021 2017-04-02  Bruno Haible  <bruno@clisp.org>
24023         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
24024         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
24025         like it was done in modules/relocatable-lib on 2011-05-21 and in
24026         modules/relocatable-prog on 2011-08-15.
24027         Reported by Reuben Thomas <rrt@sc3d.org>.
24029 2017-03-31  Bruno Haible  <bruno@clisp.org>
24031         glob: Fix invalid free() call.
24032         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
24033         static storage to home_dir.
24034         Reported by Coverity via Tim Rühsen.
24036 2017-03-31  Bruno Haible  <bruno@clisp.org>
24038         glob: Fix memory leaks.
24039         * lib/glob.c (glob): Free allocated memory before returning.
24040         Reported by Coverity via Tim Rühsen.
24042 2017-03-31  Bruno Haible  <bruno@clisp.org>
24044         md5, sha1, sha256, sha512: Add comments regarding correctness.
24045         * lib/md5.h (buflen): Add comments regarding range.
24046         * lib/sha1.h (buflen): Likewise.
24047         * lib/sha256.h (buflen): Likewise.
24048         * lib/sha512.h (buflen): Likewise.
24049         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
24050         * lib/sha1.c (sha1_process_bytes): Likewise.
24051         * lib/sha256.c (sha256_process_bytes): Likewise.
24052         * lib/sha512.c (sha512_process_bytes): Likewise.
24053         Reported by Coverity via Tim Rühsen.
24055 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24057         getopt: merge from glibc
24058         This does not change anything substantial; it merely simplifies
24059         hypothetical merges back to glibc.
24060         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
24061         Change copyright notice to match what is in glibc.
24062         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
24063         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
24064         __open_memstream rather than open_memstream and __glibc_likely
24065         instead of __builtin_expect.
24066         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
24068 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24070         dfa: make [0-9] faster in non-C locales
24071         Problem reported by John P. Linderman (Bug#26193).
24072         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
24073         If both ends of the range are ASCII digits, do not worry about
24074         multi-character collating sequences and the like.  Be consistent
24075         about using isalpha as a precondition for setbit_case_fold_c.
24077 2017-03-19  Bruno Haible  <bruno@clisp.org>
24079         lock: Fix compilation error with HP-UX IA64 cc.
24080         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
24081         weak on non-glibc platforms.
24083 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24085         stdalign: tweak version# and test for HP-UX IA64
24086         Problems reported by Bruno Haible in:
24087         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
24088         * lib/stdalign.in.h (_Alignas):
24089         * m4/stdalign.m4 (gl_STDALIGN_H):
24090         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
24091         used octal (as that is how they document it), but it is decimal in
24092         practice now and the ancient implementations no longer matter.
24093         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
24095 2017-03-19  Bruno Haible  <bruno@clisp.org>
24097         vma-iter: Add support for Solaris.
24098         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
24099         approach.
24100         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
24101         * lib/get-rusage-as.c: Update comment about Solaris.
24102         * lib/get-rusage-data.c: Likewise.
24104 2017-03-19  Bruno Haible  <bruno@clisp.org>
24106         vma-iter: Prefer HP-UX specific API on HP-UX.
24107         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
24108         * lib/vma-iter.h: Update.
24109         Just in case HP-UX ever implements mquery().
24111 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
24113         stdalign: restore previous behavior for HP-UX IA64
24114         See Bruno Haible's email in:
24115         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
24116         which cites p 150 of a manual saying that 'aligned' works on Itanium.
24117         * lib/stdalign.in.h (_Alignas):
24118         Assume the '061200' applies to Itanium, not to PA-RISC.
24119         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
24121 2017-03-17  Bruno Haible  <bruno@clisp.org>
24123         stat-time, timespec: Support use of the header files in C++ mode.
24124         * lib/stat-time.h: Add "C" linkage declaration.
24125         * lib/timespec.h: Likewise.
24127 2017-03-17  Bruno Haible  <bruno@clisp.org>
24129         stdalign: Make it work with HP-UX cc.
24130         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
24131         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
24132         for HP-UX cc.
24134 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
24136         flexmember: try to detect HP-UX 11.31 cc bug
24137         Problem reported by Bruno Haible in:
24138         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
24139         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24140         Attempt to detect bug in HP-UX 11.31 cc.
24142 2017-03-16  Bruno Haible  <bruno@clisp.org>
24144         stdint: Fix test compilation failure with HP-UX 11 cc.
24145         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
24146         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
24147         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
24148         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
24150 2017-03-14  Bruno Haible  <bruno@clisp.org>
24152         gnulib-tool: Don't produce a tests directory with only snippet .h files.
24153         * gnulib-tool (func_modules_transitive_closure_separately): If
24154         testsrelated_modules ends up with no "real" modules, aside from
24155         modules with applicability 'all', set it to empty.
24157 2017-03-14  Bruno Haible  <bruno@clisp.org>
24159         vma-iter: Add support for HP-UX.
24160         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
24161         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
24162         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
24163         * lib/get-rusage-as.c: Update comment about HP-UX.
24164         * lib/get-rusage-data.c: Likewise.
24165         (get_rusage_data): Use get_rusage_data_via_setrlimit.
24167 2017-03-14  Bruno Haible  <bruno@clisp.org>
24169         limits-h: Make it work with HP-UX cc.
24170         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
24171         defined.
24173 2017-03-14  Bruno Haible  <bruno@clisp.org>
24175         Fix test failures on DragonFlyBSD.
24176         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
24177         * tests/test-select.h (test_bad_fd): Likewise.
24178         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
24180 2017-03-14  Bruno Haible  <bruno@clisp.org>
24182         freadahead: Silence warning on DragonFlyBSD.
24183         * lib/freadahead.c (__sreadahead): Declare ourselves.
24185 2017-03-14  Bruno Haible  <bruno@clisp.org>
24187         vma-iter: Add comment about AIX.
24188         * lib/vma-iter.c: Add comment about why this module is not implemented
24189         on AIX.
24191 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24193         snippets: move unadjusted snippet sources to lib
24194         Problem reported by Michal Privoznik in:
24195         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
24196         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
24197         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
24198         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
24199         * lib/unused-parameter.h: Rename from
24200         build-aux/snippet/unused-parameter.h.
24201         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
24202         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
24203         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
24204         * modules/snippet/c++defs (Files:, CXXDEFS_H):
24205         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
24206         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
24207         Adjust to file renamings.
24209 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
24211         gnulib-tool: don't automatically distribute files from top/
24212         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
24213         not distribute top/README-release by default, don't distribute files
24214         from top/ unconditionally.
24215         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
24216         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
24218 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24220         gnulib-tool: fix typo in comment output
24221         * gnulib-tool (func_import): Fix typo with previous change.
24223         snippets: work around GNU Make 3.82 VPATH
24224         When using 'gnulib-tool --gnu-make' on Emacs, and building
24225         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
24226         an out-of-source (VPATH) build failed because the sans-copyright
24227         snippet file was not built before the file that used it.
24228         Presumably this is some sort of VPATH thing.  Work around the
24229         problem by using the original snippet, i.e., don’t bother to
24230         remove its copyright notice.
24231         * modules/snippet/_Noreturn, modules/snippet/link-warning:
24232         Don’t assume Automake in comments.  Omit long-incorrect comment.
24233         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
24234         (MOSTLYCLEANFILES):
24235         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
24236         (MOSTLYCLEANFILES):
24237         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
24238         (MOSTLYCLEANFILES):
24239         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
24240         (MOSTLYCLEANFILES):
24241         Remove.
24242         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
24243         * modules/snippet/c++defs (CXXDEFS_H):
24244         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
24245         * modules/snippet/warn-on-use (WARN_ON_USE_H):
24246         Don’t bother to remove the copyright notice; just use the
24247         original snippet as-is.
24249 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24251         gnulib-tool: minor --gnu-make fixups
24252         * gnulib-tool (func_emit_lib_Makefile_am):
24253         Remove useless code that was a blind alley during implementation.
24254         Problem reported by Thien-Thi Nguyen in:
24255         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
24256         (func_import): Note the "--gnu-make" option in the output comment.
24258 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
24260         gnulib-tool: new option --gnu-make
24261         This is for applications like GNU Emacs that use GNU Make
24262         features instead of Automake.
24263         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
24264         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
24265         Do not assume Automake.
24266         * gnulib-tool (func_determine_path_separator)
24267         (func_modules_transitive_closure, func_update_file)
24268         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
24269         (func_import): Add support for --gnu-make.
24271 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
24273         gnulib-common.m4: avoid aclocal.m4 bloat
24274         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
24275         Hide AM_PROG_AR from aclocal, so that aclocal does not
24276         install irrelevant macro definitions into aclocal.m4.
24278 2017-03-10  Bruno Haible  <bruno@clisp.org>
24280         vma-iter: Let callers know about error.
24281         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
24282         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
24284 2017-03-05  Bruno Haible  <bruno@clisp.org>
24286         Fix value of LD for 64-bit compilers on AIX.
24287         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
24288         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
24290 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
24292         dtotimespec: simplify
24293         * lib/dtotimespec.c (dtotimespec): Simplify.
24295 2017-03-04  Bruno Haible  <bruno@clisp.org>
24297         test-calloc-gnu: Reenable test also for GCC 7.
24298         * tests/test-calloc-gnu.c (eight): New function.
24299         (main): Don't skip test; use eight() instead.
24301 2017-03-04  Jim Meyering  <meyering@fb.com>
24303         test-calloc-gnu: port to GCC7
24304         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
24305         that attempts to calloc more than SIZE_MAX bytes, because GCC7
24306         and newer would detect that at compilation time.
24308 2017-03-04  Bruno Haible  <bruno@clisp.org>
24310         tests: Avoid compiler warning about uses of null_ptr.
24311         * tests/null-ptr.h: New file.
24312         * tests/test-canonicalize.c: Include null-ptr.h.
24313         (null_ptr): Remove function.
24314         * tests/test-canonicalize-lgpl.c: Likewise.
24315         * tests/test-memmem.c: Likewise.
24316         * tests/test-ptsname_r.c: Likewise.
24317         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
24318         * modules/canonicalize-lgpl-tests: Likewise.
24319         * modules/memmem-tests: Likewise.
24320         * modules/ptsname_r-tests: Likewise.
24321         Reported by Jim Meyering.
24323 2017-03-03  Bruno Haible  <bruno@clisp.org>
24325         doc: Mention Mac OS X deficiencies regarding semaphores.
24326         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
24327         * doc/posix-functions/sem_destroy.texi: Likewise.
24328         * doc/posix-functions/sem_getvalue.texi: Likewise.
24330 2017-03-03  Bruno Haible  <bruno@clisp.org>
24332         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
24333         Reported by Assaf Gordon <assafgordon@gmail.com> via
24334         Pádraig Brady <P@draigBrady.com>.
24335         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
24336         semaphores.
24337         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
24338         (atomic_int_semaphore): New macro.
24340 2017-02-28  Bruno Haible  <bruno@clisp.org>
24342         perror tests: Tweak for z/OS.
24343         Reported by Daniel Richard G. <skunk@iskunk.org>.
24344         * tests/test-perror.sh: Don't fail z/OS style perror output.
24346 2017-02-26  Bruno Haible  <bruno@clisp.org>
24348         nproc: Refactor large function.
24349         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
24350         from num_processors.
24351         (num_processors): In this function, only deal with OMP.
24353 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24355         nproc: adjust handling of OpenMP environment variables
24356         to match the return value from omp_get_num_threads(), i.e.:
24357          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
24358          - Treat 0 as an invalid value and ignore
24359         Also remove the call to omp_get_num_threads() because
24360         it's ineffective without the omp pragmas in place.
24361         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
24362         so that it can be ignored.
24363         (num_processors): Honor OMP_THREAD_LIMIT even without
24364         OMP_NUM_THREADS being set.  Also fix a typo in the environment
24365         variable being checked, from the previous recent commit.
24367 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24369         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
24370         * lib/nproc.c (parse_omp_threads): A new function refactored
24371         from num_processors() to support parsing both of the
24372         above environment variables.
24373         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
24374         to accurately reflect the current OpenMP nesting level.
24375         Also support the OMP_THREAD_LIMIT environment variable
24376         to limit the max value determined from OMP_NUM_THREADS.
24377         * modules/nproc: Depend on minmax header.
24378         Suggested by Oliver Heimlich.
24380 2017-02-25  Bruno Haible  <bruno@clisp.org>
24382         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
24383         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
24385 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24387         ftoastr: port to -Wdouble-promotion
24388         Work around -Wdouble-promotion false alarm in recent GCCs.
24389         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
24390         (ftoastr_snprintf, FTOASTR): Use it.
24392 2017-02-21  Bruno Haible  <bruno@clisp.org>
24394         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
24395         Reported by Rene Saavedra <rennes@openmailbox.org> in
24396         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
24397         * lib/glthread/lock.h: On glibc systems without
24398         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
24399         implementation of rwlocks.
24400         * lib/glthread/lock.c: Likewise.
24402 2017-02-20  Bruno Haible  <bruno@clisp.org>
24404         lock tests: Fix build failure on z/OS.
24405         Reported by Daniel Richard G. <skunk@iskunk.org>.
24406         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
24407         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
24408         exist.
24410 2017-02-19  Bruno Haible  <bruno@clisp.org>
24412         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
24413         This helps when CC=clang.
24414         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
24415         of /usr/bin/gcc.
24417         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
24418         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
24420 2017-02-19  Bruno Haible  <bruno@clisp.org>
24422         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
24423         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
24424         --with-tests --single-configure is specified.
24426 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
24428         users.txt: Update links, use HTTPS where possible
24429         * users.txt: Updated to HTTPS where possible,
24430         fixed some links to new locations.
24432 2017-02-16  Bruno Haible  <bruno@clisp.org>
24434         xbinary-io: Fix inlining.
24435         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
24437 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24439         xbinary-io: rename from xsetmode
24440         This patch is taken from suggestions by Bruno Haible in:
24441         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
24442         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
24443         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
24444         not ENOTTY, when it is an inappropriate device.
24445         * lib/binary-io.h (SET_BINARY): Resurrect.
24446         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
24447         (xset_binary_mode_error): Rename from xsetmode_error.
24448         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
24449         (xset_binary_mode): Rename from xsetmode.
24450         All uses changed.
24451         * modules/xbinary-io: Rename from modules/xsetmode.
24452         Update file names.
24453         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
24454         * NEWS: Update to match revised behavior.
24456 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24458         tests: Adjust to recent SET_BINARY change
24459         * tests/test-binary-io.c (main):
24460         * tests/test-binary-io.sh: Remove test for SET_BINARY.
24461         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
24462         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
24463         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
24465         xsetmode: new module
24466         This is to fix a problem noted by Eric Blake.
24467         Code was using xfreopen to change files to binary mode, but this
24468         fails for stdout when in append mode.  Such code should use
24469         xsetmode instead.
24470         * NEWS: Document incompatible changes to binary-io module.
24471         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
24472         New function.
24473         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
24474         (set_binary_mode): New function, which also checks for tty.
24475         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
24477 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
24479         headers: fix begin-end typos
24480         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
24481         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
24483         selinux-h: port to PGI 16.10
24484         * lib/se-selinux.in.h: Don't assume that include_next skips over
24485         duplicate -I DIR options.
24487         argp: port to PGI 16.10
24488         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
24490 2017-02-13  Darshit Shah  <darnir@gnu.org>
24492         unicase: Update function protoype to match definition.
24493         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
24494         uses 'size_t' as the datatype for the 'len' parameter in the functions
24495         it generates. Update the prototype specified here to match the newly
24496         generated function.
24498 2017-02-12  Bruno Haible  <bruno@clisp.org>
24500         times test: Avoid gcc warnings on Linux/x32.
24501         * tests/test-times.c (main): Really cast printf arguments from clock_t
24502         to 'long int'.
24504 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24506         glob: port better to emscripten
24507         Problem reported by Bruno Haible in:
24508         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
24509         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
24511 2017-02-11  Bruno Haible  <bruno@clisp.org>
24513         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
24514         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
24515         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
24516         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
24517         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
24518         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
24519         Distinguish hppa64 from hppa.
24521 2017-02-10  Bruno Haible  <bruno@clisp.org>
24523         search: Don't assume that tsearch() exists if 'VISIT' is defined.
24524         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
24525         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
24526         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
24528 2017-02-09  Bruno Haible  <bruno@clisp.org>
24530         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
24531         * doc/gnulib.texi (Libtool and Windows): Recommend
24532         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
24533         Reported by Reuben Thomas <rrt@sc3d.org>.
24535 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24537         stddef-tests: port to SIZE_MAX <= INT_MAX
24538         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
24539         Do not assume that INT_MAX < SIZE_MAX.
24541 2017-02-01  Bruno Haible  <bruno@clisp.org>
24543         lock tests: Fix link error.
24544         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
24545         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24547 2017-01-31  Bruno Haible  <bruno@clisp.org>
24549         lock: Fix link error (regression from 2017-01-05).
24550         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
24551         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
24552         pthread_rwlockattr_destroy weak.
24553         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24555 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24557         Port to PGI 16.10 x86-64
24558         This patch fixes one real bug in gl_anylinked_list2.h, along with
24559         some minor glitches that are not bugs.  It does not silence PGI’s
24560         thousands of bogus warnings when compiling test-intprops.c.
24561         Fortunately, the warnings do not cause a failure.
24562         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
24563         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
24564         My goodness, PGI goes back a long ways - this predates C89!
24565         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
24566         For example, ASYNCSAFE (const void *) should expand to
24567         ‘const void *volatile’, not to ‘volatile const void *’.
24568         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
24569         * lib/verify.h (verify) [!__GNUC__]:
24570         Use shorter albeit meaningless string to bypass silly compiler limits.
24571         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
24572         * tests/nan.h (NaNf, NaNd, NaNl):
24573         Use static functions to avoid misguided compiler diagnostics.
24574         Is there some reason we don’t use static functions on all platforms?
24576 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
24578         parse-datetime: handle timezones reentrantly
24579         This API change was prompted by a report by Pádraig Brady in:
24580         https://bug.debian.org/851934#10
24581         To help fix the bug, make parse_datetime2 more reentrant.
24582         * NEWS: Document this incompatible change.
24583         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
24584         Add two arguments, the timezone and the timezone name.
24585         All callers changed.  If TZ="..." is specified, use it for
24586         calculating defaults.
24587         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
24588         this code should be usable in a library.
24589         (mktime_ok, get_effective_timezone):
24590         Accept timezone arg too.  All callers changed.
24591         (get_tz): Remove.
24592         (get_effective_timezone): Check for failures.
24594 2017-01-20  Eric Blake  <eblake@redhat.com>
24596         localename: port to cygwin 2.6
24597         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
24598         Cygwin.
24599         * modules/localename (Depends-on): Add extensions, since
24600         NL_LOCALE_NAME() is not visible without it.
24602 2017-01-17  Pádraig Brady  <P@draigBrady.com>
24604         parse-datetime: fix dependence on AC_PROG_SED
24605         * modules/parse-datetime: Use `sed` directly like all other modules.
24606         Reported by J William Piggott
24608 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
24610         intprops: update doc URLs
24611         * doc/intprops.texi (Integer Range Overflow): Update URLs.
24613 2017-01-16  Bruno Haible  <bruno@clisp.org>
24615         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
24616         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
24617         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
24618         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
24619         distinguish s390 and s390x.
24620         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
24621         * NEWS: Mention the change regarding 'armel'.
24623 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24625         localeinfo: case_folded_counterparts and WEOF
24626         * NEWS: Document this.
24627         * lib/localeinfo.c (case_folded_counterparts):
24628         First arg is now wint_t, not wchar_t.  This generalizes the
24629         function to also work on WEOF, where it returns 0.
24631         dfa: port to gcc -fsanitize=undefined
24632         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
24633         as this runs afoul of gcc -fsanitize=undefined.
24635 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
24637         strftime: %z is -00 if unknown
24638         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
24639         the caller's responsibility to set 'negative_number'.  All uses changed.
24640         (__strftime_internal): Put '-' before a zero UTC offset if the time
24641         zone abbreviation starts with "-", which is the recently-introduced
24642         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
24643         * tests/test-strftime.c: Test for this.
24645 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24647         dfa: port to older GCC
24648         Problem reported by Assaf Gordon in:
24649         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
24650         * modules/c99: New module.  This merely attempts to use the latest
24651         C version, which should be enough to solve this particular problem.
24652         The idea is to document which Gnulib modules assume C99 or later.
24653         * modules/dfa (Depends-on): Add it.
24655 2017-01-10  Bruno Haible  <bruno@clisp.org>
24657         Update DEPENDENCIES.
24658         * DEPENDENCIES: List only https URLs. Update recommended version for
24659         autoconf, automake, gperf.
24661 2017-01-10  Jim Meyering  <meyering@fb.com>
24663         maint.mk: enforce spelling of "timestamp" (i.e., no space)
24664         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
24665         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
24667 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24669         dfa: minor simplification with emptyset
24670         * lib/dfa.c (build_state): Simplify by using emptyset.
24672 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24674         dfa: shrink constraints from 4 bits to 3
24675         * lib/dfa.c (newline_constraint, letter_constraint)
24676         (other_constraint, prev_newline_dependent)
24677         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
24678         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
24679         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
24680         Constraints need only 3 bits, not 4.  Using smaller integers
24681         shrinks the code a bit and makes grep a tad faster on x86-64.
24683         dfa: omit unnecessary ptrdiff_t check
24684         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
24685         overflow, since xnmalloc does that now.
24687         dfa: omit unnecessary allocation
24688         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
24689         an all-zero follow set works just fine.
24691         dfa: omit unused local
24692         * lib/dfa.c (build_state): Fix up recent change.
24694         maint: remove stray .texi files
24695         Although these were superseded by other files like
24696         doc/posix-functions/ctime.texi, the old files were not removed.
24697         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
24699 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
24701         getprogname: fix port to IRIX
24702         * lib/getprogname.c (getprogname) [__sgi]:
24703         Don't dump core if malloc returns NULL.
24705         dfa: fix reallocation bug when matching newlines
24706         Problem reported for sed by S. Gilles (Bug#25390).
24707         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
24708         (dfastate): Reallocate before moving any newline transition ...
24709         (build_state): ... instead of reallocating here, where it is too late.
24711 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24713         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
24714         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
24716 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24718         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
24719         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
24721 2017-01-07  Bruno Haible  <bruno@clisp.org>
24723         stdioext: Port to Minix 3.2 and newer.
24724         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
24725         * lib/fseeko.c (fseeko): Likewise.
24726         Reported by Nelson Beebe via Paul Eggert.
24728 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
24730         getprogname: port to IRIX
24731         * lib/getprogname.c (getprogname): Port to IRIX.
24732         Based on an idea by Bastien Roucariès at:
24733         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
24734         via code from Bruno Haible at:
24735         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
24737         localename-tests: port to NetBSD 7
24738         Problem reported by Nelson H. F. Beebe.
24739         * tests/test-localename.c:
24740         Test newlocale and uselocale only if both exist.
24742         glob, intprops, xalloc: work around Clang bug
24743         Work around LLVM bug 16404, which is still not fixed.
24744         https://llvm.org/bugs/show_bug.cgi?id=16404
24745         Problem reported by Nelson H. F. Beebe.
24746         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
24747         Remove.
24748         * lib/glob.c (size_add_wrapv):
24749         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
24750         * lib/xalloc-oversized.h (xalloc_oversized):
24751         Do not use overflow builtins if Clang.
24753         dfa: fix 'return' typo
24754         Problem reported by Nelson H. F. Beebe.
24755         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
24757 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24759         parse-datetime: fix generated paths for coverage files
24760         * modules/parse-datetime: Adjust the paths for parse-datetime.y
24761         within parse-datetime.c, so that gcc generates appropriate .gcno
24762         files, allowing lcov to proceed without error.  Previously it
24763         would error trying to find "lib/lib/parse-datetime.y".
24765 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24767         maint.mk: support parallel execution of coverage
24768         * top/maint.mk (coverage): Run dependencies serially,
24769         thus supporting parallel processing of each one,
24770         particularly build-coverage, which builds and runs tests.
24772 2017-01-05  Bruno Haible  <bruno@clisp.org>
24774         lock tests: Prefer semaphore over mutex.
24775         * tests/test-lock.c (USE_SEMAPHORE): New constant.
24776         (struct atomic_int, init_atomic_int, get_atomic_int_value,
24777         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
24778         Suggested by Torvald Riegel <triegel@redhat.com>.
24780 2017-01-05  Bruno Haible  <bruno@clisp.org>
24782         lock: Provide guarantee to avoid writer starvation for rwlocks.
24783         The rationale is: 1) Read-preferring read-write locks are prone to
24784         writer starvation if the number of reader threads multiplied by the
24785         percentage of time they have the lock held is too high. 2) Write-
24786         preferring read-write locks are the only reliable way to avoid this.
24787         3) There have been reports of 'test-lock' hanging on glibc systems
24788         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
24789         and glibc indeed implements read-preferring rwlocks by default, see
24790         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
24791         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
24792         * m4/pthread_rwlock_rdlock.m4: New file.
24793         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
24794         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
24795         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
24796         of rwlock initialization on glibc systems without
24797         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
24798         of rwlocks altogether on non-glibc systems without
24799         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
24800         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
24801         * lib/glthread/lock.c [USE_POSIX_THREADS]
24802         (glthread_rwlock_init_for_glibc): New function.
24803         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
24804         comment.
24805         [USE_PTH_THREADS]: New implementation of rwlocks.
24806         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
24807         readers.
24808         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
24809         (Depends-on): Add 'extensions'.
24810         * tests/test-rwlock1.c: New file.
24811         * lock-tests (Files): Add it.
24812         (Depends-on): Add usleep.
24813         (Makefile.am): Add test-rwlock1 to the tests.
24815 2017-01-05  Bruno Haible  <bruno@clisp.org>
24817         thread: Fix pth port.
24818         * lib/glthread/thread.h (pth_init): Declare weak.
24819         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
24820         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
24821         function.
24823 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
24825         parse-datetime: fix debug message on lone year number
24826         Input dates such as
24827           date -d "Apr 11 22:59:00 2011"
24828         are parsed as date (Apr 11, with default year 2016), then time, then a
24829         number (2011). Based on the combination of previously seen tokens,
24830         'digits_to_date_time' determines 2011 to be a year value.
24831         This fixes the debug messages to correctly show the updated year.
24832         Before:
24833             $ date --debug -d 'Apr 11 22:59:00 2011'
24834             date: parsed date part: (Y-M-D) 2016-04-11
24835             date: parsed time part: 22:59:00
24836             date: parsed number part: today/this/now
24837         After:
24838             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
24839             date: parsed date part: (Y-M-D) 2016-04-11
24840             date: parsed time part: 22:59:00
24841             date: parsed number part: year: 2011
24842         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
24843         'debug_year_seen' member fields.
24844         (digits_to_date_time): Update 'year_seen' as needed.
24845         (debug_print_current_time): Inform about year updates.
24846         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
24848         parse-datetime: fix local timezone debug messages
24849         "Local timezones" are strings that affect only DST relative to the
24850         default timezone. The debug messages in parse-datetime.y printed
24851         wrong information when encountering local timezones.
24852         Examples:
24853         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
24854              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
24855              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
24856         When the default timezone relates to the zone strings, EET/EEST are
24857         parsed as local timezones (tLOCAL_ZONE), and only change the DST
24858         value (0/1, respectively):
24859              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
24860              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
24861         * lib/parse-datetime.y (debug_print_current_time): If local timezone
24862         was seen, inform about DST change, don't print actual timezone.
24863         (debug_strfdatetime): If local timezone was seen, use default timezone
24864         (and adjust as needed) instead of using incorrect timezone.
24865         (parse_datetime2): Use correct time-zone source string, and adjust
24866         default timezone as needed.
24868         parse-datetime: add debug warning about DST changes
24869         Incorrect date arithmetic due to daylight saving time (DST) are a
24870         common (false) bug report in coreutils.
24871         Detect two such cases and print a warning:
24872         1. year/month/day adjustments (performed on 'struct tm'),
24873            where 'mktime' returns a different isdst value.
24874         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
24875            where the result of 'localtime(3)' on the value will return a
24876            different isdst value.
24877         Note: DST changes could be harmless or unnoticeable.
24878         Examples (with 'TZ=America/New_York'):
24879         Unnoticeable: result is 2016-Dec-14
24880            $ date -d '2016-06-15 EDT + 6 months' +%b
24881            Dec
24882         Unnoticeable: result is 2016-Dec-15 11:00:00
24883            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
24884            2016-12-15
24885         This is unexpected:
24886            $ date -d '2016-06-01 EDT + 6 months' +%F
24887            2016-11-30
24888         The new debug warnings will show:
24889            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
24890            ...
24891            date: warning: daylight saving time changed after date adjustment
24892            ...
24893         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
24894         print an appropriate warning message.
24896         parse-datetime: add debug warning about date arithmetic
24897         Date arithmetic are done directly on the fields of 'struct tm',
24898         which can result in invalid dates. Normalization with 'mktime(3)'
24899         will then produce a different date - which might cause unexpected
24900         results.
24901         Examples:
24902           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
24903           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
24904         Note that date normalization is not inherently wrong and not rejected,
24905         as it has legitimate uses:
24906           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
24907         If the user asked to adjust months but 'mday' changed,
24908         or user asked to adjust years but 'month' changed - warn about it.
24909             $ ./src/date --debug -d '2016-10-31 - 1 month'
24910             ...
24911             date: warning: when adding relative months/years, \
24912                            it is recommended to specify the 15th of the month
24913             ...
24914             date: warning: month/year adjustment resulted in shifted dates:
24915             date:      adjusted Y M D: 2016 09 31
24916             date:    normalized Y M D: 2010 10 01
24917             ...
24918         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
24919         a warning message. Improve recommendation of when to use 15 of the
24920         month or noon for date arithmetic.
24922         parse-datetime: fix debug message of relative part after timezone
24923         Relative part (e.g '+8 days') after a timezone string was not
24924         reported (was only reported after a timezone number). Due to the
24925         parser's structure, timezone strings with numbers were handled
24926         separately.
24927         before:
24928              # Timezone number + relative part: OK
24929              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
24930              ...
24931              date: parsed relative part: -8 day(s)
24932              # Timezone string + relative part: missing
24933              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
24934              [ missing message ]
24935         After: messages are printed in both cases.
24936         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
24938         parse-datetime: fix incorrect debug message on lone number
24939         A lone number is an absolute value, not a relative time part.
24940         before:
24941            $ date --debug -d '20130101'
24942            date: parsed number part: today/this/now
24943         After:
24944            $ ./src/date --debug -d '20130101'
24945            date: parsed number part: (Y-M-D) 2013-01-01
24946         * lib/parse-datetime.y ('item'/'number' tokens): Call
24947         'debug_print_current_time' instead of 'debug_print_relative_time'.
24949 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
24951         doc: modernize for C11 etc.
24952         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
24953         for C11, MinGW, etc.  This responds to Paul Smith's question in:
24954         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
24956         dfa: prefer functions to FETCH_WC macro
24957         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
24958         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
24959         wint_t result into DFA->lex.wctok instead of to a separate arg.
24960         All callers changed.  Move more local decls closer to where
24961         they're used.
24963         dfa: narrow more local var scopes
24964         * lib/dfa.c: Move more local decls to be more local.
24966         dfa: remove duplicate assignment
24967         Problem reported by Bruno Haible in:
24968         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
24969         * lib/dfa.c (parse_bracket_exp): Simplify.
24971 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
24973         dfa: simplify constraint-dependency checking
24974         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
24975         (prev_other_constraint): Remove.
24976         (prev_newline_dependent, prev_letter_dependent):
24977         Simplify, to avoid an unnecessary bitwise AND operation.
24979         dfa: prefer functions and constants to macros
24980         * lib/dfa.c: Prefer constants to macros where either will do.
24981         (streq, isasciidigit, newline_constraint)
24982         (letter_constraint, other_constraint, succeeds_in_context)
24983         (prev_newline_constraint, prev_letter_constraint)
24984         (prev_other_constraint, prev_newline_dependent)
24985         (prev_letter_dependent, accepting, accepts_in_context):
24986         Now static functions instead of function-like macros.
24987         Use lower-case names accordingly.  All uses changed.
24989         dfa: narrow more local var scopes
24990         * lib/dfa.c: Move some more local decls down to nearer where
24991         they're needed.
24993 2016-12-31  Jim Meyering  <meyering@fb.com>
24995         dfa: narrow the scope of many local variables
24996         * lib/dfa.c: Now that we are no longer constrained to c89, move
24997         declarations of many variables (often indices) "down" into the
24998         scope(s) where used or to the point of definition.  This is a
24999         no-semantic-change diff.
25001 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25003         version-etc: new year
25004         * build-aux/gendocs.sh (version):
25005         * doc/gendocs_template:
25006         * doc/gendocs_template_min:
25007         * doc/gnulib.texi:
25008         * lib/version-etc.c (COPYRIGHT_YEAR):
25009         Update copyright dates by hand in templates and the like.
25010         * all files: Run 'make update-copyright'.
25012 2016-12-31  Eric Blake  <eblake@redhat.com>
25014         do-release-commit-and-tag: avoid shell syntax error
25015         * build-aux/do-release-commit-and-tag (curr_br): $branch can
25016         contain spaces when rebasing.
25018         maint.mk: hoist gnulib_dir definition earlier
25019         * top/maint.mk (gnulib_dir): Move near top of file.
25021 2016-12-31  Jim Meyering  <meyering@fb.com>
25023         maint.mk: do not always evaluate intprops-related shell
25024         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
25025         using gnulib_dir undefined (gnulib_dir is defined later in the
25026         file, which will be fixed separately), and besides, there is no
25027         need to incur the cost of this shell invocation for every single
25028         use of this .mk file.  Reported by Eric Blake in
25029         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
25031 2016-12-30  Jim Meyering  <meyering@fb.com>
25033         maint.mk: improve sc_prohibit_intprops_without_use
25034         * top/maint.mk (_intprops_names): Don't hard-code the list of
25035         symbol names.  Instead, derive it on the fly.
25037 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
25039         dfa: shorten sbit, success
25040         * lib/dfa.c (struct regex_syntax.sbit):
25041         (struct dfa.success): Use char, not int, for array elements, since
25042         they are all in the range 0..7.
25044         dfa: simplify multibyte_prop etc.
25045         This follows up on a change made when dfa.c was in grep, namely grep
25046         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
25047         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
25048         That earlier simplification allows for some more simplification
25049         and trimming down here.
25050         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
25051         (struct lexer_state): New mamber brack.
25052         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
25053         since they must be in the range 0..3 now.
25054         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
25055         the brack member now supersedes them.
25056         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
25057         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
25058         (dfaparse): Remove unnecessary initializations of already-0 storage.
25059         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
25060         (dfassbuild): No need to clear sup->mbcsets.
25062         dfa: minor performance tweak
25063         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
25065         dfa: wrap charclass inside a struct
25066         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
25067         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
25068         about 5% faster, where list.txt is generated by 'aspell dump
25069         master | head -n 100000 >list.txt'.  See Bug#22239.
25070         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
25071         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
25072         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
25073         Adjust to this, e.g., by using charclass * rather than charclass.
25074         All callers changed as needed.
25075         (copyset): Remove.  All uses changed to simple assignment.
25076         (parse_bracket_exp): Use zeroset instead of memset.
25078 2016-12-30  Jim Meyering  <meyering@fb.com>
25080         maint.mk: update list of intprops.h symbol names
25081         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
25082         This avoids a false failure of the sc_prohibit_intprops_without_use
25083         rule in grep.
25085 2016-12-29  Eric Blake  <eblake@redhat.com>
25087         getopt: fix parallel test failure
25088         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
25089         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
25090         * tests/test-getopt-main.h (main): Use different file names
25091         in case test-getopt-gnu and test-getopt-posix run in parallel.
25093 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25095         xalloc: x2nrealloc check for ptrdiff_t overflow
25096         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
25097         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
25099 2016-12-24  Bruno Haible  <bruno@clisp.org>
25101         lock test: Fix performance problem on multi-core machines.
25102         * tests/test-lock.c (USE_VOLATILE): New macro.
25103         (struct atomic_int): New type.
25104         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
25105         functions.
25106         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
25107         as 'struct atomic_int'.
25108         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
25109         reclock_checker_thread, test_recursive_lock): Use the new functions.
25110         Reported by Eric Blake in
25111         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
25112         and by Pádraig Brady in
25113         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
25115 2016-12-19  Bruno Haible  <bruno@clisp.org>
25117         vma-iter: Fix endless loop on 64-bit Windows.
25118         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
25119         'unsigned long'.
25121 2016-12-19  Bruno Haible  <bruno@clisp.org>
25123         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
25124         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
25125         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
25126         Invoke gt_TYPE_WINT_T instead.
25127         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
25128         * modules/stdint (Files): Add m4/wint_t.m4.
25129         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
25130         * modules/wctype-h (Makefile.am): Likewise.
25131         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
25132         not only on MSVC.
25133         * lib/wctype.in.h (wint_t): Likewise.
25135 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25137         getopt-posix-tests: fix Makefile typo
25138         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
25139         Fix typo: the last ‘_’ was missing in the name.
25140         I suspect that the typo explains this build failure:
25141         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
25142         although I can’t reproduce the problem on Solaris 10 sparc.
25144 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25146         dfa: improve worst-case 'replace' performance
25147         See my note in Bug#22357#71.
25148         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
25149         (merge_constrained): New function, which is like
25150         the old 'merge' function, except with a new argument C2.
25151         Simplify the body by avoiding the need for different sections
25152         of code depending on whether one input is exhausted.
25153         (merge): Use the new function.
25154         (delete): Return the constraint of the deleted position,
25155         not the entire position.  Caller changed.
25156         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
25158 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25160         dfa: performance improvement for removal of epsilon closure
25161         See Bug#22357#32.
25162         * lib/dfa.c (delete): Use binary search to find deleted index.
25163         (replace): New function.  It replaces a position with the followed set.
25164         (epsclosure): Replace it with a new algorithm.  Update caller.
25166 2016-12-18  Bruno Haible  <bruno@clisp.org>
25168         Split tests for getopt-posix and getopt-gnu.
25169         * tests/test-getopt-posix.c: New file.
25170         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
25171         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
25172         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
25173         GNULIB_TEST_GETOPT_GNU.
25174         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
25175         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
25176         (Makefile.am): Test test-getopt-posix instead of test-getopt.
25177         * modules/getopt-gnu-tests: New file.
25178         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
25180 2016-12-18  Bruno Haible  <bruno@clisp.org>
25182         posix-modules: Add options for specific platforms.
25183         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
25184         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
25185         Invoke func_tmpdir. Filter out the excludes.
25187 2016-12-18  Bruno Haible  <bruno@clisp.org>
25189         getopt: Fix link error for users of getopt() in <unistd.h>.
25190         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
25191         __need_getopt is defined. Undefine all macros before defining them.
25192         * modules/getopt (Include): Clarify that including <unistd.h> is also
25193         OK.
25194         * tests/test-getopt.c: Add comment.
25196 2016-12-17  Bruno Haible  <bruno@clisp.org>
25198         getaddrinfo tests: Avoid compilation error on MSVC.
25199         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
25200         getaddrinfo on native Windows.
25202 2016-12-17  Bruno Haible  <bruno@clisp.org>
25204         getlogin, getlogin_r: Fix link errors on MSVC.
25205         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
25206         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
25207         (Link): New section.
25208         * modules/getlogin_r (Files): Add m4/getlogin.m4.
25209         (configure.ac): Require gl_LIB_GETLOGIN.
25210         (Link): New section.
25211         * NEWS: Mention the new link requirements.
25212         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
25213         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
25215 2016-12-17  Bruno Haible  <bruno@clisp.org>
25217         Un-deprecate the 'progname' module.
25218         * NEWS: Describe the appropriate use-cases of 'progname' versus
25219         'getprogname'. Based on discussion summary at
25220         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
25222 2016-12-17  Bruno Haible  <bruno@clisp.org>
25224         Reorganize NEWS a bit.
25225         * NEWS: Move some not so important changes away from section
25226         "Important Notes".
25228 2016-12-17  Bruno Haible  <bruno@clisp.org>
25230         tanhf: Avoid redefinition error on MSVC.
25231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
25232         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
25233         may be defined as an inline function.
25234         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
25235         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
25237 2016-12-17  Bruno Haible  <bruno@clisp.org>
25239         tanf: Avoid redefinition error on MSVC.
25240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
25241         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
25242         may be defined as an inline function.
25243         * modules/math (Makefile.am): Substitute REPLACE_TANF.
25244         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
25246 2016-12-17  Bruno Haible  <bruno@clisp.org>
25248         sqrtf: Avoid redefinition error on MSVC.
25249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
25250         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
25251         may be defined as an inline function.
25252         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
25253         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
25255 2016-12-17  Bruno Haible  <bruno@clisp.org>
25257         sinhf: Avoid redefinition error on MSVC.
25258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
25259         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
25260         may be defined as an inline function.
25261         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
25262         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
25264 2016-12-17  Bruno Haible  <bruno@clisp.org>
25266         sinf: Avoid redefinition error on MSVC.
25267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
25268         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
25269         may be defined as an inline function.
25270         * modules/math (Makefile.am): Substitute REPLACE_SINF.
25271         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
25273 2016-12-17  Bruno Haible  <bruno@clisp.org>
25275         logf: Avoid redefinition error on MSVC.
25276         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
25277         may be defined as an inline function.
25279 2016-12-17  Bruno Haible  <bruno@clisp.org>
25281         log10l: Avoid redefinition error on MSVC.
25282         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
25283         may be defined as an inline function.
25285 2016-12-17  Bruno Haible  <bruno@clisp.org>
25287         log10f: Avoid redefinition error on MSVC.
25288         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
25289         may be defined as an inline function.
25291 2016-12-17  Bruno Haible  <bruno@clisp.org>
25293         hypotl: Avoid redefinition error on MSVC.
25294         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
25295         may be defined as an inline function.
25297 2016-12-17  Bruno Haible  <bruno@clisp.org>
25299         hypotf: Avoid redefinition error on MSVC.
25300         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
25301         may be defined as an inline function.
25303 2016-12-17  Bruno Haible  <bruno@clisp.org>
25305         fmodl: Avoid redefinition error on MSVC.
25306         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
25307         may be defined as an inline function.
25309 2016-12-17  Bruno Haible  <bruno@clisp.org>
25311         fmodf: Avoid redefinition error on MSVC.
25312         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
25313         may be defined as an inline function.
25315 2016-12-17  Bruno Haible  <bruno@clisp.org>
25317         expf: Avoid redefinition error on MSVC.
25318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
25319         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
25320         may be defined as an inline function.
25321         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
25322         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
25324 2016-12-17  Bruno Haible  <bruno@clisp.org>
25326         coshf: Avoid redefinition error on MSVC.
25327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
25328         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
25329         may be defined as an inline function.
25330         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
25331         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
25333 2016-12-17  Bruno Haible  <bruno@clisp.org>
25335         cosf: Avoid redefinition error on MSVC.
25336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
25337         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
25338         may be defined as an inline function.
25339         * modules/math (Makefile.am): Substitute REPLACE_COSF.
25340         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
25342 2016-12-17  Bruno Haible  <bruno@clisp.org>
25344         atan2f: Avoid redefinition error on MSVC.
25345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
25346         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
25347         may be defined as an inline function.
25348         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
25349         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
25351 2016-12-17  Bruno Haible  <bruno@clisp.org>
25353         atanf: Avoid redefinition error on MSVC.
25354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
25355         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
25356         may be defined as an inline function.
25357         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
25358         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
25360 2016-12-17  Bruno Haible  <bruno@clisp.org>
25362         asinf: Avoid redefinition error on MSVC.
25363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
25364         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
25365         may be defined as an inline function.
25366         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
25367         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
25369 2016-12-17  Bruno Haible  <bruno@clisp.org>
25371         acosf: Avoid redefinition error on MSVC.
25372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
25373         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
25374         may be defined as an inline function.
25375         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
25376         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
25378 2016-12-17  Bruno Haible  <bruno@clisp.org>
25380         Avoid redefinition errors on MSVC.
25381         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
25382         the function may be defined as an inline function.
25383         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
25384         the function may be defined as an inline function.
25386 2016-12-17  Bruno Haible  <bruno@clisp.org>
25388         Avoid redefinition errors on MSVC.
25389         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
25390         * lib/unistd.in.h: Include <stdio.h> when necessary.
25392 2016-12-17  Bruno Haible  <bruno@clisp.org>
25394         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
25395         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
25396         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
25397         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
25398         WINT_MAX.
25400 2016-12-17  Bruno Haible  <bruno@clisp.org>
25402         Avoid autoconf warning.
25403         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
25404         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
25406 2016-12-17  Bruno Haible  <bruno@clisp.org>
25408         fpending: Revert workaround against Emacs bug.
25409         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
25410         The Emacs bug is fixed by Eli Zaretskii in
25411         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
25413 2016-12-17  Bruno Haible  <bruno@clisp.org>
25415         getlogin_r tests: Port to mingw.
25416         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
25417         regression introduced on 2014-05-19.
25419 2016-12-17  Bruno Haible  <bruno@clisp.org>
25421         getlogin: Port to newer mingw.
25422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
25423         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
25424         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
25425         HAVE_GETLOGIN.
25426         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
25427         HAVE_GETLOGIN.
25428         * doc/posix-functions/getlogin.texi: Mention the issue.
25429         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
25430         regression introduced on 2014-05-14.
25432 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25434         builtin-expect: improve port to IBM XL C
25435         Problem reported for z/OS by Daniel Richard G. in:
25436         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
25437         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25438         Test for <builtins.h> directly.
25440         builtin-expect: port to IBM XL C
25441         Problem reported for z/OS by Daniel Richard G. in:
25442         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
25443         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25444         Also allow __builtin_expect defined via a standard include file.
25446         regex: fix dependency
25447         Problem reported by Bruno Haible in:
25448         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
25449         * modules/regex: Depend on builtin-expect.
25451         builtin-expect: new module
25452         Fix fnmatch to use it.
25453         Problem reported for z/OS by Daniel Richard G.
25454         * lib/fnmatch.c (__builtin_expect):
25455         * lib/glob.c (__builtin_expect):
25456         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
25457         * lib/memmem.c (__builtin_expect) [!_LIBC]:
25458         * lib/scandir.c (__builtin_expect):
25459         * lib/strstr.c (__builtin_expect) [!_LIBC]:
25460         Remove macro; config.h now does this.
25461         * lib/gl_anytreehash_list1.h (add_to_bucket):
25462         * lib/regex_internal.h (BE):
25463         Assume __builtin_expect.
25464         * m4/builtin-expect.m4, modules/builtin-expect: New files.
25465         * modules/avltreehash-list, modules/fnmatch, modules/glob:
25466         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
25467         * modules/scandir, modules/strstr-simple:
25468         Depend on builtin-expect.
25470 2016-12-15  Bruno Haible  <bruno@clisp.org>
25472         init.sh: Add possibility to not delete temporary files.
25473         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
25474         to yes, don't erase the temporary directory.
25476 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25478         regex: fix integer-overflow bug in never-used code
25479         Problem reported by Clément Pit–Claudel in:
25480         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
25481         * lib/regex_internal.h: Include intprops.h.
25482         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
25483         behavior on integer overflow.
25484         * modules/regex (Depends-on): Add intprops.
25486         fpending: fix port to MinGW on Emacs
25487         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
25488         Problem reported by Eli Zaretskii in:
25489         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
25490         Is Plan 9 still a valid porting target, anyway?
25492 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25494         safe-alloc: use xalloc-oversized
25495         * lib/safe-alloc.c: Include xalloc-oversized.h.
25496         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
25497         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
25499         xalloc: do not exceed PTRDIFF_MAX
25500         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
25501         xalloc_oversized check, since objects larger than PTRDIFF_MAX
25502         bytes have pointer-subtraction problems.
25504         malloca: do not exceed PTRDIFF_MAX
25505         * lib/malloca.h: Include xalloc-oversized.
25506         (nmalloca): Use xalloc_oversized instead of rolling our own.
25507         * modules/malloca (Depends-on):
25508         * modules/relocatable-prog-wrapper (Depends-on):
25509         Add xalloc-oversized.
25511         quotearg: pacify GCC better
25512         * modules/quotearg (Depends-on): Add minmax, stdint.
25513         * lib/quotearg.c: Include minmax.h, stdint.h.
25514         (nslots): Now int, as there seems little point to going to extra
25515         work merely to support the INT_MAX slot, which nobody ever uses.
25516         (quotearg_n_options): Redo size-overflow checks to pacify GCC
25517         and to catch (mostly-theoretical) ptrdiff_t problems too.
25518         This can be done via one comparison.
25520 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
25522         xalloc-oversized: check for PTRDIFF_MAX too
25523         This avoids undefined behavior when subtracting pointers to
25524         objects containing more than PTRDIFF_MAX bytes.
25525         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
25526         Also return 1 if the result would exceed PTRDIFF_MAX>
25527         * modules/xalloc-oversized (Depends-on):
25528         Add stdint.
25530         dfa: fix glitches in previous commit
25531         Sorry, I don't know how I managed to commit the wrong version.
25532         * lib/dfa.c (MIN): Move up.
25533         (xpalloc): Now static.
25535         dfa: fix some unlikely integer overflows
25536         I found these while reviewing the recent Coverity-related fix.
25537         This patch changes part of dfa.c to prefer ptrdiff_t instead of
25538         size_t for object counts.  Using ptrdiff_t is the style typically
25539         used in Emacs; although it wastes a sign bit as sizes can never be
25540         negative, it makes -fsanitize=undefined more likely to catch
25541         integer overflows in index calculation, and nowadays the upside is
25542         typically more important than the downside.  Although perhaps the
25543         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
25544         of dfa.c already does, since it uses state_num which is signed),
25545         that is a bigger change and is not needed to fix the bugs I found.
25546         * lib/dfa.c: Include stdint.h and intprops.h.
25547         (TOKEN_MAX): New macro.
25548         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
25549         (charclass_index, parse_bracket_exp, addtok, insert, merge)
25550         (realloc_trans_if_necessary, free_mbdata):
25551         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
25552         This is safe because xpalloc checks that the sizes do not exceed
25553         either SIZE_MAX or PTRDIFF_MAX.
25554         (xpalloc): New function, mostly taken from Emacs.
25555         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
25556         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
25557         (charclass_index): Check for integer overflow in computing
25558         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
25559         added to it later.
25560         (alloc_position_set): Check for integer overflow.  On typical
25561         platforms this check has zero overhead, since the constant
25562         expression is false.
25563         (realloc_trans_if_necessary):
25564         Remove assertion, which I hope Coverity no longer needs.
25566         * modules/dfa (Depends-on): Add intprops, stdint.
25568 2016-12-12  Jim Meyering  <meyering@fb.com>
25570         dfa: add an assertion to avoid coverity false positive
25571         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
25572         warned that "newalloc1 - 2" could overflow.
25574 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
25576         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
25577         * dfa.h (DFA_CASE_FOLD): Remove.
25578         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
25580 2016-12-13  John W. Eaton  <gnu@jweaton.org>
25582         link: fix test to declare use of rename()
25583         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
25584         -Werror=implicit-function-declaration
25586 2016-12-12  Bruno Haible  <bruno@clisp.org>
25588         fpending: Port to native Windows with MSVC.
25589         * lib/fpending.c: Include stdio-impl.h.
25590         (__fpending): Include all known implementations. Err out if it's not
25591         ported.
25592         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
25593         * modules/fpending (Files): Add lib/stdio-impl.h.
25594         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
25596 2016-12-12  Bruno Haible  <bruno@clisp.org>
25598         stdioext: Port to native Windows with MSVC.
25599         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
25600         (struct _gl_real_FILE): New type.
25601         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
25602         Windows.
25603         * lib/fbufmode.c (fbufmode): Add code for native Windows.
25604         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
25605         other SystemV derived implementations.
25606         * lib/fpurge.c (fpurge): Likewise.
25607         * lib/freadable.c (freadable): Likewise.
25608         * lib/freadahead.c (freadahead): Likewise.
25609         * lib/freading.c (freading): Likewise.
25610         * lib/freadptr.c (freadptr): Likewise.
25611         * lib/freadseek.c (freadptrinc): Likewise.
25612         * lib/fseeko.c (fseeko): Likewise.
25613         * lib/fseterr.c (fseterr): Likewise.
25614         * lib/fwritable.c (fwritable): Likewise.
25615         * lib/fwriting.c (fwriting): Likewise.
25616         Reported by Gisle Vanem <gvanem@yahoo.no>.
25618 2016-12-11  Jim Meyering  <meyering@fb.com>
25620         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
25621         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
25622         to work with most shells, but not with the one provided by many
25623         Solaris 10 systems, so running configure with such a /bin/sh evokes
25624         e.g., "./configure: syntax error at line 33602: `(' unexpected".
25625         Reported by Assaf Gordon in
25626         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
25628 2016-12-10  Bruno Haible  <bruno@clisp.org>
25630         threadlib: Optimize out runtime test on Solaris >= 10.
25631         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
25632         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
25633         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
25635 2016-12-10  Bruno Haible  <bruno@clisp.org>
25637         stdint: Update doc about Solaris 9.
25638         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
25640 2016-12-09  Bruno Haible  <bruno@clisp.org>
25642         c-ctype tests: Fix link error on Solaris 9.
25643         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
25644         Reported at <https://savannah.gnu.org/bugs/?46827>.
25646 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
25648         dfa: fix performance bug that recomputes trans
25649         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
25650         25 on-demand changes.  The bug caused build_state to reset all
25651         d->trans elements to -2 even when d->trans was already non-null.
25652         Use C99 style decls after statements in this function.
25654         same-inode: port to MinGW
25655         Here st_ino is always 0, so change the definition of SAME_INODE so
25656         that 1 means the two files are the same, 0 with st_ino != 0 means
25657         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
25658         reported by Bruno Haible (Bug#25146).
25659         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
25660         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
25662 2016-12-04  Bruno Haible  <bruno@clisp.org>
25664         javacomp-script: Support Java 7 and 8.
25665         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
25666         target-version 1.7, 1.8.
25668 2016-12-02  Daiki Ueno  <ueno@gnu.org>
25670         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
25671         GPLv2" rewriting.
25673 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
25675         * gnulib-tool (func_import): Adhere to the license guideline when
25676         rewriting the license text to "LGPLv3+ or GPLv2":
25677         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
25679 2016-12-02  Bruno Haible  <bruno@clisp.org>
25681         localcharset: Avoid theoretical buffer overrun.
25682         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
25683         return value from setlocale if it would lead to a buffer overrun.
25685 2016-12-01  Bruno Haible  <bruno@clisp.org>
25687         Relicense some modules under LGPLv2+.
25688         Kevin Cernekee's approval is in
25689         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
25690         * modules/fseterr (License): Change to LGPLv2+.
25691         * modules/mbchar (License): Likewise.
25692         * modules/mbiter (License): Likewise.
25693         * modules/mbsnlen (License): Likewise.
25694         * modules/wcwidth (License): Likewise.
25696 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25698         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
25699         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
25700         OS/2 kLIBC.
25702 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25704         alphasort, scandir: Port to OS/2 kLIBC
25705         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
25706         declaration.
25707         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
25709 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25711         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
25712         * lib/relocatable.c (relocate): Do not touch pathname if it is started
25713         with '/@unixroot'.
25715 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25717         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
25718         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
25719         OS/2 kLIBC unless TCPV40HDRS is defined.
25721 2016-11-29  Jim Meyering  <meyering@fb.com>
25723         dfa: avoid new infinite loop
25724         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
25725         * lib/dfa.c (dfastate): When constructing a new state table, we could
25726         initially declare that we had found a match, and later find that
25727         constraints eliminate that possibility, yet continue to use the
25728         now stale "matched" indicator.  That would lead to an infinite loop.
25729         The solution is to update "matched" when necessary.
25730         Introduced by commit v0.1-983-g403adf1.
25732 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25734         dfa: avoid match middle in multibyte character
25735         * lib/dfa.c (transit_state): If fails in matching single byte characters
25736         on a state including period expression in non-UTF8 multibyte locales,
25737         skip trailing bytes.
25738         (dfa_supported): Revert previous change.
25740 2016-11-27  Jim Meyering  <meyering@fb.com>
25742         dfa: avoid false match in non-UTF8 multibyte locales
25743         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
25744         as "not supported" so that callers will resort to using regex-based
25745         matcher.  This will surely hurt performance, but correctness trumps
25746         performance here, and the affected locales are less and less relevant,
25747         these days.  See grep's bug report https://bugs.gnu.org/24975.
25749 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
25751         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
25752         * lib/ptsname_r.c: Include the appropriate headers.
25753         [__sun]: Delete sys/sysmacros.h include.
25754         [_AIX || __osf__]: Likewise.
25755         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
25757 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25759         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
25760         * lib/md4.c (md4_process_bytes): The existing define is made internal
25761         in recent versions of glibc, so also use this new public define.
25762         * lib/md5.c (md5_process_bytes): Likewise.
25763         * lib/sha1.c (sha1_process_bytes): Likewise.
25764         * lib/sha256.c (sha256_process_bytes): Likewise.
25765         * lib/sha512.c (sha512_process_bytes): Likewise.
25767 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25769         maint: use a more standard return from mbrtowc test
25770         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
25771         from the test program as this often indicates an
25772         unhandled case in the test program.
25773         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
25774         (gl_MBRTOWC_SANITYCHECK): Likewise.
25775         (gl_MBRTOWC_NULL_ARG2): Likewise.
25776         (gl_MBRTOWC_NUL_RETVAL): Likewise.
25778 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
25780         freopen: work around glibc bug with closed fd
25781         Work around glibc bug#15589, where freopen mishandles the case
25782         where stdin etc. are already closed.
25783         * doc/posix-functions/freopen.texi (freopen): Document the bug.
25784         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
25785         instead of __need_FILE, as the latter does not work with glibc.
25786         Include <fcntl.h>, for open flags.
25787         (rpl_freopen): Work around glibc bug.
25788         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
25789         * modules/freopen (Depends-on): Add fcntl-h.
25790         * tests/test-freopen.c (main): Test for bug.
25792 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25794         fnmatch: fix typo introduced on 2016-08-17
25795         This fixes the port to non-GCC compilers that lack __builtin_expect.
25796         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
25798         dfa: simplify with new function fillset
25799         * lib/dfa.c (fillset): New function.
25800         Use it for clarity when applicable.
25802         dfa: fix glitches with on-demand states
25803         Also, adjust commentary to better match new code.
25804         Some of these glitches predate the recent change.
25805         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
25806         only non-initial states.
25807         (dfastate): Rename locals to better match new roles.
25808         Move them into nested scopes if this is easy.
25809         Omit unnecessary calls to zeroset.
25810         Simplify test for whether to throw in the positions of state 0.
25811         Omit C99-ism (decl after statement) since Gawk still wants C89.
25812         (build_state): Omit unnecessary test and assignment.
25813         Fix some confusion that counted transition tables inaccurately
25814         and could cause a memory leak.
25815         (dfaexec_main): Redo to make it clearer to the compiler that
25816         -1 and -2 are the only negative state numbers here.
25818 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25820         dfa: addition of new state on demand
25821         * src/dfa.c (dfastate): Add argument UC, the current input character.
25822         Fill only a group including the character in transition table.
25823         (realloc_trans_if_necessary): Add the dummy state which means that a
25824         transition table is assigned but the next state is not assigned.
25825         (build_state): Return the next state.  All callers updated.
25826         (transit_state_singlebyte): If we get the dummy state,
25827         fill the transition table.
25828         (dfaexec_main): Handle the dummy state.
25829         (free_mbdata, dfafree): Consider the dummy state.
25831 2016-11-24  Daiki Ueno  <ueno@gnu.org>
25833         srclist: sync with released gettext
25834         * config/srclist.txt: Set "release" option to the files under
25835         $GETTEXT.
25837 2016-11-24  Daiki Ueno  <ueno@gnu.org>
25839         srclist: add "release" option
25840         * config/srclist.txt: Change the format so that the first column
25841         of each line points to the top-level directory of the source
25842         archive.
25843         * config/srclist-update: Accept "release" option that checks files
25844         from the most recently tagged revision in the source archive.
25846 2016-11-21  Bruno Haible  <bruno@clisp.org>
25848         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
25849         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
25850         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
25851         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
25852         Inline and remove member function 'rpl ()' of the wrapper struct.
25854 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
25856         dfa: fix logic typo
25857         Problem reported by Stephane Chazelas (Bug#24973).
25858         * lib/dfa.c (using_simple_locale): Fix typo that caused some
25859         non-simple locales like fr_FR to be treated as simple.
25861 2016-11-20  Jim Meyering  <meyering@fb.com>
25863         fix test driver leaks: exclude, malloc, realloc
25864         * tests/test-exclude.c (main): Fix trivial leak.
25865         * tests/test-malloc-gnu.c (main): Likewise.
25866         * tests/test-realloc-gnu.c (main): Likewise.
25867         With these changes, grep's tests are now leak free.
25868         I.e., running them with ASAN elicits no failure:
25869           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
25870             AM_LDFLAGS='-fsanitize=address -static-libasan' check
25872 2016-11-11  Bruno Haible  <bruno@clisp.org>
25874         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
25875         * modules/libunistring: (License): Change from LGPL to
25876         "LGPLv3+ or GPLv2".
25877         * modules/libunistring-optional: Likewise.
25878         * modules/unicase/*: Likewise.
25879         * modules/uniconv/*: Likewise.
25880         * modules/unictype/*: Likewise.
25881         * modules/unigbrk/*: Likewise.
25882         * modules/unilbrk/*: Likewise.
25883         * modules/uniname/*: Likewise.
25884         * modules/uninorm/*: Likewise.
25885         * modules/unistdio/*: Likewise.
25886         * modules/unistr/*: Likewise.
25887         * modules/uniwbrk/*: Likewise.
25888         * modules/uniwidth/*: Likewise.
25890 2016-11-12  Bruno Haible  <bruno@clisp.org>
25892         Relicense some modules under LGPLv2+.
25893         Paul Eggert's approval is in
25894         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
25895         Eric Blake's approval is in
25896         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
25897         Ludovic Courtès's approval is in
25898         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
25899         * modules/isnand-nolibm (License): Change to LGPLv2+.
25900         * modules/isnanf-nolibm (License): Likewise.
25901         * modules/isnanl-nolibm (License): Likewise.
25903 2016-11-19  Bruno Haible  <bruno@clisp.org>
25905         Relicense some modules under LGPLv2+.
25906         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
25907         modules/vasnprintf.
25908         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
25909         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
25910         All other significant changes to the files in lib/ of these modules
25911         are from me.
25912         * modules/memcmp2 (License): Change to LGPLv2+.
25913         * modules/amemxfrm (License): Likewise.
25914         * modules/fpieee (License): Likewise.
25915         * modules/fpucw (License): Likewise.
25916         * modules/frexp-nolibm (License): Likewise.
25917         * modules/frexpl-nolibm (License): Likewise.
25918         * modules/printf-frexp (License): Likewise.
25919         * modules/printf-frexpl (License): Likewise.
25920         * modules/printf-safe (License): Likewise.
25921         * modules/signbit (License): Likewise.
25923 2016-11-17  Bruno Haible  <bruno@clisp.org>
25925         Enable Unicode decoder safety unconditionally.
25926         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
25927         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
25928         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25929         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25930         * lib/unistr/u8-prev.c (u8_prev): Likewise.
25931         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
25932         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
25933         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
25934         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
25935         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
25936         * lib/unistr/u16-prev.c (u16_prev): Likewise.
25937         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
25938         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
25939         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
25940         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
25941         * lib/unistr/u32-prev.c (u32_prev): Likewise.
25942         * lib/unistr/u32-next.c (u32_next): Likewise.
25943         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
25944         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
25945         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25946         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
25947         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
25948         CONFIG_UNICODE_SAFETY tests unconditionally.
25949         * tests/unistr/test-u32-mblen.c (main): Likewise.
25950         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
25951         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
25952         * tests/unistr/test-u32-next.c (main): Likewise.
25953         * tests/unistr/test-u32-strmblen.c (main): Likewise.
25954         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
25955         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
25956         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
25957         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
25958         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25959         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
25960         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
25961         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
25962         * lib/unistr/u16-check.c (u16_check): Update comment.
25963         * NEWS: Mention the changes that callers should be aware of.
25965 2016-11-19  Bruno Haible  <bruno@clisp.org>
25967         relocatable-prog-wrapper: Fix breakage on Cygwin.
25968         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
25969         (Depends-on): Remove intprops.
25970         * lib/relocwrapper.c: Update dependency tree.
25971         (strerror): Undefine.
25972         * build-aux/install-reloc (func_create_wrapper): Do not compile
25973         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
25975 2016-11-19  Bruno Haible  <bruno@clisp.org>
25977         strerror: Make it compile in C++ mode.
25978         * lib/strerror.c (strerror): Ignore the return value of memcpy().
25980 2016-11-15  Pedro Alves  <palves@redhat.com>
25982         sys_time: add gnulib::timeval for C++
25983         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
25984         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
25985         timeval macro.
25987 2016-11-14  Pedro Alves  <palves@redhat.com>
25989         snippet/c++defs: fix real-floating arg functions in C++ mode
25990         Also, define isfinite, isinf, isnan, signbit in the gnulib
25991         namespace instead of in the global namespace.
25992         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
25993         (_GL_END_NAMESPACE): New.
25994         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
25995         (isfinite, isinf, isnan, signbit) [__cplusplus &&
25996         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
25997         instead of in the global namespace.
25998         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
25999         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
26000         of in the global namespace.
26002 2016-11-13  Jim Meyering  <meyering@fb.com>
26004         strftime: don't use __THROW
26005         Each use of __THROW would provoke this from gcc-7-to-be:
26007           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
26008             on unit local functions [-Wattributes]
26009           static int iso_week_days (int, int) __THROW;
26010           ^~~~~~
26011         * lib/strftime.c (__THROW): Don't define.
26012         Remove each use of __THROW.
26013         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
26014         (tm_diff, iso_week_days, __strftime_internal): Likewise.
26016 2016-11-14  Paul Eggert  <eggert@union>
26018         obstack: port to gcc -fcheck-pointer-bounds
26019         Problem found by 'make check' failure on bleeding-edge coreutils
26020         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
26021         6.2.0-5ubuntu12), configured via "./configure
26022         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
26023         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
26024         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
26025         New macro, copied from fts_.h.
26026         (struct _obstack_chunk.contents): Use it.
26028 2016-11-14  Eric Blake  <eblake@redhat.com>
26030         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
26031         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
26032         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
26034 2016-11-14  Pádraig Brady  <P@draigBrady.com>
26036         strptime: fix compile error in recent change
26037         * lib/strptime.c (__strptime_internal): Fix ported code.
26039 2016-11-11  Bruno Haible  <bruno@clisp.org>
26041         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
26042         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
26043         (func_import): Extend determination of license_incompatibilities.
26044         (func_create_testdir): Extend table of license compatibility. Handle
26045         also the licenses GPLv3+, GPL, LGPLv3+.
26047 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26049         strftime: tune %q
26050         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
26052         Merge strftime.c changes from glibc
26053         This incorporates:
26054         2007-10-16 [BZ #5184] Add tzset_called argument
26055         2008-06-13 [BZ #6612] pass reference to tzset_called around
26056         2009-10-30 Implement Burmese language locale for Myanmar
26057         2010-01-09 Add support for XPG7 testing
26058         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
26059         2015-10-20 Convert miscellaneous function definitions to prototype style
26060         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
26061         it anyway and this lessens the difference between gnulib and glibc.
26062         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
26063         (__THROW): Define if standard headers do not.
26064         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
26065         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
26066         Declare with __THROW.
26067         (__strftime_internal): Rename from strftime_case_. Add arg for
26068         whether tzset is called.  All uses changed.  Call tzset at most
26069         once.  Allow %OC, for Burmese.
26070         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
26071         Don't assume values are in range.
26073 2016-11-12  Eric Blake  <eblake@redhat.com>
26075         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
26076         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
26077         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
26078         different value.
26080 2006-11-12  Pedro Alves  <palves@redhat.com>
26082         Fix gnulib C++ namespace support and std::frexp
26083         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
26084         _GL_CXXALIASWARN.
26086 2006-11-12  Pedro Alves  <palves@redhat.com>
26088         GNULIB_NAMESPACE::func need not pull in rpl_func
26089         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
26090         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
26091         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
26092         struct instead of a function pointer.
26094 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
26096         manywarnings: fix -Wno-missing-field-initializers detection
26097         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
26098         to be independent of -Wunused-variable.  I.E. ensure the latter
26099         warning doesn't occur so that detection of the former is accurate.
26101 2016-11-05  Pádraig Brady  <pbrady@fb.com>
26103         strftime,strptime: support %q to represent the quarter
26104         * lib/strftime.c (strftime_case_): Add %q case.
26105         * lib/strptime.c (__strptime_internal): Likewise.
26106         * tests/test-strftime.c (quarter_test): A new test case.
26108 2016-11-03  Eric Blake  <eblake@redhat.com>
26110         bootstrap: Fix get_version() for AIX 5.3
26111         * build-aux/bootstrap (get_version): Factor out sed script, since
26112         indented comments choke AIX 5.3 sed.
26113         Reported-by: Michael Felt <aixtools@gmail.com>
26115 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26117         intprops: port to older XL C
26118         Problem reported by Alexander Samoilov in:
26119         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
26120         http://savannah.nongnu.org/bugs/?49448
26121         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
26122         Define to 1 only for XL C 12.1 or later, since this bug
26123         occurs in XL C for AIX 6.0 but not in 12.1.
26125 2016-11-02  Pádraig Brady  <P@draigBrady.com>
26127         backupfile: initialize default suffix within the implementation
26128         * lib/backupfile.c (find_backup_file_name): Initialize the
26129         global variable here, to simplify usage, and to only call
26130         getenv() when needed.
26132 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26134         futimens: remove FIXME for old Linux kernels
26135         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
26136         this in 2012" FIXME, like that for utimensat.
26138         utimensat: remove FIXME for old Linux kernels
26139         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
26140         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
26141         this in 2012" FIXME, by assuming the file system bug is absent
26142         unless demonstrated to be present.  We no longer need to worry
26143         about Linux kernel 2.6.32 when building with newer kernels.
26145 2016-10-16  Bruno Haible  <bruno@clisp.org>
26147         qsort_r: Fix macrology for platforms that lack the function.
26148         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
26149         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
26150         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
26151         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
26152         not exist.
26153         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
26154         the function exists.
26155         * modules/qsort_r: Add comments.
26157 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26159         sys_types: fix Texinfo typos
26160         * doc/glibc-functions/gnu_dev_major.texi:
26161         * doc/glibc-functions/gnu_dev_makedev.texi:
26162         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
26164 2016-10-26  John David Anglin  <dave.anglin@bell.net>
26166         getprogname: port to HP-UX
26167         See Bug#24805.
26168         * lib/getprogname.c (getprogname) [__hpux]: Port.
26169         * tests/test-getprogname.c (STREQ) [__hpux]:
26170         Special-case for HP-UX limitations on program name length.
26172 2016-10-20  Bruno Haible  <bruno@clisp.org>
26174         Update doc about target platforms.
26175         * doc/gnulib-intro.texi (Target Platforms): Update list.
26177 2016-10-15  Bruno Haible  <bruno@clisp.org>
26179         opendir, readdir, closedir: Relicense under LGPLv2+.
26180         * modules/opendir (License): Change to LGPLv2+.
26181         * modules/readdir (License): Likewise.
26182         * modules/closedir (License): Likewise.
26184 2016-10-16  Bruno Haible  <bruno@clisp.org>
26186         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
26187         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
26188         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
26189         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
26190         HAVE_DECL_STRERROR_R.
26192 2016-10-16  Bruno Haible  <bruno@clisp.org>
26194         Make the 'argp' module work without the 'error' module.
26195         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
26197 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
26199         diffseq: restore TOO_EXPENSIVE heuristic
26200         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
26201         (Bug#24715).  The simplest solution is to restore the
26202         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
26203         using a higher threshold to avoid Bug#16848 on smaller files.
26204         * lib/diffseq.h (struct context): Restore member too_expensive.
26205         (struct partition): Restore members lo_minimal, hi_minimal.
26206         (diag, compareseq): Restore arg find_minimal.  All uses changed.
26207         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
26208         1993 to make 'diff' run faster (but not as well) on large inputs,
26209         but use a threshold of 4096 instead of the old 256.
26210         * lib/fstrcmp.c (strcmp_bounded):
26211         * lib/git-merge-changelog.c (compute_differences):
26212         Adjust to diffseq.h changes.
26214 2016-10-22  Bruno Haible  <bruno@clisp.org>
26216         iconv: Avoid compilation error when bootstrapping GNU libiconv.
26217         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
26218         declaration yet, define ICONV_CONST to empty.
26220 2016-10-15  Bruno Haible  <bruno@clisp.org>
26222         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
26223         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
26224         module.
26226 2016-10-16  Bruno Haible  <bruno@clisp.org>
26228         system-quote tests: Avoid compiler warning on AIX.
26229         * tests/test-system-quote-child.c (fopen): Redefine like the system's
26230         <stdio.h> does.
26232 2016-10-16  Bruno Haible  <bruno@clisp.org>
26234         Fix some "gcc -Wall" warnings.
26235         * tests/test-ffsl.c (main): Use variable x, not i.
26236         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
26237         freopen.
26238         * tests/test-sethostname1.c (main): Explicitly ignore the return value
26239         of sethostname.
26241 2016-10-16  Bruno Haible  <bruno@clisp.org>
26243         gnulib-tool: Make --create-testdir on all modules work again.
26244         * gnulib-tool (func_create_testdir): Don't include the
26245         non-recursive-gnulib-prefix-hack module.
26247 2016-10-21  Daiki Ueno  <ueno@gnu.org>
26249         libunistring: change the maintainer to 'all'
26250         * modules/gen-uni-tables, modules/libunistring:
26251         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
26252         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
26253         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
26254         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
26255         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
26256         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
26257         * modules/uniwidth/*: Change the maintainer to 'all'.
26259 2016-10-16  Bruno Haible  <bruno@clisp.org>
26261         Simplify "configure: checking ..." messages.
26262         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
26263         AC_MSG_NOTICE.
26264         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26266 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
26268         quotearg-tests: pacify gcc -Wall
26269         Problem reported by Bruno Haible in:
26270         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
26271         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
26272         * tests/test-quotearg.h: ... from here.
26274 2016-10-20  Pádraig Brady  <P@draigBrady.com>
26276         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
26277         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
26278         Needed on Centos <= 4.
26280 2016-10-20  Jim Meyering  <meyering@fb.com>
26282         printf.m4: fix a bug in detecting printf %j support
26283         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
26284         uintmax_t is defined in neither stdint.h nor inttypes.h.
26285         Before, this macro might have mistakenly set
26286         gl_cv_func_printf_sizes_c99=yes on such a system.
26287         Spotted by Zev Weiss.
26289 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
26291         sched: substitute HAVE_SYS_CDEFS_H too
26292         Problem reported by Tom G. Christensen in:
26293         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
26294         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
26295         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
26297 2016-10-19  Pádraig Brady  <P@draigBrady.com>
26299         quotearg: never write beyond the returned length
26300         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
26301         scan of the string when we initially encounter a single quote when
26302         shell quoting, so that if we then switch to a more concise quoting method
26303         we will not have written beyond that returned length.
26304         This is significant for sh-quote, which has separate routines
26305         to determine the length and do the actual quoting.
26306         * tests/test-quotearg.h: Reinstate the buffer bounds checking
26307         now that we never write more than the returned length.
26309 2016-10-18  Bruno Haible  <bruno@clisp.org>
26311         getprogname tests: Avoid failure in packages that use libtool.
26312         * tests/test-getprogname.c (main): Strip "lt-" prefix.
26313         Based on a patch by Jim Meyering.
26315 2016-10-16  Bruno Haible  <bruno@clisp.org>
26317         getprogname: Fix test failure on Cygwin. Comments.
26318         * lib/getprogname.h: Add comments.
26319         * lib/getprogname.c: Add comments. Fix #elif indentation.
26320         * tests/test-getprogname.c (main): On Cygwin, expect a result without
26321         ".exe" suffix.
26323 2016-10-16  Bruno Haible  <bruno@clisp.org>
26325         Make sure the libunistring detection rejects older versions with a
26326         known bug.
26327         * modules/unistr/u8-strtok (configure.ac): Bump required version.
26328         * modules/unistr/u16-strtok (configure.ac): Likewise.
26329         * modules/unistr/u32-strtok (configure.ac): Likewise.
26331 2016-10-18  Bruno Haible  <bruno@clisp.org>
26333         sh-quote, system-quote: revert regression of unit test.
26334         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
26335         * tests/test-system-quote-main.c (check_one): Likewise.
26337 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26339         quotearg: fix stale tests
26340         * tests/test-quotearg.c [locale_results]: Add the missing str7
26341         entries to the expected results.
26342         * tests/test-system-quote-main.c (check_one): Don't enforce that we
26343         don't write beyond the returned length, since that's no longer the
26344         case if we switch to a more concise quoting style.
26345         * tests/test-sh-quote.c (check_one): Likewise.
26346         (main): Adjust for the new more concise quoting style.
26347         Reported by Bruno Haible.
26349 2016-10-16  Jim Meyering  <meyering@fb.com>
26351         non-recursive-gnulib-prefix-hack: fix inconsequential typo
26352         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
26353         to "$1".  This macro is always invoked with $1 == lib.
26354         Spotted by Bruno Haible
26356 2016-10-16  Bruno Haible  <bruno@clisp.org>
26358         Fix a test crash.
26359         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
26360         fails.
26362 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26364         test-limits-h: suppress -Woverlength-strings
26365         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
26367 2016-10-15  Bruno Haible  <bruno@clisp.org>
26369         gettime, timespec, utimens: Relicense under LGPL.
26370         * modules/gettime (License): Change to LGPL.
26371         * modules/timespec (License): Likewise.
26372         * modules/utimens (License): Likewise.
26374 2016-10-14  Bruno Haible  <bruno@clisp.org>
26375             Pádraig Brady  <P@draigBrady.com>
26377         canonicalize-lgpl: Support the case path_max > INT_MAX.
26378         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
26379         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
26381 2016-10-13  Jim Meyering  <meyering@fb.com>
26383         getprogname: IBM z/OS: avoid NULL-dereference
26384         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
26385         upon strdup failure.
26387 2016-10-12  Jim Meyering  <meyering@fb.com>
26389         test-stdint: use _GL_VERIFY rather than "verify" for some tests
26390         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
26391         and an abbreviated diagnostic rather than verify with the full one,
26392         because the full-length strings would evoke warnings from gcc with
26393         -Woverlength-strings.
26395 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26397         stdint: port SIZE_MAX to glibc s390
26398         Problem reported by Eric Blake in:
26399         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
26400         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
26401         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
26402         correct type, if possible.
26404 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
26406         getprogname: port to IBM z/OS
26407         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
26409 2016-10-11  Jim Meyering  <meyering@fb.com>
26411         maint: remove stray space after "." in AC_DEFINE comment.
26412         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
26413         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26415 2016-10-05  Jim Meyering  <meyering@fb.com>
26417         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26418         * lib/long-options.c (parse_long_options): Add a break statement
26419         to avoid this new warning/failure:
26420         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26421           --create-testdir --dir=/t/x --with-tests --test long-options
26422         ../../gllib/long-options.c: In function 'parse_long_options':
26423         ../../gllib/long-options.c:66:12: error: this statement may \
26424           fall through [-Werror=implicit-fallthrough]
26425                    (*usage_func) (EXIT_SUCCESS);
26426                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26428 2016-10-05  Jim Meyering  <meyering@fb.com>
26430         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26431         Testing this module would fail when using GCC 7 like this:
26432         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26433           --dir=/tmp/x --with-tests --test utimecmp
26434         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26435         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26436           [-Werror=bool-operation]
26437                          time_t s = src_s & ~ (res == 2 * BILLION);
26438                                             ^
26439         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26440           [-Werror=bool-operation]
26441                src_s &= ~ (res == 2 * BILLION);
26442                         ^
26443         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26444         Instead, make it explicit that we intend to apply it to 0 or 1.
26446 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26448         dfa: save memory for states
26449         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
26450         states if dfa has a lot of caches.
26452 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
26454         wchar, wctype-h: fix for MinGW 3.22.2
26455         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
26456         special invocation, to fix issues with MinGW 3.22.2 wchar.h
26457         when included from <string.h>.
26458         * lib/wctype.in.h [__MINGW32__]: Add special invocation
26459         convention for MinGW 3.22.2, to solve issues with their
26460         wctype.h when included from <ctype.h>.
26462 2016-10-05  Jim Meyering  <meyering@fb.com>
26464         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26465         * lib/long-options.c (parse_long_options): Add a break statement
26466         to avoid this new warning/failure:
26467         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26468           --create-testdir --dir=/t/x --with-tests --test long-options
26469         ../../gllib/long-options.c: In function ‘parse_long_options’:
26470         ../../gllib/long-options.c:66:12: error: this statement may \
26471           fall through [-Werror=implicit-fallthrough]
26472                    (*usage_func) (EXIT_SUCCESS);
26473                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26475         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26476         Testing this module would fail when using GCC 7 like this:
26477         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26478           --dir=/tmp/x --with-tests --test utimecmp
26479         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26480         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26481           [-Werror=bool-operation]
26482                          time_t s = src_s & ~ (res == 2 * BILLION);
26483                                             ^
26484         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26485           [-Werror=bool-operation]
26486                src_s &= ~ (res == 2 * BILLION);
26487                         ^
26488         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26489         Instead, make it explicit that we intend to apply it to 0 or 1.
26491 2016-10-03  Pádraig Brady  <P@draigBrady.com>
26493         quotearg: minimize shell quoting using double quotes
26494         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
26495         quote in encountered then use double quotes (c style quoting)
26496         when possible, as it simplifies the quoting.
26497         * tests/test-quotearg-simple.c: Add test cases.
26498         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
26499         for the fact we now may write beyond the returned length.
26501 2016-10-02  Jim Meyering  <meyering@fb.com>
26503         vasnprintf.c: avoid spurious warning from GCC 7
26504         The presence of cpp directives renders this "FALLTHROUGH" comment
26505         ineffective, so does not suppress the -Wimplicit-fallthrough warning
26506         from GCC 7 built from git on 2016-10-02.
26507         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
26508         directives, so that it takes effect once again.  This is clearly
26509         not a proper change, and I will revert it once this bug is fixed:
26510         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
26512 2016-10-01  Jim Meyering  <meyering@fb.com>
26514         getprogname: correct the test for a __progname variable
26515         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
26516         and AC_LINK_IFELSE to check for a global __progname.  If found,
26517         define HAVE_VAR___PROGNAME.
26518         * lib/getprogname.c (getprogname): Reflect the new name of the
26519         feature- checked preprocessor symbol:
26520         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
26522 2016-09-28  Jim Meyering  <meyering@fb.com>
26524         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
26525         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
26526         fall-through case with a /* fallthrough */ comment.
26528         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
26529         * lib/dfa.c (dfassbuild): Mark the end of this case with a
26530         /* fallthrough */ comment.
26532         getprogname: avoid __progname vs program_invocation_short_name pitfall
26533         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
26534         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
26535         not with Fedora 24's glibc-2.23.1-10.
26536         * lib/getprogname.c (__progname): Move this declaration down...
26537         (getprogname): ... into the #elif block where used, and make it
26538         explicitly "extern".
26540         getprogname: port to OpenBSD 5.1
26541         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
26542         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
26543         * modules/getprogname (configure.ac): Move most of this code...
26544         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
26545         increment serial number, and add a test for __progname.
26546         https://bugs.gnu.org/24562
26547         Reported by Nelson H. F. Beebe.
26549 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
26551         sched: port to GCC 6.2.1 on macOS Sierra
26552         Problem reported by Denis Davydov in:
26553         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
26554         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
26555         Include <sys/cdefs.h> before <sched.h>.
26556         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
26557         so that we needn’t worry about the sched.h include bug here.
26558         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
26559         and include it before <sched.h> if it exists, when
26560         checking for <sched.h>.
26562         tests/init.sh: port Alpine fix to AIX 7.1
26563         * tests/init.sh (compare_): When attempting to use diff -U3,
26564         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
26565         diff -u not outputting a space after leading '+', as the users
26566         of 'compare' should not be that picky about its output format.
26567         In the AIX 7.1 case, return with diff exit status (or with 2 if
26568         trouble), instead of some random nonzero exit status.
26569         * tests/test-init.sh (test_compare): Remove space after leading
26570         '+', so that AIX 7.1 'diff' passes the test.
26572 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26574         nl_langinfo: pacify GCC
26575         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
26576         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
26578         stdint: also set GL_GENERATE_LIMITS_H
26579         Problem reported by Jim Meyering in:
26580         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
26581         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
26583         limits-h, stdint: Don't assume extensions, fix typo
26584         * m4/limits-h.m4 (gl_LIMITS_H):
26585         * m4/stdint.m4 (gl_STDINT_H):
26586         Don't assume AC_USE_SYSTEM_EXTENSIONS.
26587         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
26588         reported by Jim Meyering in:
26589         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
26591 2016-09-21  Jim Meyering  <meyering@fb.com>
26593         getprogname: port to AIX
26594         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
26595         and strdup to obtain a short program name string.  Using code from
26596         Bruno Haible and an idea from Bastien ROUCARIÈS, in
26597         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
26598         Assaf Gordon reported that this new file would fail to compile on
26599         AIX-7.1 32bit.
26601 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26603         extensions: fix typo in comment
26604         * m4/extensions.m4: Sync from Autoconf master.
26606         stdint: support new _WIDTH macros
26607         * doc/posix-headers/stdint.texi: Document this.
26608         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
26609         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
26610         support for INTMAX_WIDTH, etc. as well as for support for just C99.
26611         * modules/stdint (Depends-on): Add limits-h.
26612         (Makefile.am): Substitute HAVE_C99_STDINT_H.
26613         * modules/stdint-tests (Depends-on): Add extensions, so that
26614         INTMAX_MAX etc. are defined.
26615         * tests/test-stdint.c: Verify the new macros.
26617         limits-h: new module
26618         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
26619         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
26620         * doc/posix-headers/limits.texi: Document new module.
26621         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
26622         * modules/limit-h-tests, tests/test-limits-h.c: New files.
26624         stdio: don't redefine __USE_MINGW_ANSI_STDIO
26625         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
26626         if it is already defined.  Apparently GNU Emacs relies on this.  See:
26627         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
26629 2016-09-15  Eric Blake  <eblake@redhat.com>
26631         sys_types: avoid glibc 2.25 warnings about major()
26632         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
26633         older autoconf.
26634         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
26635         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
26636         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
26637         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
26639         mountlist: include sysmacros.h for glibc
26640         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
26641         AC_HEADER_MAJOR.
26642         * lib/mountlist.c (includes): Use correct headers.
26644 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
26646         extensions: port to more ISO C TSes
26647         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
26648         master, to add support for more recent ISO C TRs and TSes.
26650 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26652         intprops: new macro TYPE_WIDTH
26653         * lib/intprops.h (TYPE_WIDTH): New macro.
26654         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
26655         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
26656         * lib/parse-datetime.y (parse_datetime2):
26657         Use it.
26659         extensions: port to recent ISO C TRs
26660         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
26661         Sync from Autoconf master, to add support for recent ISO C TRs.
26662         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
26663         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
26664         the MinGW option is not an extension.
26666 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
26668         dfa: port to Solaris 9
26669         Problems reported by Tom G. Christensen in:
26670         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
26671         * modules/dfa (Depends-on): Add isblank.
26672         * modules/dfa-tests (dfa_match_aux_LDADD):
26673         Rename from test_stat_LDADD, to fix typo.
26674         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
26676 2016-09-10  Jim Meyering  <meyering@fb.com>
26678         strverscmp: avoid link failure on OS X
26679         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
26680         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
26682 2016-08-16  Jim Meyering  <meyering@fb.com>
26684         dfa: new module, importing grep's DFA matcher
26685         Since grep's DFA matcher is now being used by two gnulib-enabled
26686         projects, grep and sed, it makes sense to version-control its
26687         sources and unit tests in one place: here.
26688         * modules/dfa: New module.
26689         * modules/dfa-tests: New file.
26690         * lib/dfa.c: New file, from grep.
26691         * lib/dfa.h: Likewise.
26692         * lib/localeinfo.c: Likewise.
26693         * lib/localeinfo.h: Likewise.
26694         * tests/dfa-match-aux.c: Likewise.
26695         * tests/dfa-invalid-char-class.sh: Likewise.
26696         * tests/dfa-match.sh: Likewise, with minor changes.
26697         * MODULES.html.sh (Misc): Add "dfa" to this list.
26699 2016-09-09  Jim Meyering  <meyering@fb.com>
26701         getprogname-tests: don't depend on assert-h
26702         * modules/getprogname-tests (Depends-on): Remove assert-h.
26703         It was not needed, and in fact would cause build failure for
26704         coreutils on some systems.  Reported by Assaf Gordon in https:
26705         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
26707 2016-09-07  Jim Meyering  <meyering@fb.com>
26709         getprogname-tests: work also when EXEEXT is nonempty
26710         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
26711         * tests/test-getprogname.c (main): Use it.
26712         Suggested by Gisle Vanem.
26714 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
26716         getprogname: fix errors in previous change
26717         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
26718         s/program_invocation_name/base/
26719         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
26721 2016-09-08  Pádraig Brady  <P@draigBrady.com>
26723         parse-datetime: restrict debug output to input string
26724         * lib/parse-datetime.y (parse_datetime2): If we parse
26725         all of the input but determine it's invalid, ensure
26726         we don't output the now invalid input pointer.
26727         This issue was seen with `date -d 'now +1'`.
26729 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26731         flexmember: new macro FLEXALIGNOF
26732         * lib/flexmember.h: Include <stddef.h>, for offsetof.
26733         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
26734         this macro.  Update comments.
26736 2016-09-07  Jim Meyering  <meyering@fb.com>
26738         getprogname: port to systems with __argv (mingw, msvc)
26739         * lib/getprogname.c (getprogname): Include "dirname.h" and use
26740         last_component: more general than open coding it with hard-coded "/".
26741         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
26742         * modules/getprogname (Depends-on): Add dirname-lgpl.
26743         (configure.ac): Check for __argv in <stdlib.h>.
26744         * modules/getprogname-tests: New file.
26745         * tests/test-getprogname.c: New file.
26746         Suggested by Gisle Vanem in
26747         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
26749 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26751         flexmember: port better to GCC + valgrind
26752         With a char[] flexible array member in a struct with nontrivial
26753         alignment, GCC-generated code can access past the end of the
26754         array, because GCC assumes there are padding bytes to get the
26755         struct aligned.  So the common idiom of malloc (offsetof (struct
26756         s, m), n) does not properly allocate an n-byte trailing member, as
26757         malloc’s argument should be the next multiple of alignof (struct s).
26758         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26759         Although C11 apparently permits this GCC optimization (i.e., there
26760         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
26761         See the thread containing:
26762         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
26763         * lib/flexmember.h: New file.
26764         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
26765         * lib/localename.c, lib/time_rz.c:
26766         Include flexmember.h.
26767         * lib/fnmatch_loop.c (struct patternlist):
26768         * lib/localename.c (struct hash_node):
26769         Use FLEXIBLE_ARRAY_MEMBER.
26770         * lib/fnmatch_loop.c (EXT):
26771         * lib/fts.c (fts_alloc):
26772         * lib/glob.c (glob_in_dir):
26773         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
26774         * lib/localename.c (gl_lock_define_initialized):
26775         * lib/time_rz.c (tzalloc):
26776         Use FLEXSIZEOF instead of offsetof.
26777         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26778         Check that the size of the struct can be taken.
26779         * modules/flexmember (Files): Add lib/flexmember.h.
26780         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
26781         Add flexmember.
26783 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26785         getprogname: port to Solaris 10
26786         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
26787         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
26788         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
26790         stdalign: correct mistake in alignof doc
26791         Problem reported by Joseph Myers in:
26792         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
26793         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
26794         alignof(S) where S is a structure containing a flexible array
26795         member.  The Gnulib substitute does not support this, but C11 does.
26797 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26799         main.mk: remove sc_program_name, since there is no more need to
26800         use set_program_name in tools (getprogname is enough for most
26801         of the cases).
26802         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
26803         * top/maint.mk (sc_program_name): Remove.
26805 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26807         Port tests away from progname, since modules that need the
26808         program name already depend on getprogname.
26809         * modules/acl-tests (Depends-on): Remove progname.
26810         * modules/argmatch (Depends-on): Likewise.
26811         * modules/argmatch-tests (Depends-on): Likewise.
26812         * modules/argp-tests (Depends-on): Likewise.
26813         * modules/argp-version-etc-tests (Depends-on): Likewise.
26814         * modules/array-list-tests (Depends-on): Likewise.
26815         * modules/array-oset-tests (Depends-on): Likewise.
26816         * modules/avltree-list-tests (Depends-on): Likewise.
26817         * modules/avltree-oset-tests (Depends-on): Likewise.
26818         * modules/avltreehash-list-tests (Depends-on): Likewise.
26819         * modules/carray-list-tests (Depends-on): Likewise.
26820         * modules/copy-file-tests (Depends-on): Likewise.
26821         * modules/exclude-tests (Depends-on): Likewise.
26822         * modules/fchownat-tests (Depends-on): Likewise.
26823         * modules/fdopendir-tests (Depends-on): Likewise.
26824         * modules/filenamecat-tests (Depends-on): Likewise.
26825         * modules/fstatat-tests (Depends-on): Likewise.
26826         * modules/fstrcmp-tests (Depends-on): Likewise.
26827         * modules/linked-list-tests (Depends-on): Likewise.
26828         * modules/linkedhash-list-tests (Depends-on): Likewise.
26829         * modules/mkdirat-tests (Depends-on): Likewise.
26830         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
26831         * modules/nonblocking-socket-tests (Depends-on): Likewise.
26832         * modules/obstack-printf-tests (Depends-on): Likewise.
26833         * modules/openat-tests (Depends-on): Likewise.
26834         * modules/parse-datetime-tests (Depends-on): Likewise.
26835         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
26836         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
26837         * modules/quotearg-simple-tests (Depends-on): Likewise.
26838         * modules/quotearg-tests (Depends-on): Likewise.
26839         * modules/rbtree-list-tests (Depends-on): Likewise.
26840         * modules/rbtree-oset-tests (Depends-on): Likewise.
26841         * modules/rbtreehash-list-tests (Depends-on): Likewise.
26842         * modules/spawn-pipe-tests (Depends-on): Likewise.
26843         * modules/system-quote-tests (Depends-on): Likewise.
26844         * modules/uniname/uniname-tests (Depends-on): Likewise.
26845         * modules/uninorm/nfc-tests (Depends-on): Likewise.
26846         * modules/uninorm/nfd-tests (Depends-on): Likewise.
26847         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
26848         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
26849         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
26850         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
26851         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
26852         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
26853         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
26854         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
26855         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
26856         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
26857         * modules/unlinkat-tests (Depends-on): Likewise.
26858         * modules/version-etc-tests (Depends-on): Likewise.
26859         * modules/xalloc-die-tests (Depends-on): Likewise.
26860         * modules/xmemdup0-tests (Depends-on): Likewise.
26861         * modules/xprintf-posix-tests (Depends-on): Likewise.
26862         * modules/xvasprintf-tests (Depends-on): Likewise.
26863         * tests/test-argmatch.c: Do not include progname.h.
26864         (main) Stop calling set_program_name.
26865         * tests/test-argp-version-etc.c: Likewise.
26866         * tests/test-argp.c: Likewise.
26867         * tests/test-argv-iter.c: Likewise.
26868         * tests/test-array_list.c: Likewise.
26869         * tests/test-array_oset.c: Likewise.
26870         * tests/test-avltree_list.c: Likewise.
26871         * tests/test-avltree_oset.c: Likewise.
26872         * tests/test-avltreehash_list.c: Likewise.
26873         * tests/test-carray_list.c: Likewise.
26874         * tests/test-copy-acl.c: Likewise.
26875         * tests/test-copy-file.c: Likewise.
26876         * tests/test-exclude.c: Likewise.
26877         * tests/test-fchownat.c: Likewise.
26878         * tests/test-fdopendir.c: Likewise.
26879         * tests/test-filenamecat.c: Likewise.
26880         * tests/test-fstatat.c: Likewise.
26881         * tests/test-fstrcmp.c: Likewise.
26882         * tests/test-linked_list.c: Likewise.
26883         * tests/test-linkedhash_list.c: Likewise.
26884         * tests/test-mkdirat.c: Likewise.
26885         * tests/test-nonblocking-pipe-main.c: Likewise.
26886         * tests/test-nonblocking-socket-main.c: Likewise.
26887         * tests/test-obstack-printf.c: Likewise.
26888         * tests/test-openat.c: Likewise.
26889         * tests/test-parse-datetime.c: Likewise.
26890         * tests/test-pipe-filter-gi1.c: Likewise.
26891         * tests/test-pipe-filter-gi2-main.c: Likewise.
26892         * tests/test-pipe-filter-ii1.c: Likewise.
26893         * tests/test-pipe-filter-ii2-main.c: Likewise.
26894         * tests/test-quotearg-simple.c: Likewise.
26895         * tests/test-quotearg.c: Likewise.
26896         * tests/test-rbtree_list.c: Likewise.
26897         * tests/test-rbtree_oset.c: Likewise.
26898         * tests/test-rbtreehash_list.c: Likewise.
26899         * tests/test-sameacls.c: Likewise.
26900         * tests/test-set-mode-acl.c: Likewise.
26901         * tests/test-spawn-pipe-main.c: Likewise.
26902         * tests/test-system-quote-main.c: Likewise.
26903         * tests/test-unlinkat.c: Likewise.
26904         * tests/test-version-etc.c: Likewise.
26905         * tests/test-xalloc-die.c: Likewise.
26906         * tests/test-xfprintf-posix.c: Likewise.
26907         * tests/test-xmemdup0.c: Likewise.
26908         * tests/test-xprintf-posix.c: Likewise.
26909         * tests/test-xvasprintf.c: Likewise.
26910         * tests/uniname/test-uninames.c: Likewise.
26911         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26912         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26913         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26914         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26915         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26916         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26917         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26918         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26919         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26920         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26921         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26922         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26923         * tests/test-c-stack.c: (program_name): Do not define.
26924         (main): Do not set program_name.
26925         * tests/test-closein.c: Likewise.
26926         * tests/test-xstrtol.c: Likewise.
26927         * tests/test-yesno.c: Likewise.
26929 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26931         Port modules to use getprogname explicitly, instead of requiring
26932         progname to be used (or program_name to be provided).
26933         * lib/argmatch.c: Do not include progname.h.
26934         [TEST] (program_name): Do not define.
26935         [TEST] (main): Call getprogname instead of using program_name.
26936         * lib/c-stack.c: Do not include progname.h.
26937         (program_name): Do not define.
26938         (die): Call getprogname instead of using program_name.
26939         * lib/chdir-long.c: Do not include progname.h.
26940         [TEST_CHDIR] (main): Do not set program_name.
26941         * lib/error.c [!_LIBC]: Include progname.h.
26942         [!_LIBC] (program_name): Define using getprogname.
26943         * lib/euidaccess.c: Do not include progname.h.
26944         [TEST] (main): Do not set program_name.
26945         * lib/git-merge-changelog.c: Include getprogname.h instead of
26946         progname.h.
26947         (usage): Call getprogname instead of using program_name.
26948         (main): Likewise.  Stop calling set_program_name.
26949         * lib/group-member.c: Do not include progname.h.
26950         [TEST] (main): Do not set program_name.
26951         * modules/argmatch (Depends-on): Add getprogname.
26952         * modules/c-stack (Depends-on): Likewise.
26953         * modules/error (Depends-on): Likewise.
26954         * modules/git-merge-changelog (Depends-on): Likewise.
26955         Also remove progname.
26957 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
26959         * NEWS: Document the deprecation of the 'progname' module.
26961 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26963         getprogname: new module
26964         This provides a LGPL module for getting the name of the current
26965         program, using the same API found on *BSD systems.
26966         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
26967         * modules/getprogname: New files.
26968         * MODULES.html.sh (Misc): Add getprogname.
26970 2016-09-02  Jim Meyering  <meyering@fb.com>
26972         manywarnings: add -fno-common
26973         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
26974         to the list.  Quoting the manual, "Compiling with -fno-common is
26975         useful on targets for which it provides better performance, or if
26976         you wish to verify that the program will work on other systems that
26977         always treat uninitialized variable declarations this way [putting
26978         it in the data section]."  If diffutils had been using this sooner,
26979         it would have prevented this duplicate declaration issue:
26980         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
26982 2016-08-31  Simon Josefsson  <simon@josefsson.org>
26984         parse-datetime: Fix typo.
26985         * lib/parse-datetime.y (parse_datetime2): Fix typo.
26987 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
26989         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
26990         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
26991         GCC 5 and 6 that have __builtin_sub_overflow but not
26992         __builtin_sub_overflow_p.  With the recent changes, these
26993         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
26994         implementation than with INT_SUBTRACT_OVERFLOW implementation,
26995         since the former needs just one runtime comparison whereas the
26996         latter needs two.
26998         strverscmp: sync with glibc
26999         Although this doesn't exactly synchronize with glibc
27000         byte-for-byte, it makes the code behave the same as glibc.
27001         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
27002         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
27003         difference shouldn't matter in practical use.  All uses changed
27004         back to isdigit.
27005         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
27006         (next_state): Now unsigned char array; redo elements.
27007         (result_type): Now signed char array; redo elements.
27008         (__strverscmp): Fix glibc bug 9913 by using new states.
27009         * tests/test-strverscmp.c (main): Test glibc bug 9913.
27011 2016-08-29  Jim Meyering  <meyering@fb.com>
27013         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
27014         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
27015         similarly to how it was done to intprops.h.
27017 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27019         intprops.h: port recent changes to GCC 6.2.0
27020         * lib/intprops.h (__has_builtin): Move earlier.
27021         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
27022         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
27023         the last argument can be null.  All uses changed.
27024         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
27025         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27026         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
27027         and it's not clear which GCC versions it works for.
27028         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
27029         its definiens.
27031         intprops.h: use __typeof__ with GCC 7
27032         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
27033         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
27034         This avoids computing the expression's value (which might overflow!).
27036 2016-08-29  Jim Meyering  <meyering@fb.com>
27038         intprops.h, xalloc-oversized.h: work with gcc 7
27039         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
27040         __builtin_mul_overflow each accept a NULL pointer as the third
27041         argument.  However in gcc 7, that is no longer accepted.
27042         Instead, one must use the "_p"-suffixed names, with which, the
27043         third parameter is no longer a pointer.
27044         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
27045         the definition: not true for gcc 7 and subsequent.
27046         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
27047         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27048         Provide new definitions for gcc 7 and subsequent.
27049         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
27050         that works with gcc-7.
27052         intprops.h: fix missing-backslash problems
27053         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
27054         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
27056 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27058         intprops: fix paren typo on old platforms
27059         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
27060         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
27061         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
27062         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
27063         && !defined LLONG_MAX]:
27064         Remove stray paren.
27066         intprops: port to OpenVMS
27067         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
27068         * doc/posix-headers/limits.texi: Document the problem.
27069         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
27070         Define if not already defined.
27072 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
27074         parse-datetime: improve debug implementation
27075         Follow-up to commit 12ad79069 ("add optional debug printing").
27076         Improve parse-datetime's debug implementation: remove macros,
27077         replace global debug flag variable with a function parameter,
27078         use nstrftime for formatting.
27079         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
27080         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
27081         (parse_datetime2): New function, accepts 'flags' parameter, supporting
27082         debug flag. Existing interface 'parse_datetime' left unmodified.
27083         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
27084         (struct parser_control): add 'parse_datetime_debug' member variable.
27085         (parse_datetime): Call new function 'parse_datetime2' without debug.
27086         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
27087         pc.parse_datetime_debug variable as needed.
27088         (to_year): Accept new flags parameter, instead of using global variable.
27089         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
27090         use struct 'debug' variable instead of global variable.
27091         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
27092         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
27093         correspnding functions directly instead of using macros.
27094         * modules/parse-datetime: Add gnulib's strftime module.
27096 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
27098         c-strcase-tests: port to EBCDIC
27099         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
27100         which assume ASCII encoding semantics to run only in ASCII
27101         mode, as they fail in EBCDIC.
27103         sigpipe-tests: fix typo
27104         * tests/test-sigpipe.sh: C, not B.
27106 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
27108         canonicalize-lgpl: fix errno after malloca fails
27109         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
27110         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
27111         * lib/canonicalize-lgpl.c (__realpath):
27112         Don't assume malloca sets errno on failure.
27114 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27116         strtod: port errno handling to z/OS
27117         * lib/strtod.c (strtod): Save and restore errno more reliably.
27119 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
27121         strtod: port to z/OS
27122         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
27123         implementation.
27125 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27127         strtod: port to z/OS
27128         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
27129         implementation.
27131         regex, string: rename to avoid '__string'
27132         * lib/regex.h, lib/string.in.h: Do not use the identifier
27133         '__string', as it is effectively reserved by string.h on z/OS.
27135         c-strcase-tests, wcwidth-tests: depend on c-ctype
27136         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
27137         Add c-ctype.
27139 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
27141         thread: port to z/OS
27142         * lib/glthread/thread.c, lib/glthread/thread.h:
27143         Rudimentary gl_thread support for z/OS.
27145         maint: port tests to z/OS errno behavior
27146         * tests/test-nonblocking-reader.h:
27147         * tests/test-nonblocking-writer.h:
27148         Accommodate z/OS errno code preferences. (I believe this should
27149         still be within spec; IBM is good at following the letter if not
27150         the spirit of such things.)
27152         maint: preprocessor changes to support z/OS
27153         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
27154         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
27155         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
27156         * tests/test-nonblocking-pipe.h:
27158         fclose, strstr-simple, wchar: port to z/OS
27159         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
27160         Changes to the Autoconf M4 code to support z/OS.  Note that
27161         fclose() is broken in a different way on z/OS than it is on other
27162         systems, thus the special-case in fclose.m4.
27164         iconv_open-utf-tests, iconv-tests: port to EBCDIC
27165         * tests/test-iconv-utf.c, tests/test-iconv.c:
27166         Added appropriately conditional #pragmas so that the test strings
27167         in test-iconv-utf.c are correctly interpreted in ASCII instead of
27168         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
27169         addressed in a more portable way by simply rewriting all the ASCII
27170         literal characters as octal escapes, but then you would lose the
27171         partial readability that the strings have now. Also, iconv_open()
27172         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
27174         c-strcase-tests, wcwidth-tests: port to EBCDIC
27175         * tests/test-c-strcasecmp.c: Include c-ctype.h.
27176         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
27177         * tests/test-wcwidth.c: Likewise.
27179 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27181         stdbool: don't require _Bool for C++
27182         Problem reported by David Seifert in:
27183         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
27184         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
27185         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
27186         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
27187         stricter about checking that bool and _Bool are compatible in C.
27189 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
27191         getdelim: remove dependency on realloc-posix
27192         * lib/canonicalize-lgpl.c (alloc_failed)
27193         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
27194         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
27195         Use __set_errno where needed, for consistency.
27196         * lib/getdelim.c (alloc_failed): New function.
27197         (getdelim): Use it.
27199 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
27201         parse-datetime: add optional debug printing
27202         Print parsing information, warnings, and errors to stderr.
27203         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
27204         * lib/parse-datetime.y:
27205         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
27206         (PROGRESS*): Same as DEBUG, for progress reporting.
27207         (dbg_printf): Print message to stderr, with 'date' prefix.
27208         (struct parser_control): Add 'debug_*_seen' variables.
27209         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
27210         (debug_print_current_time, debug_print_relateive_time): Prints the
27211         current/relative date/time value of parser_control.
27212         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
27213         (to_year): Warn about 2-digit year parsing.
27214         (yylex):   Warn about unrecognized words.
27215         (get_effective_timezone): Returns current timezone in minutes.
27216         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
27217         clearly and unambigiously as possible.
27218         (debug_mktime_not_ok): Print detailed information about failed
27219         date/time values.
27220         (parse_datetime): Add DEBUG messages for failures, warnings. Add
27221         PROGRESS messages for status messages.
27222         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
27224 2016-08-06  Jim Meyering  <meyering@fb.com>
27226         tests/init.sh: exclude dash with bad "local" semantics
27227         * tests/init.sh (gl_shell_test_script_): Add a function to
27228         eliminate a shell like "dash" (unlike bash, zsh) that has
27229         surprising/risky "local var='...'" semantics.  Inspired by
27230         the problem and discussion in https://bugs.gnu.org/24116#11.
27232 2016-08-02  Ján Tomko  <jtomko@redhat.com>
27234         maint.mk: expand the prohibit_doubled_word regex
27235         This check has a static list of words that are checked for
27236         repetitions.  Expand it before running the perl script to
27237         avoid using expensive captures.  This decreases the cost
27238         for libvirt from 1.66s to 0.66s.
27239         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
27240         (sc_prohibit_doubled_word): Use it.
27242 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27244         useless-if-before-free: skip non-matching lines early
27245         * build-aux/useless-if-before-free: First match each line with the
27246         simple/quick /\bif\b/ and reject if there is no match. This often
27247         saves the cost of the much more involved regular expression.
27248         For libvirt, this decreases the cost from 1.44s to 1.02s.
27250 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27252         maint.mk: speed up sc_po_check
27253         sc_po_check would skip files based on their names, or on the
27254         existence of files with derived names. Rewrite it to use perl
27255         instead of shell to make the check faster.
27256         * top/maint.mk (perl_translatable_files_list_): Define.
27257         (sc_po_check): Use it.
27259 2016-07-30  Ján Tomko  <jtomko@redhat.com>
27261         maint.mk: speed up require_config_h_first
27262         Instead of spawning three processes per file,
27263         rewrite the check in perl and run it once for all the files.
27264         * top/maint.mk (perl_config_h_first_): Define.
27265         (sc_require_config_h_first): Use it in place of shell code.
27267 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27269         maint.mk: speed up sc_po_check
27270         sc_po_check would skip files based on their names, or on the
27271         existence of files with derived names. Rewrite it to use perl
27272         instead of shell to make the check faster.
27273         * top/maint.mk (perl_translatable_files_list_): Define.
27274         (sc_po_check): Use it.
27276 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27278         obstack: pacify GCC 6 with -Wnull-dereference
27279         Problem reported by Assaf Gordon in:
27280         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
27281         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
27282         Declare with __attribute_noreturn__.
27283         * lib/obstack.h (__attribute_noreturn__): New macro.
27285 2016-07-13  Eric Blake  <eblake@redhat.com>
27287         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
27288         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
27289         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
27291 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
27293         doc: mention glibc SSIZE_MAX buglet
27294         * doc/posix-headers/limits.texi (limits.h): Document the bug.
27296 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
27298         printf-posix: Fix mingw build
27299         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
27300         expression for detecting C symbol prefixes but forgot to qoute square
27301         brackets in the command line arguments for grep.  That way when
27302         building with mingw the condition was false although it ought to be
27303         true instead.  In particular scenarios this led to the following
27304         compile error:
27306             Cannot export rpl_printf: symbol not found
27307             Cannot export rpl_scanf: symbol not found
27308             collect2: error: ld returned 1 exit status
27310         Fix this by properly quoting square brackets.
27312 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27314         mktime: call tzset as per POSIX
27315         Problem reported by Ludovic Courtès in:
27316         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
27317         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
27318         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
27320 2016-06-26  Pádraig Brady  <P@draigBrady.com>
27322         fts: handle readdir() errors
27323         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
27324         but also upon error when it will also set errno.  Therefore
27325         flag the error case from readdir().  We treat the case where
27326         no items are read the same as if the dir can't be accessed,
27327         i.e. by setting fts_errno to FTS_DNR.
27329 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
27331         intprops: port better to GCC 7
27332         GCC 7 __builtin_add_overflow supports a new usage form, where the
27333         last argument is a null pointer, and which merely returns 1 if an
27334         overflow would occur.  This is a constant expression if all
27335         arguments are constants, and should generate faster code when code
27336         needs to be generated.
27337         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
27338         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27339         Use builtin operations if available.
27340         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
27341         operations are available, as it's almost surely faster.
27343 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
27345         intprops-test: port to GCC 6
27346         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
27347         since the bug is not fixed in GCC 6.1.
27349 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
27351         xalloc-oversized: port to GCC 7; fewer warnings
27352         GCC 7 will have a better way to deal with integer overflow.
27353         Plus, fix a warnings problem reported by Tim Ruehsen in:
27354         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
27355         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
27356         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
27357         For GCC 5, use __xalloc_oversized if both args are constants,
27358         or if pedantic.
27360 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
27362         regex: port to Sun C
27363         Reported by Daiki Ueno.
27364         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
27365         __restrict, in prototype.  This fixes a problem I introduced in
27366         the 2016-02-19 merge from glibc.
27368 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
27370         stdbool: Restore __bool_true_false_are_defined check
27371         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
27372         __bool_true_false_are_defined is still defined, even with C++11.
27374 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
27376         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
27377         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
27379 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
27381         Use GCC_LINT, not lint
27382         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
27383         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
27384         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
27385         Document problem with lint and _Noreturn.
27386         * lib/diffseq.h (IF_LINT, IF_LINT2):
27387         * lib/fts.c (sccsid):
27388         * lib/getndelim2.c (IF_LINT):
27389         * lib/gl_anylinked_list2.h (gl_linked_iterator)
27390         (gl_linked_iterator_from_to):
27391         * lib/gl_anytree_list2.h (gl_tree_iterator)
27392         (gl_tree_iterator_from_to):
27393         * lib/gl_anytree_oset.h (gl_tree_iterator):
27394         * lib/gl_array_list.c (gl_array_iterator)
27395         (gl_array_iterator_from_to):
27396         * lib/gl_array_oset.c (gl_array_iterator):
27397         * lib/gl_carray_list.c (gl_carray_iterator)
27398         (gl_carray_iterator_from_to):
27399         * lib/idcache.c:
27400         * lib/inet_ntop.c (IF_LINT):
27401         * lib/regcomp.c (build_charclass_op, create_tree):
27402         * lib/regex_internal.c (re_acquire_state)
27403         (re_acquire_state_context):
27404         * lib/trigl.c (rcsid):
27405         * lib/trim.c (IF_LINT):
27406         * lib/vasnprintf.c (IF_LINT):
27407         * lib/verify.h (assume):
27408         Treat GCC_LINT like lint.
27410 2016-05-29  Bruno Haible  <bruno@clisp.org>
27412         secure_getenv: Port to many more platforms.
27413         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
27414         functions.
27415         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
27416         for non-BSD Unix platforms and for native Windows.
27417         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
27418         Prompted by a request from Nikos Mavrogiannopoulos.
27420 2016-05-27  Eric Blake  <eblake@redhat.com>
27422         canonicalize: Fix broken probe for realpath.
27423         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
27424         in logic introduced in 54615b95.
27426 2016-05-26  Eric Blake  <eblake@redhat.com>
27428         unsetenv: relax to LGPLv2+
27429         * modules/unsetenv (License): Match setenv license.
27431 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
27433         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
27434         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
27435         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
27436         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
27437         (commonarg, dirargs, dirs, infoarg, generate_ascii)
27438         (generate_html, generate_info, generate_tex, outdir)
27439         (source_extra, split, srcfile, texarg): Move above 'version'.
27440         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
27442 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27444         manywarnings: update for GCC 6.1
27445         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
27446         Add GCC 6.1 options that apply to C.
27447         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
27448         do not apply to C, are obsolescent, etc.
27450 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
27452         glob: size_t overflow checks
27453         * lib/glob.c (__has_builtin): New macro.
27454         (size_add_wrapv, glob_use_alloca): New static functions.
27455         (glob, glob_in_dir): Check for size_t overflow in several places,
27456         and fix some size_t checks that were not quite right.
27458         glob: don't assume INT_MAX < SIZE_MAX
27459         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
27460         latter is not portable to (probably theoretical) hosts where
27461         SIZE_MAX <= INT_MAX.
27463 2016-05-09  Bruno Haible  <bruno@clisp.org>
27465         Fix undefined behaviour in gettext.h.
27466         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
27467         pointer's value after the storage it points to has been freed.
27468         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
27469         Spotted by Coverity.
27471 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
27473         git-version-gen: avoid undefined shift
27474         Problem reported by Mosè Giordano in:
27475         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
27476         * build-aux/git-version-gen: Avoid undefined behavior if invoked
27477         with --prefix or --fallback but without a later argument.  While
27478         we're at it, omit unnecessary quotes.
27480 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
27482         glob: merge glibc changes into lib/glob.c
27483         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
27484         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
27485         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
27486           struct dirent [BZ #19779]
27487         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
27488           callback gl_readdir
27489         2015-10-20 Convert miscellaneous function definitions to prototype style
27490         2015-10-20 Convert 113 more function definitions to prototype style
27491           (files with assertions)
27492         2015-06-12 Fix getlogin_r namespace (bug 18527).
27493         2014-02-10 Use glibc_likely instead __builtin_expect.
27494         2013-10-20 When glob pattern contains a trailing slash match only
27495           directories. Fixes bug 10278.
27496         2013-09-04 glob: silence -Wattribute warnings
27497         2013-06-07 Avoid use of "register" as optimization hint.
27498         2012-09-25 Use size_t instead of int for internal variables in glob
27499           (bug 14621)
27500         2011-07-20 Check for overflows in expressions
27501         2011-05-28 Remove unused variable
27502         2011-05-22 Add a few more alloca size checks
27503         2010-03-27 Whitespace fixes
27504         2010-03-27 Fix one more issue with the glob patch
27505         2010-03-24 Fix glob with empty pattern
27506         2008-05-27 Remove useless more "if" tests before "free"
27507         * modules/glob (Depends-on): Add stdint.
27509 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27511         mktime: port to stricter signed overflow checking
27512         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
27513         (long_int): Require width for INT_MAX * 3 * (seconds per year),
27514         instead of merely for INT_MAX * 2.  In practice platforms that
27515         do the latter also do the former.
27516         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
27517         (shr): New static function, replacing SHR.  All uses changed.
27518         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
27519         and TIME_T_MAX.  All uses changed.
27520         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
27521         Use long_int, not time_t.
27522         (long_int_avg): New static function, replacing time_t_avg.
27523         All uses changed.  Round toward positive infinity, as that
27524         generates slightly better code.
27525         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
27526         by INT_ADD_WRAPV.
27527         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
27528         (convert_time): New static function.
27529         (ranged_convert): Use it
27530         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
27531         Use simpler test for loop exit.
27532         (__mktime_internal): Store negative of guessed offset, to simplify
27533         overflow checking.  Remove no-longer-needed test for small time_t
27534         overflows.
27536         mktime: speed up DEBUG_MKTIME benchmarks
27537         Call tzset just once, at the start, rather than for every test
27538         case.  This lets us measure the CPU cost of mktime as opposed to
27539         that of tzset.  This is relevant when TZ is not set and glibc is
27540         being used.  This speeds up tests by a factor of 40 on my Fedora
27541         23 x86-64 platform.
27542         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
27543         to call tzset and as a sanity check.  Later on, use localtime_r
27544         instead of localtime.
27546         mktime: resurrect DEBUG_MKTIME testing
27547         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
27548         Include <string.h>, for strcmp.
27550         mktime: simplify DEBUG_MKTIME
27551         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
27552         Simplify later usage accordingly.
27554         Port mktime_internal offset to unsigned time_t
27555         This avoids some assumptions about wraparound arithmetic on
27556         signed integer overflow.
27557         * lib/mktime-internal.h (mktime_offset_t): New type.
27558         (mktime_internal): Use it in decl.
27559         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
27561         * lib/mktime.c (__mktime_internal, localtime_offset):
27562         * lib/timegm.c (timegm): Use it.
27563         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
27564         (gl_FUNC_MKTIME): Require it.
27566 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27568         xstrtol: prohibit monstrosities like "1bB"
27569         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
27570         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
27571         "B" only if the first suffix needs a base.
27572         * tests/test-xstrtol.sh: Test this.
27574 2016-04-21  Pádraig Brady  <P@draigBrady.com>
27576         xstrtod: reinstate setting of *result upon ERANGE
27577         * lib/xstrtod.c (XSTRTOD): The user may decide to use
27578         the returned limits upon ERANGE, so allow and document that.
27580 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
27582         xstrtod: modify *result only if no errors
27583         * lib/xstrtod.c (XSTRTOD).
27585 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
27587         btowc: document problems in C locale
27588         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
27589         with mbrtowc.  See: http://bugs.gnu.org/23269#32
27591 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27593         mktime: improve integer overflow checking
27594         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
27595         (WRAPV): Remove; no longer needed.
27596         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
27597         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
27598         Remove.  Use intprops.h defns instead.
27599         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
27600         Use bool for Boolean, for clarity.
27601         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
27602         detect integer overflow.
27603         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
27605         intprops: check two's complement assumption
27606         Suggested by Eric Blake in:
27607         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
27608         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
27609         short, int, long, and (if available) long long are two's complement.
27610         * modules/intprops (Depends-on): Add 'verify'.
27612         intprops, mktime, strtol: assume two's complement
27613         These macros were not portable to every conforming C11 ones'
27614         complement platform.  It's not worth the hassle of porting to some
27615         platforms that use ones' complement or signed magnitude, as such
27616         platforms are almost purely theoretical nowadays and porting even
27617         to some of them makes the code harder to review for little
27618         practical benefit.  Problem reported by Florian Weimer in:
27619         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
27620         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27621         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
27622         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
27623         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27624         (TYPE_SIGNED_MAGNITUDE):
27625         Remove.  All uses rewritten to assume two's complement, which is
27626         all we can reasonably test nowadays anyway.
27627         * top/maint.mk (_intprops_names): Remove the removed macros.
27629 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
27631         stdint: port to strict C11 left shift
27632         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
27633         Pacify clang -Wshift-negative-value, which should be an issue only
27634         on clang setups where stdint.h does not conform to C11 or to C++11.
27635         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
27637 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
27639         mbrtowc: work around glibc bug#19932
27640         Fix mbrtowc so that it never returns -1 in the C locale,
27641         as this conflicts with a future version of POSIX
27642         http://austingroupbugs.net/view.php?id=663#c2738
27643         and causes problems with GNU grep: http://bugs.gnu.org/23234
27644         See glibc bug 19932:
27645         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
27646         * doc/posix-functions/mbrlen.texi (mbrlen):
27647         * doc/posix-functions/mbrtowc.texi (mbrtowc):
27648         Document the glibc bug.
27649         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
27650         Include hard-locale.h, locale.h.
27651         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
27652         if the bug is possible.
27653         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
27654         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
27655         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
27656         * modules/mbrtowc (Depends-on): Add hard-locale.
27657         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
27658         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
27659         * tests/test-mbrtowc5.sh: New file.
27661 2016-04-03  Pedro Alves  <palves@redhat.com>
27663         stdint: detect good enough pre-C++11 stdint.h in C++ mode
27664         When gnulib is configured in C++ mode for a system with a working C99
27665         implementation of stdint.h that predates C++11, gnulib ends up
27666         substituting stdint.h anyway.  This works on most targets, but on e.g.,
27667         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
27668         MinGW is LLP64.  Instead of trying to detect the right types, detect
27669         good-enough-pre-C++11 stdint.h and in such case define
27670         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
27671         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
27672         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
27673         conforms to C99.  If it does, check whether it hides symbols
27674         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
27675         does, define those macros in config.h.
27677 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27679         argp: merge changes from glibc
27680         Among other things, this should fix problems found by a Coverity
27681         scan and reported by Andrei Borzenkov:
27682         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
27683         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
27684         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
27685         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
27686         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
27687         * lib/argp.h:
27688         Merge changes from glibc.
27689         * tests/test-argp-2.sh: Adjust to match new behavior.
27691 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
27693         stddef: support configuring with g++
27694         Problem reported by Ángel González in:
27695         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
27696         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
27697         Do not define if _GCC_MAX_ALIGN_T is defined.
27699 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27701         test-framework-sh: minor cleanups
27702         * tests/init.sh (testdir_prefix_): Output a trailing newline,
27703         since strictly speaking POSIX requires this.
27704         (setup_): Do not use the variable 'fail', as that makes the
27705         trace output harder to read ('fail' is typically used by
27706         tests to mean the test failed).  Treat // portably.
27707         Check that new directory is not merely a sibling of the tmp dir.
27708         Avoid unnecessary invocation of tr.
27710         test-framework-sh: revert port to NetBSD 7.0
27711         It was a false alarm; I misinterpreted Assaf Gordon's report.
27712         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27713         Restore.
27714         (test_dir_): Adjust to mktempd_ change.
27715         (mktempd_): Restore 2nd arg.  Use -t again.
27716         (base_template_, template_, nx_): Resurrect old code.
27718         Port better to Alpine Linux
27719         Its diff implementation does not support -c, but does support -U3.
27720         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27721         * tests/init.sh (diff_opt_): New var.
27722         (compare_): Prefer diff -U3 to diff -c to plain diff.
27724 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
27726         test-framework-sh: port to NetBSD 7.0
27727         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27728         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27729         Remove.  All uses removed.
27730         (test_dir_): Adjust to mktempd_ change.
27731         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
27732         (base_template_, template_, nx_): Simplify by hardcoding.
27734 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
27736         gitlog-to-changelog: suppress ignored chatter
27737         * build-aux/gitlog-to-changelog: Do not warn about skipping
27738         an SHA if it would have been ignored anyway.
27740 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
27742         setlocale: add "sv" to Windows language table
27743         * lib/setlocale.c (language_table) [W32]: Add "sv".
27744         Reported in <https://savannah.gnu.org/bugs/?44588>.
27746 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
27748         sys_select: port to new Cygwin
27749         Problem reported by Ken Brown in:
27750         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
27751         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
27752         diagnostics.
27754 2016-03-17  Jim Meyering  <meyering@fb.com>
27756         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
27757         * tests/test-userspec.c (main): Remove unnecessary braces and fix
27758         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
27759           test-userspec.c:176:9: error: statement is indented as if it were \
27760             guarded by... [-Werror=misleading-indentation]
27761                    {
27762                    ^
27763           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
27764                  if (!diag && !T[i].result)
27765                  ^~
27767 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27769         time_rz: port to clang -Wunused-const-variable
27770         * lib/time_rz.c (TZ): Remove.  All uses removed.
27772         std-gnu11: improve clang support
27773         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
27774         2016-03-15 Also try clang
27775         2016-03-15 Port C11 and C++11 testing to clang
27777         select: port more to Intel 2016.1.150 compiler
27778         Problem reported by Balázs Hajgató in:
27779         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
27780         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
27782 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
27784         select: try to port to 2016.1.150 compiler
27785         Problem reported by Balázs Hajgató in:
27786         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
27787         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
27788         POSIX specifies 'restrict'.
27790 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
27792         localename-tests: memory allocation fixes
27793         * tests/test-localename.c (test_locale_name)
27794         (test_locale_name_thread): Don't call freelocale on a locale
27795         that was the base of a successful newlocale, as that
27796         results in a double free.  Problem reported by Assaf Gordon.
27797         (test_locale_name_thread): Free saved names after use, to pacify
27798         gcc -fsanitize=address.
27800 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
27802         intprops: make .h file license match module
27803         * lib/intprops.h: Change the license wording to match glibc format.
27804         This is what is in modules/intprops anyway.  See:
27805         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
27807 2016-03-08  Eric Blake  <eblake@redhat.com>
27809         acl: fix missing return on Cygwin
27810         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
27811         fall off end of function. Fixes http://bugs.gnu.org/22949
27813 2016-03-05  Bruno Haible  <bruno@clisp.org>
27815         extern-inline: port to PGI CC
27816         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
27817         keyword 'inline'.
27818         Reported by Adam James Stewart in:
27819         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
27821 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27823         signbit: port back to pre-C++11 GCC
27824         * lib/math.in.h (signbit): Do previous change only if
27825         __cplusplus < 201103.  See Jonathan Wakely in:
27826         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
27828 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
27830         mountlist: recognize autofs-mounted remote file systems, too
27831         Originally reported at: https://bugzilla.redhat.com/1309247
27832         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
27833         "-hosts" because it is used by autofs to mount remote file systems.
27835 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27837         signbit: port to C++ with GCC 6
27838         * lib/math.in.h (signbit) [__cplusplus]:
27839         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
27840         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
27842         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
27844         regex: make it closer to libc
27845         Make Idx a signed type, rather than possibly unsigned.
27846         The unsignedness was not really buying us anything, since the code
27847         overflows for other reasons before getting to PTRDIFF_MAX.  Making
27848         it signed allows us to use -1 and -2 with abandon, like libc does,
27849         thus lessening the number of differences between gnulib and libc.
27850         Also, it should help avoid gratuitous warnings like the one
27851         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
27852         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
27855         regex: merge patches from libc
27857         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
27858         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
27859         Convert miscellaneous function definitions to prototype style.
27860         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
27861         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
27862         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
27863         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
27864         (re_search_internal):
27865         Convert to prototype-style function definition.
27866         Use internal_function for internal functions.
27868 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
27870         stdalign: port to older HP and IBM cc
27871         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
27872         C compilers, by checking their version numbers.  These version
27873         numbers appear in MariaDB and in Qt code that dates way back and
27874         that conditiionally uses the 'aligned' attribute.
27876 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27878         stdalign: port to clang 3.7.0
27879         Problem reported by Herbert J. Skuhra in:
27880         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
27881         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
27882         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
27883         https://llvm.org/bugs/show_bug.cgi?id=26547
27885 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
27887         readdir_r: now obsolescent
27888         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
27889         * lib/mountlist.c (read_file_system_list): Add a FIXME.
27891 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
27893         misc: port better to gcc -fsanitize=address
27894         Without these patches, ./configure CFLAGS='-fsanitize=address'
27895         would compute incorrect values.  This patch fixes some (but not all)
27896         test failures with recent glibc, with this configuration.
27897         * m4/acl.m4 (gl_ACL_GET_FILE):
27898         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
27899         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
27900         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
27901         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
27902         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
27903         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
27904         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
27905         * m4/getline.m4 (gl_FUNC_GETLINE):
27906         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
27907         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
27908         * m4/regex.m4 (gl_REGEX):
27909         * m4/strndup.m4 (gl_FUNC_STRNDUP):
27910         * tests/test-calloc-gnu.c (main):
27911         * tests/test-duplocale.c (main):
27912         * tests/test-getgroups.c (main):
27913         * tests/test-getline.c (main):
27914         * tests/test-inttostr.c (main):
27915         * tests/test-localename.c (test_locale_name)
27916         (test_locale_name_thread, test_locale_name_environ)
27917         (test_locale_name_default):
27918         * tests/test-regex.c (main):
27919         * tests/test-setlocale1.c (main):
27920         * tests/test-stat.h (test_stat_func):
27921         Free heap-allocated storage before exiting.
27922         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
27923         Don't match *_foo symbols inserted by AddressSanitizer.
27924         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
27926 2016-02-02  Jim Meyering  <meyering@fb.com>
27928         verify-tests: also remove stray test-verify.Tpo
27929         * modules/verify-tests (Makefile.am): Arrange for "make clean"
27930         to remove the test-verify.Tpo file that is left behind by
27931         the automake-generated rule upon compilation failure.
27932         Otherwise, that .Tpo file would cause a failed "make distcheck"
27933         at least for grep.
27935 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
27937         std-gnu11: new module
27938         This makes it easier for applications to prefer C11 and C++11
27939         to older variants, when compiling C and C++ code.
27940         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
27941         a nontrivial chunk of GPLed Autoconf source code.
27942         * COPYING: Mention the m4/*.m4 copyright situation.
27943         * MODULES.html.sh (std-gnu11): New module.
27944         * m4/std-gnu11.m4, modules/std-gnu11: New files.
27946 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27948         get-permissions, strftime: fix grammar in comments
27949         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
27950         some grammar fixes Alan Mackenzie made to GNU Emacs.
27952 2016-01-25  Daiki Ueno  <ueno@gnu.org>
27954         gettext: mark as obsolete
27955         Suggested by Paul Eggert in:
27956         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
27957         * modules/gettext (Status): Mark as obsolete.
27958         (Notice): Suggest to use 'gettext-h' instead.
27959         * modules/gettext-h (Description): Suggest GNU gettext, instead of
27960         the 'gettext' module.
27962 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27964         gnulib-tool: don't give up on ln -s so easily
27965         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
27966         because an earlier one failed.  The targets could be on different
27967         file systems.  Problem reported by KO Myung-Hun in:
27968         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
27970         closedir: fix OS/2-related typos
27971         Problem reported by KO Myung-Hun in:
27972         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
27973         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
27974         in the last couple of changes.
27976 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
27978         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
27979         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
27980         copying a directory.
27982 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27984         regex: treat [x] as x if x is a unibyte encoding error
27985         Problem reported by Aharon Robbins in:
27986         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
27987         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
27988         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
27990         closedir, dirfd, opendir: port to OpenSolaris 5.10
27991         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
27992         * m4/dirfd.m4 (gl_FUNC_DIRFD):
27993         * m4/opendir.m4 (gl_FUNC_OPENDIR):
27994         Don't use ${word##pat} substitution, as it doesn't work in
27995         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
27996         http://bugs.gnu.org/22443#11
27998 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28000         bootstrap: use American spelling
28001         * build-aux/bootstrap: Honor American spelling.
28003 2016-01-22  Karl Berry  <karl@freefriends.org>
28005         * doc/posix-functions/localtime.texi,
28006         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
28008 2016-01-21  Bruno Haible  <bruno@clisp.org>
28010         hash-pjw-bare: fix comment
28011         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
28013         wcwidth: Replace also on OpenBSD 5.8
28014         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
28015         * doc/posix-functions/wcwidth.texi: Update.
28017 2016-01-20  Pádraig Brady  <P@draigBrady.com>
28019         gnu-web-doc-update: fix addition of new files
28020         If there were already added (emnpty) dirs,
28021         then cvs aborts the add with the message:
28022           cvs [add aborted]: there is a version in <./dirname> already
28023         * build-aux/gnu-web-doc-update: Add directories separately
28024         to the addition of files, to avoid the above issue
28025         impacting the addition of files.
28027 2016-01-19  Daiki Ueno  <ueno@gnu.org>
28029         utimens-tests: avoid pulling gettext .m4 files
28030         Although this is not the right fix to the original problem:
28031         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
28032         it makes it possible again for consumer projects to use arbitrary
28033         version of gettext, through the steps described at:
28034         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
28035         See here for details:
28036         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
28037         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
28038         'gettext'.
28039         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
28040         'gettext'.
28042 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28044         regex: pacify static checkers
28045         Problem and draft fix reported by Aharon Robbins in:
28046         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28047         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
28048         Clear memory to pacify static checkers.
28050         regex: fix [ diagnostic
28051         Problem and fix reported by Aharon Robbins in:
28052         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28053         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
28055         regex: fix memory leaks
28056         Problem and draft fix reported by Aharon Robbins in:
28057         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28058         * lib/regcomp.c (build_range_exp, build_charclass_op)
28059         * lib/regex_internal.c (re_dfa_add_node):
28060         Fix memory leak on failure.
28062 2016-01-18  Pádraig Brady  <P@draigBrady.com>
28064         fts: don't unconditionally use leaf optimization for NFS
28065         NFS st_nlink are not accurate on all implementations,
28066         leading to aborts() if that assumption is made.
28067         See <https://bugzilla.redhat.com/1299169>
28068         * lib/fts.c (leaf_optimization_applies): Remove NFS from
28069         the white list, and document the issue.
28071 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28072             KO Myung-Hun  <komh@chollian.net>
28074         gnulib-tool: don't assume ln -s works
28075         * gnulib-tool (func_ln_s): New function.
28076         (func_ln): Use it.
28078 2016-01-15  KO Myung-Hun  <komh@chollian.net>
28080         utimes: detect utimes() correctly on OS/2 kLIBC
28081         utimes() of OS/2 kLIBC has some limitations.
28082         1. OS/2 itself supports a file date since 1980 year in local time.
28083         2. OS/2 itself supports only even seconds for a file time.
28084         3. utimes() of OS/2 kLIBC does not work on an opened file.
28085         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
28086         * doc/posix-functions/utimes.texi: Document the above limitations of
28087         utimes() on OS/2 kLIBC.
28089 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28090             KO Myung-Hun  <komh@chollian.net>
28092         openat_proc_name: port to OS/2 kLIBC
28093         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
28094         instead of /proc/self/fd.
28095         * lib/openat-proc.c (openat_proc_name):
28096         Don't assume file name length is less than INT_MAX.
28097         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
28099 2016-01-14  KO Myung-Hun  <komh@chollian.net>
28101         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
28102         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
28103         definitions of intptr_t and uintptr_t (which use int and unsigned)
28104         to avoid clashes with declarations of system functions like sbrk.
28105         * lib/stdint.in.h (intptr_t, uintptr_t): Check
28106         _INTPTR_T_DECLARED before defining them.
28108         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
28109         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
28110         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
28111         Declare on kLIBC.
28112         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
28113         fd associated with dirp.
28114         (_gl_register_dirp_fd): New. Register fd associated with dirp to
28115         dirp_fd_list.
28116         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
28117         (dirfd): Implemented for kLIBC.
28118         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
28119         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
28120         succeeds.
28121         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
28122         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28123         (REPLACE_DIRFD): Define to 1 if replaced.
28124         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
28125         * modules/closedir (Depends-on): Add dirfd.
28126         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
28127         condition.
28128         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
28129         * modules/opendir (Depends-on): Add dirfd.
28131         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
28132         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
28133         * lib/dup.c (dup_nothrow): New.
28134         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
28135         (klibc_dup2): New.
28136         * lib/fcntl.c (klibc_fcntl): New.
28137         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
28138         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
28139         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
28140         fd.
28142         pipe_filter_ii_execute: port to OS/2 kLIBC
28143         Pipes on kLIBC do not support O_NONBLOCK like Win32.
28144         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
28145         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
28146         Reuse Win32 code on OS/2 kLIBC.
28147         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
28148         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
28150         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
28151         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
28152         static inline function.  The implementation of wcwidth in wcwidth.c
28153         causes a "conflicting types" error.
28154         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
28156         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
28157         spawn() on OS/2 kLIBC is not silly like one on Windows
28158         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
28159         empty string on OS/2 kLIBC.
28161         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
28162         On OS/2 kLIBC, select() works only on sockets.
28163         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
28165         binary-io: don't put fd in binary mode if it is a console on EMX
28166         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
28167         a console on EMX.
28169 2016-01-15  Pádraig Brady  <P@draigBrady.com>
28171         doc: mention unfixed issues with unsupported localtime() values
28172         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
28173         returns nonsense for localtime(2^56).
28174         * doc/posix-functions/localtime_r.texi: Likewise.
28176 2016-01-14  Pádraig Brady  <P@draigBrady.com>
28178         doc: mention setlocale() issues on OpenBSD
28179         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
28180         never fails, and the need to check categories individually.
28182 2016-01-14  Pádraig Brady  <P@draigBrady.com>
28184         sig2str: list all signals on FreeBSD >= 7
28185         FreeBSD >= 7 is contravening POSIX by not defining NSIG
28186         to the maximal statically defined signal value.
28187         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
28188         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
28189         where available, even when NSIG is defined.
28191 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
28193         acl-permissions: port to USE_ACL==0 platforms
28194         I ran into this problem when building bleeding-edge GNU Emacs
28195         with gcc -fsanitize=address on Fedora 23.  On this platform
28196         the ACL library does not pass the 'configure' test and Emacs
28197         then does not build due in part to what appear to be typos in the
28198         ACL part of Gnulib.
28199         * lib/acl-internal.c (free_permission_context):
28200         * lib/acl-internal.h (struct permission_context):
28201         Test whether USE_ACL is nonzero, not whether it is defined.
28203 2016-01-12  Martin Sebor  <msebor@redhat.com>
28205         mktime: rename macro to avoid glibc clash
28206         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
28207         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
28209 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
28211         Port "$@" to OpenIndiana ksh93
28212         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
28213         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
28214         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
28215         bug long-dead shells, so remove the workaround.
28216         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
28217         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
28218         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
28219         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
28220         Use "$@" instead of ${1+"$@"}.
28222         Port Universal Time settings to strict POSIX
28223         * build-aux/announce-gen, build-aux/bootstrap:
28224         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
28225         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
28226         * build-aux/gnupload, build-aux/mkinstalldirs:
28227         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
28228         * build-aux/update-copyright, build-aux/useless-if-before-free:
28229         * build-aux/vc-list-files, tests/test-strftime.c:
28230         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
28231         but POSIX says the behavior of TZ="UTC" is undefined.
28233 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
28235         msvc-inval: fix problem with unset shell var
28236         Problem reported by Karl Berry in:
28237         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
28238         * modules/msvc-inval (Depends-on):
28239         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
28240         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
28242 2016-01-01  Pádraig Brady  <P@draigBrady.com>
28244         tests: for compare_(), use cmp -s where available
28245         * tests/init.sh (compare_): Only fall back to cmp without
28246         the POSIX defined -s option, where this is not available.
28248 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28250         version-etc: new year
28251         * build-aux/gendocs.sh (version):
28252         * doc/gendocs_template:
28253         * doc/gendocs_template_min:
28254         * doc/gnulib.texi:
28255         * lib/version-etc.c (COPYRIGHT_YEAR):
28256         Update copyright dates by hand in templates and the like.
28257         * all files: Run 'make update-copyright'.
28259 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28261         human: fix output buffer overrun by 1
28262         * lib/human.c (human_readable): Fix off-by-one typo in buffer
28263         calculation that could lead to a one-byte buffer overrun.
28265 2015-12-28  Daiki Ueno  <ueno@gnu.org>
28267         maint: fix operator precedence in mbrtowc test
28268         This is a fix for test breakage introduced by commit 45228d96; the
28269         equality expression must be parenthesized when negated with '!',
28270         otherwise we always get:
28272           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
28274         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
28275         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28277 2015-12-23  James Youngman  <jay@gnu.org>
28279         regexprops-generic: update from regex.h
28280         * doc/regexprops-generic.texi: update by running the regexprops binary
28281         from findutils (the command line is 'regexprops "Regular Expressions"
28282         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
28283         gnulib with GNU grep had made this document out-of-date.
28285 2015-12-23  Pádraig Brady  <P@draigBrady.com>
28287         strftime-tests: avoid false failure on OS X
28288         * tests/test-strftime.c (struct localtime_rz_test): Add an
28289         ahistorical member which is used to warn rather than fail
28290         when tm_isdst isn't set for such entries.  This is the case for
28291         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
28293 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
28295         fts: ensure leaf optimization is used for NFS
28296         NFS provides usable dirent.d_type but not necessarily for all entries
28297         of large directories.  See <https://bugzilla.redhat.com/1252549>
28298         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
28300 2015-12-20  Pádraig Brady  <P@draigBrady.com>
28302         fts: enable leaf optimization for XFS
28303         XFS provides usable dirent.d_type only for DT_DIR,
28304         but the noleaf optimization still applies.
28305         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
28307 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
28309         intprops: comment fix
28310         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
28311         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
28313         intprops-test: work around GCC bug 68971
28314         Problem reported by Pádraig Brady in:
28315         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
28316         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
28317         (main): Add a case that better tests 64-bit long in this area.
28319 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
28321         gnulib-tool: allow multiple --local-dir usage
28322         * gnulib-tool: Use --local-dir to construct compound
28323         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
28324         PATH_SEPARATOR early.
28325         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
28326         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
28327         func_determine_path_separator because that needs to be detected
28328         earlier now.
28329         (func_determine_path_separator): New function.
28330         (func_path_foreach, func_path_foreach_inner): New functions.
28331         (func_path_prepend, func_path_append): Likewise.
28332         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
28333         (func_lookup_file, func_all_modules): Use new functions to work
28334         with local_gnulib_path.
28335         (func_modules_in_dir, func_exists_module): New callbacks for
28336         func_path_foreach.
28337         (func_exists_module, func_get_tests_module): Likewise.
28338         (func_is_local_file, func_should_symlink): New helper methods.
28339         (func_add_file, func_update_file): Use new func_should_symlink
28340         instead, DRY.
28341         (func_reconstruct_cached_local_gnulib_path): New helper.
28342         (func_reconstruct_cached_dir): New callback.
28343         (func_import): The cached_local_gnulib_dir renamed to
28344         cached_local_gnulib_path similarly to local_gnulib_dir.
28345         Use new func_reconstruct_cached_local_gnulib_path.
28346         (func_count_relative_local_gnulib_path): New sub-method.
28347         (func_create_testdir): Use func_should_symlink, DRY.
28348         (func_create_megatestdir): Use new functions to work with
28349         local_gnulib_path correctly.
28350         (func_append_local_dir): New helper.
28352 2015-12-08  Pádraig Brady  <P@draigBrady.com>
28354         fix freadptr to work with ungetc on all uClibc configs
28355         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
28356         where GNU coreutils cut(1) generates invalid output on uClibc
28357         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
28358         * lib/freadptr.c (freadptr): Return NULL if there are
28359         ungotten chars.  In this case freadseek() will iterate
28360         again to process the ungotten character.
28362 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
28364         xalloc-oversized: improve performance with GCC 5
28365         * lib/xalloc-oversized.h (xalloc_oversized):
28366         Improve performance with GCC 5 by using __builtin_mul_overflow.
28368 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28370         intprops: new public macro EXPR_SIGNED
28371         Emacs can use this macro, so make it public.
28372         * doc/intprops.texi (Arithmetic Type Properties): Rename from
28373         'Integer Type Determination', since some of these macros apply
28374         to non-integer types.  Clarify what kinds of constant expressions
28375         these macros return.  Say when the arguments can be non-integers.
28376         Mention newly published macro EXPR_SIGNED.
28377         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
28378         make it public.  All uses changed.
28380         intprops: fix typo in clang port
28381         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
28382         '__builtin_add_overflow' that is not caught by compiler.
28384 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28386         test-timespec: fix typo in previous change
28387         * tests/test-timespec.c (main): Fix typo that reduced test quality.
28389         timespec-sub: fix overflow bug; add tests
28390         * lib/timespec-add.c (timespec_add):
28391         * lib/timespec-sub.c (timespec_sub):
28392         Work even if time_t is narrower than int (a theoretical
28393         possibility).  Redo code for a bit more clarity.
28394         * lib/timespec-sub.c (timespec_sub):
28395         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
28396         * modules/timespec-tests, tests/test-timespec.c: New files.
28398         intprops-test: suppress -Woverlength-strings
28399         Problem reported by Pádraig Brady in:
28400         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
28401         It is not worth the hassle to port this test to compilers that
28402         cannot handle long strings in diagnostics.
28403         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
28405 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28407         quotearg: add quotearg_n_style_colon()
28408         This quotes with default options of the specified style,
28409         but with quoting enabled for instances of ':'.
28410         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
28411         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
28413 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
28415         intprops: revise _WRAPV macros, revert _OVERFLOW
28416         The incompatible changes to the _OVERFLOW macros were too much of
28417         a hassle in practice, so revert them.  Instead, change the new
28418         _WRAPV macros to make them closer in behavior to GCC 5's new
28419         builtin_add_overflow etc. functions.  No other software was using
28420         these newly-added macros yet, so this should be OK.
28421         * NEWS: Revert previous change, since the incompatible change
28422         has been reverted, and nobody used the incompatible version.
28423         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
28424         Document revised behavior.
28425         (Integer Range Overflow): Adjust example to match above revisions.
28426         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
28427         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
28428         these can be used in integer constant expressions again.
28429         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
28430         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
28431         needed.
28432         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28433         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28434         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
28435         Remove, as they did not seem that useful.
28436         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
28437         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
28438         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
28439         Support new semantics.
28440         (__has_builtin): New macro, if not alreay defined.
28441         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
28442         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28443         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28444         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28445         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
28446         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
28447         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
28448         New macros.
28449         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
28451 2015-11-03  Jim Meyering  <meyering@fb.com>
28453         intprops: add parentheses for when OP has precedence lower than "-"
28454         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
28455         "a OP b" must be parenthesized for when OP is like "<<", which has
28456         lower precedence than the following "-". Reported by Pádraig Brady.
28458 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28460         quotearg: constify get_quoting_style parameters
28461         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
28462         * lib/quotearg.c (get_quoting_style): Likewise.
28464 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28466         quotearg: add support for $'' shell escaping
28467         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
28468         items and descriptions.
28469         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
28470         above types by quoting like "shell", but using $'...' syntax
28471         for non printable characters, which should provide unambiguous
28472         printable output for any input.
28473         * tests/test-quotearg-simple.c: Update accordingly.
28475 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28477         maint: use a more standard return from mbrtowc test
28478         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
28479         from the test program as this is non standard and often
28480         indicates an unhandled case in the test program.
28481         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28483 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28485         intprops: add WRAPV and const flavors for GCC 5
28486         If available, use GCC 5's builtin functions for efficient integer
28487         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
28488         and safely compute the low-order bits of the correct answer.
28489         A downside of these efficient functions is that they cannot be
28490         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
28491         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
28492         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
28493         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
28494         Document the changes.
28495         (Wraparound Arithmetic): New section.
28496         (Integer Range Overflow):
28497         Put this subsection last, since it's least useful.
28498         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
28499         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
28500         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
28501         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28502         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28503         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
28504         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
28505         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
28506         New macros.
28507         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
28508         Generate calls to GCC builtins if available, for speed.
28509         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28510         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28511         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28512         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
28513         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
28514         (CHECK_QUOTIENT, CHECK_REMAINDER):
28515         Test WRAPV and CONST flavors (when available) too.
28517 2015-10-30  Pádraig Brady  <P@draigBrady.com>
28519         doc: use extended timezone format in iso-8601 example
28520         * doc/parse-datetime.texi: The standard states that extended format
28521         is to be used consistently throughout.
28522         Note that lib/parse-datetime.y can handle either tz format.
28524 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
28526         stdalign: port to Sun C 5.9
28527         * doc/posix-headers/stdalign.texi: Document this.
28528         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
28529         __attribute__ ((__aligned__ (...))).
28531 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
28533         time_rz: fix comment about tzalloc
28534         * lib/time_rz.c (tzalloc): Fix comment.
28536 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28538         stdalign: work around pre-4.9 GCC x86 bug
28539         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
28540         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
28541         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
28543 2015-10-18  Pádraig Brady  <P@draigBrady.com>
28545         maint.mk: sc_tight_scope: remove extraneous expressions
28546         * top/maint.mk (tight_scope): This is not really required since
28547         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
28548         that matches all nm entries.  But it does remove extraneous entries
28549         that may be confusing or cause issue in future maintenance.
28551 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28553         time_rz: return NULL if localtime_r fails
28554         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
28555         while still attempting to pacify bleeding-edge GCC.
28557         fts: port to C11 alignof
28558         * doc/posix-headers/stdalign.texi (stdalign.h):
28559         Document the C11 restriction.
28560         * lib/fts.c: Include stddef.h, for max_align_t.
28561         (fts_alloc): Align using max_align_t, not FTSENT.
28562         * modules/fts (Depends-on): Add stddef.
28564 2015-10-18  Jim Meyering  <meyering@fb.com>
28566         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
28567         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
28568         would see this:
28570         lib/time_rz.c: In function 'localtime_rz':
28571         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
28572           [-Werror=nonnull]
28573                    if (tm && !save_abbr (tz, tm))
28574                        ^
28576         That was complaining about "tm" because it is a parameter that was
28577         declared with the __nonnull__ attribute.
28578         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
28579         result of localtime_r.
28581 2015-10-17  Jim Meyering  <meyering@fb.com>
28583         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
28584         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
28585         name-extraction regexp mistakenly used \S+, and would mistakenly
28586         extract "*F" from "extern int *F()" rather than the desired "F".
28587         Use \w+ instead.
28589 2015-10-17  Jim Meyering  <meyering@fb.com>
28591         maint.mk: sc_tight_scope: factor and support OS X
28592         * top/maint.mk (_gl_tight_scope): Address three issues:
28593         - factor out four instances of code that wraps a string in "^...$"
28594         - allow nm-reported symbol names to have an optional leading "_"
28595         - add "main" to the list of ignored variable names, because on os x,
28596         "main" has nm-reported type "S" in the variable-checking section.
28598 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
28600         safe-alloc-tests: fix typo in license header
28601         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
28603 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
28605         copy-file: fix mem leak in error case
28606         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
28607         upon error opening or performing I/O to the src and dest files.
28609 2015-10-15  Mike Frysinger  <vapier@chromium.org>
28611         localename: control langinfo.h inclusion
28612         This header is only used to work around buggy behavior in old
28613         versions of glibc, so do not include it all the time.  Otherwise
28614         we get build failures on systems that do not provide langinfo.h.
28615         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
28616         in the source later on.
28617         The patch was originally submitted to gettext as:
28618         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
28620 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28622         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
28623         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
28624         * lib/u64.c, lib/unistd.c:
28625         Append 'typedef int dummy;', to pacify compilers that are picky
28626         about empty translation units.
28628 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
28630         accept4-tests: fix to avoid non portable flags
28631         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
28632         as they are the only documented ones, and passing others may trigger
28633         EINVAL (seen on FreeBSD 10.1-RELEASE).
28634         * doc/glibc-functions/accept4.texi: Mention that we don't provide
28635         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
28637 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
28639         gnulib-tool: fix tests of 'extensions' module
28640         This complements f8fe25fab60e3c687a124 commit.
28641         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
28642         emitting of initial gl_EARLY macros.
28643         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
28644         replaced with func_emit_pre_early_macros call.
28646 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28648         unicase/locale-language: fix typo in utf-8 cookie
28649         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
28650         Problem reported by Zbigniew Jędrzejewski-Szmek.
28652 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28654         xalloc: do not worry about GCC 5 warning on 32 bit
28655         * lib/xalloc.h: Revert previous change.
28656         I found a better way to fix this in coreutils.
28658 2015-10-02  Pádraig Brady  <P@draigBrady.com>
28660         xalloc: avoid GCC 5.1 warning on 32 bit
28661         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
28662         xalloc_oversized(), which was seen to give this warning
28663         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
28664         when simplifying conditional".
28666 2015-10-02  Daiki Ueno  <ueno@gnu.org>
28668         uniname/uniname-tests: avoid compiler warnings
28669         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
28670         unused local variables.
28671         (test_alias_lookup): Fix alias name display in failure cases.
28673 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28675         c-ctype: do not worry about EBCDIC + char signed
28676         Drop support for EBCDIC with char being signed, as this breaks too
28677         many programs.  Problem reported by Ben Pfaff in:
28678         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
28679         * lib/c-ctype.h: Verify that we are not using EBCDIC with
28680         char being signed.
28681         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
28682         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
28683         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
28684         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
28685         * tests/test-c-ctype.c (test_all):
28686         Simplify by assuming standard char values cannot be negative.
28687         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
28689 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28691         c-ctype: port better to z/OS EBCDIC
28692         Problems reported by Daniel Richard G. in:
28693         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
28694         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
28695         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
28696         (_C_CTYPE_OTHER_CNTRL): New macro.
28697         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
28698         from SCHAR_MIN, as the functions are defined only from values
28699         promoted from char or from unsigned char, not necessarily from
28700         signed char.
28702 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
28704         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
28706         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
28707         and ARFLAGS variables.  Doing this unconditionally could break
28708         later Automake's AM_PROG_AR invocation (at least it's
28709         AC_CHECK_TOOLS call to detect correct 'ar' binary).
28711         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
28712         Amsterdam Compiler Kit, so make the previous code to have effects
28713         only on ACK, and rather automatically call the Automake's
28714         AM_PROG_AR as soon as possible to decide other cases.
28716         References:
28717         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
28719         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
28720         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
28721         is possible, keep setting AR/ARFLAGS to reasonable defaults.
28722         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
28723         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
28724         'extensions' module is used.
28725         * modules/extensions (configure.ac-early): Remove as this snippet
28726         is added to gnulib-comp.m4 earlier anyway.
28728 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28730         sockets: MS Windows initalization fixes
28731         Problem reported by Test User in:
28732         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
28733         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
28734         Correct the endianness.
28735         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
28736         number mismatch, not just on <.  Cleanup before any such failure.
28738 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
28740         gc: fix detection of installed libgcrypt version
28741         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
28742         at least as recent as 1.4.4.  The previously used macro is not
28743         available now, since modules were removed in version 1.6.0.
28745 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28747         c-ctype: rewrite to use inline functions
28748         This simplifies maintenance, since it makes for just one
28749         implementation of each function, letting the compiler have the fun
28750         of optimization.  In practice this works well nowadays with GCC.
28751         E.g., c_isascii might need only three instructions even though the
28752         source code lists every ASCII character individually in a large
28753         switch statement.
28754         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
28755         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
28756         * NEWS: Document the API change.
28757         * lib/c-ctype.c: Drastically simplify, since this now just expands
28758         inline functions.
28759         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28760         (C_CTYPE_INLINE): New macro.
28761         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
28762         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
28763         Verify that either ASCII or EBCDIC is being used.
28764         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
28765         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
28766         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
28767         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
28768         New private macros.
28769         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
28770         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
28771         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
28772         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
28773         (c_tolower, c_toupper): When converting, return the unsigned char,
28774         as that is what z/OS does.
28775         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
28776         of some c-ctype.h macros.
28777         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
28778         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
28779         c_tolower promotion to be compatible with z/OS.
28781 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
28783         gitlog-to-changelog: trim only trailing whitespaces
28784         This is fix for --format regression introduced by commit
28785         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
28786         doubled %n string) had no effect anymore.  This format
28787         specification has been used e.g. by GNU paxuitils (commit
28788         edfd8bcc3).
28790         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
28791         newlines in commmit messages.
28793 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28795         Test that c_iscntrl agrees with iscntrl, etc.
28796         Suggested by Daniel Richard G. in:
28797         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
28798         * modules/c-ctype-tests (Depends-on): Add ctype.
28799         * tests/test-c-ctype.c: Include <ctype.h>.
28800         (NCHARS): New constant.
28801         (test_agree_with_C_locale): New function.
28802         (main): Use it.
28803         (test_all): Use named constants.
28805         c-ctype: improve c_isascii testing
28806         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
28807         Add a test to count the number of ASCII characters.
28809 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28811         savewd: remove SAVEWD_CHDIR_READABLE
28812         It was problematic in the light of file systems that ignore umask.
28813         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
28814         * NEWS: Document this.
28815         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
28816         successful, -1 (setting errno) on failure, rather than something
28817         more complicated than that.
28818         * lib/mkdir-p.c (make_dir_parents):
28819         Do not use SAVEWD_CHDIR_READABLE.
28820         * lib/savewd.c (savewd_chdir):
28821         Remove support for SAVEWD_CHDIR_READABLE.
28822         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
28824         c-ctype: port better to EBCDIC
28825         Problems reported by Daniel Richard G. in
28826         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
28827         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
28828         Include "verify.h".
28829         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
28830         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
28831         Define as enum constants with value false, if not defined, so that
28832         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
28833         code more portable, as both branches of the 'if' are compiled on
28834         all platforms.
28835         (C_CTYPE_EBCDIC): New constant.
28836         Verify that the character set is either ASCII or EBCDIC.
28837         (to_char): New static function.
28838         (c_isascii, c_iscntrl):
28839         Assume standard control-character assignments for EBCDIC.
28840         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
28841         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
28842         Rewrite to use 'if' instead of 'ifdef'.
28843         Use to_char if non-ASCII.  Prefer <= to >=.
28844         Prefer true and false to 1 and 0, for booleans.
28845         (c_iscntrl): Use 'if', not 'ifdef'.
28846         * modules/c-ctype (Depends-on): Add verify.
28847         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
28848         (to_char): New function.
28849         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
28851 2015-09-21  Pádraig Brady  <P@draigBrady.com>
28853         nanosleep: fix return code for interrupted replacement
28854         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
28855         that we return -1 in the case the call is interrupted by a signal,
28856         rather than the current value of 1.
28857         Diagnosed and tested by Daniel Richard G.
28859 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
28861         Diagnose ERE '()|\1'
28862         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
28863         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
28864         track of the set of previously-completed subexpressions available
28865         before the first alternative, and restore this set just before
28866         parsing each subsequent alternative.  This lets us diagnose the
28867         invalid back-reference in the ERE '()|\1'.
28869         regex: merge patches from libc
28871         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
28872         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
28873         * lib/regex_internal.h:
28874         Include <libc-lock.h> instead of <bits/libc-lock.h>.
28876         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
28877         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
28878         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
28879         wcscoll.
28880         * lib/regexec.c (check_node_accept_bytes): Likewise.
28882         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
28883         Fix regex wcrtomb namespace (bug 18496).
28884         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
28885         instead of wcrtomb.
28887         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
28888         Fix regex wctype namespace (bug 18495).
28889         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
28890         instead of towlower.
28891         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
28892         instead of iswlower.  Call __towupper instead of towupper.
28893         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
28894         instead of iswalnum.
28896         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
28897         * lib/regcomp.c (parse_bracket_exp): Initialize type to
28898         COLL_SYM in a couple of places to avoid uninitialized variable
28899         wanings on tilegx gcc 4.8.2.
28901         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28902         * lib/regex_internal.h: Remove NOT_IN_libc.
28904         2014-11-17  Andreas Schwab  <schwab@suse.de>
28905         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
28907         2014-09-11  Roland McGrath  <roland@hack.frob.com>
28908         Move findidx nested functions to top-level.
28909         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
28910         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
28911         Pass new arguments to findidx.
28912         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
28913         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
28914         Don't #include it inside the function.  Pass new arguments to findidx.
28915         * lib/regex_internal.h:
28916         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
28917         (re_string_elem_size_at): Don't #include it inside the function.
28918         Pass new arguments to findidx.
28920         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28921         Check if DEBUG is defined in regex_internal.c
28922         * lib/regex_internal.c: Check if DEBUG is defined and is set.
28924 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
28926         ceill: detect buggy OpenBSD implementation
28927         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
28928         which returns zero for small values.  Discussed here:
28929         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
28931 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
28933         mountlist: add me_mntroot field on Linux machines
28934         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
28935         mount_entry so Linux machines based on /proc/self/mountinfo can
28936         distinguish between bind mounts and original mounts.  In reality bind
28937         mounts aren't treated differently than mountroot=/ mounts by the
28938         kernel, but the user often wants these bind mounts distinguished.
28939         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
28940         More details at https://pad.lv/1432871
28942 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
28944         doc: Describe to use multiple instances of gnulib
28945         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
28946         instances of gnulib with different modules can be used, for example one
28947         for a lib and another one for associated tools.
28949 2015-09-01  Pádraig Brady  <P@draigBrady.com>
28951         base32: mark function as __attribute__ const
28952         * lib/base32.h (isbase32): Mark __attribute__ const as
28953         suggested by GCC, and consistent with the base64 module.
28955 2015-08-20  Daiki Ueno  <ueno@gnu.org>
28957         gnulib-tool: don't transform binary files with sed
28958         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
28959         .mo and .class files.
28960         Reported by Denis Denisov.
28962 2015-08-10  Daiki Ueno  <ueno@gnu.org>
28964         gperf: respect silent rules
28965         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
28966         V_GPERF_0 for silent rules.
28967         * modules/iconv_open (Makefile.am): Use V_GPERF.
28968         * modules/unicase/locale-language (Makefile.am): Likewise.
28969         * modules/unicase/special-casing (Makefile.am): Likewise.
28970         * modules/unictype/category-byname (Makefile.am): Likewise.
28971         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
28972         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
28973         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
28974         * modules/unictype/property-byname (Makefile.am): Likewise.
28975         * modules/unictype/scripts (Makefile.am): Likewise.
28976         * modules/uninorm/composition (Makefile.am): Likewise.
28978 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
28980         Improve port of stdalign to C++11
28981         Problem reported by Sundaram in:
28982         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
28983         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
28984         (__alignas_is_defined): Define if C++11 or newer.
28986 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
28988         pmccabe2html: fix gawk regex escaping
28989         * build-aux/pmccabe2html: Add one more backslash to properly
28990         escape the gsub replacement value.  Fixes this error:
28991         gawk: ./build-aux/pmccabe2html:425: \
28992         warning: escape sequence `\&' treated as plain `&'
28994 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
28996         time_rz: port to pedantic memcpy
28997         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
28998         that reject memcpy (..., NULL, 0).
29000 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
29002         time_rz: port better to MinGW
29003         Don't change tzname, as this makes MinGW dump core (Bug#21020).
29004         Instead, store the tzname copy in the struct tm_zone object.
29005         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
29006         * lib/strftime.c [!_LIBC]:
29007         * lib/time_rz.c: Include time-internal.h.
29008         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
29009         name from *TZ rather than from TZNAME, doable because *TZ now has
29010         a tzname_copy member.
29011         * lib/time-internal.h: New file, with contents taken from
29012         lib/time_rz.c.  It's separate because strftime.c now accesses
29013         struct tm_zone members.
29014         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29015         New member tzname_copy.
29016         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
29017         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29018         Initialize tzname_copy member.
29019         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
29020         in tzname_copy member.
29021         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
29022         (restore_tzname): Remove; no longer needed.  All calls removed.
29023         * modules/time_rz (Files): Add lib/time-internal.h.
29025         time: port __need_time_t to MinGW
29026         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
29027         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
29029 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29031         strftime: fix newly-introduced bug on Solaris
29032         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
29033         consistently at the start, rather than doing some of the setup at
29034         the start and some in the %Z format spec.  This is cleaner, and
29035         works better with time_rz on platforms like Solaris where struct
29036         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
29037         mktime_z and localtime_rz can mess up the tzname cache.
29039         test-strftime: test for Solaris bug
29040         * modules/strftime-tests (Depends-on): Add strerror.
29041         * tests/test-strftime.c: Include <errno.h>.
29042         (posixtm_test): New function, containing the old 'main'.
29043         (struct tzalloc_test, struct localtime_rz_test): New types.
29044         (TZ, LT): New static vars.
29045         (tzalloc_test): New function.
29046         (main): Rewrite in terms of posixtm_test and tzalloc_test.
29048         time_rz: port to Solaris etc.
29049         Works around a tzname problem on platforms like Solaris that have
29050         tzname but not tm_zone, by setting tzname at the appropriate time
29051         and restoring it later.
29052         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
29053         New static vars.
29054         (save_abbr) [HAVE_TZNAME]: Set them.
29055         (revert_tz) [HAVE_TZNAME]: Clear or use them.
29056         (restore_tzname): New function.
29057         (localtime_rz, mktime_z): Use it.
29059         time_rz: now LGPL
29060         * modules/time_rz (License): Now LGPL, because strftime depends on it.
29062         time_rz: make a constant 'const'
29063         * lib/time_rz.c (local_tz): Now const.
29065         time_rz: fix off-by-one typo
29066         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
29068 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
29070         fprintftime, strftime: use timezone_t args
29071         * NEWS: Document the change.
29072         * lib/fprintftime.h (fprintftime):
29073         * lib/strftime.c (extra_args) [my_strftime]:
29074         * lib/strftime.h (nstrftime):
29075         Time zone arg is now of type timezone_t, not int.
29076         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
29077         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
29078         (my_strftime) [emacs && !my_strftime]:
29079         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
29080         Remove; Emacs doesn't need this any more.
29081         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
29082         fprintftime and nstrftime to call tzset.
29083         (ut) [!my_strftime]: Remove, replacing with ...
29084         (tz) [!my_stftime]: ... this new macro.  All uses changed.
29085         (strftime_case_): Use localtime_rz and mktime_z instead
29086         of localtime_r and mktime.
29087         * modules/fprintftime (Depends-on): Add time_rz.
29088         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
29089         * tests/test-strftime.c (main): Adjust to new nstrftime API.
29091         time_rz: new module
29092         * MODULES.html.sh: Add time_rz.
29093         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
29094         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
29095         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
29096         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
29097         New var HAVE_TIMEZONE_T (default 0).
29098         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29099         New var GNULIB_TIME_RZ (default 0).
29100         * modules/time (time.h): Substitute the new vars.
29102         flexmember: license is now unlimited
29103         * modules/flexmember (License): Change to unlimited,
29104         since its only source file gives an unlimited license.
29106 2015-07-15  Eric Blake  <eblake@redhat.com>
29108         maint: update copyright paper procedures
29109         * config/srclist.txt: Drop outdated files.
29110         * doc/Copyright/conditions.txt: Update to latest.
29111         * doc/Copyright/assign.changes.manual: Delete.
29112         * doc/Copyright/assign.future.manual: Likewise.
29113         * doc/Copyright/assign.manual: Likewise.
29114         * doc/Copyright/assign.translation.manual: Likewise.
29115         * doc/Copyright/disclaim.changes.manual: Likewise.
29116         * doc/Copyright/disclaim.manual: Likewise.
29117         * doc/Copyright/disclaim.program: Likewise.
29119 2015-07-07  Daiki Ueno  <ueno@gnu.org>
29121         localename: fix link error on Illumos
29122         Illumos defines __sun, but does not have getlocalename_l nor the
29123         equivalent.  This partially reverts commit 387c214.
29124         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
29125         available, as well as uselocale.
29126         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
29127         use getlocalename_l if it is not available.
29129 2015-07-07  Daiki Ueno  <ueno@gnu.org>
29131         unistr/uN-strtok-tests: avoid a trivial leak
29132         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
29133         input and delim after the multibyte delimiter tests.
29135 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
29137         file-has-acl, acl-permissions: fix HP-UX typos
29138         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
29139         * lib/file-has-acl.c (file_has_acl):
29140         * lib/set-permissions.c (context_acl_from_mode)
29141         (context_aclv_from_mode, set_acls):
29142         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
29143         They were introduced by the recent ACL changes.
29145         regex: match current GNU grep behavior
29146         These symbols have not matched GNU grep behavior for quite some time.
29147         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
29148         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
29149         Change to match current GNU behavior.
29150         Simplify by expressing it as differences from POSIX BREs and EREs.
29151         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
29153 2015-07-03  Jim Meyering  <meyering@fb.com>
29155         set-permissions.c: adjust acl_from_mode's cpp guard
29156         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
29157         directives identical to those guarding the sole use.
29158         Otherwise, on some systems, we'd get a warning about
29159         the function being defined but not used.
29160         Also, filter through cppi to correct misleading indentation
29161         of cpp directives.
29163 2015-07-03  Pádraig Brady  <P@draigBrady.com>
29165         tests: restrict shells to those that support 'local'
29166         The local keyword is very widely supported and used
29167         in tests in coreutils and grep at least.  Therefore
29168         restrict to testing with shells that support it.
29169         This mainly excludes /bin/sh on Solaris.
29170         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
29172 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
29173         and Daiki Ueno  <ueno@gnu.org>
29175         unistr/uN-strtok: handle multibyte delimiters
29176         Previously, uN_strtok moved PTR to the next unit to the token end.
29177         When DELIM contained a multibyte character, the new position could
29178         be a middle of a multibyte character.
29179         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
29180         after the token.
29181         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
29182         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
29183         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
29184         * modules/unistr/u8-strtok (Depends-on): Depend on
29185         unistr/u8-strmblen.
29186         * modules/unistr/u16-strtok (Depends-on): Depend on
29187         unistr/u16-strmblen.
29188         * modules/unistr/u32-strtok (Depends-on): Depend on
29189         unistr/u32-strmblen.
29190         * tests/unistr/test-u-strtok.h: New file.
29191         * tests/unistr/test-u8-strtok.c: New file.
29192         * tests/unistr/test-u16-strtok.c: New file.
29193         * tests/unistr/test-u32-strtok.c: New file.
29194         * modules/unistr/u8-strtok-tests: New file.
29195         * modules/unistr/u32-strtok-tests: New file.
29196         * modules/unistr/u16-strtok-tests: New file.
29198 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
29200         update-copyright: fix test failure with perl >= 5.22 (trivial)
29201         * build-aux/update-copyright: Escape a literal left curly bracket,
29202         required with perl >= 5.22
29204 2015-07-02  Daiki Ueno  <ueno@gnu.org>
29206         u{16,32}-strstr-tests: relax timeout condition
29207         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
29208         tests can take longer than 5 seconds to complete.
29209         Reported by Dagobert Michelsen in:
29210         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
29211         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
29212         seconds to 10 seconds.
29213         * tests/unistr/test-u32-strstr.c (main): Likewise.
29215 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
29217         gnulib-common.m4: change the ARFLAGS default to 'cr'
29218         In some GNU/Linux distributions people started to compile 'ar'
29219         binary with --enable-deterministic-archives (binutils project).
29220         That, however, in combination with previous autotools long time
29221         working default AR{_,}FLAGS=cru causes warnings on such
29222         installations:
29223         ar: `u' modifier ignored since `D' is the default (see `U')
29224         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
29225         set already.
29227 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
29229         selinux-h: avoid double free after *getfilecon()
29230         Originally reported by Ben Shelton on bug-tar:
29231         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
29232         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
29233         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
29234         param should be freed by freecon(3) (regardless the return value).
29236 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
29238         fix pty related tests issues on Windows (trivial)
29239         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
29240         however it's still present in tests/ subdirectory of the final project.
29241         Therefore avoid it to pass `make check`.
29242         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
29243         will just return -ENOSYS, so avoid this non applicable test allowing
29244         the build to proceed.
29246 2015-07-01  Pádraig Brady  <P@draigBrady.com>
29248         acl: fix definition of acl_from_mode on FreeBSD
29249         This was causing basic coreutils copy operations to fail
29250         with ENOTSUP or ENOENT error messages.
29251         * lib/acl-internal.h (acl_from_mode): Only define when
29252         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
29253         of acl_from_mode() defined in lib/set-permissions.c to
29254         be used on FreeBSD at least.
29255         * lib/set-permissions.c: Fix up comment spelling,
29256         and a redundant variable assignment; noticed in passing.
29258 2015-06-30  Pádraig Brady  <P@draigBrady.com>
29260         readutmp: port to FreeBSD >= 9
29261         * lib/readutmp.h: Map utmpxname() to setutxdb().
29262         With that coreutils who(1) and pinky(1) tests pass.
29264 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
29266         mgetgroups: port to strict OS X
29267         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
29268         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
29269         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
29270         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
29272 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
29274         mgetgroups: port to strict OS X
29275         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
29276         Document the getgrouplist problem.
29277         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
29278         New macro.
29279         (mgetgroups): Use it.
29280         * m4/mgetgroups.m4 (gl_MGETGROUPS):
29281         Check for OS X signature for getgrouplist.
29283 2015-06-29  Jim Meyering  <meyering@fb.com>
29285         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
29286         It started like this when building coreutils' latest on OS X,
29287         invoking ./configure with a nonempty --cache=.cache:
29289           lib/linkat.c:46:42: error: operator '||' has no right operand
29290           lib/linkat.c: In function 'rpl_linkat':
29291           lib/linkat.c:330:27: error: #if with no expression
29293         Here's linkat.c's line 46:
29295           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
29297         Here's some context:
29299           $ grep linkat_nofoll .cache
29300           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
29301           $ grep LINKAT_SYM lib/config.h
29302           #define LINKAT_SYMLINK_NOTSUP
29304         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
29305         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
29306         but that violates a tenet of AC_CACHE_CHECK: it must
29307         have no side effect other than setting its cache variable.
29309         What happens is that when the cache is set, we'd skip the
29310         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
29311         defined to whatever value it happened to have in configure's
29312         environment.  In my case, it was not defined, so this later code:
29314           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
29315             [Define to 1 if linkat can create hardlinks to symlinks])
29317         would emit code with an empty RHS.
29319         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
29320         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
29322 2015-06-28  Jim Meyering  <meyering@fb.com>
29324         mountlist: avoid an unused-label warning on OS X
29325         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
29326         Building on OS X, I saw a warning about the "free_then_fail" label
29327         being unused.  Give it the _GL_UNUSED_LABEL attribute.
29329         error.c: correct printf-style format: %d -> %u
29330         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
29331         rather than %d, to match the type of "line_number", unsigned int.
29333 2015-06-25  Pádraig Brady  <P@draigBrady.com>
29335         fts: avoid reading beyond the heap allocation
29336         GCC 5.1.1 with -O2 and -fsanitize=address reports
29337         a read of size 4 from a heap object of size 3 is indeed invalid,
29338         though this may be due to incorrect padding assumptions by GCC, see:
29339         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
29340         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
29341         * modules/fts: Depend on stdalign.
29343 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29345         savedir: avoid undefined behavior in qsort call
29346         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29347         "runtime error: null pointer passed as argument 1,
29348          which is declared to never be null"
29349         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
29351 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29353         userspec: avoid undefined behavior in gettext call
29354         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29355         "runtime error: null pointer passed as argument 2,
29356          which is declared to never be null"
29357         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
29359 2015-06-20  Glenn Morris  <rgm@gnu.org>
29361         gitlog-to-changelog: improve gitmerge.el commits
29362         Let the Emacs ChangeLog generation process exclude "skipped"
29363         messages from merge commits (Bug#20717).
29364         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
29366 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29368         wchar: fix MinGW compilation warnings
29369         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
29370         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
29371         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
29373 2015-06-20  Daiki Ueno  <ueno@gnu.org>
29375         uniname/uniname-tests: use pristine data files
29376         For copyright and maintenance reasons, use the data files from UCD
29377         without modification.
29378         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
29379         (getfield): Remove.
29380         (aliases_count): New global variable.
29381         (fill_names): Skip comments and empty lines in the input.  Don't
29382         use getfield.
29383         (fill_aliases): Likewise.
29384         (main): Change the expected command line arguments to:
29385         NAMES... ["--" ALIASES...].
29386         * tests/uniname/test-uninames.sh: Adjust to the change in
29387         test-uninames.c.
29388         * tests/uniname/UnicodeDataNames.txt: Remove.
29389         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
29390         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
29391         file from Unicode 8.0.0.
29393 2015-06-19  Pádraig Brady  <P@draigBrady.com>
29395         linked-list, linkedhash-list: avoid compiler warnings
29396         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
29397         -Werror=suggest-attribute=pure (from GCC 5.1.1).
29399 2015-06-19  Daiki Ueno  <ueno@gnu.org>
29401         libunistring: bump minimum version to 0.9.6
29402         * all modules depending on updated Unicode data: Regenerate.
29403         The modules are listed by a script that does:
29404         - for each file listed by: git show --oneline --name-only 705f4efc
29405           - deduce the containing modules, based on "Files:"
29406         - deduce the modules which depend on the containing modules, based
29407           on "Depends-on:"
29409 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29411         uniname/uniname: update to Unicode 8.0.0
29412         * lib/uniname/uninames.h: Regenerate.
29413         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
29414         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
29416 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29418         libunistring: update to Unicode 8.0.0
29419         * lib/gen-uni-tables.c (SIZEOF): New macro.
29420         (output_numeric): Increase the maximum number of fractions from
29421         128 to 160.  Increase the level3 value width from 7 bits to 8
29422         bits.  Use SIZEOF instead of a hard-coded integer.
29423         (output_blocks): Decrease the cut-off threshold from 0x30000 to
29424         0x28000.
29425         (fill_blocks): Increase the maximum number of blocks from 256 to
29426         384.  Use SIZEOF instead of a hard-coded integer.
29427         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
29428         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
29429         value width.
29430         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
29431         a new case added to LBP22.
29432         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
29433         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
29434         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
29435         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
29436         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
29437         * tests/uniwidth/test-uc_width2.sh: Same updates as in
29438         lib/uniwidth/width.c.
29439         * all generated files under lib/uni* and tests/uni*: Regenerate.
29441 2015-06-16  Pádraig Brady  <P@draigBrady.com>
29443         gnu-web-doc-update: add --mirror to remove stale files
29444         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
29445         out of date files from the CVS server.  Since this is usually
29446         appropriate, a prompt is given when the option is not specified,
29447         along with the `cvs remove` command that would be run.
29449 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
29451         acl-permissions: pacify -Wsuggest-attribute=const
29452         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
29453         * lib/acl-internal.h (free_permission_context):
29454         Declare with attribute const if ! (defined USE_ACL &&
29455         (HAVE_ACL_GET_FILE || defined GETACL)).
29457         fsync: document AIX misbehavior
29458         * doc/posix-functions/fsync.texi (fsync):
29459         Document failure on AIX with read-only file descriptor.
29461 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
29463         stdio: Don't redefine gets when using C++
29464         * lib/stdio.in.h (gets): Disable warning on C++.
29466 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
29468         acl-permissions: port to AIX, C89 HP-UX
29469         Problems reported by Michael Felt.
29470         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
29471         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
29472         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
29473         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
29474         Add cast for AIX, whose system calls are declared to accept
29475         char * even though the arguments are really char const *.
29476         * lib/get-permissions.c (get_permissions):
29477         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
29478         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
29479         that broke a build.
29480         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
29481         Rework types to pacify xlc.
29483 2015-06-03  Pádraig Brady  <P@draigBrady.com>
29485         vasprintf-posix: avoid compiling vasnprintf where possible
29486         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
29487         module where not required.  For example on a GNU/Linux system
29488         when gnulib-tool is run with the --conditional-dependencies option.
29490 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29492         file-has-acl: fix build on Mac OS X 10
29493         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
29494         which has an incompatible 6 parameter getxattr() call.
29495         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
29496         call on Mac OS X >= 10.4.
29497         * doc/glibc-functions/fgetxattr.texi: Likewise.
29498         * lib/file-has-acl.c: Revert to more complete combined check.
29499         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
29500         Reported by Jack Howarth.
29502 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29504         prefix-gnulib-mk: remove no longer needed special case
29505         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
29506         continued lib_SOURCES lines are no longer present,
29507         so special case handling of such entries is not required.
29509 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29511         acl: don't depend on the deprecated qacl module
29512         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
29514 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29516         gnulib-tool: concatenate lib_SOURCES to a single line
29517         * gnulib-tool: Refactor the line merging sed logic,
29518         and use that to output a single lib_SOURCES line for each module.
29519         gnulib using projects often postprocess this output to prepend
29520         subdir paths to each item, and having a single line simplifies this
29521         processing allowing better decoupling from the gnulib-tool output.
29523 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
29525         pthread_sigmask: discount system version if a simple macro (trivial)
29526         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
29527         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
29528         function to ensure it's available.
29530 2015-05-31  Pádraig Brady  <P@draigBrady.com>
29532         readlinkat: avoid OS X 10.10 trailing slash bug
29533         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
29534         has this bug.
29535         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
29536         that OS X 10.10 has this function.
29537         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
29538         as done for readlink().
29539         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
29540         trailing slash bug, and assume readlinkat() has the same issue.
29541         Also fix a typo where $gl_cv_decl_readlink_works was tested,
29542         rather than the correct $gl_cv_decl_readlinkat_works.
29544 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29546         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
29547         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
29548         module rewrite.
29550         acl-permissions: Fix build on Solaris and Cygwin
29551         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
29552         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
29553         ace_entries variables have moved into struct permission_context but
29554         they were still accessed as local variables here.
29556 2015-05-29  Pádraig Brady  <P@draigBrady.com>
29558         linkat: avoid OS X 10.10 trailing slash with symlink bug
29559         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
29560         causes the symlink to be dereferenced, and if it points
29561         to a non existent file, that file will be created as
29562         a hard link to "path1".
29563         This fixes a test failure in test-linkat.c.
29564         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
29565         this case.  The existing workaround in linkat.c for
29566         trailing slash issues, suffices for this case.
29567         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
29568         the list of platforms with trailing slash issues.
29570 2015-05-28  Pádraig Brady  <P@draigBrady.com>
29572         unlinkat: handle ignoring of ".." on Darwin 14
29573         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
29574         on Mac OS X 10.10, where it ignores paths with a trailing "..",
29575         so handle in the same manner.
29576         * m4/unlinkat.m4: Comment on this Darwin issue.
29577         * doc/posix-functions/unlink.texi: Update the latest version
29578         where the issue was seen.
29579         * doc/posix-functions/unlinkat.texi: Mention this issue.
29580         Fixes a test failure in test-unlinkat.c.
29582 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29584         qacl: split into qcopy-acl and qset-acl
29585         Emacs needs the former, but not the latter.
29586         * modules/acl-permissions: New file, containing most of the old qacl.
29587         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
29588         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
29589         * modules/qcopy-acl, modules/qset-acl: New files.
29590         * MODULES.html.sh (File system functions):
29591         Mention the new modules, and mention qacl while we're at it.
29593 2015-05-27  Glenn Morris  <rgm@gnu.org>
29595         gitlog-to-changelog: new option --ignore-line
29596         (This patch is imported from the GNU Emacs master.)
29597         This option ignores individual commit lines matching a pattern.
29598         * build-aux/gitlog-to-changelog: Add --ignore-line option.
29600 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
29602         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
29603         Implement get_permissions and set_permissions primitives for getting all
29604         the permissions of a file, storing them, and later setting them. (In the
29605         minimal case, the permissions consist only of a file mode.) Reimplement
29606         qset_acl and qcopy_acl based on these new primitives: this avoids code
29607         duplication and makes error handling more consistent.
29608         The Solaris and Cygwin code still uses duplicate code paths for setting
29609         a file mode while making sure that no acls exist and setting an explicit
29610         acl; this is no worse than before, but could be cleaned up.  The AIX
29611         code still doesn't read ACLs, it only makes sure that acls don't get in
29612         the way when setting a file mode.
29613         * lib/acl-internal.h (struct permission_context): New data structure.
29614         (get_permissions, set_permissions, free_permission_context): Declare.
29615         * lib/acl-internal.c (free_permission_context): New helper function.
29616         * lib/get-permissions.c (get_permissions): New helper function split off
29617         from qcopy_acl.
29618         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
29619         AIX, set a file's permissions based only on a file mode.
29620         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
29621         other platforms construct a temporary acl from the file mode and set
29622         that acl in the same way as setting an acl read from the source file.
29623         This should help avoid code duplication and inconsistent / buggy
29624         behavior.
29625         (set_acls): New helper function Split off from qcopy_acl.
29626         (chmod_or_fchmod): Moved here from qset-acl.c.
29627         (set_permissions): New helper function.
29628         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
29629         set_permissions.
29630         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
29631         * modules/qacl: Add get-permissions.c and set-permissions.c.
29633         file-has-acl: Split feature tests again (Bug#20667)
29634         * lib/file-has-acl.c: Instead of testing for
29635         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
29636         define them when needed.
29637         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
29638         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
29640 2015-05-27  Pádraig Brady  <P@draigBrady.com>
29642         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
29643         This avoids a conflict with "FORTIFY_SOURCE" variants
29644         of the string functions when they're replaced on NetBSD-6.0.1
29645         and Darwin-14.3.0 at least.
29646         * lib/string.in.h: Avoid including our "lib/string.h" while
29647         including the system <string.h>.
29649 2015-05-26  Eric Blake  <eblake@redhat.com>
29651         stdio: limit __gnu_printf__ witness to gcc 4.4+
29652         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
29653         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
29655         error: use correct printf attributes on mingw
29656         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
29658         inttypes: force correct mingw PRIdMAX even without <stdio.h>
29659         * modules/inttypes (Depends-on): Require extensions, so that mingw
29660         always uses GNU style inttypes.
29661         * lib/inttypes.in.h: On mingw, include <stdio.h>.
29663         stdio: fix probe on mingw under gcc 5.1
29664         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
29665         around new gcc preprocessor rules.
29667 2015-05-07  Glenn Morris  <rgm@gnu.org>
29669         gitlog-to-changelog: parse "Tiny-change"
29670         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
29671         "Copyright-paperwork-exempt".  (Bug#20324)
29673 2015-05-06  Pádraig Brady  <P@draigBrady.com>
29675         doc: document glibc posix_fallocate() issues
29676         * doc/posix-functions/posix_fallocate.texi: Mention the
29677         glibc efficiency problems and issues with NFS.
29679 2015-05-05  Karl Berry  <karl@freefriends.org>
29681         * build-aux/gendocs.sh (usage): document new css default
29682         for HTML (--htmlarg).
29684 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
29686         extern-inline: no need for workaround in GCC 5.1
29687         * doc/extern-inline.texi (extern inline):
29688         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
29689         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
29690         around these bugs in GCC 5.1 and later.  Maybe in a decade or
29691         two we can remove these workarounds.
29693 2015-04-28  Pádraig Brady  <P@draigBrady.com>
29695         eealloc, pagealign_alloc, xalloc: avoid clang warnings
29696         Avoid [-Wunknown-attributes] warnings like:
29697         warning: unknown attribute '__alloc_size__' ignored
29698         * lib/xalloc.h: Don't use the __alloc_size__  attribute
29699         with clang, as support has been fully removed as of clang 3.5:
29700         https://github.com/llvm-mirror/clang/commit/c047507a
29701         * lib/eealloc.h: Likewise.
29702         * lib/pagealign_alloc.h: Likewise.
29704 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
29706         tests: pacify GCC 5.1's stricter printf checking
29707         * tests/test-dirname.c (main):
29708         * tests/test-getaddrinfo.c (simple):
29709         * tests/test-getlogin.c (main):
29710         * tests/test-getndelim2.c (main):
29711         * tests/test-inttostr.c (CK):
29712         * tests/test-md5.c (main):
29713         * tests/test-read-file.c (main):
29714         * tests/test-sha1.c (main):
29715         Fix mismatches between printf format and value signedness.
29716         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
29717         Remove, as CAST_VAL always returned a value of type uintmax_t.
29719         fts: port to GCC 5.1 with --enable-gcc-warnings
29720         Without this fix, GCC 5.1 (correctly) warns about a subscript
29721         error on the fts_name component of FTSENT.  It's actually a
29722         flexible member, so define it that way on C99 or later hosts.
29723         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
29724         structure that now has a flexible array member.
29725         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
29726         (FTSENT): fts_name is now flexible on C99-or-later platforms.
29727         * modules/fts (Depends-on): Add flexmember.
29729 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
29731         file-has-acl: port to CentOS 6
29732         Problem reported by Tom G. Christensen in:
29733         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
29734         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
29735         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
29736         HAVE_GETXATTR.
29737         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
29738         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
29739         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
29740         file-has-acl.c actually needs.
29742 2015-04-26  Pádraig Brady  <P@draigBrady.com>
29744         file-has-acl: always return false when ACLs aren't supported
29745         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
29746         change the GNU/Linux getxattr path, to transform "not supported"
29747         errors to a false return rather than an error.  This is handled
29748         within file_has_acl() due to the platform specific tests to
29749         determine if ACLs are not supported.
29751 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
29753         gettext: propagate po/Makefile.in.in too
29754         * build-aux/po/Makefile.in.in: Copy from latest gettext.
29755         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
29756         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
29757         between Makefile.in.in and the gettext-runtime m4 files.
29759 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
29761         file-has-acl: new module, split from acl
29762         And add a new module file-has-acl-tests to match.
29763         I ran into a problem with the recent changes to the acl module,
29764         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
29765         When using the fixed version with Emacs, I discovered that
29766         file-has-acl wasn't separated out well enough for Emacs (e.g., it
29767         had multiple libraries, but needed only one), so I fixed that too.
29768         * NEWS: Document this incompatible change.
29769         * modules/file-has-acl, modules/file-has-acl-tests: New files.
29770         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
29771         Initialize gl_need_lib_has_acl.
29772         (gl_FUNC_ACL): Require it.
29773         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
29774         Move the file-has-acl.c-relevant stuff to ...
29775         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
29776         use_xattrs = 0' typo, and omit some needless work.  Set
29777         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
29778         when gl_FUNC_ACL is called.
29779         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
29780         (Link): Remove $(LIB_HAS_ACL).
29781         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
29782         (check_PROGRAMS): Move stuff relevant to file-has-acl to
29783         modules/file-has-acl-tests.
29784         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
29786         manywarnings: add GCC 5.1 warnings
29787         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
29788         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
29789         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
29790         -Wsuggest-override, -Wuse-without-only.  Change
29791         -Wnormalized=... operands to match 5.1.
29792         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
29793         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
29794         -Wdiscarded-qualifiers, -Wformat-signedness,
29795         -Wincompatible-pointer-types, -Wint-conversion,
29796         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
29797         -Wshift-count-negative, -Wshift-count-overflow,
29798         -Wsizeof-array-argument, -Wsuggest-final-methods,
29799         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
29800         and add -Warray-bounds=2 as a special case.
29802 2015-04-21  Simon Josefsson  <simon@josefsson.org>
29804         doc: update FDL template to match FDL examples.
29805         * doc/alloca-opt.texi:
29806         * doc/alloca.texi:
29807         * doc/c-ctype.texi:
29808         * doc/c-strcase.texi:
29809         * doc/c-strcaseeq.texi:
29810         * doc/c-strcasestr.texi:
29811         * doc/c-strstr.texi:
29812         * doc/c-strtod.texi:
29813         * doc/c-strtold.texi:
29814         * doc/ctime.texi:
29815         * doc/error.texi:
29816         * doc/gcd.texi:
29817         * doc/gnulib-tool.texi:
29818         * doc/inet_ntoa.texi:
29819         * doc/intprops.texi:
29820         * doc/lib-symbol-visibility.texi:
29821         * doc/maintain.texi:
29822         * doc/parse-datetime.texi:
29823         * doc/quote.texi:
29824         * doc/regexprops-generic.texi:
29825         * doc/standards.texi: Remove spurious 'with' in FDL license
29826         template.
29828 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
29830         lstat: fix cross-compilation 'ln -s' problem
29831         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
29832         Have the test program call 'symlink' rather than a separate
29833         script run 'ln -s'; this is more likely to work in
29834         cross-compilation environments.  Reported by Pavel Fedin in:
29835         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
29837 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
29839         gendocs.sh: default to a common CSS style sheet for HTML output
29840         * build-aux/gendocs.sh (htmlarg): Change default value.
29842 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
29844         gnulib-tool: output bold attribute more portably
29845         * gnulib-tool (func_show_module_list): Change hexadecimal
29846         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
29847         encoded numbers as arguments to `printf' is not portable,
29848         and is not claimed by POSIX.  This is the case with FreeBSD.
29850 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29852         qacl: Simplify HP-UX acl_nontrivial check
29853         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
29854         acl_nontrivial. Check if the acl has at most three entries instead (it must
29855         have exactly three entries according to the HP-UX documentation). Ignore
29856         uids and gids as long as an entry is either for a user (i.e., the owner),
29857         a group (i.e., the owning group), or others.
29858         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
29859         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
29861 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
29863         acl: On Linux, check for acls without libacl
29864         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
29865         library function to check for the presence of acls, avoiding a library.
29866         * lib/file-has-acl.c: Include xattr headers if we have them.
29867         (file_has_acl): On Linux, use getxattr().
29868         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
29869         file_has_acl(). Check for xattr headers and getxattr().
29871 2015-04-14  Ángel González  <keisial@gmail.com>
29873         tempname: avoid unused parameter warnings (trivial)
29874         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
29875         (try_nocreate): Likewise.
29877 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
29879         fseeko: fix build failure on NetBSD >= 6 (trivial)
29880         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
29881         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
29883 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29885         gitlog-to-changelog: port to MS-Windows
29886         * build-aux/gitlog-to-changelog (git_dir_option):
29887         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
29888         MS-Windows Perl.  Reported by Eli Zaretskii in:
29889         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
29891 2015-04-07  Karl Berry  <karl@gnu.org>
29893         gendocs: new option --tex for passing args to texi2dvi.
29894         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
29895         (TEXI2DVI): cut to just command name.
29896         (usage): mention new option, and update copyright.
29897         <generate_tex>: use it.
29899 2015-04-07  Karl Berry  <karl@gnu.org>
29901         * config/srclistvars.sh (GETTEXT): new definition.
29902         * config/srclist.txt: use it for gettext .m4 files.
29903         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
29904         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
29905         and continuing into April.
29907 2015-04-07  Daiki Ueno  <ueno@gnu.org>
29909         uniname/uniname-tests: fix failure due to alias
29910         Reported by Jack Howarth in:
29911         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
29912         * tests/uniname/test-uninames.c (name_has_alias): New function.
29913         (test_inverse_lookup): Exclude character name with valid alias,
29914         from randomly generated character names.
29915         (main): Fill unicode_aliases before calling test functions.
29917 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
29919         hash: remove deprecated hash_insert0 function
29920         * lib/hash.h (hash_insert0): Remove deprecated function.
29921         * lib/hash.c (hash_insert0): Likewise.
29923 2015-04-02  Pádraig Brady  <P@draigBrady.com>
29925         mountlist: remove dependency on libmount
29926         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
29927         directly, rather than depending on libmount, which has many
29928         dependencies due to its dependence on libselinux, as detailed at:
29929         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
29930         Note we restrict this to __linux__ as that's probably where this
29931         interface will remain.  If ever porting, it would be best
29932         to first pull the makedev() wrapper from coreutils to a gnulib module.
29933         Note also we don't add a getline dependency to the mountlist module,
29934         as all Linux versions are sufficient.
29936 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
29938         stddef: port to pre-C11 GCC on x86
29939         On this platform, max_align_t should have an alignment of 8 even
29940         though the storage alignments of double, long, etc. max out at 4.
29941         Inspired by a comment of Andreas Schwab's here:
29942         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
29943         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
29944         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
29945         * tests/test-stddef.c: Test __alignof__ too, if available.
29947 2015-03-24  Pádraig Brady  <P@draigBrady.com>
29949         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
29950         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
29952 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
29954         yesno: make EOL optional in ENABLE_NLS case also (trival)
29955         * lib/yesno.c (yesno): Check for EOL before replacing.
29956         * tests/test-yesno.sh: Add a test case (test along with gettext).
29958 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
29960         fdopendir-tests: test it does not close its arg
29961         * tests/test-fdopendir.c (main): Test that fdopendir does not
29962         close its argument.  From a suggestion by David Grayson in:
29963         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
29965 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
29967         gitlog-to-changelog: trim trailing white space
29968         * build-aux/gitlog-to-changelog (main):
29969         Trim trailing white space from commit message lines.
29970         This is helpful for processing the GNU Emacs repository,
29971         which dates back to 1985 and contains a lot of such lines.
29973         gitlog-to-changelog: new option --ignore-matching
29974         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
29975         Support new option --ignore-matching=PAT, which ignores all
29976         commit messages whose first line matches PAT.
29978 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
29980         fdopendir: port better to MinGW
29981         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
29982         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
29983         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
29984         * modules/fdopendir (Depends-on): Add dirfd.
29986 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
29988         fdopendir: fix typo in comment
29989         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
29991 2015-03-09  Eric Blake  <eblake@redhat.com>
29993         error: document all entry points provided
29994         * doc/glibc-functions/error_print_progname.texi
29995         (error_print_progname): Mention the error module.
29996         * doc/glibc-functions/error_at_line.texi (error_at_line):
29997         Likewise.
29998         * doc/glibc-functions/error_message_count.texi
29999         (error_message_count): Likewise.
30000         * doc/glibc-functions/error_one_per_line.texi
30001         (error_one_per_line): Likewise.
30003 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
30005         vasnprintf: pacify clang 3.5.0
30006         Problem reported by Werner Lemberg in:
30007         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
30008         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
30009         The casts aren't needed, since the characters in question are ASCII.
30011 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
30013         glob, etc.: port to MSVC v18 on MS-Windows 8.1
30014         * lib/dirent--.h (GNULIB_defined_opendir):
30015         * lib/dirent.in.h (GNULIB_defined_opendir)
30016         (GNULIB_defined_closedir):
30017         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
30018         #undef only if Gnulib defined it.
30020         poll: port to MSVC v18 on MS-Windows 8.1
30021         Problem reported by Gisle Vanem in:
30022         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
30023         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
30024         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
30025         Add sys_socket.
30027 2015-02-24  Pádraig Brady  <P@draigBrady.com>
30029         tests: support stderr verification with returns_()
30030         * tests/init.sh (returns_): Disable tracing for this wrapper
30031         function, so that stderr of the wrapped command is unchanged,
30032         allowing for verification of the contents.
30034 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
30036         passfd: avoid valgrind uninitalised data warning
30037         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
30038         to include just the fd we've initialized, rather than including
30039         the extra space used for alignment.
30041 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
30043         uniwbrk/u32-wordbreaks-tests: fix copyright
30044         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
30046         dup2: doc and test for Android bug
30047         Reported by Kevin Cernekee in:
30048         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
30049         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30050         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
30052 2015-02-23  Kevin Cernekee  <cernekee@google.com>
30054         Replace dup2() on Android
30055         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
30056         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
30057         fails.  Using rpl_dup2() fixes this because it has an explicit test
30058         for this condition.
30060 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
30062         Android doesn't define RLIM_SAVED_*
30063         Portability problem reported by Kevin Cernekee in:
30064         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
30065         * doc/posix-headers/sys_resource.texi (sys/resource.h):
30066         Mention the portability problem.
30067         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
30068         Define if not defined.
30069         * m4/dup2.m4 (gl_FUNC_DUP2):
30070         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30071         Likewise.
30073 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
30075         vasnprintf-posix-tests: use consistent test
30076         * tests/test-vasnprintf-posix.c (test_function):
30077         Use "<" in assert instead of "<=", for consistency with other tests.
30079 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30081         printf, isinf, etc.: noncanonical != NaN
30082         Do not require that isinf, printf, etc. treat noncanonical
30083         values as NaNs.  Instead, require only that they do not crash.
30084         Problem reported by Joseph Myers in:
30085         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
30086         * doc/posix-functions/dprintf.texi (dprintf):
30087         * doc/posix-functions/fprintf.texi (fprintf):
30088         * doc/posix-functions/isfinite.texi (isfinite):
30089         * doc/posix-functions/isinf.texi (isinf):
30090         * doc/posix-functions/isnan.texi (isnan):
30091         * doc/posix-functions/printf.texi (printf):
30092         * doc/posix-functions/snprintf.texi (snprintf):
30093         * doc/posix-functions/sprintf.texi (sprintf):
30094         * doc/posix-functions/vdprintf.texi (vdprintf):
30095         * doc/posix-functions/vfprintf.texi (vfprintf):
30096         * doc/posix-functions/vprintf.texi (vprintf):
30097         * doc/posix-functions/vsnprintf.texi (vsnprintf):
30098         * doc/posix-functions/vsprintf.texi (vsprintf):
30099         Document this.
30100         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
30101         * m4/isinf.m4 (gl_ISINFL_WORKS):
30102         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
30103         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
30104         * tests/test-isfinite.c (test_isfinitel):
30105         * tests/test-isinf.c (test_isinfl):
30106         * tests/test-isnan.c (test_long_double):
30107         * tests/test-isnanl.h (main):
30108         * tests/test-snprintf-posix.h (test_function):
30109         * tests/test-sprintf-posix.h (test_function):
30110         * tests/test-vasnprintf-posix.c (test_function):
30111         * tests/test-vasprintf-posix.c (test_function):
30112         Test only that noncanonical values do not cause crashes, not that
30113         they are treated as NaNs.  In some cases this means a larger
30114         output buffer is needed.
30116 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
30118         fts: remove redundant close() (trivial)
30119         * lib/fts.c (fts_read): Remove redundant call to close().
30120         Spotted by coverity.
30122 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30124         getdtablesize: port better for Android
30125         Problem reported by Kevin Cernekee in:
30126         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
30127         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
30128         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
30129         Instead, just use getrlimit, taking care to avoid Cygwin bug.
30131         poll: fixes for large fds
30132         * lib/poll.c (poll): Don't check directly for NFD too large.
30133         Don't rely on undefined behavior in FD_SET when an arg exceeds
30134         FD_SETSIZE.  Always set revents afterwards, even if to zero.
30135         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
30136         as that makes the test a bit stricter.
30138 2015-02-19  Kevin Cernekee  <cernekee@google.com>
30140         fcntl: Fix cross compiling
30141         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
30142         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
30144 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
30146         dup2, fcntl: cross-compile better for Android
30147         Problem reported by Kevin Cernekee in:
30148         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
30149         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
30150         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
30151         there's little need to cross-compile for older kernels nowadays.
30152         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
30153         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
30155 2015-02-18  Pádraig Brady  <P@draigBrady.com>
30157         getopt: don't crash on memory exhaustion
30158         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
30159         memory exhaustion.  In the _LIBC case we use alloca() as is
30160         already done in glibc, so we don't need to consider the separate
30161         error path in that awkward case.  Also fix a memory leak when
30162         ambiguous options are present.
30163         Reported by Tobias Stoeckmann
30165 2015-02-17  Mike Miller  <mtmiller@ieee.org>
30167         tempname: allow compilation with C++ (trivial)
30168         * lib/tempname.h [C++]: Specify extern "C" linkage.
30169         * lib/tempname.h (try_tempname):
30170         * lib/tempname.c (__try_tempname, __gen_tempname):
30171         Rename 'try' to 'tryfunc'.
30173 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
30175         dup2, fcntl: port to AIX
30176         * m4/dup2.m4 (gl_FUNC_DUP2):
30177         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30178         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
30179         The former works on AIX 7.1 but the latter does not.
30180         Also, this may work better with Android; see:
30181         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
30183 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
30185         getdtablesize, dup2, fcntl: port to Android
30186         Problem reported by Kevin Cernekee in:
30187         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
30188         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
30189         Mention that getdtablesize doesn't work on Android.
30190         * lib/getdtablesize.c: Use getrlimit substitute only if
30191         getdtablesize is declared.  This should suffice for Cygwin
30192         while not breaking Android.
30193         * m4/dup2.m4 (gl_FUNC_DUP2):
30194         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30195         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
30196         standardized but the latter is not, and sysconf works on Android.
30197         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
30198         Also check that getdtablesize is declared.
30199         This removes the need for a special case for Android.
30201 2015-02-16  Kevin Cernekee  <cernekee@google.com>
30203         localename: Implement gl_locale_name_thread_unsafe for Android
30204         * lib/localename.c: Android API level >= 21 supports two hardcoded
30205         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
30206         the internal __locale_t struct.
30208 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
30210         fts: avoid crash when a cycle is added while traversing
30211         This could be triggered by auto-mounting a recursive bind mount.
30212         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
30213         * lib/fts.c (fts_read): Avoid removing the original hash table item
30214         when leaving a directory that caused a cycle, and preserve the FTS_DC
30215         flag.
30217 2015-02-16  Daiki Ueno  <ueno@gnu.org>
30219         uniname/uniname: support character alias
30220         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
30221         Generate one-way mapping from aliases to codepoints in the
30222         generated tables.  Special case variation selectors to reduce
30223         table size.
30224         * lib/uniname/uniname.c (unicode_character_name): Special case
30225         variation selectors.
30226         (unicode_name_character): Special case variation selectors and
30227         their aliases.
30228         * lib/uniname/uninames.h: Regenerate.
30229         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
30230         * modules/uniname/uniname-tests (Files): Add
30231         tests/uniname/NameAliases.txt.
30232         * tests/uniname/test-uninames.c: Mark as static.
30233         (ALIASLEN): Define.
30234         (struct unicode_alias): New struct.
30235         (unicode_aliases): New variable.
30236         (fill_aliases): New function.
30237         (test_alias_lookup): New test function.
30238         (main): Run the 'test_alias_lookup' test if the second argument is
30239         given.
30240         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
30241         second argument.
30243 2015-02-11  Kevin Cernekee  <cernekee@google.com>
30245         Fix FILE struct compatibility with Android API level >= 21
30246         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
30247         __sferror.  Recent versions of Bionic's stdio.h no longer define
30248         __sferror.
30249         * lib/fbufmode.c: Likewise.
30250         * lib/fflush.c: Likewise.
30251         * lib/fpurge.c: Likewise.
30252         * lib/freadable.c: Likewise.
30253         * lib/freadahead.c: Likewise.
30254         * lib/freading.c: Likewise.
30255         * lib/freadptr.c: Likewise.
30256         * lib/freadseek.c: Likewise.
30257         * lib/fseeko.c: Likewise.
30258         * lib/fseterr.c: Likewise.
30259         * lib/fwritable.c: Likewise.
30261         Assume unbroken ungetc() on Android
30262         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
30263         test case passed when running on an Android host, and the code
30264         hasn't really changed since 2009.
30266         getdtablesize: Fix Android build
30267         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
30268         versions have this symbol in the .so library (at least 32-bit
30269         platforms) but are missing the declaration in the header file,
30270         causing the m4 logic to guess incorrectly.
30272         localename: Fix Android build
30273         * modules/localename (Depends-on): Add langinfo.
30275         getugroups: Fix Android build
30276         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
30277         functions.
30279         euidaccess: Fix Android build
30280         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
30281         AT_EACCESS gets declared.
30283         linkat_nofollow: Add fallback case for cross compiling
30284         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
30286         net_if: Handle content-free <net/if.h> system headers
30287         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
30288         struct if_nameindex.  If not, enable the replacement header.
30290         signal_h: Fix Android build
30291         * lib/signal.in.h: Add Android to the list of platforms that declare
30292         pthread_sigmask() in <pthread.h> instead of <signal.h>.
30294         duplocale: Fix Android build of duplocale-tests
30295         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
30296         is included by test-duplocale.c (but not by duplocale.c).
30297         * modules/duplocale-tests (configure.ac): Check for monetary.h.
30298         * tests/test-duplocale.c: Skip test if monetary.h is absent.
30299         * doc/posix-headers/monetary.texi: Add Android to the list of
30300         platforms missing monetary.h.
30302 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30304         tests: avoid recent -Werror=unused-variable regression in test-locale
30305         * tests/test-locale.c (main): Reference the variable to avoid the
30306         "unused variable" warning.
30308 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30310         maint: various whitespace cleanups in tempname
30311         * lib/tempname.c: Normalize spacing and line length.
30312         * lib/tempname.h: Likewise.
30313         * modules/tempname: Likewise.
30315 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30317         tests: provide returns_() to simplify exit status checking
30318         * tests/init.sh (returns_): A new function for use in tests,
30319         to allow for easier checking of return values, where you expect
30320         a command to exit with failure status.  By checking for a particular
30321         exit code, you don't hide any crashes for example.
30323 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30325         mountlist: only use libmount when specified
30326         There are currently many shared libs dependencies introduced by
30327         libmount with associated runtime and virt mem overhead.
30328         Therefore don't enable by default.
30329         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
30331 2015-02-08  Daiki Ueno  <ueno@gnu.org>
30333         uniname/unimame-tests: don't link with -lunistring
30334         * modules/uniname/uniname-tests (Makefile.am): Don't link against
30335         $(LIBUNISTRING).  Document the rationale why we need to
30336         conditionalize the test.
30338 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
30340         fstrcmp: don't assume strlen < INT_MAX
30341         * lib/fstrcmp.c: Include stddef.h and stdint.h.
30342         (uintptr_t): Remove, as we're now assuming stdint.
30343         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
30344         Prefer ptrdiff_t to int when the value could exceed INT_MAX
30345         if the input string is long.
30346         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
30347         uintptr_t to size_t when the underlying value is a pointer casted
30348         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
30349         * modules/fstrcmp (Depends-on): Add stdint.
30351         diffseq: prefer ptrdiff_t to ssize_t
30352         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
30353         ptrdiff_t is the natural type for signed indexes.
30354         On a few older platforms, ssize_t is narrower than size_t.
30356         xalloc: fix typo that suppressed warnings
30357         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
30358         This typo, introduced a couple of years ago, mistakenly suppressed
30359         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
30360         -Wmissing-declarations warnings.
30362         full-read: fix license notice typo
30363         * lib/full-read.h: Remove a stray line in the license notice.
30364         Reported by Sam Ellis in: http://bugs.gnu.org/19808
30366         crypto/gc: fix a -Wswitch warning
30367         Reported by Bruce Korb in:
30368         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
30369         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
30371 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30373         gnulib-tool: fix handling of patch(1) diagnostics
30374         * gnulib-tool: Send diagnostics from patch(1) to stderr,
30375         as otherwise gnulib-tool will reparse that output and attempt
30376         to lookup modules.
30378 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30380         bootstrap: exit immediately upon gnulib-tool failure
30381         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
30382         This was noticed when gnulib-tool exited early due to failure
30383         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
30384         but various confusing errors were then given as the build proceeded.
30386 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
30388         symlinkat: include all required header files
30389         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
30390         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
30391         Reported at https://savannah.gnu.org/bugs/index.php?44151
30392         and by Jack Howarth.
30394 2015-01-29  Pádraig Brady  <P@draigBrady.com>
30396         localename: support Solaris 12 and illumos
30397         * lib/localename.c (gl_locale_name_thread_unsafe): call
30398         getlocalename_l() on newer __sun platforms.
30399         Reported by Alexander Pyhalov.
30400         Fix suggested by Rich Burridge.
30402 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
30404         locale: fix tests on illumos (trivial)
30405         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
30406         so move from global scope to main().
30408 2015-01-24  Daiki Ueno  <ueno@gnu.org>
30410         unictype: avoid undefined left-shift behavior
30411         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
30412         gcc's -fsanitize=shift and running its tests triggered:
30413           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
30414             places cannot be represented in type 'int'
30415         Cast LHS to 'unsigned int' after integer promotion.
30416         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
30417         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
30419 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30421         libunistring: bump version of unitypes dependants
30422         Due to the header file search order, all the headers which depend
30423         on unitypes.h need to be generated, when the preinstalled
30424         libunistring is older.
30425         * modules/unicase/base (configure.ac): Bump minimum version to
30426         0.9.4.
30427         * modules/uniconv/base (configure.ac): Likewise.
30428         * modules/unilbrk/base (configure.ac): Likewise.
30429         * modules/uninorm/base (configure.ac): Likewise.
30430         * modules/unistdio/base (configure.ac): Likewise.
30431         * modules/unistr/base (configure.ac): Likewise.
30432         * modules/uniwbrk/base (configure.ac): Likewise.
30433         * modules/uniwidth/base (configure.ac): Likewise.
30435 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30437         unictype/category-none: fix link with libunistring
30438         Since _UC_CATEGORY_NONE is not a public symbol, it will be
30439         prefixed with "libstring_" when compiled as part of libunistring.
30440         To avoid undefined symbol at link time, increase the minimum
30441         version when the dependant modules are updated.
30442         * modules/unictype/category-none (configure.ac): Bump minimum
30443         version to 0.9.5.
30445 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30447         unitypes: fix build with installed libunistring
30448         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
30449         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
30450         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
30452 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30454         time: port to MinGW32 3.21
30455         Problem reported by Eli Zaretskii in:
30456         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
30457         * lib/time.in.h:
30458         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
30459         * modules/time (Depends-on):
30460         Fall back on unistd.h if the other include files don't define
30461         struct timespec.
30463         update-copyright: apply to self
30464         * build-aux/update-copyright: Fix copyright date.  How ironic!
30466 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30468         libunistring: update to Unicode 7.0.0
30469         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
30470         Manichaean names.
30471         * lib/unictype/joininggroup_name.h: Likewise.
30472         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
30473         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
30474         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
30475         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
30476         (fill_arabicshaping, joining_group_as_c_identifier): Support those
30477         enum values.
30478         (is_property_alphabetic): Accept newly added characters to
30479         cuneiform numeric signs.
30480         (is_property_default_ignorable_code_point): Reject U+0605.
30481         (FIELDLEN): Increase from 120 to 160.
30482         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
30483         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
30484         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
30485         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
30486         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
30487         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
30488         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
30489         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
30490         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
30491         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
30492         U+1E8D0..U+1E8D6.
30493         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
30494         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30495         lib/uniwidth/width.c.
30496         * all generated files under lib/uni* and tests/uni*: Regenerate.
30498 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30500         libunistring: update to Unicode 6.3.0
30501         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30502         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
30503         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
30504         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
30505         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
30506         Update WB5, WB9, WB10, WB13a, and WB13b.
30507         * tests/uniwbrk/test-uc-wordbreaks.c
30508         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
30509         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30510         (UC_BIDI_PDI): New enumeration values.
30511         (bidi_category_byname): Support those enum values.
30512         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
30513         dedicated property assigned.
30514         (is_property_case_ignorable): Check 0x0027.
30515         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30516         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30517         (output_wbp): Support those enum values.
30518         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30519         (UC_BIDI_PDI): New enumeration values.
30520         * lib/unictype/bidi_byname.gperf: Add those property names.
30521         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
30522         U+180E, U+1A1B, and U+2066..U+2069.
30523         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30524         lib/uniwidth/width.c.
30525         * all generated files under lib/uni* and tests/uni*: Regenerate.
30527 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30529         libunistring: update to Unicode 6.2.0
30530         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
30531         (unilbrk_table): Adjust table size.
30532         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30533         for LBP_RI.
30534         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
30535         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
30536         Normalize table index skipping ignored properties.
30537         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
30538         WBP_EXTEND and WBP_FORMAT, which are now computed without using
30539         the table.
30540         * lib/uniwbrk/wbrktable.h: Adjust table size.
30541         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
30542         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
30543         Support rule GB8a.
30544         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
30545         * tests/unigbrk/test-uc-is-grapheme-break.c
30546         (graphemebreakproperty_to_string): Support GBP_RI.
30547         * tests/uniwbrk/test-uc-wordbreaks.c
30548         (wordbreakproperty_to_string): Support WBP_RI.
30549         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
30550         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
30551         (output_lbp): Support LBP_RI.  Adjust some characters changed from
30552         LBP_AL to LBP_ID.
30553         (output_lbp): Support LBP_RI.
30554         (WBP_RI): New enumeration value.
30555         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30556         (output_wbp): Support WBP_RI.
30557         (GBP_RI): New enumeration value.
30558         (output_gbp_test, fill_org_gbp): Support GBP_RI.
30559         * all generated files under lib/uni* and tests/uni*: Regenerate.
30561 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30563         libunistring: update to Unicode 6.1.0
30564         * lib/gen-uni-tables.c (output_joining_group): Switch to
30565         3-level table to accommodate joining groups defined with higher
30566         codepoint value.  Since there are only 88 groups defined in
30567         Unicode 7.0.0, use 7-bit packed format for level3 entries.
30568         (get_lbp): Update for Unicode 6.1.0.
30569         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
30570         3-level table.
30571         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
30572         joining group name.
30573         * lib/unictype/joininggroup_name.h: Likewise.
30574         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
30575         (unilbrk_table): Adjust table size.
30576         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30577         for LBP_HL.
30578         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
30579         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
30580         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
30581         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
30582         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
30583         U+302E..U+302F.
30584         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30585         lib/uniwidth/width.c.
30586         * all generated files under lib/uni* and tests/uni*: Regenerate.
30587         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
30589 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30591         uniwbrk/u32-wordbreaks-tests: add conformance test
30592         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
30593         tests/uniwbrk/test-uc-wordbreaks.c,
30594         tests/uniwbrk/test-uc-wordbreaks.sh, and
30595         tests/uniwbrk/WordBreakTest.txt.
30596         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
30597         test-uc-wordbreaks to $(check_PROGRAMS), and define
30598         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
30599         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
30600         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
30602 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30604         uniwbrk: ignore Extended/Format characters at BOL not BOS
30605         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
30606         characters if the previous character property is one of
30607         WBP_NEWLINE, WBP_CR, and WBP_LF.
30609 2015-01-11  Jim Meyering  <meyering@fb.com>
30611         test-strstr.c: avoid a trivial leak
30612         * tests/test-strstr.c (main): Free haystack.
30614         update-copyright: recognize groff's \(co marker
30615         * build-aux/update-copyright (circle_c_re): Also accept
30616         uses of \(co, as found in gzip.1.
30618 2015-01-08  Pádraig Brady  <P@draigBrady.com>
30620         maint.mk: fix compatibility with OS X nm
30621         * top/maint.mk (_gl_tight_scope): Use the -g option to
30622         show exported items rather than the -e option which is
30623         ignored on all platforms except OS X where it gives an error.
30624         Reported by Assaf Gordon.
30626 2015-01-07  KO Myung-Hun  <komh@chollian.net>
30628         localcharset: improve charset detection on OS/2
30629         Use system codepage when appropriate.  Map OS/2 codepages to
30630         GNU canonical charset names if possible.
30631         * lib/config.charset: Don't output aliases if "$os" is os2*.
30632         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
30633         result for OS/2.
30634         (locale_charset) [OS2]: Use system codepage if codeset is omitted
30635         from the locale name which is neither "C" nor "POSIX".
30637 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
30639         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
30640         This reverts the last patch but one, as it shouldn't be needed now
30641         that the typo is fixed.
30642         * lib/count-leading-zeros.h (count_leading_zeros_ll):
30643         * lib/count-trailing-zeros.h:
30644         * lib/count-one-bits.h:
30645         Go back to using 64-bit intrinsics.
30647         count-leading-zeros: fix pragma typos
30648         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
30649         Fix typos in declaration of intrinsics when _MSC_VER.
30651 2015-01-06  Pádraig Brady  <P@draigBrady.com>
30653         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
30654         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
30655         intrinsics in this case.
30656         * lib/count-trailing-zeros.h: Likewise.
30657         * lib/count-one-bits.h: Likewise.
30659 2015-01-06  Daiki Ueno  <ueno@gnu.org>
30661         uniname/uniname: update to Unicode 7.0.0
30662         To accommodate new characters added since Unicode 5.1.0, this
30663         changes the internal representation of codepoint ranges.
30664         Previously, we grouped codepoint ranges by manually assigned 4-bit
30665         tag, which only allowed 16 groups.  This removes the limitation by
30666         switching to binary search on a table.  For the detail rationale
30667         and the benchmark results, see:
30668         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
30669         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
30670         to INDEX, as it no longer represents a codepoint.
30671         (range): New struct.
30672         (main): Switch to intervals list from a bit-pattern based
30673         classification.
30674         * lib/uniname/uninames.h: Regenerate.
30675         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
30676         * modules/uniname/base (configure.ac): Bump minimum version to
30677         0.9.5.
30678         * modules/uniname/uniname (configure.ac): Bump minimum version to
30679         0.9.5.
30681 2015-01-05  Eric Blake  <eblake@redhat.com>
30683         doc: update INSTALL from autoconf
30684         * doc/install.texi: Resync from autoconf.
30685         * doc/INSTALL: Reflect recent autoconf update.
30686         * doc/INSTALL.ISO: Likewise.
30687         * doc/INSTALL.UTF-8: Likewise.
30689         stdio: fix use of PRIdMAX on modern mingw
30690         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
30691         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
30692         to work with modern mingw.
30694 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
30696         pthread: detect git mingw builds with only partial pollution
30697         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
30698         pollution, as seen temporarily in Fedora 21.
30700 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
30702         lib-symbol-versions: cache script check
30703         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
30704         Cache the check for linker version scripts.
30705         From a suggestion by Christophe Curis in:
30706         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
30708 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
30710         maint: fix grammar nits in propername (trivial change)
30711         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
30712         and use an adequate verb and tense.
30714 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
30716         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30717         * module/gendocs: Add 'doc/gendocs_template_min'.
30719         * build-aux/gendocs.sh: Change email addresses and upstream URLs
30720         from to Gnulib's.
30721         (scripturl, templateurl): Adjust accordingly.
30723 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30725         gendocs: copyright date and version fix
30726         Reported by Karl Berry in:
30727         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
30728         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
30729         Fix copyright date.
30730         * build-aux/gendocs.sh (scriptversion): Update.
30732 2015-01-01  Karl Berry  <karl@gnu.org>
30734         * doc/install.texi,
30735         * build-aux/mdate-sh,
30736         * build-aux/depcomp,
30737         * build-aux/config.guess,
30738         * build-aux/config.sub,
30739         * build-aux/ar-lib,
30740         * build-aux/compile: revert copyright updates (some from last
30741         year) in slaved files.
30743 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30745         version-etc: new year
30746         * doc/gnulib.texi:
30747         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
30748         * all files: Run 'make update-copyright'.
30750 2014-12-30  Pádraig Brady  <P@draigBrady.com>
30752         xstrtol: ensure errno is reset
30753         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
30754         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
30756         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
30758 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
30760         utimens: fix dependency typo
30761         * modules/utimens (Depends-on): Remove 'assure'.
30762         This bug was introduced in the recent 'assure' patch.
30764 2014-12-22  Eric Blake  <eblake@redhat.com>
30766         docs: mention why libgen.h is bad
30767         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
30769 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
30771         assure: new module
30772         This works better than 'assert' when compiling with -DNDEBUG,
30773         as it avoids some compiler diagnostics in that case.
30774         Reported by Norihiro Tanaka in:
30775         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
30776         * MODULES.html.sh (func_all_modules): Add 'assure'.
30777         * lib/assure.h, modules/assure: New files.
30778         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
30779         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
30780         Prefer 'assure' to 'assert'.
30781         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
30782         * modules/chdir-long, modules/cycle-check, modules/fchdir:
30783         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
30784         Depend on 'assure'.
30786 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
30788         stdalign: port better to HP compilers
30789         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
30790         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
30792         stdalign: work around Apple GCC 4.0 bug
30793         Reported by David Fang in:
30794         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
30795         * lib/stdalign.in.h (_Alignas):
30796         * m4/stdalign.m4 (gl_STDALIGN_H):
30797         Do not use aligned attribute with GCC 4.0 on Apple.
30799 2014-12-16  Pádraig Brady  <P@draigBrady.com>
30801         getcwd: fix test failure on OS X 10.9
30802         * m4/getcwd-path-max.m4: Avoid the replacement if it
30803         won't be effective due to the PATH_MAX limitation of lstat().
30804         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
30805         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
30806         for this case for use in tests, and also exclude this
30807         case when setting REPLACE_GETCWD.
30808         * tests/test-getcwd.c (test_long_name): Restrict the
30809         tested path length so that lstat() will not be passed
30810         a path greater than PATH_MAX.
30811         Also key a test condition on HAVE_OPENAT_SUPPORT rather
30812         than AT_FDCWD, since the latter is set unconditionally
30813         since Sep 2009 in commit 52c658e9.
30815 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
30817         parse-datetime: avoid a compiler warning with byacc (trivial)
30818         * lib/parse-datetime.y (yylex): Use the same prototype in the
30819         function definition as the declaration, to avoid a -Wstrict-prototypes
30820         warning seen when using byacc.
30822 2014-12-12  Daiki Ueno  <ueno@gnu.org>
30824         unicase/locale-language-tests: fix LOCALE_FR test
30825         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
30826         a French locale with traditional encoding.
30827         Reported by umerqayam in:
30828         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
30830 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
30832         stddef: support C11's max_align_t
30833         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
30834         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
30835         Do not undef, as that might cause max_align_t to be defined twice.
30836         Instead, change use to check for _GL_STDDEF_WINT_T too.
30837         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
30838         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
30839         Check for max_align_t.
30840         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
30841         * modules/stddef-tests (Depends-on): Add stdalign.
30842         * tests/test-stddef.c: Test max_align_t.
30844 2014-12-11  Daiki Ueno  <ueno@gnu.org>
30846         unistd: fix iOS check conditional
30847         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
30848         as 0 or 1 in <TargetConditionals.h>, and the previous check always
30849         yielded true on non-iOS environment.
30850         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
30851         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
30852         they are defined.
30854 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
30856         posixtm: avoid compiler warning in a better way
30857         * lib/posixtm.c (IF_LINT): Remove.
30858         (year, posix_time_parse):
30859         Return true (not 0) if successful.  All callers changed.
30860         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
30862 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
30864         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
30865         started with '/' on EMX.
30867 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
30869         freopen: workaround freopen() on OS/2 kLIBC
30870         * lib/freopen.c (rpl_freopen): Workaround.
30871         * m4/freopen.m4: Add os2* case.
30873         get_shared_library_fullname: port to EMX
30874         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
30875         on EMX, respectively.
30876         (_DLL_InitTerm): New on EMX.
30877         (get_shared_library_fullname): Implement on EMX.
30879         find_executable: port to EMX
30880         * lib/progreloc.c (find_executable): Implement on EMX.
30882         sched: check struct sched_param in spawn.h as well
30883         * lib/sched.in.h: Include spawn.h on kLIBC.
30884         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
30886 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
30888         bootstrap: Allow perl modules in $buildreq
30889         * build-aux/bootstrap: Add case for perl modules.
30891 2014-12-08  Pádraig Brady  <P@draigBrady.com>
30893         apply _GL_ATTRIBUTE_PURE to some inline functions
30894         clang 3.4.2 flagged these inline functions as pure
30895         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
30896         * lib/sig-handler.h (get_handler): Likewise.
30897         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
30898         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
30900 2014-12-06  Pádraig Brady  <P@draigBrady.com>
30902         vasnprintf: fix potential use after free
30903         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
30904         flagged by clang-analyzer 3.4.2.
30906 2014-12-05  Pádraig Brady  <P@draigBrady.com>
30908         filevercmp, posixtm: avoid compiler warnings with -O3
30909         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
30910         * lib/posixtm.c: (IF_LINT): Define.
30911         (posix_time_parse): Use it to void a "may be used uninitialized"
30912         warning, seen only with -O3.
30914 2014-12-05  Bruno Haible  <bruno@clisp.org>
30916         Fix LDBL80_WORDS macro on big endian platforms.
30917         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
30918         LDBL80_WORDS macro.
30919         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30920         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30921         * tests/test-isfinite.c (test_isfinitel): Likewise.
30922         * tests/test-isinf.c (test_isinfl): Likewise.
30923         * tests/test-isnan.c (test_long_double): Likewise.
30924         * tests/test-isnanl.h (main): Likewise.
30925         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
30926         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
30927         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
30928         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
30929         Reported by Pádraig Brady.
30931 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
30933         git-version-gen: do not print new line characters
30934         * build-aux/git-version-gen: Use printf instead of echo and tr.
30936         gnulib-tool: recognize x:* as an absolute path
30937         * gnulib-tool (func_gnulib_dir): Add ?:* case.
30938         (func_relconcat): Likewise.
30940 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
30942         argp: avoid extraneous translation and mem leak with empty pre doc
30943         * lib/argp-help.c (argp_doc): Never translate the empty string,
30944         when "\v" is the first or last character of the string, as that
30945         has a reserved meaning to return the header info from a po file.
30946         This also fixes a small memory leak in the !post case.
30947         The issue can be seen with this command for example:
30948         LC_MESSAGES=en_US grub2-mknetdir --help
30950 2014-11-27  Daiki Ueno  <ueno@gnu.org>
30952         uniname/uniname-tests: skip if system's libunistring is used
30953         * modules/uniname/uniname-tests (Makefile.am): Skip test if
30954         uniname/uniname module is not compiled.
30956 2014-11-27  Pádraig Brady  <P@draigBrady.com>
30958         printf: fix configure check on big endian systems
30959         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
30961 2014-11-22  Daiki Ueno  <ueno@gnu.org>
30963         pipe-filter-gi, pipe-filter-ii: port to AIX
30964         On AIX 7.1, 'select' is defined as static and cannot be referred
30965         to from inline function.
30966         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
30967         the definition...
30968         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
30969         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
30971 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
30973         gitlog-to-changelog: add --until
30974         * build-aux/gitlog-to-changelog: Support new --until option.
30975         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
30977 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
30979         extern-inline: update commentary about GCC bugs
30980         * m4/extern-inline.m4: Add another GCC bug number to comments.
30982 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30984         gen-uni-tables: untabify
30985         * lib/gen-uni-tables.c: Untabify.
30987 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30989         gen-uni-tables: check out-of-range values added to 3-level tables
30990         * lib/gen-uni-tables.c (output_category, output_bidi_category)
30991         (output_joining_type, output_ident_category): Check out-of-range
30992         values added to 3-level tables.
30994 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30996         gen-uni-tables: utilize 'assert'
30997         * lib/gen-uni-tables.c: Include <assert.h>.
30998         (output_category, output_combclass, output_decimal_digit_test)
30999         (output_decimal_digit, output_digit_test, output_digit)
31000         (output_numeric, get_mirror_value, fill_properties)
31001         (fill_property30, is_property_alphabetic)
31002         (is_property_default_ignorable_code_point)
31003         (is_property_uppercase, is_property_lowercase)
31004         (is_property_cased, is_property_case_ignorable)
31005         (is_property_changes_when_lowercased, is_property_iso_control)
31006         (is_property_math, fill_arabicshaping, output_joining_group)
31007         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
31008         (output_wbp, fill_org_gbp, get_decomposition)
31009         (output_decomposition, fill_composition_exclusions)
31010         (debug_output_composition_tables, output_composition_tables)
31011         (redistribute_casefolding_rules, output_casing_rules): Use
31012         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
31013         reporting.
31015 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31017         gen-uni-tables: cosmetic improvements
31018         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
31019         variables specification.
31020         (is_outdigit): Remove unused function.
31022 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
31024         fcntl-h-tests: port to PA-RISC GNU/Linux
31025         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
31027 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31029         fts: port to C89
31030         Problem reported for MSVC 16 by Gisle Vanem in:
31031         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
31032         * lib/fts.c (fts_build): Avoid declaration before statement.
31034 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
31036         unistd: port to iOS
31037         Problem reported by André Klitzing in:
31038         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
31039         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
31041 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
31043         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
31044         Problem reported by Alan Modra in:
31045         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
31046         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
31047         Always cast the function arg, reverting this part of the previous
31048         change.
31050 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
31052         obstack: avoid potentially-nonportable function casts
31053         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
31054         Remove, replacing with ...
31055         (call_chunkfun, call_freefun): New static functions.
31056         All uses changed.  Avoid potentially-nonportable casts.
31057         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
31058         (_obstack_begin_worker): Omit last two args, since they
31059         rely on potentially-nonportable casts.  All callers changed.
31060         * lib/obstack.h (_OBSTACK_CAST): New macro.
31061         Use it everywhere the old API used a potentially-nonportable cast.
31062         The new API doesn't cast.
31063         (struct obstack): Use unions rather than requiring
31064         potentially-nonportable casts.
31065         (obstack_chunkfun, obstack_freefun): Return void.
31067 2014-11-03  Alan Modra  <amodra@gmail.com>
31069         obstack: fix macro return values
31070         * lib/obstack.h (obstack_next_free): Return void *.
31071         (obstack_1grow_fast, obstack_blank_fast): Return void.
31072         For __GNUC__ macros:
31073         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
31074         For !__GNUC__ macros:
31075         (obstack_make_room, obstack_grow, obstack_grow0)
31076         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
31078 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
31080         obstack: do not assume system-supplied obstack is size_t safe
31081         * m4/obstack.m4: New file.
31082         * modules/obstack (Files): Add it.
31084         obstack: port to platforms that #define __alignof__
31085         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
31086         not if !_LIBC.  We don't know of any platforms that #define
31087         __alignof__, but it might be useful in tests.  Conversely,
31088         glibc assumes GCC.
31090 2014-11-03  Pádraig Brady  <P@draigBrady.com>
31092         linkat: don't unconditionally replace on GNU/Linux
31093         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
31094         was redundant for a few reasons.  It was present to support compiling
31095         on new systems but running on the old narrow window of Linux 2.6.1[67].
31096         It setup and cleaned up test files which weren't actually used.
31097         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
31098         implicit in the following check.
31100 2014-11-03  Pádraig Brady  <P@draigBrady.com>
31102         linkat: wrap to handle symlinks on OS X 10.10
31103         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
31104         but not usable because it doesn't support creating hardlinks
31105         to symlinks.  Therefore add a generic test for this capability
31106         and fallback to our emulation if linkat() fails with ENOTSUP.
31108 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31110         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
31111         * doc/posix-functions/open.texi (open):
31112         * doc/posix-functions/openat.texi (openat):
31113         Document that these functions do not set errno to ELOOP when
31114         a symlink is opened with O_NOFOLLOW.
31116 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
31118         obstack: add NEWS entry for recent incompatible changes
31119         * NEWS: Describe recent changes.
31121 2014-10-30  Pádraig Brady  <P@draigBrady.com>
31123         mountlist: don't use libmount to decide on dummy/remote
31124         * lib/mountlist.c (read_file_system_list): Don't use the libmount
31125         routines to determine whether a file system is dummy or remote,
31126         as they're not currently compatible.  For example the remoteness
31127         is determined on file system type (for which the list seems incomplete),
31128         rather than simply checking for a ':' in the device name.
31129         Also libmount currently determines that 'tmpfs' is a dummy file system
31130         even though it has associated storage.
31132 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31134         obstack: prefer __alignof__ to alignof
31135         This is for portability to pre-4.7 GCC when compiling glibc.
31136         See Joseph S. Myers in:
31137         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
31138         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
31139         New macro, defined by including and using <alignof.h>.
31140         (MAX): New macro.
31141         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
31142         Do not use enums as they are not portable to some broken compilers.
31143         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
31145         obstack: prefer alignof to calculating alignments by hand
31146         * lib/obstack.c: Include <stdalign.h>.
31147         (struct fooalign): Remove.
31148         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
31149         * modules/obstack (Depends-on): Add stdalign.
31151 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
31153         obstack: use size_t alignments and check for overflow
31154         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
31155         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
31156         * lib/obstack.h (struct obstack.alignment_mask):
31157         Use _OBSTACK_SIZE_T, not int, for alignments.
31158         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
31159         overflows, e.g., when adding the alignment.
31161 2014-10-29  Alan Modra  <amodra@gmail.com>
31163         obstack: 64-bit obstack support, part 3
31164         This finally enables full 64-bit obstack support.  The glibc
31165         shared library specific code is removed from obstack.c too, and
31166         the error handling code conditionally compiled under control of
31167         another macro, _OBSTACK_NO_ERROR_HANDLER.
31168         * lib/obstack.h: Include string.h earlier.
31169         (_OBSTACK_INTERFACE_VERSION): Define.
31170         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
31171         * lib/obstack.c: Don't include shlib-compat.h.
31172         (OBSTACK_INTERFACE_VERSION): Delete.
31173         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
31174         glibc code is compatible with version 2.  Don't include stdio.h for
31175         __GNU_LIBRARY.
31176         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
31177         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
31178         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
31179         glibc shared library specific source.
31181         obstack: 64-bit obstack support, part 2
31182         This gets us 4G obstack support, without changing ABI
31183         compatibility, apart from possibly introducing some
31184         signed/unsigned comparison warnings in code that uses obstack.h.
31185         a) Replace "int" size parameters, return values, and macro local vars
31186            with _OBSTACK_SIZE_T, an "unsigned int" for now.
31187         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
31188         c) Make all obstack macros checking available room use obstack_room.
31189            "next_free + desired > chunk_limit" may wrap the lhs for chunks
31190            allocated near the top of memory.
31191         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
31192         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
31193         in place of "int" size parameters, return values and local vars.
31194         (_CHUNK_SIZE_T): Define.
31195         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
31196         union use an _OBSTACK_SIZE_T integer type.
31197         For __GNUC__ versions of the following macros...
31198         (obstack_room): Rename local var.
31199         (obstack_make_room): Use obstack_room.
31200         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
31201         obstack_int_grow, obstack_blank): Likewise.
31202         (obstack_finish): Use unsigned comparison when comparing aligned
31203         next_free against chunk_limit.
31204         (obstack_free): Cast OBJ to remove possible const qualifier.
31205         For !__GNUC__ versions of the following macros...
31206         (obstack_make_room): Use obstack_room.
31207         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
31208         obstack_int_grow, obstack_blank): Likewise.
31209         (obstack_finish): Use unsigned comparision when comparing aligned
31210         next_free against chunk_limit.
31211         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
31212         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
31213         _OBSTACK_SIZE_T.
31214         (_obstack_begin, _obstack_begin_1): Likewise.
31215         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
31216         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
31218         obstack: 64-bit obstack support, part 1
31219         a) Correct calls to alloc function, to use a size_t arg.  "long" is
31220            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
31221            and "size_t" 64 bits.
31222         b) Consolidate _obstack_begin and _obstack_begin1 code.
31223         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
31224         use "size_t" rather than "long".
31225         (_obstack_begin, _obstack_begin1): Likewise.
31226         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
31227         obstack_chunkfun): Update alloc function casts.
31228         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
31229         (chunkfun_type, freefun_type): New typdefs.
31230         (_obstack_begin_worker): Split out from ..
31231         (_obstack_begin, _obstack_begin_1): ..here.
31233         obstack: tidy part 2
31234         a) Don't be concerned about "not polluting the namespace with stddef.h
31235            symbols" in obstack.h, since gnulib string.h includes stddef.h
31236            anyway, and it seems unlikely that anyone would care.
31237         b) Don't roll our own slow memcpy in _obstack_newchunk.
31238         c) Rename obstack_free to _obstack_free.  This makes the naming
31239            consistent with other obstack functions and obviates the need for
31240            __obstack_free.  Ancient obstack.c defined both obstack_free and
31241            _obstack_free.  We continue to do that for _LIBC via an alias.
31242         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
31243            is clever, but nowadays gcc warns on undefined macros.  You'll get
31244            an undefined macro warning if simulating an old gcc with -U__GNUC__
31245            -U__GNUC_MINOR__ -D__GNUC__=1.
31246         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
31247         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
31248         (__obstack_free): Delete, update refs.
31249         (_obstack_free): Rename from obstack_free.
31250         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
31251         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
31252         * lib/obstack.c: Don't include stddef.h.
31253         (COPYING_UNIT): Delete.
31254         (_obstack_begin): Formatting fix.
31255         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
31256         (_obstack_free): Rename from __obstack_free, update alias.  Move
31257         undef of obstack_free to where it is needed.
31259         obstack: tidy part 1
31260         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
31261            to me, and result in overlong lines after later patches.
31262         b) Move error handling code, to avoid a forward declaration and to
31263            simplify later patches in this series.
31264         * lib/obstack.h (struct obstack <temp>): Rename fields of union
31265         and update all uses.
31266         * lib/obstack.c: Include stdlib.h earlier.
31267         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
31268         in file.
31269         (print_and_abort): Remove now redundant forward declaration.
31271 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31273         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
31274         Without this change, in bleeding-edge fileutils Autoconf complains
31275         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
31276         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
31277         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
31278         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
31280 2014-10-24  Daiki Ueno  <ueno@gnu.org>
31282         iconv: avoid false detection of non-working iconv
31283         The INBUF arguments of iconv can be either 'const char **'
31284         or 'char **'.  If CC is g++, the difference causes a compile error
31285         and thus leads to a false detection of non-working iconv.
31286         Reported by Eli Zaretskii and Werner LEMBERG in:
31287         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
31288         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
31289         iconv.  Bump serial number.
31291 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31293         bootstrap: print more diagnostics for missing programs
31294         * build-aux/bootstrap: only suppress stderr when checking for
31295         alternative program names.  This supports programs issuing non
31296         standard error messages.
31298 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31300         bootstrap: only update the gnulib submodule
31301         * build-aux/bootstrap: Restrict the "submodule update" command
31302         to the gnulib path.
31304 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
31306         symlinkat: port to AIX 7.1
31307         * doc/posix-functions/symlinkat.texi (symlinkat):
31308         Mention AIX porting problem.
31309         * lib/symlinkat.c: Always include errno.h.
31310         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
31311         * lib/unistd.in.h (symlinkat): Add replacement machinery.
31312         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
31313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
31314         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
31315         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
31316         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
31318         readlinkat: port to AIX 7.1
31319         * doc/posix-functions/readlink.texi (readlink):
31320         * doc/posix-functions/readlinkat.texi (readlinkat):
31321         Mention AIX porting problem.
31322         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
31323         New function.
31324         * lib/unistd.in.h (readlinkat): Add replacement machinery.
31325         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
31326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
31327         * modules/readlinkat (configure.ac): Also compile replacement
31328         if REPLACE_READLINKAT.
31329         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
31331 2014-10-12  Karl Berry  <karl@gnu.org>
31333         * doc/posix-functions/dirname.texi: remove spurious {.
31335 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
31337         basename, dirname: Improve documentation.
31338         * doc/posix-functions/basename.texi: Mention dirname module and
31339         base_name() function.
31340         * doc/posix-functions/dirname.texi: Mention dir_name() and
31341         mdir_name() functions.
31342         Suggested by Werner LEMBERG <wl@gnu.org>.
31344 2014-09-24  Jim Meyering  <meyering@fb.com>
31346         exclude: declare exclude_patopts static
31347         * lib/exclude.c (exclude_patopts): Declare static,
31348         to avoid triggering a -Wmissing-prototypes warning.
31349         The alternative (declaring it in the .h file) would
31350         require publicizing the private "struct patopts".
31352 2014-09-21  Werner Lemberg  <wl@gnu.org>
31354         dirname: support compilation with C++
31355         * lib/dirname.h: Add necessary C linkage declarations.
31357 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
31359         qsort_r: include <config.h>
31360         Problem reported by Tom G. Christensen in:
31361         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
31362         * lib/qsort.c [!_LIBC]: Include <config.h> first.
31364 2014-09-16  Dylan Cali  <calid1984@gmail.com>
31366         avltree-list: avoid compiler warnings (trivial)
31367         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
31368         -Werror=suggest-attribute=pure.
31369         * lib/gl_array_list.c: Likewise.
31370         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
31371         declaration to avoid -Werror=missing-prototypes.  This is not added
31372         to a header as only exported for tests.  Add (void) to the
31373         check_invariants() call to indicate we're discarding the result
31374         in this context which avoids -Werror=unused-value.  Note we don't
31375         use ignore_value here to avoid a dependency as we know we'll not
31376         be adding __attribute__((warn_unused_result)) to check_invariants().
31377         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
31379 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31381         qsort_r: new module, for GNU-style qsort_r
31382         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
31384 2014-09-15  Werner LEMBERG  <wl@gnu.org>
31386         strerror_r-posix: support compilation with C++
31387         * lib/strerror_r.c: Add necessary C linkage declarations.
31389 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
31391         fcntl-h: fix compilation with Intel C++ compiler (trivial)
31392         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
31394 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
31396         mountlist: use /proc/self/mountinfo when available
31397         Use libmount to propagate device IDs provided by Linux in
31398         /proc/self/mountinfo.  This will give more accurate output when
31399         using df in chroot'ed environments as the device IDs are not
31400         determined by stat() which may be inaccurate within the chroot.
31401         * lib/mountlist.c (read_file_system_list): Use the libmount routines
31402         from util-linux to parse "/proc/self/mountinfo" or fall back to
31403         standard getmntent() processing.
31404         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
31405         getmntent() is used, as is the case on GNU/Linux.
31407 2014-09-07  Eric Wong  <normalperson@yhbt.net>
31409         users.txt: add cmogstored
31410         cmogstored has used gnulib since the beginning in 2012 to support
31411         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
31413 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31415         Trivial change.
31416         * gnulib-tool: Use same options as build-aux/bootstrap to download
31417         PO files.
31419 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31421         Trivial change.
31422         * gnulib-tool: Fallback to wget when rsync of PO files fails.
31424 2014-09-04  Eric Blake  <eblake@redhat.com>
31426         maintainer-makefile: add syntax check for useless ';;'
31427         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
31429 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
31431         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
31432         Problem reported by Assaf Gordon in:
31433         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
31434         Apparently Ubuntu is doing some fancy link-time optimization
31435         that doesn't work with -lpthread but does work with -pthread.
31436         Work around the bug by preferring -pthread to -lpthread.
31437         * m4/pthread.m4 (gl_PTHREAD_CHECK):
31438         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
31439         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31440         Treat -pthread like -lpthread.
31442 2014-09-04  Eric Blake  <eblake@redhat.com>
31444         error: drop spurious semicolon
31445         * lib/error.c (__error_at_line): Fix ';;'.
31447 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31449         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
31450         * m4/gnulib-common.m4 (AC_C_RESTRICT):
31451         Override AC_C_RESTRICT unconditionally.
31452         Update from autoconf, incorporating:
31453         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
31454         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
31456 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31458         manywarnings: add GCC 4.9 warnings
31459         Also, make it easier to maintain this in the future.
31460         * build-aux/gcc-warning.spec: Add -Wabi-tag,
31461         -Wconditionally-supported, -Wdelete-incomplete,
31462         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
31463         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
31464         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
31465         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
31466         only for older GCC versions that need them.  Handle
31467         -Wnormalized=nfc specially, so that the 'comm' command used
31468         for maintenance doesn't get confused.
31470 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31472         vasnprintf: fix bugs in width computation
31473         * lib/vasnprintf.c (VASNPRINTF):
31474         Rework previous change, which introduced a bug,
31475         to avoid the warning in a different way.
31476         Avoid undefined behavior if the width arg is less than -INT_MAX.
31477         Avoid unnecessary use of HAS_WIDTH local.
31479 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
31481         vasnprintf: Avoid signed/unsigned comparison warning.
31482         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
31483         compare end addr of generated string w/ maximum end addr.
31485 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31487         parse-datetime: Avoid pointer difference.
31488         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
31489         instead of calculating difference of pointers.  This removes an
31490         annoying warning, devoid of any use.
31492 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31494         qsort_r: new module, for GNU-style qsort_r
31495         This works even on FreeBSD, which has an incompatible qsort_r API.
31496         * MODULES.html.sh: Add it.
31497         * doc/glibc-functions/qsort_r.texi: It's now supported.
31498         * lib/qsort.c: New file, taken from glibc with minor changes
31499         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
31500         removed.
31501         * lib/qsort_r.c: New file, compiled only on FreeBSD.
31502         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
31503         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
31504         * modules/qsort_r, modules/qsort_r-tests: New files.
31505         * modules/stdlib (Makefile): Set up its defaults.
31506         * tests/test-qsort_r.c: New file.
31508 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
31510         vla: new module
31511         GNU RCS can use this, mostly for documentation I expect.  See:
31512         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
31513         * MODULES.html.sh: Add vla.
31514         * lib/vla.h, modules/vla: New files.
31516 2014-08-07  Daiki Ueno  <ueno@gnu.org>
31518         localename: make gl_locale_name_thread really thread-safe on Windows
31519         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
31520         "glthread/lock.h".
31521         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
31522         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
31524 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
31526         getpass: don't assume struct termios
31527         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
31528         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
31529         * lib/getpass.c (getpass): Port to systems lacking struct termios.
31531         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
31532         Problem reported by Jonas 'Sortie' Termansen in:
31533         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
31534         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
31535         Implement via sysconf for platforms that lack getdtablesize.
31537         vararrays: modernize AC_C_VARARRAYS for C11
31538         This backports a change I recently made to Autoconf.
31539         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
31540         VLAs are not supported, as this is what C11 does.  The old macro
31541         HAVE_C_VARARRAYS is still defined if they are supported, but is
31542         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
31544 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
31546         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
31547         * build-aux/install-reloc (func_create_wrapper): Also wrap
31548         strerror-override, stat, stat.
31550 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31552         sys_select: fix FD_ZERO problem on Solaris 10
31553         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
31554         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
31555         to expand to an expression that invoked memset without necessarily
31556         including <string.h>.  The problem was that the first include
31557         defined _SYS_TIME_H, causing the second include to short-circuit.
31558         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
31559         Also, fix what appears to be a cut-and-paste typo, by replacing
31560         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
31561         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
31563         accept: document Solaris 10 type glitch
31564         * doc/posix-functions/accept.texi (accept): Mention that
31565         Solaris 10 'accept' takes void * last arg, not socklen_t *.
31567 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
31569         extern-inline: port to FreeBSD, DragonFly
31570         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
31571         is present if either __DragonFly__ or __FreeBSD__ is defined.
31572         FreeBSD problem reported by Andrey Borzenkov in:
31573         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
31574         Also, worry about __APPLE__ only if __MACH__ is also defined,
31575         as this is more consistent with the rest of gnulib.
31576         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
31577         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
31579 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31581         regex: Make #if/#ifdef usage consistent for DEBUG
31582         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
31583         of the inconsistent usage of #if and #ifdef as that works with
31584         both Glibc and Gnulib's style.
31586 2014-07-31  Eric Blake  <eblake@redhat.com>
31588         openat-die: use _Noreturn markup
31589         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
31590         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
31591         _Noreturn.
31593 2014-07-30  Eric Blake  <eblake@redhat.com>
31595         test-open: port to cygwin, which lacks Fortify
31596         * tests/test-open.h (ALWAYS_INLINE): New macro.
31597         (__always_inline): Don't abuse internal symbol on non-glibc.
31599 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
31601         localename: Enforce declarations before statements.
31602         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
31603         first statement.
31605 2014-07-18  Jim Meyering  <meyering@fb.com>
31607         test-userspec: don't look up numeric user names
31608         * tests/test-userspec.c: I found a system for which getpwnam("0")
31609         returned a pointer to a non-root user's entry, and that made the
31610         test fail.
31611         (T): Prefix each numeric input with "+", to inhibit lookup.
31613 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
31615         localcharset, localename: MS-Windows support for non-default locales
31616         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
31617         falling back on the default system codepage, try extracting
31618         the codepage from what 'setlocale' returns.  This allows to
31619         take into account changes of the codeset due to non-default
31620         locale set by a previous call to 'setlocale'.
31621         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
31622         Define if not already defined.
31623         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
31624         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
31625         current locale by calling 'setlocale', then converting the
31626         locale name into LCID by calling 'get_lcid'.  This allows to
31627         take into account changes in the current locale from the
31628         default one, in contrast to GetThreadLocale.
31630 2014-07-14  Daiki Ueno  <ueno@gnu.org>
31632         announce-gen: avoid failure when Digest::SHA is installed
31633         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
31634         Digest::SHA1->new in print_checksums fails.
31635         * build-aux/announce-gen (digest_classes): New associative array
31636         for available message digest implementations.
31637         (print_locations): Use it.
31639 2014-07-13  Pádraig Brady  <P@draigBrady.com>
31641         gettext: revert "update macros to version 0.19"
31642         This reverts commit 9b9370ca, as it currently requires that
31643         developers of any project that explicitly uses the gettext module
31644         or implicitly uses it through the utimens-tests or
31645         futimens-tests modules, use gettext >= 0.19.
31646         However there are some stability and availablity issues with
31647         that version at present.  We can reinstate this soon, when stability
31648         is addressed and packages are more readily available.
31650 2014-07-12  Jim Meyering  <meyering@fb.com>
31652         regex: don't deref NULL upon heap allocation failure
31653         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
31654         failure in one more place.
31655         To trigger the segfault, configure grep -with-included-regex,
31656         build it, and run these commands:
31657         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
31658         I discovered this while replying to a private report from
31659         Jens Schleusener about excessive memory consumption by grep
31660         when using a regular expression like the one above.
31662 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
31664         regex: fix memory leak in compiler
31665         Fix by Andreas Schwab in:
31666         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
31667         * lib/regcomp.c (parse_reg_exp): Deallocate partially
31668         constructed tree before returning error.
31670 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31672         announce-gen: avoid perl warnings
31673         * build-aux/announce-gen: add two minor checks to avoid
31674         "use of uninitialized value" warnings when command-line parameters are
31675         missing.
31677 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31679         localename: avoid -Wsuggest-attribute={const,pure} warnings
31680         * lib/localename.c (string_has): Tag internal function as pure.
31681         * lib/localename.h (gl_locale_name_default): Tag extern declaration
31682         as const when appropriate.
31684 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
31686         nl_langinfo: Fix last change.
31687         * lib/nl_langinfo.c (includes): Drop redundant include.
31689 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
31691         error: Fix -Wundef warnings in glibc
31692         * lib/error.c [_LIBC]: Define default macros for
31693         glibc.
31694         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
31695         Check _LIBC before STRERROR_R_CHAR_P.
31697         error: Sync from glibc master
31698         * lib/error.c [_LIBC]: Remove INTUSE usage.
31699         (error_tail): Remove unused macro ALLOCA_LIMIT.
31700         Fix potential buffer overflow.  Fix potential NULL dereference
31701         in strcmp.
31703 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
31705         nl_langinfo: fix build under mingw
31706         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
31708 2014-07-09  Andrew D Warshall  <warshall@99main.com>
31710         mountlist: do not classify a bind-mounted dir entry as "dummy"
31711         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
31712         1-argument getmntent() (instead of assuming absence).
31714 2014-07-08  Eric Blake  <eblake@redhat.com>
31716         maint.mk: less syntax-check noise when SIGPIPE is ignored
31717         * top/maint.mk (_sc_header_without_use)
31718         (sc_require_config_h_first): Parse full list.
31720 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
31721             Paul Eggert  <eggert@cs.ucla.edu>
31723         nl_langinfo: CODESET on MS-Windows and more items from localeconv
31724         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
31725         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
31726         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
31727         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
31728         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
31729         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
31730         Include <stdio.h> if Microsoft Windows.
31731         Include <time.h> if !REPLACE_NL_LANGINFO.
31732         (ctype_codeset): New function, taken from rpl_nl_langinfo,
31733         and with improvements for Microsoft Windows.
31734         (rpl_nl_langinfo): Use it.
31735         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
31736         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
31737         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
31738         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
31739         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
31740         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
31741         corresponding values returned by 'localeconv'.  Compute the values
31742         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
31743         'strftime' with a suitable struct tm value.
31745 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31747         Bruno Haible has stepped down as maintainer.
31748         See Karl Berry in:
31749         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
31750         Daiki Ueno has volunteered to maintain libunistring; see:
31751         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
31752         * modules/gen-uni-tables, modules/libunistring:
31753         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
31754         * modules/unicase/base, modules/unicase/cased:
31755         * modules/unicase/empty-prefix-context:
31756         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
31757         * modules/unicase/locale-language, modules/unicase/special-casing:
31758         * modules/unicase/tocasefold, modules/unicase/tolower:
31759         * modules/unicase/totitle, modules/unicase/toupper:
31760         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
31761         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
31762         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
31763         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
31764         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
31765         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
31766         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
31767         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
31768         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
31769         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
31770         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
31771         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
31772         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
31773         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
31774         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
31775         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
31776         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
31777         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
31778         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
31779         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
31780         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
31781         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
31782         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
31783         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
31784         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
31785         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
31786         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
31787         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
31788         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
31789         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
31790         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
31791         * modules/unicase/ulc-casexfrm, modules/unicodeio:
31792         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
31793         * modules/uniconv/u16-conv-to-enc:
31794         * modules/uniconv/u16-strconv-from-enc:
31795         * modules/uniconv/u16-strconv-from-locale:
31796         * modules/uniconv/u16-strconv-to-enc:
31797         * modules/uniconv/u16-strconv-to-locale:
31798         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
31799         * modules/uniconv/u32-strconv-from-enc:
31800         * modules/uniconv/u32-strconv-from-locale:
31801         * modules/uniconv/u32-strconv-to-enc:
31802         * modules/uniconv/u32-strconv-to-locale:
31803         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
31804         * modules/uniconv/u8-strconv-from-enc:
31805         * modules/uniconv/u8-strconv-from-locale:
31806         * modules/uniconv/u8-strconv-to-enc:
31807         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
31808         * modules/unictype/bidicategory-all:
31809         * modules/unictype/bidicategory-byname:
31810         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
31811         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
31812         * modules/unictype/bidiclass-byname:
31813         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
31814         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
31815         * modules/unictype/block-all, modules/unictype/block-list:
31816         * modules/unictype/block-of, modules/unictype/block-test:
31817         * modules/unictype/category-C, modules/unictype/category-Cc:
31818         * modules/unictype/category-Cf, modules/unictype/category-Cn:
31819         * modules/unictype/category-Co, modules/unictype/category-Cs:
31820         * modules/unictype/category-L, modules/unictype/category-LC:
31821         * modules/unictype/category-Ll, modules/unictype/category-Lm:
31822         * modules/unictype/category-Lo, modules/unictype/category-Lt:
31823         * modules/unictype/category-Lu, modules/unictype/category-M:
31824         * modules/unictype/category-Mc, modules/unictype/category-Me:
31825         * modules/unictype/category-Mn, modules/unictype/category-N:
31826         * modules/unictype/category-Nd, modules/unictype/category-Nl:
31827         * modules/unictype/category-No, modules/unictype/category-P:
31828         * modules/unictype/category-Pc, modules/unictype/category-Pd:
31829         * modules/unictype/category-Pe, modules/unictype/category-Pf:
31830         * modules/unictype/category-Pi, modules/unictype/category-Po:
31831         * modules/unictype/category-Ps, modules/unictype/category-S:
31832         * modules/unictype/category-Sc, modules/unictype/category-Sk:
31833         * modules/unictype/category-Sm, modules/unictype/category-So:
31834         * modules/unictype/category-Z, modules/unictype/category-Zl:
31835         * modules/unictype/category-Zp, modules/unictype/category-Zs:
31836         * modules/unictype/category-all, modules/unictype/category-and:
31837         * modules/unictype/category-and-not, modules/unictype/category-byname:
31838         * modules/unictype/category-longname, modules/unictype/category-name:
31839         * modules/unictype/category-none, modules/unictype/category-of:
31840         * modules/unictype/category-or, modules/unictype/category-test:
31841         * modules/unictype/category-test-withtable:
31842         * modules/unictype/combining-class:
31843         * modules/unictype/combining-class-all:
31844         * modules/unictype/combining-class-byname:
31845         * modules/unictype/combining-class-longname:
31846         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
31847         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
31848         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
31849         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
31850         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
31851         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
31852         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
31853         * modules/unictype/digit, modules/unictype/joininggroup-all:
31854         * modules/unictype/joininggroup-byname:
31855         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
31856         * modules/unictype/joiningtype-all:
31857         * modules/unictype/joiningtype-byname:
31858         * modules/unictype/joiningtype-longname:
31859         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
31860         * modules/unictype/mirror, modules/unictype/numeric:
31861         * modules/unictype/property-all, modules/unictype/property-alphabetic:
31862         * modules/unictype/property-ascii-hex-digit:
31863         * modules/unictype/property-bidi-arabic-digit:
31864         * modules/unictype/property-bidi-arabic-right-to-left:
31865         * modules/unictype/property-bidi-block-separator:
31866         * modules/unictype/property-bidi-boundary-neutral:
31867         * modules/unictype/property-bidi-common-separator:
31868         * modules/unictype/property-bidi-control:
31869         * modules/unictype/property-bidi-embedding-or-override:
31870         * modules/unictype/property-bidi-eur-num-separator:
31871         * modules/unictype/property-bidi-eur-num-terminator:
31872         * modules/unictype/property-bidi-european-digit:
31873         * modules/unictype/property-bidi-hebrew-right-to-left:
31874         * modules/unictype/property-bidi-left-to-right:
31875         * modules/unictype/property-bidi-non-spacing-mark:
31876         * modules/unictype/property-bidi-other-neutral:
31877         * modules/unictype/property-bidi-pdf:
31878         * modules/unictype/property-bidi-segment-separator:
31879         * modules/unictype/property-bidi-whitespace:
31880         * modules/unictype/property-byname:
31881         * modules/unictype/property-case-ignorable:
31882         * modules/unictype/property-cased:
31883         * modules/unictype/property-changes-when-casefolded:
31884         * modules/unictype/property-changes-when-casemapped:
31885         * modules/unictype/property-changes-when-lowercased:
31886         * modules/unictype/property-changes-when-titlecased:
31887         * modules/unictype/property-changes-when-uppercased:
31888         * modules/unictype/property-combining:
31889         * modules/unictype/property-composite:
31890         * modules/unictype/property-currency-symbol:
31891         * modules/unictype/property-dash:
31892         * modules/unictype/property-decimal-digit:
31893         * modules/unictype/property-default-ignorable-code-point:
31894         * modules/unictype/property-deprecated:
31895         * modules/unictype/property-diacritic:
31896         * modules/unictype/property-extender:
31897         * modules/unictype/property-format-control:
31898         * modules/unictype/property-grapheme-base:
31899         * modules/unictype/property-grapheme-extend:
31900         * modules/unictype/property-grapheme-link:
31901         * modules/unictype/property-hex-digit:
31902         * modules/unictype/property-hyphen:
31903         * modules/unictype/property-id-continue:
31904         * modules/unictype/property-id-start:
31905         * modules/unictype/property-ideographic:
31906         * modules/unictype/property-ids-binary-operator:
31907         * modules/unictype/property-ids-trinary-operator:
31908         * modules/unictype/property-ignorable-control:
31909         * modules/unictype/property-iso-control:
31910         * modules/unictype/property-join-control:
31911         * modules/unictype/property-left-of-pair:
31912         * modules/unictype/property-line-separator:
31913         * modules/unictype/property-logical-order-exception:
31914         * modules/unictype/property-lowercase, modules/unictype/property-math:
31915         * modules/unictype/property-non-break:
31916         * modules/unictype/property-not-a-character:
31917         * modules/unictype/property-numeric:
31918         * modules/unictype/property-other-alphabetic:
31919         * modules/unictype/property-other-default-ignorable-code-point:
31920         * modules/unictype/property-other-grapheme-extend:
31921         * modules/unictype/property-other-id-continue:
31922         * modules/unictype/property-other-id-start:
31923         * modules/unictype/property-other-lowercase:
31924         * modules/unictype/property-other-math:
31925         * modules/unictype/property-other-uppercase:
31926         * modules/unictype/property-paired-punctuation:
31927         * modules/unictype/property-paragraph-separator:
31928         * modules/unictype/property-pattern-syntax:
31929         * modules/unictype/property-pattern-white-space:
31930         * modules/unictype/property-private-use:
31931         * modules/unictype/property-punctuation:
31932         * modules/unictype/property-quotation-mark:
31933         * modules/unictype/property-radical:
31934         * modules/unictype/property-sentence-terminal:
31935         * modules/unictype/property-soft-dotted:
31936         * modules/unictype/property-space:
31937         * modules/unictype/property-terminal-punctuation:
31938         * modules/unictype/property-test, modules/unictype/property-titlecase:
31939         * modules/unictype/property-unassigned-code-value:
31940         * modules/unictype/property-unified-ideograph:
31941         * modules/unictype/property-uppercase:
31942         * modules/unictype/property-variation-selector:
31943         * modules/unictype/property-white-space:
31944         * modules/unictype/property-xid-continue:
31945         * modules/unictype/property-xid-start:
31946         * modules/unictype/property-zero-width, modules/unictype/scripts:
31947         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
31948         * modules/unictype/syntax-c-whitespace:
31949         * modules/unictype/syntax-java-ident:
31950         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
31951         * modules/unigbrk/u16-grapheme-breaks:
31952         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
31953         * modules/unigbrk/u32-grapheme-breaks:
31954         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
31955         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
31956         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
31957         * modules/unigbrk/uc-is-grapheme-break:
31958         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
31959         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
31960         * modules/unilbrk/u16-width-linebreaks:
31961         * modules/unilbrk/u32-possible-linebreaks:
31962         * modules/unilbrk/u32-width-linebreaks:
31963         * modules/unilbrk/u8-possible-linebreaks:
31964         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
31965         * modules/unilbrk/ulc-possible-linebreaks:
31966         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
31967         * modules/uniname/uniname, modules/uninorm/base:
31968         * modules/uninorm/canonical-decomposition:
31969         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
31970         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
31971         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
31972         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
31973         * modules/uninorm/nfkc, modules/uninorm/nfkd:
31974         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
31975         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
31976         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
31977         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
31978         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
31979         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
31980         * modules/unistdio/base, modules/unistdio/u-printf-args:
31981         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
31982         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
31983         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
31984         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
31985         * modules/unistdio/u16-u16-sprintf:
31986         * modules/unistdio/u16-u16-vasnprintf:
31987         * modules/unistdio/u16-u16-vasprintf:
31988         * modules/unistdio/u16-u16-vsnprintf:
31989         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
31990         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
31991         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
31992         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
31993         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
31994         * modules/unistdio/u32-u32-asnprintf:
31995         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
31996         * modules/unistdio/u32-u32-sprintf:
31997         * modules/unistdio/u32-u32-vasnprintf:
31998         * modules/unistdio/u32-u32-vasprintf:
31999         * modules/unistdio/u32-u32-vsnprintf:
32000         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
32001         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
32002         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
32003         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
32004         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
32005         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
32006         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
32007         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
32008         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
32009         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
32010         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
32011         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
32012         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
32013         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
32014         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
32015         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
32016         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
32017         * modules/unistr/u16-check, modules/unistr/u16-chr:
32018         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
32019         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
32020         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
32021         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
32022         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
32023         * modules/unistr/u16-move, modules/unistr/u16-next:
32024         * modules/unistr/u16-prev, modules/unistr/u16-set:
32025         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
32026         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
32027         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
32028         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
32029         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
32030         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
32031         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
32032         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
32033         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
32034         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
32035         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
32036         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
32037         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
32038         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
32039         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
32040         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
32041         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
32042         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
32043         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
32044         * modules/unistr/u32-next, modules/unistr/u32-prev:
32045         * modules/unistr/u32-set, modules/unistr/u32-startswith:
32046         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
32047         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
32048         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
32049         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
32050         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
32051         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
32052         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
32053         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
32054         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
32055         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
32056         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
32057         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
32058         * modules/unistr/u8-check, modules/unistr/u8-chr:
32059         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
32060         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
32061         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
32062         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
32063         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
32064         * modules/unistr/u8-next, modules/unistr/u8-prev:
32065         * modules/unistr/u8-set, modules/unistr/u8-startswith:
32066         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
32067         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
32068         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
32069         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
32070         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
32071         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
32072         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
32073         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
32074         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
32075         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
32076         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
32077         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
32078         * modules/uniwbrk/base, modules/uniwbrk/table:
32079         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
32080         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
32081         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
32082         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
32083         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
32084         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
32085         * modules/uniwidth/width, modules/utf16-ucs4:
32086         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
32087         * modules/utf8-ucs4-unsafe:
32088         Change maintainer from Bruno Haible to Daiki Ueno.
32089         This is my guess at the libunistring modules; please feel free
32090         to fix if I guessed incorrectly.
32091         * modules/accept4, modules/acl, modules/acos, modules/acosf:
32092         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
32093         * modules/areadlink, modules/array-list, modules/array-mergesort:
32094         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
32095         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
32096         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
32097         * modules/binary-io, modules/bison-i18n, modules/btowc:
32098         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
32099         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
32100         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
32101         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
32102         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
32103         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
32104         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
32105         * modules/closedir, modules/concat-filename, modules/copy-file:
32106         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
32107         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
32108         * modules/csharpcomp-script, modules/csharpexec:
32109         * modules/csharpexec-script, modules/ctype, modules/diffseq:
32110         * modules/dprintf, modules/dprintf-posix, modules/dup:
32111         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
32112         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
32113         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
32114         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
32115         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
32116         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
32117         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
32118         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
32119         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
32120         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
32121         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
32122         * modules/findprog, modules/findprog-lgpl, modules/floor:
32123         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
32124         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
32125         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
32126         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
32127         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
32128         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
32129         * modules/freadable, modules/freadahead, modules/freadptr:
32130         * modules/freadseek, modules/freopen, modules/frexp:
32131         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
32132         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
32133         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
32134         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
32135         * modules/ftello, modules/full-read, modules/full-write:
32136         * modules/fwritable, modules/fwriteerror, modules/gcd:
32137         * modules/get-rusage-as, modules/get-rusage-data:
32138         * modules/getdtablesize, modules/getrusage, modules/gettext:
32139         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
32140         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
32141         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
32142         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
32143         * modules/iconv, modules/iconv-h, modules/iconv_open:
32144         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
32145         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
32146         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
32147         * modules/integer_length_ll, modules/ioctl, modules/isatty:
32148         * modules/isblank, modules/isnand, modules/isnand-nolibm:
32149         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
32150         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
32151         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
32152         * modules/javaexec, modules/javaexec-script, modules/javaversion:
32153         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
32154         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
32155         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
32156         * modules/lib-symbol-visibility, modules/libsigsegv:
32157         * modules/linked-list, modules/linkedhash-list, modules/list:
32158         * modules/localcharset, modules/locale, modules/localeconv:
32159         * modules/localename, modules/lock, modules/log, modules/log-ieee:
32160         * modules/log10, modules/log10-ieee, modules/log10f:
32161         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
32162         * modules/log1p, modules/log1p-ieee, modules/log1pf:
32163         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
32164         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
32165         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
32166         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
32167         * modules/logf, modules/logf-ieee, modules/login_tty:
32168         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
32169         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
32170         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
32171         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
32172         * modules/mbscspn, modules/mbsinit, modules/mbslen:
32173         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
32174         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
32175         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
32176         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
32177         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
32178         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
32179         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
32180         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
32181         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
32182         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
32183         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
32184         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
32185         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
32186         * modules/posix_spawn, modules/posix_spawn-internal:
32187         * modules/posix_spawn_file_actions_addclose:
32188         * modules/posix_spawn_file_actions_adddup2:
32189         * modules/posix_spawn_file_actions_addopen:
32190         * modules/posix_spawn_file_actions_destroy:
32191         * modules/posix_spawn_file_actions_init:
32192         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
32193         * modules/posix_spawnattr_getpgroup:
32194         * modules/posix_spawnattr_getschedparam:
32195         * modules/posix_spawnattr_getschedpolicy:
32196         * modules/posix_spawnattr_getsigdefault:
32197         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
32198         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
32199         * modules/posix_spawnattr_setschedparam:
32200         * modules/posix_spawnattr_setschedpolicy:
32201         * modules/posix_spawnattr_setsigdefault:
32202         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
32203         * modules/pow, modules/powf, modules/printf-frexp:
32204         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
32205         * modules/progname, modules/propername, modules/pselect:
32206         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
32207         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
32208         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
32209         * modules/read, modules/readdir, modules/readlink:
32210         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
32211         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
32212         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
32213         * modules/relocatable-script, modules/remainder:
32214         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
32215         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
32216         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
32217         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
32218         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
32219         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
32220         * modules/setlocale, modules/sh-quote, modules/shutdown:
32221         * modules/signal, modules/signbit, modules/sigpipe:
32222         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
32223         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
32224         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
32225         * modules/snippet/link-warning, modules/snippet/unused-parameter:
32226         * modules/snprintf, modules/snprintf-posix, modules/spawn:
32227         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
32228         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
32229         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
32230         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
32231         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
32232         * modules/streq, modules/strerror_r-posix, modules/striconv:
32233         * modules/striconveh, modules/striconveha, modules/strncat:
32234         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
32235         * modules/sublist, modules/sys_resource, modules/sys_utsname:
32236         * modules/sys_wait, modules/system-posix, modules/system-quote:
32237         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
32238         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
32239         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
32240         * modules/truncf, modules/truncf-ieee, modules/truncl:
32241         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
32242         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
32243         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
32244         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
32245         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
32246         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
32247         * modules/wait-process, modules/waitpid, modules/wcpcpy:
32248         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
32249         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
32250         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
32251         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
32252         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
32253         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
32254         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
32255         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
32256         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
32257         * modules/write, modules/xconcat-filename, modules/xlist:
32258         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
32259         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
32260         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
32261         * modules/y0, modules/y1, modules/yn:
32262         Remove Bruno Haible as maintainer; if he's the sole maintainer,
32263         change the maintainer to 'all'.  Let's hope someone volunteers.
32265 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
32267         mktime: merge #if/#ifdef usage from glibc
32268         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
32269         as that works with both Glibc's and Gnulib's style.
32270         See thread starting at Siddhesh Poyarekar's bug report at:
32271         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
32273 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
32275         git-version-gen: improve option descriptions
32276         * build-aux/git-version-gen: Mention that --prefix and --fallback
32277         have a mandatory argument.
32279 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
32281         regex: fix memory leak in compiler
32282         Fix by Andreas Schwab in:
32283         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
32284         * lib/regcomp.c (parse_expression): Deallocate partially
32285         constructed tree before returning error.
32287         regex: merge patch from libc
32288         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
32289         Combine __USE_BSD and __USE_SVID into __USE_MISC.
32290         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
32292 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
32294         acl: port to gcc -Wredundant-decls
32295         From a request by Dmitry Antipov in:
32296         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
32297         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
32298         "#ifndef _GL_ACL_H".
32300 2014-06-11  Bruce Korb  <bkorb@gnu.org>
32301         Jim Meyering  <meyering@fb.com>
32303         parse-duration: eliminate 68-year duration limit
32304         * lib/parse-duration.c: Include "intprops.h".
32305         (TIME_MAX): Rename to MAX_DURATION and define to
32306         TYPE_MAXIMUM(time_t).
32307         * modules/parse-duration (Depends-on): Add intprops.
32308         Reported by Jonas 'Sortie' Termansen.
32310 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32312         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
32313         * modules/pthread (Depends-on): Add 'extensions', as it defines
32314         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
32315         (configure.ac-early): New section.
32316         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
32317         it is no longer needed.
32319 2014-06-14  Pádraig Brady  <P@draigBrady.com>
32321         pthread: define thread-safe macros on some platforms
32322         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
32323         for thread-safe operation on some platforms.
32325 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
32327         regex: don't be multithreaded if USE_UNLOCKED_IO.
32328         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
32329         * lib/regex_internal.h: Do not use multithreaded version if
32330         USE_UNLOCKED_IO is defined.  This is a hack, but it works
32331         around a porting bug with coreutils 8.22 on AIX 7.1.
32333 2014-06-11  Daiki Ueno  <ueno@gnu.org>
32335         gettext: update macros to version 0.19
32336         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
32337         depend on gl_EXTERN_INLINE and drop support for older Bison
32338         versions.
32340 2014-06-10  Pádraig Brady  <P@draigBrady.com>
32342         select,poll: fix console handle check on windows 8
32343         lib/poll.c (IsConsoleHandle): Change from testing the lower
32344         2 bits of the handle to the more expensive but accurate syscall.
32345         lib/select.c: Likewise.
32347 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32349         select: fix waiting on anonymous pipes on MS-Windows
32350         * lib/select.c (rpl_select): Fall back to polling when select()
32351         indicates there is nothing to check, while due to the timeout not
32352         expiring, activity is indicated on one of the handles.
32353         Also clear the TIMEOUT argument if the timer does expire.
32355 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32357         times: fix to return non constant value on MS-Windows
32358         * lib/times.c (times): Don't use the process creation time,
32359         rather clock() which on windows returns the number of
32360         clock ticks since the process started.
32362 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
32364         isatty: fix to work on windows 8
32365         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
32366         2 bits of the handle to the more expensive but accurate syscall.
32368 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
32370         maint: fix typo in fdl.texi
32371         * doc/fdl.texi: Fix typo (missing '@').
32372         Somehow this was in fdl.texi but not fdl-1.3.texi.
32374 2014-06-06  Ben Walton  <bdwalton@gmail.com>
32376         mountlist: avoid hasmntopt const type warning on solaris
32377         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
32378         with char * instead of const char *.  Passing the constant string
32379         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
32380         to avoid the warning.
32382 2014-06-04  Eric Blake  <eblake@redhat.com>
32384         maintainer-makefile: delete obsolete code
32385         * top/maint.mk (build_aux): Drop old code, as threatened.
32387         maintainer-makefile: avoid spurious error messages
32388         * top/maint.mk (syntax-check): Guard definition and use of
32389         $(shell) by whether Makefile is present.
32391 2014-06-03  Ben Walton  <bdwalton@gmail.com>
32393         rename: avoid unused-but-set-variable compiler warning
32394         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
32395         it is possible that dst_exists may be set but not used.  Mark it with
32396         the unused attribute to avoid compiler warnings.
32398 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32400         rename: mark a label as potentially unused
32401         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
32402         by marking the out label as potentially unused.
32403         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
32405 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
32407         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
32408         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
32410 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32412         acl: apply pure attribute to two functions
32413         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
32414         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
32416 2014-06-01  Pádraig Brady  <P@draigBrady.com>
32418         gnulib-common.m4: add _GL_UNUSED_LABEL
32419         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
32420         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
32422 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
32424         dup2, fcntl, fcntl-h: port to AIX 7.1
32425         This fixes some porting problems discovered when testing the latest
32426         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
32427         in grep but it could be important for other applications.
32428         * doc/posix-functions/dup2.texi:
32429         * doc/posix-functions/fcntl.texi:
32430         * doc/posix-headers/fcntl.texi:
32431         Document AIX bugs.
32432         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
32433         Define to 0 if outside 'int' range.
32434         * m4/dup2.m4 (gl_FUNC_DUP2):
32435         * m4/fcntl.m4 (gl_FUNC_FCNTL):
32436         Check for getdtablesize.  If it's available, test a value just
32437         outside its range instead of testing 1000000.  When cross-compiling,
32438         guess that AIX will fail this improved test.
32440 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
32442         printf, config.rpath: Port to FreeBSD 10.
32443         Problem reported by Tijl Coosemans in:
32444         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
32445         * build-aux/config.rpath (hardcode_libdir_flag_spec)
32446         (hardcode_direct): Simplify FreeBSD configuration.
32447         (library_names_spec): Don't mishandle FreeBSD 10+.
32448         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
32449         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
32450         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
32451         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
32452         Don't mishandle FreeBSD 10+ when cross-compiling.
32454         ftoastr: work around compiler bug in IBM xlc 12.1
32455         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
32456         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
32457         around a compiler bug in IBM xlc 12.1.0.0: it complains
32458         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
32459         _GL_FLT_PREC_BOUND.'
32461 2014-05-30  Kieran Colford  <colfordk@gmail.com>
32463         valgrind-tests: fixed misleading help message
32464         * m4/valgrind-tests.m4: The help message generated by configure
32465         implied that valgrind was disabled by default, which it wasn't.
32466         Adjusted the help message using s/enable/disable/ to clarify.
32468 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
32470         isfinite, isinf, isnan tests: fix for little-endian PowerPC
32471         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
32472         first double of a PowerPC "double double" pair.
32473         * tests/test-isinf.c (test_isinfl): Likewise.
32474         * tests/test-isnan.c (test_long_double): Likewise.
32475         * tests/test-isnanl.h (main): Likewise.
32476         * tests/test-signbit.c (test_signbitl): Likewise.
32478 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
32480         exclude-tests: port to AIX 7.1
32481         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
32482         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
32483         the regex code uses locks.
32485 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
32487         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
32488         Without this fix, Emacs would sometimes call sigprocmask instead
32489         of pthread_sigmask, which is a no-no in multithreaded applications.
32490         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
32491         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32492         Suppress check for pthread_sigmask working without -lpthread if
32493         the application always links with -lpthread.  Do not link with
32494         $LIBMULTITHREAD if gl_THREADLIB is not defined.
32495         * m4/timer_time.m4 (gl_TIMER_TIME):
32496         Require gl_THREADLIB only if it is defined.  Do not append
32497         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
32499 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
32501         gnulib-tool: wget translations using --no-verbose rather than --quiet
32502         This allows the user to see error messages if any (--quiet hides them)
32503         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
32505 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
32507         gnulib-tool: adjust translation wget to avoid a https redirection
32508         Context: http://translationproject.org/latest/gnulib redirects to
32509            https://translationproject.org/latest/gnulib/
32510         Rationale: if the user falls back to wget, she doesn't have rsync and
32511         is probably in a minimal build environment, where packages such as
32512         'ca-certificates' are missing as well, resulting in a failed (and
32513         difficult to detect since ignored) translation initial fetch.
32514         Consequently let's avoid https if possible, and add the missing
32515         trailing slash.  This also avoids an unnecessary 302 redirection.
32516         * gnulib-tool: Add trailing slash to gnulib URL.
32518 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32520         getlogin_r-tests: check return value rather than errno
32521         * tests/test-getlogin_r.c (main): As per POSIX we should be
32522         verifying the return value from getlogin_r() rather than errno.
32524 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32526         getlogin_r-tests: fix various issues in recent change
32527         * tests/test-getlogin_r.c: Include required headers that were
32528         missed in recent commit eec20b4e.
32529         Also consistently check the errno rather than the return value from
32530         getlogin_r as POSIX only specifies that non zero is returned on error.
32531         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
32533 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
32535         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
32536         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
32537         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
32538         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
32539         * lib/spawn-pipe.c:
32540         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
32541         and then 'int open64(const char *, int, ...);', which means the
32542         declaration for 'open' gets lost if we later '#undef open'.
32543         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
32544         where the compilation reported the non-fatal error "In function
32545         'openat_proc_name' ... warning: implicit declaration of function
32546         'open'".  In this case the error is relatively harmless, but in
32547         other cases it might not be so minor.
32549 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32551         xalloc: don't potentially generate invalid code for xmemdup calls
32552         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
32553         this function can initialize the newly-allocated storage with new
32554         pointers, which means this function is not malloc-like.  See:
32555         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
32557 2014-05-19  Pádraig Brady  <P@draigBrady.com>
32559         getlogin_r-tests: avoid false failure under sudo/ssh etc.
32560         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
32561         changes from commit 97249cf29 to not depend on environment variables.
32563 2014-05-18  Pádraig Brady  <P@draigBrady.com>
32565         getlogin-tests: avoid false failure under cron
32566         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
32567         since that's not what's under test.  Centos 6 was seen to return
32568         EINVAL for ttyname() when run from cron.
32570 2014-05-16  Jim Meyering  <meyering@fb.com>
32572         mbrtowc.m4: fix a comment typo
32573         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
32574         emitted documentation string.
32576 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32578         mbrlen, mbrtowc: fix bug with empty input
32579         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
32580         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
32581         so this is mainly for documentation.
32582         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
32583         (gl_FUNC_MBRTOWC): Use it.
32584         * tests/test-mbrtowc.c (main): Test for the bug.
32586 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
32588         doc: document mbrtowc and mbrlen problem with empty input
32589         * doc/posix-functions/mbrlen.texi (mbrlen):
32590         * doc/posix-functions/mbrtowc.texi (mbrtowc):
32591         Document portability problem when the input string is empty.  See:
32592         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
32594         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
32595         Problem reported by Eli Zaretskii in:
32596         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
32597         * doc/posix-functions/execl.texi (execl):
32598         * doc/posix-functions/execle.texi (execle):
32599         * doc/posix-functions/execlp.texi (execlp):
32600         * doc/posix-functions/execv.texi (execv):
32601         * doc/posix-functions/execve.texi (execve):
32602         * doc/posix-functions/execvp.texi (execvp):
32603         Mention spawn+exit problem on non-Cygwin Windows platforms.
32605 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
32607         getlogin-tests: avoid false failure under sudo/ssh etc.
32608         * modules/getlogin-tests (configure.ac): Check for ttyname().
32609         * tests/test-getlogin.c (main): Don't depend on environment variables
32610         to correlate with getlogin(), since sudo and ssh etc. can tamper
32611         with the LOGNAME and USER env vars.  Instead lookup the name from
32612         the uid associated with the stdin tty.
32614 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
32616         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
32617         These were found when building the latest grep snapshot on IRIX 6.5.
32618         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
32619         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
32620         never used later.
32621         * lib/quotearg.c (quoting_options_from_style):
32622         * lib/xstrtol.c (__xstrtol):
32623         Use enum instead of 0, to pacify IRIX 6.5 cc.
32625 2014-04-18  Pádraig Brady  <P@draigBrady.com>
32627         gitlog-to-changelog: revert inclusion of git-log-fix file
32628         * build-aux/git-log-fix: Delete dummy file.
32629         * modules/gitlog-to-changelog: Don't reference (overwrite)
32630         the project specific git-log-fix file.
32632 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
32634         maint.mk: Relax the copyright check to cater for non FSF projects
32635         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
32636         to not require the "Free" suffix after the copyright years.
32638 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
32640         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
32641         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
32642         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
32643         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
32644         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
32646 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
32648         exclude: port to strict C99
32649         Strict C does not allow converting a function pointer to void *
32650         and vice versa.  Pass a pointer to a function pointer instead.
32651         * lib/exclude.c (add_exclude_file):
32652         Pass the address of the function pointer.
32653         (call_addfn): And deference the address here, to match.
32655 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
32657         regex: do not depend on malloc-gnu
32658         * modules/regex (Depends-on): Remove malloc-gnu.
32659         It's no longer needed, because of the 2012-12-29 patch
32660         "regex: port to hosts where malloc (0) == NULL".
32661         Reported by Nathan Kennedy in:
32662         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
32664 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
32666         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
32667         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
32668         * doc/posix-functions/expl.texi: Mention the workaround.
32670 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
32672         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
32673         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
32674         size to be zero even when the pointer is nonnull.  This
32675         accommodates the use case where P is malloc (0) and *PN is 0 on a
32676         host where malloc (0) yields nonnull.
32678 2014-04-09  Eric Blake  <eblake@redhat.com>
32680         fts: avoid unnecessary strlen calls
32681         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
32683 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32685         fts: avoid unnecessary strlen calls
32686         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
32687         when that can be faster than strlen.
32689 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32691         fts: avoid unnecessary strlen calls
32692         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
32693         (fts_build): Store the length of the dp->d_name entry in a local variable
32694         instead of calling strlen() several times via the above, removed macro.
32695         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
32696         run by ~4%, yet this reduces the execution time by about a third if run
32697         via "ltrace -c rm -rf some-dir".
32699 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32701         obstack: Remove ancient NeXTSTEP gcc support conditional
32702         This change will ease merging with glibc.  The "#if ... __NEXT__"
32703         causes a warning with -Wundef which glibc now enables by default.
32704         Problem reported by Will Newton in
32705         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
32706         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
32707         so go with that.
32708         * lib/obstack.h (__extension__):
32710 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32712         obstack: merge with glibc changes
32713         * lib/obstack.c, lib/obstack.h: Merge from glibc.
32714         This is mostly indenting and commentary changes.
32715         Instances of 'register' have been removed.
32717 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32719         strftime: wrap macros in "do {...} while(0)"
32720         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
32721         this macro in "do {...} while(0)" to prevent false use as a
32722         single statement, e.g., in an un-braced "{}" else-block.
32723         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
32724         (strftime_case_): Remove 'else' after 'goto' - which was the
32725         only non-fatal, un-braced use of one of the above macros.
32726         Spotted by coverity (NESTING_INDENT_MISMATCH).
32728 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32730         modechange: avoid memory leaks for invalid octal modes
32731         * lib/modechange.c (mode_compile): During the parsing of
32732         notations like +40, free the 'mc' buffer for invalid mode
32733         strings like +17777 (greater than the maximum octal mode),
32734         =18 (bad octal mode characters) or u=1 ('affected' with
32735         octal modes).
32736         Reproducer, e.g.:
32737             $ valgrind --leak-check=full chmod +17777 file
32738         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
32739         add notations +40, 00440, etc.".
32740         Spotted by coverity (RESOURCE_LEAK).
32742 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
32744         gitlog-to-changelog: include a dummy git-log-fix file
32745         Problem reported by Nathan Stratton Treadway in:
32746         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
32747         * build-aux/git-log-fix: New file.
32749 2014-03-13  Jim Meyering  <meyering@fb.com>
32751         gitlog-to-changelog: also include the file, git-log-fix
32752         * modules/gitlog-to-changelog (Files): Add git-log-fix.
32753         Reported by Assaf Gordon.
32755 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
32757         regex: port to OS X 10.8.5 en_US.UTF-8 locale
32758         This fixes a bug when ignoring case and when comparing the
32759         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
32760         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
32761         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
32762         titlecase letter is neither lowercase nor uppercase, but
32763         uppercasing the titlecase letter (via towupper) yields the
32764         uppercase letter, so the two letters should match when ignoring case.
32765         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
32766         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
32767         Don't test whether a character is lowercase before uppercasing it.
32769 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
32771         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
32772         This is basically one of the options Bruno Haible proposed in:
32773         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
32774         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
32775         * lib/stdint.in.h: Use it.
32776         * modules/stdint (Depends-on): Add sys_types.
32778 2014-02-26  Pádraig Brady  <P@draigBrady.com>
32780         parse-datetime: fix crash or infloop in TZ="" parsing
32781         * lib/parse-datetime.y (parse_datetime): Break out of the
32782         TZ="" parsing loop once the second significant " is found.
32783         Also skip over any subsequent whitespace to be consistent
32784         with the non TZ= case.
32785         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
32787 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32789         savedir: new symbol for fast-read version
32790         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
32791         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
32792         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
32793         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
32795 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
32797         unistd: port readlink to Mac OS X 10.3.9
32798         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
32799         around self-include problem in Mac OS X 10.3.9 when combined with
32800         readlink module.  Problem reported by Klaus Zietler in
32801         <http://bugs.gnu.org/16825>.
32803 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
32805         diffseq: remove TOO_EXPENSIVE heuristic
32806         Problem with diffutils reported by Vincent Lefevre in
32807         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
32808         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
32809         Although appropriate for circa-1993 hardware, these days the heuristic
32810         seems to be more trouble than it's worth.
32811         * lib/diffseq.h: Modernize citations.
32812         (struct context): Remove member too_expensive.
32813         All uses changed.
32814         (struct partition): Remove members lo_minimal, hi_minimal.
32815         All uses changed.
32816         (diag, compareseq): Remove arg find_minimal.  All uses changed.
32817         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
32818         1993 to make 'diff' run faster (but not as well) on large inputs.
32819         These days, computers are fast enough that it's typically better
32820         to run slower but more accurately.
32821         * lib/fstrcmp.c: Remove duplicate comment.
32822         * lib/fstrcmp.c (strcmp_bounded):
32823         * lib/git-merge-changelog.c (compute_differences):
32824         Adjust to diffseq.h changes.
32825         * NEWS: Document the change.
32827         savedir: simplify by using stpcpy
32828         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
32829         (streamsavedir): Use stpcpy instead.
32830         * modules/savedir (Depends-on): Add stpcpy.
32832 2014-02-21  Pádraig Brady  <P@draigBrady.com>
32834         spawn: fix link error on uclibc
32835         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
32836         to incorporate -lrt if needed (on uclibc for example).
32837         * modules/posix_spawn: Reference the substituted LIB.
32839 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
32840         timer: fix uClibc detection of threading
32841         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
32842         enabled in uClibc.
32844 2014-02-21  Eric Blake  <eblake@redhat.com>
32846         maintainer-makefiles: provide AC_PROG_SED for older autoconf
32847         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
32849 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
32851         exclude: add support for posix regexps
32853         This commit adds support for POSIX extended regular expressions
32854         and fixes a long-standing memory leak (pattern buffer was never
32855         freed).  It also implements a new interface function to read
32856         exclude patterns from a FILE, which passes an additional parameter
32857         to its callback function, thereby allowing to preserve its state
32858         between invocations.
32860         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
32861         (pattern_buffer): New struct.
32862         (exclude): New member patbuf.
32863         (exclude_add_pattern_buffer): New function.
32864         (free_exclude_segment): Free regexps.
32865         (free_exclude): Free allocated pattern buffers.
32866         (exclude_patopts): New function.
32867         (file_pattern_matches): Use exclude_patopts.
32868         (add_exclude): support regexps.
32869         (add_exclude_fp): New function.
32870         (add_exclude_file): Rewrite using add_exclude_fp.
32871         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
32872         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
32873         (add_exclude_fp)
32874         (add_exclude_file): Rewrite using add_exclude_fp.
32875         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
32876         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
32877         (add_exclude_fp)
32878         (exclude_add_pattern_buffer): New prototypes.
32879         * modules/exclude: Depends on regex and filename.
32881 2014-02-20  Eric Blake  <eblake@redhat.com>
32883         maintainer-makefiles: use $(SED) for syntax check
32884         * modules/maintainer-makefile (configure.ac): Check for sane sed.
32885         * top/maint.mk: Change sed to $(SED).
32887 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
32888             Paul Eggert  <eggert@cs.ucla.edu>
32890         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
32891         Patch based on an idea by Dick Streefland in
32892         <https://savannah.gnu.org/patch/?7892>.
32893         * NEWS: Document this.
32894         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
32895         (direntry_t, comparison_function): New types.
32896         (direntry_cmp_name): New function.
32897         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
32898         (streamsavedir, savedir): New arg OPTION.
32899         (streamsavedir): Simplify memory allocation.
32900         (fdsavedir): Remove.
32901         * lib/savedir.h (enum savedir_option): New type.
32902         (streamsavedir, savedir): New arg OPTION.
32903         (fdsavedir): Remove.
32905 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
32907         file-type: add support for doors and other less-common file types
32908         Problem with S_ISDOOR reported by Rich Burridge.
32909         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
32910         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
32911         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
32913 2014-01-23  Eric Blake  <eblake@redhat.com>
32915         pthread: work around winpthread header pollution on mingw
32916         * lib/time.in.h: Move pthread workarounds...
32917         * lib/pthread.in.h: ...here.
32918         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
32919         detect macro pollution on mingw.
32920         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
32922 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32924         qacl: check for fchmod
32925         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
32926         and qset-acl.c both use HAVE_FCHMOD.
32928 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32930         fdopen-tests: port to Tru64
32931         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
32932         descriptor that is not open, as POSIX doesn't specify the
32933         resulting behavior and the test does not work on Tru64.
32934         Problem reported by Steven M. Schweda in:
32935         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
32937         stdalign: port to HP-UX compilers
32938         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
32939         if __HP_cc or __HP_aCC are nonzero.
32941 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
32943         strtoimax: port to platforms lacking 'long long'
32944         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
32945         check whether strtoll is declared, which causes the C file to
32946         wrongly report an error.  Problem reported by Steven M. Schweda in:
32947         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
32948         * lib/strtoimax.c (strtoull):
32949         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
32950         (strtoll): Declare only if HAVE_LONG_LONG_INT.
32952 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
32954         relocatable-perl: fix texi syntax
32955         * doc/relocatable-maint.texi: Escape braces.
32957 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
32959         relocatable-perl: like relocatable-script, but for Perl scripts
32960         * build-aux/relocatable.pl.in: Add.
32961         * doc/relocatable-maint.texi: Add documentation.
32962         * modules/relocatable-perl: Add.
32964 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
32966         tests: fix export bug in previous patch
32967         Problem reported by Jim Meyering.
32968         * tests/init.sh (re_shell): New var, which is exported instead of
32969         re_shell_.
32971         tests: simplify porting to Solaris 10 /bin/sh
32972         Some test cases in 'grep' need a shell that groks '$(';
32973         export re_shell_ for their benefit.  Problem reported for 'grep'
32974         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
32975         * tests/init.sh (re_shell_): Export if it's used.
32977 2014-01-06  Eric Blake  <eblake@redhat.com>
32979         md5, sha1, sha256, sha512: support older autoconf
32980         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
32981         for autoconf < 2.63b.
32983         include_next: port to autoconf 2.63
32984         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
32986 2014-01-04  Jim Meyering  <meyering@fb.com>
32988         maint: add a gnulib-local rule to keep non-ascii out of .texi files
32989         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
32990         so that "make sc_maint" will ding anyone who puts non-ascii
32991         in any of gnulib's .texi files.
32993 2014-01-03  Jim Meyering  <meyering@fb.com>
32995         freadable, fwritable, fwriting: declare with the "pure" attribute
32996         * lib/freadable.h (freadable): Declare with the "pure" attribute.
32997         * lib/fwritable.h (fwritable): Likewise.
32998         * lib/fwriting.h (fwriting): Likewise.
32999         Suggested by Bruno Haible.
33001         maint.mk: adapt openat.h-include-without-use test
33002         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
33003         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
33004         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
33005         With this change, running "make sc_maint" in gnulib's top-level
33006         directory now passes for me.
33008 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33010         doc: use ASCII in .texi files where UTF-8 isn't needed
33011         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
33012         * doc/posix-functions/setkey.texi, doc/regex.texi:
33013         Use ASCII input, not UTF-8.
33015 2014-01-02  Jim Meyering  <meyering@fb.com>
33017         freading: declare with the "pure" attribute
33018         * lib/freading.h (freading): Declare with the "pure" attribute.
33020         manywarnings: remove -Wmudflap
33021         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
33022         it is no longer supported in gcc-4.9-to-be.
33024 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33026         relocatable-script: remove unused code
33027         Problem reported by Reuben Thomas in:
33028         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
33029         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
33031 2014-01-01  Jim Meyering  <meyering@fb.com>
33033         maint: fix public-submodule-commit to work with newer git
33034         * top/maint.mk (public-submodule-commit): Remove excess quoting.
33035         We were over-quoting the test arguments, and somewhere prior to
33036         version 1.8.5.2.229, git stopped removing those excess quotes,
33037         which made the test fail, since the unexpanded strings would
33038         always differ; using GIT_TRACE=1 confirmed that the git merge-base
33039         command wasn't even being run.
33041 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33043         doc: update main copyright year
33044         * doc/gnulib.texi: Update copyright date.
33046 2014-01-01  Eric Blake  <eblake@redhat.com>
33048         version-etc: new year
33049         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
33050         * all files: run 'make update-copyright'
33052 2013-12-24  Eric Blake  <eblake@redhat.com>
33054         passfd: give nicer error for recvfd at eof
33055         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
33056         * tests/test-passfd.c (main): Enhance test to cover this.
33058 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33060         gettimeofday: port recent C++ fix to Emacs
33061         Without this further patch, Emacs won't build due to
33062         the portcheck failing.  Also, this simplifies the patch a bit.
33063         * lib/time.in.h (localtime, gmtime): Don't replace unless
33064         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
33065         * lib/time.in.h (localtime, gmtime):
33066         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
33067         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33068         * modules/time (time.h):
33069         Don't worry about the possibility of localtime and gmtime
33070         being absent; they're present in all C libraries we know about.
33071         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33072         Don't assume sys_time is present and has been initialized.
33073         Instead, use a hack that should work even if it hasn't been.
33074         Don't use a portcheck for gmtime or localtime; this supports
33075         the hack.
33076         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
33078 2013-12-17  John W. Eaton  <jwe@gnu.org>
33080         gettimeofday: fix C++ crosscompilation
33082         Never replace gmtime and localtime by macros when compiling with
33083         C++, this prevents <ctime> from being included.
33085         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
33086         define gmtime and localtime as preprocessor macros.  Instead
33087         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
33088         REPLACE_LOCALTIME substitutions.
33089         * lib/time.in.h: Declare gmtime and localtime when needed.
33090         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
33091         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
33092         * modules/time: Depend on gettimeofday, and substitute the above
33093         variables in time.h.
33095 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33097         qacl: port to Windows better
33098         See Eli Zaretskii in
33099         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
33100         * lib/file-has-acl.c (acl_access_nontrivial):
33101         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
33102         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
33104 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
33106         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
33107         * lib/gl_openssl.h: Cast void pointers to a specific type.
33109 2013-12-07  Pádraig Brady  <P@draigBrady.com>
33111         open-tests: fix build failure with -Werror=old-style-declaration
33112         * tests/test-open.h: Reorder the inline to avoid the issue.
33114 2013-12-07  Pádraig Brady  <P@draigBrady.com>
33116         md5, sha1, sha256, sha512: fix link error with partial libcrypto
33117         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
33118         init time, so that if early checks find crypto routines,
33119         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
33120         avoiding link failures.
33122 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33124         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
33125         This provides a new way to specify the default for
33126         gl_CRYPTO_CHECK, one that is reflected in the --help message.
33127         Emacs uses this, as well as the old way.
33128         This attempts to implement a suggestion by Pádraig Brady in
33129         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
33130         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
33131         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
33133         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
33134         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
33135         Add support for a new option, --with-openssl=auto, which causes
33136         the library to be used if available and silently ignored if not.
33137         Add support to allow configure.ac to specify its own
33138         default, by setting with_openssl_default before invoking gl_INIT.
33140 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
33142         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
33143         Problem reported by Daiki Ueno in:
33144         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
33145         * tests/test-open.h (__always_inline):
33146         New macro, if not already defined.
33147         (test_open): Use it.
33149 2013-12-04  Eric Blake  <eblake@redhat.com>
33151         include_next: minimize code duplication
33152         * modules/include_next (Depends-on): Add absolute-header.
33153         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
33154         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
33156 2013-12-04  Pádraig Brady  <P@draigBrady.com>
33158         getcwd: fix compile error in configure check
33159         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
33161 2013-12-04  Pádraig Brady  <P@draigBrady.com>
33163         regex: suppress core dumps from detection code
33164         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
33165         to suppress core dumps that may well occur on glibc systems.
33166         These core dumps might not be cleaned up automatically, or could
33167         trigger some system core dump handling logic.
33169 2013-12-03  Pádraig Brady  <P@draigBrady.com>
33171         md5, sha1, sha256, sha512: support mandating use of openssl
33172         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
33173         description, to list the now 3 separate options.  also don't
33174         mention the default=no, since this is implicit given the option
33175         is described as --with-openssl rather than --without-openssl.
33176         If projects change the default they're free to document that.
33177         with --with-openssl[=yes] we now error out when the specified
33178         hash algorithm is not available in libcrypto.
33180 2013-12-03  Ivailo  <xakepa10@gmail.com>
33182         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
33183         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
33184         -Wformat-nonliteral checks, as these edge cases are part of the test.
33186 2013-12-03  Eric Blake  <eblake@redhat.com>
33188         regex: avoid glibc deadlock during configure
33189         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
33190         glibc bug 15078 in turn triggers bug 16159.
33191         Reported by Michal Privoznik.
33193 2013-12-02  Pádraig Brady  <P@draigBrady.com>
33195         md5, sha1, sha256, sha512: use openssl routines if available.
33196         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
33197         routines will be used if available, requiring apps to link @LIB_CRYPTO@
33198         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
33199         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
33200         in the standard system location.
33201         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
33202         * m4/sha256.m4: Likewise with SHA256.
33203         * m4/sha512.m4: Likewise with SHA512.
33204         * m4/md5.m4: Likewise with MD5.
33205         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
33206         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
33207         * lib/sha256.h: Likewise with SHA256.
33208         * lib/sha512.h: Likewise with SHA512.
33209         * lib/md5.h: Likewise with MD5.
33210         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
33211         * lib/sha256.c: Likewise with SHA256.
33212         * lib/sha512.c: Likewise with SHA512.
33213         * lib/md5.c: Likewise with MD5.
33214         * modules/crypto/sha1 (Link:): Add the new optional lib.
33215         (Depends-on:): Add dependency on extern-inline.
33216         * modules/crypto/sha256: Likewise.
33217         * modules/crypto/sha512: Likewise.
33218         * modules/crypto/md5: Likewise.
33219         * modules/crypto/sha1-tests: Reference the lib here too.
33220         * modules/crypto/md5-tests: Likewise.
33221         * modules/crypto/gc-des-tests: Likewise.
33222         * modules/crypto/gc-hmac-md5-tests: Likewise.
33223         * modules/crypto/gc-hmac-sha1-tests: Likewise.
33224         * modules/crypto/gc-hmac-sha256-tests: Likewise.
33225         * modules/crypto/gc-hmac-sha512-tests: Likewise.
33226         * modules/crypto/gc-md5-tests: Likewise.
33227         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
33228         * modules/crypto/gc-sha1-tests: Likewise.
33229         * modules/crypto/gc-tests: Likewise.
33230         * modules/crypto/hmac-md5-tests: Likewise.
33231         * modules/crypto/hmac-sha1-tests: Likewise.
33232         * modules/crypto/hmac-sha256-tests: Likewise.
33233         * modules/crypto/hmac-sha512-tests: Likewise.
33235 2013-11-29  RV1971  <rv1971@web.de>
33237         base64: (trivial) fix compilation regression on some compilers
33238         * lib/base64.c: Don't return the void function,
33239         instead split to a separate return statement.
33241 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33243         ignore-value: revert previous code change
33244         * lib/ignore-value.h (ignore_value): Use __extension__ and
33245         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
33246         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
33247         Change the comment to try to explain this better.
33249 2013-11-27  Pádraig Brady  <P@draigBrady.com>
33251         selinux-h: improve stub types and add more stub functions
33253         * lib/se-selinux.in.h: Change security_context_t to a typedef
33254         rather than a define, as it's a pointer type and so is better
33255         as a typedef to avoid issues declaring multiple variables
33256         with the comma operator.  Also add stub for string_to_security_class().
33257         * lib/se-context.in.h: Add stub functions for
33258         context_{type,range,role,user}_get().
33260 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
33262         ignore-value: prefer GCC version back through 2.0
33263         The code didn't match the comments, so I did a bit of software
33264         archaeology.  GCC 2.0 seems to support __extension__ and
33265         __typeof__, so fix both code and comments to use 2.0.
33266         * lib/ignore-value.h (ignore_value): Use __extension__ and
33267         __typeof__ for GCC 2.0 through 3.3, too.
33269 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
33271         pty: Activate the signature wrapper of forkpty.
33272         The intended preprocessor macro HAVE_FORKPTY is
33273         never defined, yet `lib/forkpty.c' depends on it.
33275         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
33276         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
33277         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
33279 2013-11-18  Jim Meyering  <meyering@fb.com>
33280         and Paul Eggert  <eggert@cs.ucla.edu>
33282         quotearg: don't attempt to store 1 << 31 into an "int"
33283         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
33284         gcc's new -fsanitize=undefined and running its tests triggered some
33285         new test failures due to undefined behavior, all with this diagnostic:
33286           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
33287             cannot be represented in type int
33288         Rather than shifting "1" left to form a mask, shift the bits right and
33289         simply use "1" as the mask.
33291 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
33293         error: depend on stdio
33294         Problem reported by Nikos Mavrogiannopoulos in
33295         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
33296         * modules/error (Depends-on): Add stdio.
33298 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
33300         * doc/relocatable-maint.texi (Supporting Relocation): Improve
33301         wording.
33302         Reported by Reuben Thomas <rrt@sc3d.org>.
33304 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
33306         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
33307         New function and macro, to work around _DARWIN_C_SOURCE problem.
33308         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
33310 2013-11-11  Pádraig Brady  <P@draigBrady.com>
33312         base64: provide a fast path for encoding well sized buffers
33313         Avoid conditionals in the base64 encoding loop,
33314         which was seen to give 60% better throughput.
33315         * lib/base64.c (base64_encode_fast): A new function to be called
33316         when we don't want to NUL terminate, and we have enough space
33317         in the output to encode the given input.
33318         (base64_encode): Call the _fast() version when appropriate.
33319         Also remove a redundant mask with 0x3F on the first encoded byte.
33321 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
33323         extern-inline: port better to OS X 10.9
33324         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
33325         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
33326         OS X 10.9, except for g++ where the bug is still present.
33327         See <http://trac.macports.org/ticket/41033>.
33329 2013-11-08  Eric Blake  <eblake@redhat.com>
33331         fpending: fix regression on DragonFly BSD
33332         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
33333         * lib/fpending.h (__fpending): Don't declare twice.
33334         Reported by GW in
33335         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
33337 2013-11-05  Jim Meyering  <meyering@fb.com>
33339         hash: relax license to LGPLv2+, for libguestfs
33340         * modules/hash (License): Change from GPL to LGPLv2+.
33342 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
33344         intprops: port to Oracle Studio c99
33345         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
33346         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
33348 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
33350         obstack: pacify HP C
33351         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
33352         warning "conversion from pointer to smaller integer" from HP
33353         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
33354         C89 or later nowadays, so cast to void instead of int.  Privately
33355         reported by H.Merijn Brand.  Also, change header to match glibc's,
33356         to make checking against glibc easier.
33358 2013-10-29  Jim Meyering  <meyering@fb.com>
33360         maint.mk: prefer gpgv2 over gpgv
33361         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
33362         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
33363         Reported by Gary Vaughan.
33365 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33367         isnan: port to VAX
33368         Reported by John Klos for NetBSD-5/VAX in
33369         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
33370         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
33371         (FUNC): Use it.
33373 2013-10-28  Jim Meyering  <meyering@fb.com>
33375         gnulib-tool: protect against CDPATH
33376         * gnulib-tool: Many "cd" built-in functions print a directory name
33377         to stdout when CDPATH is set, e.g.,
33378           $ bash -c 'CDPATH=/; cd tmp'
33379           /tmp
33380         Unset it, when possible.  Prompted by a comment from Bruce Korb.
33382         maint.mk: restore functionality removed by recent change...
33383         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
33384         the context of a shallow-cloned gnulib repository: "git describe"
33385         would fail in such a directory.  However, that change made it so
33386         the reported gnulib revision no longer includes the version number
33387         or a commit count, even when run from a full clone.
33388         * top/maint.mk (gnulib-version): Use the full "git describe"
33389         output when possible, e.g., the form above, rather than the
33390         abbreviated, no-tag, no-commit-count string, and fall back to
33391         using a 10-byte hash, rather than the default minimal-length
33392         hash prefix, since while the minimal-length one may be fine today,
33393         it is likely not to be unique for very long.
33395 2013-10-26  Jim Meyering  <meyering@fb.com>
33397         maint.mk: fix "release" target to build _version
33398         This fixes a bug in README-release whereby following the outlined
33399         steps, one would publish a tarball whose programs would report
33400         --version output not consistent with the package version number.
33401         This bug caused grep-2.15 to produce a grep program whose
33402         --version option made it print 2.14.56-1e3d rather than 2.15.
33403         * top/maint.mk (release): Making this target build "_version"
33404         ensures that the new version number is reflected in configure.
33406 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
33408         install-reloc: Support multi-binary installation.
33409         * build-aux/install-reloc: Support installing multiple programs in
33410         one invocation, as done by Automake starting with commit
33411         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
33412         Haible <bruno@clisp.org>, archived at
33413         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
33414         Reported by Sylvain <beuc@gnu.org>.
33416 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33418         selinux-h: Really build without selinux when library is missing.
33419         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
33420         continue without selinux, as already told in the warning message.
33422 2013-10-21  Jim Meyering  <meyering@fb.com>
33424         regex: also remove dependency on HAVE_WCSCOLL
33425         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
33427 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
33429         xfreopen: Fix typo. s/frepoen/freopen/
33430         * lib/xfreopen.c: Fix description.
33431         * modules/xfreopen: Likewise.
33433 2013-10-21  Jim Meyering  <meyering@fb.com>
33435         regex: don't depend on wcscoll
33436         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
33437         It is no longer used.
33439 2013-10-20  Jim Meyering  <meyering@fb.com>
33441         error: add the printf attribute to a static function
33442         * lib/error.c (error_tail): Add the printf attribute, to placate
33443         gcc's -Werror=suggest-attribute=format option.
33445 2013-09-30  Jim Meyering  <meyering@fb.com>
33447         fpending, obstack, strerror-override: use pure+const function attrs
33448         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
33449         * lib/obstack.c (_obstack_allocated_p): Likewise.
33450         * lib/obstack.h (_obstack_memory_used): Likewise.
33451         (_obstack_memory_used): Likewise.
33452         * lib/strerror-override.h (strerror_override): Declare with
33453         the "const" attribute.
33455 2013-10-18  Eric Blake  <eblake@redhat.com>
33457         extern-inline: make safe for -Wundef usage
33458         Reported by Vladimir 'phcoder' Serbinenko in
33459         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
33460         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
33462 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33464         mkfifo-tests, etc.: allow HP-UX 11.11 bug
33465         Problem reported by Daniel Richard G. in
33466         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
33467         * doc/posix-functions/mkfifo.texi (mkfifo):
33468         * doc/posix-functions/mkfifoat.texi (mkfifoat):
33469         * doc/posix-functions/mknod.texi (mknod):
33470         * doc/posix-functions/mknodat.texi (mknodat):
33471         Document the HP-UX 11.11 bug.
33472         * tests/test-mkfifo.h (test_mkfifo):
33473         Allow the HP-UX 11.11 bug.
33475 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33477         acl: allow cross-compilation to Gentoo
33478         Problem reported by Gabriel Marcano in
33479         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
33480         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
33481         test only whether it links.
33483 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
33485         mgetgroups: remove dependency on realloc-gnu
33486         The dependency violates the comment in realloc-gnu, which
33487         says that tests can't depend on realloc-gnu; some tests depend
33488         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
33489         Problem reported by Daniel Richard G. in
33490         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
33491         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
33492         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
33493         not realloc-gnu.
33495 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33497         regex-tests: port to HP-UX 11.11
33498         Problem reported by Daniel Richard G. in
33499         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
33500         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
33502 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33504         verify: document some 'assume' pitfalls
33505         * doc/verify.texi (Compile-time Assertions):
33506         Mention that 'assume (E)' can sometimes slow things down.
33507         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
33509 2013-10-10  Eric Blake  <eblake@redhat.com>
33511         strtoumax: fix typo in previous commit.
33512         * modules/strtoumax (Depends-on): Fix typo.
33513         * modules/strtoimax (Depends-on): Likewise.
33515 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33517         strtoumax: port to Solaris 8
33518         This problem was introduced in the recent HP-UX patch.
33519         Reported by Tom G. Christensen in
33520         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
33521         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
33522         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
33524 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
33526         strtoimax, strtoumax: port to HP-UX 11.11
33527         Problem reported by Daniel Richard G. in
33528         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
33529         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
33530         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
33531         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
33532         REPLACE_STRTOUMAX.
33533         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
33534         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
33535         Replace the function if defined as a macro but not as a function.
33536         * modules/inttypes-incomplete (inttypes.h): Substitute
33537         REPLACE_STRTOUMAX.
33538         * modules/strtoumax (configure.ac): Replace strtoumax if
33539         REPLACE_STRTOUMAX.
33541 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33543         strtoimax: port to HP-UX 11.11
33544         Problem reported by Daniel Richard G.
33545         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
33546         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
33547         they might clash with inttypes.h.
33549 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33551         New module 'count-trailing-zeros'.
33552         * MODULES.html.sh: Mention it.
33553         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
33554         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
33555         * modules/count-trailing-zeros-tests:
33556         * tests/test-count-trailing-zeros.c:
33557         New files.
33559         count-leading-zeros: port to MSC; support types wider than 64 bits
33560         The ideas behind the MSC port are stolen from Emacs.
33561         * lib/count-leading-zeros.h:
33562         Don't include verify.h: it's no longer needed, as types wider than
33563         64 bits are now supported.
33564         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
33565         performance with MSC.  All uses changed.  Do not assume that TYPE
33566         has at most 64 bits.
33567         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
33568         All uses changed.  Fold the subtraction from 31 into the table.
33570         count-one-bits: port to MSC; support types wider than 64 bits
33571         The ideas behind the MSC port are stolen from Emacs.
33572         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
33573         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
33574         Don't include verify.h: it's no longer needed, as types wider than
33575         64 bits are now supported.
33576         (COUNT_ONE_BITS_GENERIC): New macro.
33577         (popcount_supported) [_MSC_VER]: New inline function.
33578         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
33579         performance with MSC.  All uses changed.  Do not assume that TYPE
33580         has at most 64 bits.
33581         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
33583 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
33585         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
33586         * lib/mountlist.c (read_file_system_list): fix leak of directory
33587         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
33589 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33591         tests: improve diagnostic when an assertion fails
33592         * tests/macros.h (ASSERT): Report the assertion that failed.
33594 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
33596         verify: new macro 'assume'
33597         This is taken from Emacs, and should be generally useful.
33598         * doc/verify.texi (assume): Document it.
33599         * lib/verify.h (assume): New macro.
33600         (__has_builtin): Expand to 0 if not defined.
33602 2013-09-26  Eric Blake  <eblake@redhat.com>
33604         dup2, dup3: work around another cygwin crasher
33605         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
33606         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
33607         * tests/test-dup2.c (main): Likewise.
33608         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
33609         * lib/dup3.c (dup3): Likewise.
33610         * doc/posix-functions/dup2.texi (dup2): Document it.
33611         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33613         getdtablesize: work around cygwin issue
33614         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
33615         * modules/getdtablesize (configure.ac): Build replacement.
33616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
33617         * modules/unistd (Makefile.am): Expose the witness.
33618         * lib/unistd.in.h (getdtablesize): Declare replacement.
33619         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
33620         * tests/test-getdtablesize.c (main): Test it.
33621         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
33623 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
33625         pmccabe2html: escaping of special characters
33626         Escape all '<', '>', and '&' in HTML output.
33627         * build-aux/pmccabe2html (html_fnc): Call gsub()
33628         instead of sub() to capture all '<', '>', and '&'.
33629         Neither of '<' and '>' is special in a regexp,
33630         so first arguments to gsub() are corrected. Also,
33631         in replacement strings, ampersand must be escaped.
33632         Finally, '&' must be handled first, then '<' and '>'.
33634 2013-09-24  Eric Blake  <eblake@redhat.com>
33636         manywarnings: enable nicer gcc warning messages
33637         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
33638         some -f options for optimal warnings.
33640 2013-09-21  Jim Meyering  <meyering@fb.com>
33642         timespec: use the new TIMESPEC_RESOLUTION in a few more places
33643         * lib/timespec-add.c (timespec_add): Also replace 999999999
33644         with TIMESPEC_RESOLUTION - 1.
33645         * lib/timespec-sub.c (timespec_sub): Likewise.
33647 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
33649         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
33650         Problem reported by Dagobert Michelsen via Eric Blake in
33651         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
33652         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
33653         not AC_COMPILE_IFELSE.
33655 2013-09-23  Eric Blake  <eblake@redhat.com>
33657         configmake: support new --runstatedir option
33658         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
33659         even if autoconf was too old to provide the command line option.
33660         * modules/configmake (Makefile.am): Propagate it to .h file.
33662 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33664         ctype, string: depend on extern-inline
33665         This is needed to complete the recent OS X fixes.
33666         Also, fix related documentation as suggested by Eric Blake.
33667         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33668         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
33669         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
33670         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
33671         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
33672         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
33673         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
33674         * doc/posix-functions/toupper.texi:
33675         List the 'ctype' gnulib module.
33676         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
33677         * doc/posix-functions/strncpy.texi:
33678         List the 'string' gnulib module.
33679         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
33680         Add string.
33681         * modules/ctype, modules/string (Depends-on): Add extern-inline.
33683 2013-09-19  Pádraig Brady  <P@draigBrady.com>
33685         userspec: support optional parameters to parse_user_spec()
33686         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
33687         then avoid group processing and treat the full spec as a user.
33688         (parse_with_separator): Allow the USERNAME and GROUPNAME to
33689         be optional params (NULL), in which case they're ignored.
33691 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
33693         timespec: new function make_timespec, and new constants
33694         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
33695         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
33696         (make_timespec): New function.
33697         * lib/dtotimespec.c (dtotimespec):
33698         * lib/timespec-add.c (timespec_add):
33699         * lib/timespec-sub.c (timespec_sub):
33700         * lib/utimens.c (validate_timespec):
33701         * lib/utimensat.c (rpl_utimensat):
33702         Use these new constants and functions.
33704         stdio: OS X port of putc_unlocked + extern inline
33705         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
33706         * doc/posix-functions/putc_unlocked.texi:
33707         * doc/posix-functions/putchar_unlocked.texi:
33708         Document this portability problem.
33710         signal: OS X port of sigaddset etc. + extern inline
33711         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
33712         (sigismember): #undef on problematic Apple platforms.
33713         * doc/posix-functions/sigaddset.texi:
33714         * doc/posix-functions/sigdelset.texi:
33715         * doc/posix-functions/sigemptyset.texi:
33716         * doc/posix-functions/sigfillset.texi:
33717         * doc/posix-functions/sigismember.texi:
33718         Document this portability problem.
33720         extern-inline: do not always suppress extern inline on OS X
33721         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
33722         extern inline on Apple only if the particular compile-time
33723         configuration is known to have the problem.
33724         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
33725         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
33726         other Gnulib modules.
33728         extern-inline: document fixes for ctype and wctype macros
33729         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33730         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
33731         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
33732         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
33733         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
33734         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
33735         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
33736         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
33737         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
33738         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
33739         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
33740         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
33741         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
33742         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
33743         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
33744         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
33745         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
33746         * doc/posix-functions/strncpy.texi:
33747         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
33748         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
33749         Document that Gnulib fixes portability problems with these
33750         functions on OS X 10.8 and earlier when called from plain inline
33751         or extern inline functions.
33753 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
33755         fflush, freadahead, fseeko: Fix for Android
33756         Suggested by Bruno Haible in:
33757         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
33758         * lib/stdio-impl.h: Use local __sfileext definition.
33760 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
33762         pmccabe2html: Portability to other awk versions.
33763         The functions systime() and strftime() are available
33764         in Gawk only.  Properly close two HTML-tags 'style'
33765         and 'span'.
33766         * build-aux/pmccabe2html (BEGIN): Store timing
33767         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
33768         systime() in HTML_COMMENT.
33769         (html_header): Correctly close tag 'style'.
33770         (END): Replace strftime() by CHRONOS_TIME.  Close
33771         tag 'span' correctly, not as 'div'.
33773 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33775         getgroups: statement without effect
33776         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
33777         Change equality conditional to expected assignment.
33779 2013-09-09  Eric Blake  <eblake@redhat.com>
33781         glob: fix compilation
33782         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
33784 2013-09-07  Eric Blake  <eblake@redhat.com>
33786         glob: fix build for platforms without __THROW
33787         * lib/glob.in.h (__THROW): Add definition again.
33789 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
33791         regex-quote: fix buffer access out of bounds
33792         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
33793         * lib/regex-quote.c (regex_quote_spec_pcre):
33794         Fix typo that resulted in an out-of-bounds read.
33796 2013-09-04  Eric Blake  <eblake@redhat.com>
33798         glob: avoid -Wattribute warnings on glibc
33799         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
33800         __THROWNL, not __THROW, on static functions.
33801         * lib/glob.in.h (__THROW): Adjust...
33802         (__THROWNL): ...accordingly.
33804 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33806         headers: check that _GL_INLINE_HEADER_BEGIN is defined
33807         Suggested by Bruce Korb in:
33808         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
33809         * doc/extern-inline.texi (extern inline):
33810         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
33811         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
33812         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
33813         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
33814         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
33815         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
33816         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
33817         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
33818         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
33819         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
33820         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
33821         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
33822         * lib/xtime.h:
33823         Check that _GL_INLINE_HEADER_BEGIN is defined.
33825 2013-08-29  Pádraig Brady  <P@draigBrady.com>
33827         bootstrap: remove the --version requirement from ancillary tools
33828         * build-aux/bootstrap (check_exists): A new refactored function to
33829         determine if a command exists.
33830         (find_tool): Use the new function which does not require the
33831         --version option to be supported.
33832         (check_versions): Use the new function.
33834 2013-08-26  Simon Josefsson  <simon@josefsson.org>
33836         gc: support HMAC-SHA256 and HMAC-SHA512.
33837         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
33838         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
33839         functions.
33840         (gc_hmac_md5): Use symbolic constant.
33841         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
33842         (gc_hmac_sha256, gc_hmac_sha512): New functions.
33843         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
33844         * m4/sha256.m4: Protect against empty expansion.
33845         * m4/sha512.m4: Likewise.
33846         * lib/hmac-sha256.c: New file.
33847         * lib/hmac-sha512.c: Likewise.
33848         * m4/gc-hmac-sha256.m4: Likewise.
33849         * m4/gc-hmac-sha512.m4: Likewise.
33850         * m4/gc-sha256.m4: Likewise.
33851         * m4/gc-sha512.m4: Likewise.
33852         * modules/crypto/gc-hmac-sha256: Likewise.
33853         * modules/crypto/gc-hmac-sha256-tests: Likewise.
33854         * modules/crypto/gc-hmac-sha512: Likewise.
33855         * modules/crypto/gc-hmac-sha512-tests: Likewise.
33856         * modules/crypto/hmac-sha256: Likewise.
33857         * modules/crypto/hmac-sha256-tests: Likewise.
33858         * modules/crypto/hmac-sha512: Likewise.
33859         * modules/crypto/hmac-sha512-tests: Likewise.
33860         * tests/test-gc-hmac-sha256.c: Likewise.
33861         * tests/test-gc-hmac-sha512.c: Likewise
33862         * tests/test-hmac-sha256.c: Likewise.
33863         * tests/test-hmac-sha512.c: Likewise
33865 2013-08-24  Daiki Ueno  <ueno@gnu.org>
33867         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
33868         of AC_CHECK_DECLS.
33870 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33872         selinux-at: omit unnecessary include
33873         * lib/selinux-at.c: Don't include dosname.h; not needed, since
33874         this source file doesn't use its macros, and subsidiary files that
33875         use the macros already include it.
33877 2013-08-21  Eric Blake  <eblake@redhat.com>
33879         d-ino: avoid false negative on symlink
33880         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
33881         Reported by Stephane Chazelas.
33883 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
33885         bootstrap: port to OpenBSD sed
33886         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
33887         does not interpret `-' as a file argument to mean stdin.
33889 2013-08-15  Eric Blake  <eblake@redhat.com>
33891         warnings: minor optimization
33892         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
33894         warnings: check -Wfoo rather than -Wno-foo
33895         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
33896         -Wno-, test if the compiler recognizes the positive form instead.
33898 2013-08-15  Karl Berry  <karl@gnu.org>
33900         * config/srclist-update: add option "doclicense" to placate
33901         pulling *.texi files from Emacs.  Write terse usage
33902         documentation at the top.
33904 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
33906         xvasprintf-tests: port to GCC with hardening flags
33907         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
33908         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
33909         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
33911 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33913         fpending: port to recent Cygwin change to stdio_ext.h
33914         Reported by LRN in
33915         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
33916         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
33917         just declare __fpending unless it's a macro.
33918         A duplicate decl shouldn't hurt.
33919         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
33920         call compiles and links, instead of separately checking for
33921         decl and lib function.
33922         * modules/fpending (configure-ac):
33923         Adjust to fpending.m4's renaming of shell variable.
33925 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33927         sys_time: port to OpenBSD
33928         * lib/sys_time.in.h: Simply delegate to the system's header
33929         in the BSDish cases as well.  Problem reported by Mike Miller in
33930         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
33931         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
33932         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
33933         wider than time_t.
33935 2013-08-09  Pádraig Brady  <P@draigBrady.com>
33937         bootstrap: support checksum utils having -c but not --status
33938         * build-aux/bootstrap: Only look for sha1sum if updating po files.
33939         Add sha1 to the list of supported checksum utils since it's now
33940         supported through adjustments below.
33941         (update_po_files): Remove the use of --status
33942         in a way that will suppress all error messages, but since this is
33943         only used to minimize updates, it shouldn't cause an issue.
33944         Exit early if there is a problem updating the po file checksums.
33945         (find_tool): Remove the check for --version support as this
33946         is optional as per commit 86186b17.  Don't even check for the
33947         presence of the command as if that is needed, it's supported
33948         through configuring prerequisites in bootstrap.conf.
33949         Prompt that when a tool isn't found, one can define an environment
33950         variable to add to the hardcoded search list.
33952 2013-08-05  Jim Meyering  <meyering@fb.com>
33954         regex: port to non-glibc/lock-using systems
33955         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
33956         system with GNULIB_LOCK would fail due to absence of the
33957         included "glthread/lock.h".  This would affect any package
33958         for which the "lock" module is used only by the regex module,
33959         and not explicitly used.
33960         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
33961         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
33962         Add a dependency on the "lock" module.
33964 2013-07-20  Daiki Ueno  <ueno@gnu.org>
33966         localecharset: make locale_charset thread-safe on Mac OS X
33967         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
33968         instead of MB_CUR_MAX.
33970 2013-07-20  Daiki Ueno  <ueno@gnu.org>
33972         gettext: update to version 0.18.3
33973         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
33974         require AC_PROG_SED to allow user to specify custom sed command when
33975         generating en@quot PO file.
33977 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
33979         bootstrap: use correct source when copying build-aux files
33980         * build-aux/bootstrap (gnulib_extra_files): This variable is
33981         relative to upstream gnulib layout, not downstream.
33983 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
33985         tmpdir: fix bug in VMS port
33986         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
33987         See Steven M. Schweda in
33988         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
33990 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
33992         tmpdir: port to VMS, to // != /, and to long dirs
33993         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
33994         __secure_getenv, so that we're more like the glibc version.
33995         All uses changed.
33996         (path_search): Don't put slash after directory if __VMS.
33997         Problem reported by Steven M. Schweda in
33998         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
33999         Simplify code to add slash; no need for a loop.
34000         Do not remove trailing slash from "//".
34001         Do not assume dlen <= INT_MAX.
34003 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34005         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
34006         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
34007         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
34008         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
34010         accept4, dup3, pipe2: port to Cygwin
34011         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
34012         * lib/accept4.c (accept4) [O_BINARY]:
34013         * lib/dup3.c (dup3) [O_BINARY]:
34014         * lib/pipe2.c (pipe2) [O_BINARY]:
34015         Use set_binary_mode, not setmode.
34016         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
34017         * modules/binary-io (Depends-on): Remove module indicator.
34018         These last two bits undo the previous change to pipe2 and binary-io.
34020 2013-07-09  Pádraig Brady  <P@draigBrady.com>
34022         mountlist: add support for deallocating returned list entries
34023         * lib/mountlist.c (free_mount_entry): A new exported function
34024         to deallocate a mount list entry.
34025         (read_file_system_list): Refactor to use the new deallocation function.
34026         Suggested by Anton Ovchinnikov.
34028 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
34030         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
34031         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
34032         * lib/stdalign.in.h (_Alignas, _Alignof):
34033         Port to FreeBSD 9.1, and to C11 and C++11.
34034         (_Alignas): Also support ICC.
34035         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
34036         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
34038 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34040         fnmatch: don't goto over declaration
34041         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
34042         undefined behavior for goto over a declaration.
34043         Problem reported by Charlie Brown in
34044         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
34046         pipe2: decouple from binary-io a bit
34047         This is for Emacs, which needs pipe2 but not binary-io.
34048         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
34049         * modules/binary-io (Depends-on): Add module indicator.
34051 2013-07-03  Eric Blake  <eblake@redhat.com>
34053         mgetgroups: relax license to LGPLv2+
34054         * modules/getugroups (License): Change from GPLv3+.
34055         * modules/mgetgroups (License): Likewise.
34056         * modules/getgroups (License): Change from LGPLv3+.
34058         xalloc-oversized: relax license to LGPLv2+
34059         * modules/xalloc-oversized (License): Change from GPLv3+.
34061         nproc: relax license to LGPLv2+
34062         * modules/nproc (License): Change from LGPLv3+.
34064         bootstrap: honor --no-git
34065         * build-aux/bootstrap: Don't even try to use git when user is
34066         pointing to a static checkout.
34068 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34070         ignore-value: port to gcc -pedantic
34071         * lib/ignore-value.h (ignore_value):
34072         Port to gcc -pedantic, by using __extension__.
34073         Reindent as per usual gnulib style nowadays.
34074         Simplify GCC version check.
34076 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34078         extern-inline: port to gcc -std=c89
34079         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
34080         Do not use __gnu_inline__ if pedantic and pre-C99.
34082 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34084         doc: document extern-inline
34085         * doc/extern-inline.texi: New file.
34086         * doc/gnulib.texi (alloca-opt): Include it.
34087         * m4/extern-inline.m4: Move some comments to documentation,
34088         and others closer to what they describe.
34090         doc: chatter less
34091         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
34092         (updated-stamp): Use it.  This causes 'make' to output just
34093         one file name rather than zillions.
34095         fflush, fseeko: port to musl cross-compiles
34096         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
34097         on some implementation that (1) is not known to be buggy,
34098         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
34099         cross-compiled to so we can't easily check for lack of
34100         conformance.  This is for cross-compiling to musl.
34101         Reported by Rich Felker in
34102         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
34103         * m4/fclose.m4 (gl_FUNC_FCLOSE):
34104         * m4/fflush.m4 (gl_FUNC_FFLUSH):
34105         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
34106         Adjust to above change.
34107         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
34108         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
34109         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
34110         known not to work, or unknown.
34112 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34114         msvc-inval: port to mingw-w64
34115         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
34116         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
34117         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
34119 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
34121         getcwd-lgpl: port to Tru64
34122         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
34123         Problem reported by Steven M. Schweda in
34124         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
34126         tests: port large-fd POSIX spawn tests to OS X
34127         Problem reported by Daiki Ueno in
34128         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
34129         * tests/test-posix_spawn_file_actions_addclose.c:
34130         * tests/test-posix_spawn_file_actions_adddup2.c:
34131         * tests/test-posix_spawn_file_actions_addopen.c:
34132         Include <limits.h>, for OPEN_MAX, if available.
34133         (big_fd): New static function.
34134         (main): Use it.
34136 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
34138         tests/nap.h: use an adaptive delay to avoid ctime update issues
34139         The recent change in nap.h (5191133e) decreased the probability of lost
34140         races to about a third, however such problems could still be observed
34141         in virtual machines and openSUSE's OBS.
34142         Before, nap() detected the needed time once empirically and then used
34143         that delay (together with a small correction multiplier) in further
34144         calls.  This problem has been reported and discussed several times,
34145         including guesses about possible kernel issues:
34146         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
34147         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
34148         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
34149         http://bugs.gnu.org/12820
34150         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
34151         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
34152         Now, nap() avoids the race alltogether by verifying on a reference
34153         file whether a timestamp difference has happened.
34154         * tests/nap.h (nap_fd): Define file descriptor variable for the
34155         witness file.
34156         (nap_works): Change return value to bool.  Change passing
34157         the old file's status by value instead of by reference as this function
34158         does no longer update that timestamp; rename the function argument from
34159         st to old_st.  Remove the local variables cdiff and mdiff because that
34160         function now returns true/false instead of the precise delay.
34161         (guess_delay): Remove function.
34162         (clear_tmp_file): Add new function to close and unlink the witness file.
34163         (nap): Instead of re-using the delay which has been calculated during
34164         the first call, avoid the race by actually verifying that a timestamp
34165         difference can be observed on the current file system.  Use an adaptive
34166         approach for the delay to minimize execution time.  Assert that the
34167         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
34168         = 2^31 - 1 = 2.1s.
34169         Use atexit to call clear_tmp_file when the process terminates.
34171 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
34173         sig2str: port to C++
34174         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
34175         Reported by Daniel J Sebald in
34176         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
34178 2013-05-30  Eric Blake  <eblake@redhat.com>
34180         docs: mention cygwin shortcoming in <sys/un.h>
34181         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
34183         vasnprintf: silence mingw compiler warning
34184         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
34186 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34188         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
34189         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
34190         This fixes a porting bug I recently reintroduced in regex, and
34191         some other instances that I discovered while testing the fix.
34192         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
34193         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
34194         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
34195         with an empty argument if this is a pedantic pre-C99 GCC.
34196         * lib/verify.h: Do not use _Static_assert if this is a pedantic
34197         pre-C11 GCC.
34199         regex: adapt to locking regime instead of depending on pthread
34200         Instead of depending on pthread, adapt to whatever thread
34201         modules are in use.  Problem reported by Ludovic Courtès in
34202         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
34203         and by Mats Erik Andersson in
34204         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
34205         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
34206         Support either the 'lock' module, or the 'pthread' module, or
34207         no module.
34208         (lock_lock, lock_unlock): New macros.
34209         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
34210         * modules/lock, modules/pthread (configure.ac): Add module indicator.
34211         * modules/regex (Depends-on): Remove pthread.
34213 2013-05-22  Eric Blake  <eblake@redhat.com>
34215         getgroups: document portability issues
34216         * doc/glibc-functions/initgroups.texi (initgroups): Mention
34217         multithread safety.
34218         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
34219         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
34220         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
34221         getugroups.
34222         * doc/posix-functions/getgroups.texi (getgroups): Mention
34223         multithread safety and mgetgroups.
34225 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
34227         test-lchown, test-chown: also skip test if chown fails with EPERM
34228         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
34229         skip this test, to handle FAT file systems.
34230         * tests/test-chown.h (test_chown): Likewise.
34232 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34234         regex: fix dfa race in multithreaded uses
34235         Problem reported by Ludovic Courtès in
34236         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
34237         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
34238         New macros.  All uses of __libc_lock_define, __libc_lock_init
34239         changed to use the first two of these.
34240         (__libc_lock_lock, __libc_lock_unlock): New macros, for
34241         non-glibc platforms.
34242         (struct re_dfa_t): Define the lock unconditionally.
34243         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
34244         '#ifdef _LIBC"s.
34245         * modules/regex (Depends-on): Add pthread, if we use the
34246         included regex.
34248         * lib/regcomp.c: Do actions that are not needed for glibc,
34249         but may be needed elsewhere.
34250         (regfree, re_compile_internal): Destroy the lock.
34251         (re_compile_internal): Check for lock-initialization failure.
34253         malloca: port to compilers that reject size-zero arrays
34254         This fixes a bug introduced in my previous patch.
34255         * lib/malloca.c (struct preliminary_header): Use an int
34256         rather than a character array of size int; that's simpler.
34257         (struct header): Remove, replacing with ...
34258         (union header): New type.  This avoids the need for declaring a
34259         character array of size zero, which is not allowed on some platforms.
34260         All uses changed.
34262 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
34264         parse-datetime, tests: don't use "string" + int
34265         Recent versions of 'clang' complain about C source code that
34266         uses expressions of the form '"string literal" + integer',
34267         I guess on the theory that it's confusing for readers who are
34268         used to C++.  On those grounds I suppose it's OK to make this
34269         minor style change.
34270         * lib/parse-datetime.y (parse_datetime):
34271         * tests/test-fchdir.c (main):
34272         * tests/test-snprintf-posix.h (test_function):
34273         * tests/test-snprintf.c (main):
34274         * tests/test-vasnprintf-posix.c (test_function):
34275         * tests/test-vasnprintf.c (test_function):
34276         * tests/test-vsnprintf.c (main):
34277         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
34278         Rewrite '"str" + E' to '&"str"[E]'.
34280 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34282         argmatch: port to C++
34283         * lib/argmatch.h [__cplusplus]: Add extern "C".
34285         argp: typo fix
34286         * lib/argp-help.c: Typo in comment.
34288 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
34290         manywarnings: update for GCC 4.8.0
34291         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
34292         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
34293         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
34294         -Wmissing-noreturn, as they are duplicates of other warnings.
34295         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
34296         was documented to be flaky in earlier versions of GCC.
34298         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
34299         * tests/test-spawn.c (main):
34300         * tests/test-sys_socket.c (main):
34301         * tests/test-sys_wait.c (main):
34302         Don't have a switch value that isn't covered by a case.
34304         getaddrinfo-tests: port --enable-gcc-warnings to clang
34305         * tests/test-getaddrinfo.c (simple):
34306         Avoid casts from looser to stricter-aligned pointers.
34308         thread: port --enable-gcc-warnings to clang
34309         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
34310         Include <signal.h>, to pacify a warning about pthread_sigmask.
34312         stdio: use __REDIRECT for fwrite, fwrite_unlocked
34313         * lib/stdio.in.h (fwrite):
34314         When working around bug 11959, use __REDIRECT rather than '#define
34315         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
34316         fix the -Wunused-value issue with clang, and it works with GCC too.
34317         Problem with targeting reported by Eric Blake in
34318         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
34319         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
34320         debugging the fwrite issue.
34322         stdio: port --enable-gcc-warnings to clang
34323         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
34324         since the GCC workaround for fwrite does not pacify clang.
34326         sig2str: port --enable-gcc-warnings to clang
34327         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
34329         obstack: port --enable-gcc-warnings to clang
34330         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
34331         Avoid casts from looser to stricter-aligned pointers.
34333         memchr2: port --enable-gcc-warnings to clang
34334         * lib/memchr2.c (memchr2):
34335         Avoid casts from looser to stricter-aligned pointers.
34337         mbsstr: port --enable-gcc-warnings to clang
34338         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
34339         Avoid casts from looser to stricter-aligned pointers.
34341         malloca: port --enable-gcc-warnings to clang
34342         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
34343         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
34345         inttostr: port --enable-gcc-warnings to clang
34346         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
34348         warnings: port to clang
34349         Problem reported by Daniel P. Berrange via Eric Blake in
34350         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
34351         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
34352         (gl_WARN_ADD): Use it.
34354 2013-05-11  Jim Meyering  <meyering@fb.com>
34356         quotearg: do not read beyond end of buffer
34357         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
34358         end of an ARG for which no length was specified.  With an N-byte
34359         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
34360         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
34361         via coreutils' misc/sort-debug-keys.sh test and detected by running
34362         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
34363         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
34364         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
34365         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
34366         characters correctly."
34368 2013-05-11  Daiki Ueno  <ueno@gnu.org>
34370         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
34371         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
34372         compilation target is Mac OS X 10.6.
34373         Problem reported by parafin and Andoni Morales in
34374         <http://savannah.gnu.org/bugs/?37844> and
34375         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
34377 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34379         mkdir-p: remove assumptions about umask and mode
34380         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
34381         umask is 0, or that MODE is a subset of MODE_BITS.
34383 2013-05-10  Eric Blake  <eblake@redhat.com>
34385         maint.mk: catch more abuse of HAVE_DECL in syntax-check
34386         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
34388 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
34390         deps: require Automake >= 1.9.6 in generated Makefile fragments
34392         That is the same minimal version required in the DEPENDENCIES file.
34393         Moreover, the old code generated a requirement of Automake >= 1.5,
34394         and that is an insanely outdated version.
34396         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
34397         * tests/havelib/rpathlx/Makefile.am: Likewise.
34398         * tests/havelib/rpathly/Makefile.am: Likewise.
34399         * tests/havelib/rpathlyx/Makefile.am: Likewise.
34400         * tests/havelib/rpathlz/Makefile.am: Likewise.
34401         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
34402         * tests/havelib/rpathx/Makefile.am: Likewise.
34403         * tests/havelib/rpathy/Makefile.am: Likewise.
34404         * tests/havelib/rpathz/Makefile.am: Likewise.
34406 2013-05-08  Eric Blake  <eblake@redhat.com>
34408         bootstrap: AC_INIT may have more than four parameters
34409         * build-aux/bootstrap (extract_package_name): Correctly extract
34410         non-empty tarname field.  Avoid range in regex.
34411         Based on a report by Sami Kerola <kerolasa@iki.fi>.
34413 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
34415         qacl: port to MS-Windows port of GNU Emacs
34416         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
34417         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
34418         port of GNU Emacs.  Problem reported by Eli Zaretskii in
34419         <http://bugs.gnu.org/14295#14>.
34421 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
34423         acl: include quote.h
34424         * lib/copy-acl.c: Include quote.h.
34425         * lib/set-acl.c: Likewise.
34427 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
34429         fchownat, renameat, unlinkat: update statat dependencies
34430         These modules use statat and lstatat, not fstatat; so depend on
34431         the statat module, which was split out recently from fstatat.
34432         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
34433         * modules/renameat: Likewise.  Also delete fstat.
34434         URL: http://bugs.gentoo.org/468790
34436 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
34438         Assume gnulib is checked out from Git, not CVS
34440         In fact, access to the gnulib repository through CVS has been
34441         disabled, or more precisely, got broken and was never restored; see:
34442         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
34444         Note that support for CVS is not removed completely and unthinkingly
34445         by this change: only support for CVS checkouts of gnulib itself is
34446         removed.  For example, the 'bootstrap' script still cater to .cvsingore
34447         files and CVS directories, for the benefit of those poor gnulib clients
34448         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
34450         * gnulib-tool: Simplify accordingly.
34451         * posix-modules: Likewise.
34452         * MODULES.html.sh: Likewise.
34453         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
34454         repository.
34455         * doc/gnulib-intro.texi: Likewise.
34456         * doc/gnulib-readme.texi: Likewise.
34457         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
34458         sample '.gitignore' file rather than a sample '.cvsignore'.
34459         * NEWS: Update.
34460         * m4/extensions.m4: While at it, remove a comment mistakenly referring
34461         to "CVS Autoconf" rather than "git Autoconf".
34463 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
34465         utimensat-tests, etc.: try to fix some races
34466         Problem reported by Bernhard Voelker in
34467         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
34468         I don't know whether this patch fixes that race condition, but it
34469         fixes *some* race conditions, so it should be a win.
34470         * modules/chown-tests (Depends-on):
34471         * modules/fchownat-tests (Depends-on):
34472         * modules/fdutimensat-tests (Depends-on):
34473         * modules/futimens-tests (Depends-on):
34474         * modules/lchown-tests (Depends-on):
34475         * modules/stat-time-tests (Depends-on):
34476         * modules/utimens-tests (Depends-on):
34477         * modules/utimensat-tests (Depends-on):
34478         Depend on nanosleep, not usleep.
34479         * modules/chown-tests (test_chown_LDADD):
34480         * modules/lchown-tests (test_lchown_LDADD):
34481         * modules/stat-time-tests (test_stat_time_LDADD):
34482         New macro.
34483         * modules/fchownat-tests (test_fchownat_LDADD):
34484         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
34485         * modules/futimens-tests (test_futimens_LDADD):
34486         * modules/utimens-tests (test_utimens_LDADD):
34487         * modules/utimensat-tests (test_utimensat_LDADD):
34488         Add $(LIB_NANOSLEEP).
34489         * modules/stat-time-tests (Files): Add tests/nap.h.
34490         * tests/nap.h: Include <limits.h>, for INT_MAX.
34491         (lt_mtime): Remove.
34492         (diff_timespec): New function.
34493         (get_stat): Rename from get_mtime.  All callers changed.
34494         (nap_works): Determine the needed delay by inspecting the
34495         file system's timestamp jumps; this should be more reliable.
34496         Look at both mtime and ctime, and take the maximum of the two jumps.
34497         (nap_works, guess_delay):
34498         Return a nanosecond count, not a microsecond count.
34499         All callers changed.
34500         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
34501         failure.
34502         (nap): Multiply the guess by 1.125, to accommodate the case where
34503         the file system's clock is a bit slower than nanosleep's clock.
34504         * tests/test-stat-time.c (BASE): New macro.
34505         Include nap.h.
34506         (nap): Remove; nap.h now defines this.  This removes a duplicate
34507         implementation of 'nap'.
34509         utimens, utimensat: work around Solaris UTIME_OMIT bug
34510         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
34511         Linux kernel 2.6.32 does.  Work around it in the same way.
34512         * doc/posix-functions/futimens.texi (futimens):
34513         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
34514         * lib/utimens.c (fdutimens, lutimens):
34515         * lib/utimensat.c (rpl_utimensat): Work around the bug.
34517         gettext: now it's your responsibility to add -I$(top_builddir)/intl
34518         Formerly, it was your responsibility to do this for all Makefile.ams
34519         other than Gnulib's.  Now it's your responsibility to do it for
34520         Gnulib's Makefile.am, too.
34521         * NEWS: Document this.
34522         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
34524         acl: include errno.h to get errno
34525         Reported by Daiki Ueno in
34526         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
34527         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
34529 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
34531         tests: don't assume getdtablesize () <= 10000000
34532         * modules/cloexec-tests:
34533         * modules/dup2-tests:
34534         * modules/dup3-tests:
34535         * modules/nonblocking-tests:
34536         * modules/posix_spawn_file_actions_addclose-tests:
34537         * modules/posix_spawn_file_actions_adddup2-tests:
34538         * modules/posix_spawn_file_actions_addopen-tests:
34539         * modules/unistd-safer-tests:
34540         Depend on the getdtablesize module.
34541         * tests/test-cloexec.c:
34542         * tests/test-dup-safer.c:
34543         * tests/test-dup2.c:
34544         * tests/test-dup3.c:
34545         * tests/test-fcntl.c:
34546         * tests/test-nonblocking.c:
34547         * tests/test-posix_spawn_file_actions_addclose.c:
34548         * tests/test-posix_spawn_file_actions_adddup2.c:
34549         * tests/test-posix_spawn_file_actions_addopen.c:
34550         Don't assume getdtablesize () <= 10000000.
34552 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
34554         extern-inline: work around bug in Sun c99
34555         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34556         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
34558 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
34560         qacl: new module, broken out from the acl module
34561         This is for GNU Emacs, which wants the acl functions but does
34562         not want 'error' invoked when they fail.
34563         * lib/acl-internal.h: Do not include error.h, quote.h.
34564         (ENOSYS, ENOTSUP): Remove; no longer needed.
34565         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
34566         * lib/acl.h: Include <stdbool.h>.
34567         (acl_errno_valid): New function.
34568         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
34569         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
34570         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
34571         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
34572         (ACL_INTERNAL_INLINE): Remove; no longer needed.
34573         * lib/file-has-acl.c (file_has_acl):
34574         * lib/qcopy-acl.c (qcopy_acl):
34575         * lib/qset-acl.c (qset_acl):
34576         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
34577         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
34578         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
34579         lib/file-has-acl.c, m4/acl.m4 to qacl module.
34580         Add lib/set-acl.c.
34581         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
34582         Add qacl.
34583         (configure.ac): Move gl_FUNC_ACL to qacl module.
34584         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
34585         Rename set-mode-acl.c to set-acl.c.
34586         * lib/acl-errno-valid.c: New file.
34587         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
34588         copy_acl function remains in copy-acl.c.
34589         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
34590         (_): Remove; not needed.
34591         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
34592         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
34593         * modules/qacl: New file, moved from the old modules/acl.
34594         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
34595         Remove set-mode-acl.c, copy-acl.c.
34596         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
34598         alignof, intprops, malloca: port better to IBM's C compiler
34599         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
34600         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
34601         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
34603 2013-04-25  Daiki Ueno  <ueno@gnu.org>
34605         wctype-h: fix gettext link error on mingw
34606         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
34607         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
34608         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
34609         rpl_towupper and rpl_towupper.
34611 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
34613         regex-tests, regex: allow glibc re_search behavior
34614         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
34615         re_search input data to make the multi-character collating element
34616         in it clearly visible, and treat re_search return code 0 as valid.
34617         * m4/regex.m4 (gl_REGEX): Likewise.
34619 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34621         stdalign: doc fix
34622         * doc/posix-headers/stdalign.texi (stdalign.h):
34623         Gnulib doesn't support '_Alignof expr'.
34625 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34627         stdalign: port to stricter ISO C11
34628         ISO C11 says that _Alignof's operand must be a parenthesized type.
34629         Problem reported by Eli Zaretskii in
34630         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
34631         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
34632         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
34634 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
34636         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
34637         Problem reported by Marco Atzeri in
34638         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
34639         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
34640         Simply delegate to the system <sys/select.h> in this case too.
34641         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
34642         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
34643         be needed on Solaris either.
34644         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
34645         Simply delegate to the system <sys/time.h> in this case.
34647 2013-03-19  Karl Berry  <karl@gnu.org>
34649         * build-aux/gnupload: check for erroneous (with gnupload) use of
34650         ftp-upload.gnu.org, tweak help.
34652 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34654         copy-file, rpmatch: fix problems found by cppcheck
34655         Reported by Arno Onken in
34656         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
34657         * lib/rpmatch.c (try): Fix memory leak.
34658         * lib/copy-file.c: Include "ignore-value.h".
34659         (qcopy_file_preserving): Ignore chown value.
34660         * modules/copy-file (Depends-on): Add ignore-value.
34662 2013-01-27  Jim Meyering  <jim@meyering.net>
34664         prefix-gnulib-mk: give better diagnostics
34665         * build-aux/prefix-gnulib-mk: Don't just "die".
34666         Give better diagnostics upon failure.
34668 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
34670         putenv: port to Solaris 10
34671         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
34672         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
34673         is not what is wanted here.
34674         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
34675         declaration, not for its existence.
34677 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
34679         mktime: fix configure typo
34680         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
34682 2013-03-12  Eric Blake  <eblake@redhat.com>
34684         regex-tests: skip UTF-8 test on mingw
34685         * modules/regex-tests (Depends-on): Add localcharset.
34686         * tests/test-regex.c (main): Use it to skip test on mingw.
34688 2013-03-11  Eric Blake  <eblake@redhat.com>
34690         tests: make it easier to bypass alarm time in debugger
34691         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
34692         * tests/test-memmem.c (main): Likewise.
34693         * tests/test-passfd.c (main): Likewise.
34694         * tests/test-ptsname.c (main): Likewise.
34695         * tests/test-ptsname_r.c (main): Likewise.
34696         * tests/test-strcasestr.c (main): Likewise.
34697         * tests/test-strstr.c (main): Likewise.
34699         regex: port to mingw's recent addition of undeclared alarm
34700         * doc/posix-functions/alarm.texi (alarm): Document that alarm
34701         exists but still doesn't work in newer mingw.
34702         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
34703         not existence.  Ensure SIGALRM is not trapped.
34704         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
34705         * m4/regex.m4 (gl_REGEX): Likewise.
34706         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
34707         * tests/test-regex.c (main): Use correct probe for alarm.
34709         putenv: avoid compilation warning on mingw
34710         * lib/putenv.c (_unsetenv): Protect variable declaration.
34711         (putenv): Fix indentation.
34713 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
34715         unistd: don't prevent Tru64 Unix from using gnulib strtod.
34716         * lib/unistd.in.h: be careful not to include un-needed system
34717         stdlib.h from here, because that prevents gnulib stdlib.h from
34718         defining rpl_strtod correctly.
34720 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
34722         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
34723         changesets, but for the 'precision 0' test.
34724         * tests/test-vasprintf-posix.c (test_function): Don't insist on
34725         round-to-even, since POSIX says rounding is implementation-defined
34726         and OS X 10.8.2 rounds 1.51 to 1 here.
34728         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
34729         changeset.
34730         * tests/test-vasprintf-posix.c (test_function): Don't insist on
34731         round-to-even, since POSIX says rounding is implementation-defined
34732         and OS X 10.8.2 rounds 1.5 to 1 here.
34734 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
34736         vasnprintf-posix-tests: allow rounding 1.5 to 1
34737         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
34738         round-to-even, since POSIX says rounding is implementation-defined
34739         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
34740         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
34742         bootstrap: port to FreeBSD
34743         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
34744         that treat '--' differently.  Reported by Mats Erik Andersson in
34745         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
34747 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
34749         regex: rename remaining __attribute calls to __attribute__.
34750         2012-02-25 changed definition of __attribute, but left some uses
34751         unchanged, preventing compilation of regex module on most non-gcc
34752         environments.
34753         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
34754         (lookup_collation_sequence_value, build_range_exp)
34755         (build_collating_symbol): Set attributes with newly renamed
34756         __attribute__ decorator.
34757         * lib/regex_internal.c (re_string_peek_byte_case)
34758         (re_node_set_compare, re_node_set_contains): Likewise.
34759         * lib/regexec.c (acquire_init_state_context): Likewise.
34761 2013-03-06  Bruno Haible  <bruno@clisp.org>
34763         execute: Revert last change, but use a different condition.
34764         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
34765         on Windows.
34767 2013-03-05  Eric Blake  <eblake@redhat.com>
34769         execute: drop dead code
34770         * lib/execute.c (nonintr_close, nonintr_open): Delete.
34772 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
34774         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
34775         * m4/non-recursive-gnulib-prefix-hack.m4
34776         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
34777         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
34778         <http://bugs.gnu.org/10305#237>.
34780 2013-03-04  Eric Blake  <eblake@redhat.com>
34782         test-getsockopt: avoid compiler warning
34783         * tests/test-getsockopt.c (includes): Ensure close is declared.
34785 2013-03-02  Bruno Haible  <bruno@clisp.org>
34787         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
34788         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
34790 2013-03-02  Bruno Haible  <bruno@clisp.org>
34792         gettext: Update to version 0.18.2.
34793         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
34794         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
34795                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
34797 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
34799         regex: merge patches from libc
34801         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
34802         * lib/regex_internal.h (__attribute__): Rename from __attribute.
34803         All uses changed.
34804         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
34805         (re_string_wchar_at, re_string_elem_size_at):
34806         Mark function as possibly unused.
34808         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
34809         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
34810         elements compare against the byte sequence of it, not its name.
34812 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
34814         putenv: port better to native Windows
34815         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
34816         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
34817         (_unsetenv): Use _putenv if available.
34818         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
34819         a bit less likely to cause damage.
34820         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
34821         Fix the wrong value with SetEnvironmentVariable.
34822         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
34823         code better.
34825 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34827         regex: ignore old-style-definition warnings
34828         * lib/regex.c: Add pragma to ignore these warnings.
34829         Problem reported for GNU tar by Pavel Raiskup.
34831 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
34833         getcwd: support coreutils better
34834         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
34835         but this might not be correct in coreutils, which disables
34836         the raw decl checks.  Problem reported by Nagendra in
34837         <http://bugs.gnu.org/10305#192>.
34838         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
34839         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
34840         Test the getcwd function, not any macro, since getcwd.c wants the
34841         function.
34842         * m4/getcwd.m4 (gl_FUNC_GETCWD):
34843         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
34844         compile, as might happen if there's a macro but no function.
34846         strtod: support coreutils better
34847         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
34848         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
34849         disables the raw decl checks.  This assumes there is an underlying
34850         strtod, but that's a safe assumption these days.
34851         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
34853         mountlist: port to HP NonStop
34854         Reported by Joachim Schmitz in
34855         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
34856         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
34857         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
34859 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
34861         extern-inline: avoid compilation error with HP-UX cc
34862         Reported by Richard Lloyd in
34863         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
34864         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34865         Suppress extern inline with HP-UX cc.  This should be safe,
34866         though it may hurt performance.  Perhaps someone with some HP-UX
34867         experience can come up with a higher-performance fix.
34869 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
34871         putenv: fix heap corruption with mixed putenv/_putenv
34872         Problem reported by Michael Goffioul in
34873         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
34874         * lib/putenv.c (putenv) [HAVE__PUTENV]:
34875         Rely on _putenv to allocate the new environment.
34876         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
34877         * modules/putenv (configure.ac): Use it.
34879 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
34881         unsetenv etc.: port to Solaris 11 + GNU Emacs
34882         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
34883         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
34884         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
34885         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
34886         idea but is too painful to fix right now), and without this gnulib
34887         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
34888         compiling unsetenv.c on Solaris 11.  Fix the problem for
34889         unsetenv.c, and fix other similar occurrences.
34891 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
34893         secure_getenv: fix C++ declaration typo
34894         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
34895         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
34896         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
34898 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
34900         careadlinkat: stop exporting careadlinkatcwd
34901         Only Emacs used it directly, and Emacs no longer needs it.
34902         * NEWS: Document this simplification.
34903         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
34904         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
34905         for readlink.
34906         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
34907         Don't include stdlib.h; no longer needed.
34908         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
34909         * lib/relocwrapper.c: Adjust comment to match new dependencies.
34910         * modules/areadlink (Depends-on): Add readlink.
34911         (Maintainer): Add self.
34912         * modules/careadlinkat (Depends-on): Remove readlink.
34914         extensions: port better to HP-UX
34915         This is merged from git Autoconf.
34916         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
34917         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
34918         so that it's compatible with the value used when compiling.
34920         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
34921         Problem reported by Mats Erik Andersson in
34922         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
34923         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
34924         openpty function exists, not merely when we intend to replace it.
34925         This corrects the 2013-01-31 patch, which mistakenly defined
34926         HAVE_OPENPTY even on hosts that lacked it.
34928 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34930         secure_getenv: fix include typo
34931         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
34933         secure_getenv: port better to FreeBSD and Solaris
34934         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
34935         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
34936         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
34937         This works better on BSDish platforms.
34938         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
34939         Test for issetugid if __secure_getenv is missing.
34941 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
34943         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
34944         Some of these changes are merged in from git Autoconf.
34945         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
34946         When deciding whether to define _XOPEN_SOURCE, inspect the
34947         preprocessor macro __hpux instead of the more-heavyweight
34948         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
34949         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
34950         as the key for __EXTENSIONS__.
34952         unistd: avoid namespace pollution on non-glibc systems
34953         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
34954         This avoids namespace pollution on non-glibc systems, by causing
34955         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
34956         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
34957         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
34959 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
34961         tmpdir: use secure_getenv
34962         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
34963         Define to secure_getenv, not getenv.
34964         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
34965         as that's now secure_getenv's job.
34966         * modules/tmpdir (Depends-on): Add secure_getenv.
34968         tempname: use secure_getenv
34969         * lib/tempname.c (__secure_getenv) [!_LIBC]:
34970         Define to secure_getenv, not getenv.
34971         * modules/tempname (Depends-on):
34972         Add secure_getenv.
34974         secure_getenv: new module
34975         * MODULES.html.sh (Extra functions based on ANSI C 89):
34976         Add secure_getenv.
34977         * doc/glibc-functions/secure_getenv.texi: New file.
34978         * doc/gnulib.texi: Include it.
34979         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
34980         New files.
34981         * lib/stdlib.in.h (secure_getenv): New decl.
34982         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
34983         * modules/stdlib (stdlib.h):
34984         Add secure_getenv checks.
34986 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
34988         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
34989         Reported for OS X 10.8.2 by Assaf Gordon in
34990         <http://bugs.gnu.org/13516>.
34991         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
34992         !HAVE_OPENAT && !HAVE_FDOPENDIR.
34993         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
34994         so that they can be kept in sync more easily.  Avoid PATH_MAX
34995         test on the Hurd.  Sync from test-getcwd.c for errno tests after
34996         mkdir or chdir failure.
34997         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
34998         lib/getcwd.c.
34999         (test_abort_bug): Do not test for the deep directory bug unless we
35000         have openat support.  Avoid PATH_MAX test on the Hurd.
35002         regex-tests, regex: fix bug: memset undeclared
35003         * tests/test-regex.c: Don't include regex.h twice.  Include
35004         string.h, to declare memset.  Christensen's report also mentioned
35005         this issue.
35006         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
35007         test-regex.c, to avoid future problems like this.  Remove
35008         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
35009         twice.
35011         regex-tests: fix link errors on older Solaris
35012         These need to link with @LIBINTL@ to get libintl_gettext.
35013         Problem reported by Tom G. Christensen in
35014         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
35015         * modules/regex-tests (test_regex_LDADD): New macro.
35017 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
35019         regex-tests: new module
35020         * modules/regex-tests, tests/test-regex.c: New files.
35022         regex: fix off-by-one error in configure test
35023         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
35025 2013-01-31  Eric Blake  <eblake@redhat.com>
35027         regex: avoid infinite configure test
35028         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
35030 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
35032         openpty: fix bug where HAVE_OPENPTY wasn't defined
35033         See the thread starting at:
35034         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
35035         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
35036         openpty function exists, not merely when we intend to replace it.
35038 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
35040         sys_time: port to Solaris 2.6
35041         There is a circularity problem on Solaris 2.6, where <time.h> includes
35042         <sys/time.h> for struct timespec.  The include nesting is gnulib
35043         <time.h>, system <time.h>, gnulib <sys/time.h>, system
35044         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
35045         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
35046         <sys/siginfo.h>; the last, innermost file needs struct
35047         timestruc_t, which is defined in <sys/time.h>, which has not been
35048         fully parsed.  Problem reported by Tom G. Christensen in
35049         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
35050         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
35051         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
35052         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
35053         uses split double-inclusion guards.
35055 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35057         regex: test for buffer overrun
35058         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
35059         for the just-fixed regex bug.
35061 2013-01-29  Andreas Schwab  <schwab@suse.de>
35063         regex: fix buffer overrun in regexp matcher [BZ #15078]
35064         * lib/regexec.c (extend_buffers): Add parameter min_len.
35065         (check_matching): Pass minimum needed length.
35066         (clean_state_log_if_needed): Likewise.
35067         (get_subexp): Likewise.
35069 2013-01-28  Pádraig Brady  <P@draigBrady.com>
35071         mountlist: don't consider "devtmpfs" as dummy
35072         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
35073         as there is storage associcated with it.
35075 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
35077         futimens-tests, utimens-tests: Depend on gettext.
35078         This works around a problem introduced in my 2013-01-12 patch,
35079         which added @LIBINTL@ to these modules.
35080         * modules/futimens-tests (Depends-on):
35081         * modules/utimens-tests (Depends-on): Add gettext.
35083 2013-01-26  Eric Blake  <eblake@redhat.com>
35085         test-getpeername: fix typo
35086         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
35088 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
35090         bootstrap: remove the need for a sorted .gitignore file
35091         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
35092         rename to insert_if_absent(), so that we don't need or generate
35093         a sorted .gitignore file.  We do require a .gitignore with no
35094         existing duplicate entries and enforce that.
35095         (sort_patterns): Remove this function as we now use the simpler
35096         technigue of inserting blacklist entries at the top of the file,
35097         assuming gnulib won't be inserting !whitelist entries.
35099 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35101         readlinkat: don't depend on gl_FUNC_OPENAT
35102         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
35103         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
35104         renameat.m4, symlinkat.m4; but one thing at a time.
35106         statat: new module, split out from fstatat
35107         GNU Emacs needs the POSIX-specified fstatat, but not the
35108         gnulib-specified statat and lstat.  Split the latter two into a
35109         new module 'statat'.
35110         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
35111         * lib/openat.h, lib/statat.c (STATAT_INLINE):
35112         Rename from FSTATAT_INLINE. All uses changed.
35113         * modules/fstatat (Files): Remove lib/statat.c.
35114         (gl_MODULE_INDICATOR([fstatat])): Remove.
35115         (lib_SOURCES): Remove.
35116         (Maintainer): Add self.
35117         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
35118         * tests/test-fstatat.c (BASE): Don't define if already defined.
35119         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
35121 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
35123         tests: don't assume fd 99 is closed
35124         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
35125         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
35126         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
35127         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
35128         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
35129         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
35130         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
35131         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
35132         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
35133         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
35134         * tests/test-fwrite.c, tests/test-getpeername.c:
35135         * tests/test-getsockname.c, tests/test-getsockopt.c:
35136         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
35137         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
35138         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
35139         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
35140         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
35141         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
35142         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
35143         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
35144         * tests/test-unlinkat.c, tests/test-unlockpt.c:
35145         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
35146         Close file descriptor 99, instead of assuming it's already closed.
35148 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
35150         stpncpy: port to OS X 10.8
35151         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
35152         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
35154 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
35156         unistd: port to recent mingw
35157         * lib/unistd.in.h: Remove special invocation convention for mingw,
35158         which breaks for the latest mingw version.  See John W. Eaton in
35159         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
35161         largefile: port better to Mac OS X 10.5
35162         This patch is backported from Autoconf git.
35163         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
35164         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
35165         with ino_t size being different for configuration time versus
35166         build/run time.  Problem reported by PHO in
35167         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
35169 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35171         doc: clarify -Werror
35172         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
35173         clarify that it's intended for developers, not for ordinary builds,
35174         and mention --enable-gcc-warnings as one possible use.
35176 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
35178         stdint: fix build with Android's Bionic fox x86
35179         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
35180         was already included as _SSIZE_T_DEFINED_ might also be defined
35181         in include/machine/_types.h, which is included by stdio.h
35183 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
35185         net_if-tests: port to Solaris 7 + GCC 3.4.6
35186         Problem reported by Tom G. Christensen in
35187         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
35188         * tests/test-net_if.c (ni): Move to next the code that uses it,
35189         so that it's declared only if needed.
35191 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
35193         net_if-tests: port to older Solaris
35194         Problem reported by Tom G. Christensen in
35195         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35196         * modules/net_if-tests (NET_IF_LIB): New substitution.
35197         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
35198         (HAVE_IF_NAMEINDEX): New C macro.
35199         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
35201         system-quote-tests: port to older Solaris
35202         Problem reported by Tom G. Christensen in
35203         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35204         * tests/test-system-quote-child.c (fopen, fread): Undef.
35206         c-xvasprintf etc.: fix link errors on older Solaris
35207         These need to link with @LIBINTL@ to get libintl_gettext.
35208         Problem reported by Tom G. Christensen in
35209         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35210         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
35211         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
35212         * modules/futimens-tests (test_futimens_LDADD):
35213         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
35215 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
35217         locale: port to Solaris 2.6 and 7 + GNU gettext
35218         * lib/locale.in.h: Just include_next <locale.h> when
35219         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
35220         when combining the localename module with GNU gettext 0.18.2.
35221         Problem reported by Tom G. Christensen in
35222         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
35224 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35226         stdlib: port to Solaris 2.6
35227         Also, the code worked on Solaris 7 through 9 only by accident.
35228         Problem reported by Tom G. Christensen in
35229         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
35230         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
35231         simply include the system stdlib.h.
35232         * lib/getopt.in.h (__need_system_stdlib_h):
35233         * lib/pthread.in.h (__need_system_stdlib_h):
35234         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
35235         Define when including <stdlib.h>, to avoid problems at least for
35236         the pthread case on Solaris 2.6 and 7.  These .h files can get by
35237         with the system stdlib.h.
35239 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
35241         doc: update main copyright year
35242         * doc/gnulib.texi: Update copyright date.
35244         doc: improve ISO 8601 discussion
35245         * doc/parse-datetime.texi (Combined date and time of day items):
35246         Specify more carefully what formats are supported and what is
35247         done with excess precision.
35249 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
35251         doc: avoid small caps
35252         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
35253         they're more trouble than they're worth.  Suggested by Karl Berry
35254         in <http://bugs.gnu.org/13360>.
35256         regex: conform to strict C
35257         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
35258         From Aharon Robbins.
35260         gnulib-tool: fix incompatibility with autopoint 0.18.2
35261         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
35262         Problem reported by Tom G. Christensen in
35263         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
35265 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
35267         fprintftime: bring back and reword fwrite comment
35268         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
35270         stdio: remove now-unnecessary stdio.c
35271         Since stdio.in.h no longer uses inline functions, we no longer
35272         need to compile the extern versions.
35273         * lib/stdio.c: Remove.
35274         * modules/stdio (Files): Remove lib/stdio.c.
35275         (lib_SOURCES): Remove.
35277         unicodeio: depend on stdio, not ignore-value
35278         * lib/unicodeio.c: Do not include ignore-value.h.
35279         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
35280         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
35282         fprintftime: depend on stdio, not ignore-value
35283         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
35284         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
35285         since the stdio module arranges to silence that warning now.
35286         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
35288 2012-10-04  Simon Josefsson  <simon@josefsson.org>
35290         stdint-tests: Fix expanded-before-required-warning.
35291         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
35293 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
35295         fwrite: silence __wur only for older glibc versions
35296         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
35297         This will help us remove this workaround some time in the far future.
35299 2013-01-03  Eric Blake  <eblake@redhat.com>
35301         fwrite: silence __wur without using inline
35302         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
35303         just gcc, and in a way that avoids inline issues.
35304         * modules/stdio (Depends-on): Drop extern-inline.
35306 2013-01-03  Jim Meyering  <jim@meyering.net>
35308         update-copyright: avoid copyright notice date corruption
35309         Given a sequence of copyright year numbers in which the final
35310         one was a two-digit number that happened to be a substring of
35311         a preceding four-digit year number, we would mistakenly update
35312         the substring (from two- to four-digit) rather than the two-digit
35313         number at the end, which, combined with the addition of the current
35314         4-digit year number would yield two 5-digit year numbers, e.g.,
35315         here, it would convert the first "99" to "1999, 2013" rather than
35316         the final one:
35317           1991, 99
35318           11999, 20131, 1999
35319         * build-aux/update-copyright: Tighten a regexp.
35320         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
35321         Reported by Joseph Myers in
35322         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
35324 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
35326         regex: omit needless signed-pointer casts
35327         * lib/regcomp.c (build_charclass, build_charclass_op):
35328         Use char *, not unsigned char *, for class name and extra.
35329         The char values are always nonnegative so there's no need to
35330         insist on unsigned char * here, and using char * removes the need
35331         for casts.  Reported by Aharon Robbins in
35332         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35334         regex: support Gawk, which never uses alloca
35335         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
35336         Do not include in this case.  Gawk doesn't supply a substitute
35337         alloca.h and doesn't need one.
35339         regex: port __libc_lock_define usage to C89
35340         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
35341         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
35342         does not conform to C89, as it has an empty macro argument.
35343         Reported by Aharon Robbins in
35344         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35346 2013-01-01  Eric Blake  <eblake@redhat.com>
35348         maint: update all copyright year number ranges
35349         Run "make update-copyright".
35351         version-etc: bump copyright year reported in --version
35352         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
35354 2012-12-31  Eric Blake  <eblake@redhat.com>
35356         sigprocmask-tests: skip test if pid is unexpectedly large
35357         * tests/test-sigprocmask.c (main): Add range check.
35359         git-version-gen: avoid test -z portability glitch
35360         * build-aux/git-version-gen: Prefer portable test spelling, since
35361         git-version-gen is run on more than just developer machines.
35363 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
35365         git-version-gen: add --fallback option to use if git is not present
35366         * build-aux/git-version-gen: Add support for the new option --fallback,
35367         which comes into play when there is no $tarball_version_file and
35368         git is not working.
35369         (scriptversion): Update.
35371         maint.mk: handle missing git with more grace
35372         * top/maint.mk (no-submodule-changes, public-submodule-commit):
35373         Quietly proceed if git is not present.
35375 2012-12-31  Eric Blake  <eblake@redhat.com>
35377         dup2: work around cygwin bug
35378         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
35379         * lib/dup2.c (rpl_dup2): Work around it.
35380         * doc/posix-functions/dup2.texi (dup2): Document it.
35382 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
35384         regex: remove unnecessary dependency on localcharset.h
35385         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
35386         hasn't been needed for years.
35387         * modules/regex (Depends-on): Remove localcharset.
35389         regex: revert single-byte change
35390         * lib/regexec.c (check_node_accept_bytes): Revert previous change
35391         to this function.  This was alredy fixed in a different way, at
35392         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
35393         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
35394         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
35396         regex: simplify based on Gawk version
35397         * lib/regex_internal.c (re_dfa_add_node): Simplify.
35398         Reported by Aharon Robbins in
35399         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35401 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35403         regex: check that pattern char is single-byte
35404         Reported by Aharon Robbins in
35405         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35406         * lib/regexec.c (check_node_accept_bytes):
35407         Return 0 if the pattern string has a multibyte character here.
35409         regex: implement rational ranges
35410         Reported by Aharon Robbins in
35411         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35412         * lib/regcomp.c (build_range_exp) [!_LIBC]:
35413         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
35414         Implement rational ranges.
35416         regex: avoid redefining __wctype
35417         Reported by Aharon Robbins in
35418         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35419         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
35420         #undef before defining.
35422         regex: port to hosts where malloc (0) == NULL
35423         Reported by Aharon Robbins in
35424         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35425         * lib/regex_internal.c (re_node_set_alloc):
35426         Don't assume that malloc (0) yields nonnull.
35427         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
35428         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
35429         * modules/regex (Files): Add m4/eealloc.m4.
35431         regex: port to C89
35432         Reported by Aharon Robbins in
35433         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35434         * lib/regcomp.c (init_word_char): Declaration before statement.
35436         regex: merge glibc changes
35437         Also, copy the license wording from glibc.  This simplifies
35438         merging changes.  gnulib-tool will change the wording to GPL as
35439         appropriate, when importing it to other packages.  The only
35440         glibc change made since the last merge, which needs merging, is:
35441         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
35442         * lib/regex_internal.h (gettext): Remove use of INTUSE.
35444         * users.txt: Add Emacs.
35446         doc: omit mention of version when not needed
35447         * doc/gnulib-intro.texi (Portability and Application Code):
35448         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
35449         Don't mention particular dates or versions when not necessary, so
35450         that the documentation won't go out of date so quickly.
35452         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
35454 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
35456         bootstrap: pass --force to autoreconf.
35457         * build-aux/bootstrap (AUTORECONFFLAGS): New.
35458         Add "--force" so that Automake's ylwrap and other such tools
35459         be updated at each bootstrap invocation.
35460         Use it.
35462 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
35464         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
35465         The earlier patch forgot to update one of the #if conditions, causing
35466         a problem on Debian testing i386 reported by Mats Erik Andersson
35467         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
35468         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
35469         (__argp_fmtstream_puts, argp_fmtstream_puts)
35470         (__argp_fmtstream_write, argp_fmtstream_write)
35471         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
35473         * doc/gnulib-readme.texi: Minor fixups.
35474         (Portability guidelines): Modernize URLs.  Remove some repetition.
35475         (Indent with spaces not TABs): Reword to avoid too-long lines.
35476         Remove some '@ifset standalone' stuff that isn't used.
35478         * doc/gnulib-readme.texi (Portability guidelines):
35479         ctype.h, not ctime.h.
35481         Correct name of POSIX.1-2001.
35482         * doc/posix-functions/fgetc.texi (fgetc):
35483         * doc/posix-functions/fgets.texi (fgets):
35484         * doc/posix-functions/fread.texi (fread):
35485         * doc/posix-functions/fscanf.texi (fscanf):
35486         * doc/posix-functions/getc.texi (getc):
35487         * doc/posix-functions/getchar.texi (getchar):
35488         * doc/posix-functions/scanf.texi (scanf):
35489         POSIX.1-2001, not POSIX-2001.
35491         doc: move README into manual
35492         * README: Move contents to new file doc/gnulib-readme.texi.
35493         Replace with a one-line summary.
35494         * doc/gnulib.texi (Brief Overview): New section,
35495         with old intro preface.  Include gnulib-readme.texi for contents.
35496         (Philosophy): Rename from "Introduction", since this
35497         section no longer introduces the rest.  Write a new preface.
35498         * doc/gnulib-readme.texi: New file, with the old contents of
35499         README texinfo-ized.  This way, the README info appears
35500         in the online and printed manual.
35502 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
35504         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
35505         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
35506         c_vasprintf() prototype.
35508 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
35510         c-vasprintf: Fix "empty declaration" warning reported by GCC.
35511         * lib/c-vasprintf.h: Remove stray semicolon.
35513 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
35515         gettext: avoid obsolete macro AM_PROG_MKDIR_P
35516         It is obsolete and is planned to be removed from Automake 1.14; see
35517         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
35518         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
35519         (installdirs-data, installdirs-data-yes):
35520         Use $(MKDIR_P), not $(mkdir_p).
35521         * m4/intl.m4 (AM_INTL_SUBDIR):
35522         * m4/po.m4 (AM_PO_SUBDIRS):
35523         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
35525 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
35527         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
35528         On this platform, we are not optimizing but we are using
35529         the substitute for extern inlines, so compile as if
35530         C99-style extern inline, or a substitute, is available.
35531         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
35532         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
35533         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
35534         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
35535         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
35536         Declare as ARGP_FS_EI, not as extern.
35537         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
35538         (__option_is_short, _option_is_end, __option_is_end)
35539         [!_LIBC && __USE_EXTERN_INLINES]:
35540         Declare as ARGP_EI, not as extern.
35542 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
35544         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
35545         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
35546         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
35547         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
35548         ...), as the latter is fatal with older Autoconfs.
35549         Problem reported and fix suggested by Eric Blake in thread starting at
35550         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
35552 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
35554         AC_PROG_MKDIR_P: don't workaround if not buggy
35555         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
35556         Define only for Autoconf versions before 2.62.
35557         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
35558         undocumented m4_PACKAGE_VERSION, for consistency with the
35559         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
35560         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
35561         was introduced in 2.62.
35563 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
35565         New 'c-*printf' modules for formatted output in C locale.
35567         New module 'c-vasnprintf'.
35568         * modules/c-vasnprintf: New file.
35569         * lib/c-vasnprintf.c: New file.
35570         * lib/c-vasnprintf.h: New file.
35572         New module 'c-snprintf'.
35573         * modules/c-snprintf: New file.
35574         * modules/c-snprintf-tests: New file.
35575         * lib/c-snprintf.c: New file.
35576         * lib/c-snprintf.h: New file.
35577         * tests/test-c-snprintf.c: New file.
35578         * tests/test-c-snprintf.sh: New file.
35580         New module 'c-vsnprintf'.
35581         * modules/c-vsnprintf: New file.
35582         * modules/c-vsnprintf-tests: New file.
35583         * lib/c-vsnprintf.c: New file.
35584         * lib/c-vsnprintf.h: New file.
35585         * tests/test-c-vsnprintf.c: New file.
35586         * tests/test-c-vsnprintf.sh: New file.
35588         New module 'c-vasprintf'.
35589         * modules/c-vasprintf: New file.
35590         * modules/c-vasprintf-tests: New file.
35591         * lib/c-asprintf.c: New file.
35592         * lib/c-vasprintf.c: New file.
35593         * lib/c-vasprintf.h: New file.
35594         * tests/test-c-vasprintf.c  +: New file.
35595         * tests/test-c-vasprintf.sh: New file.
35597         New module 'c-xvasprintf'.
35598         * modules/c-xvasprintf: New file.
35599         * modules/c-xvasprintf-tests: New file.
35600         * lib/c-xasprintf.c: New file.
35601         * lib/c-xvasprintf.c: New file.
35602         * lib/c-xvasprintf.h: New file.
35603         * tests/test-c-xvasprintf.c: New file.
35604         * tests/test-c-xvasprintf.sh: New file.
35606 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35608         argp: better 'inline'
35609         Use extern-inline module to declare extern inline functions.
35610         This avoids some bogus warning diagnostics.  Problem discovered
35611         when modifying GNU tar to use the manywarnings module.
35612         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
35613         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
35614         Define based on extern-inline.
35615         * modules/argp (Depends-on): Add extern-inline.
35617 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
35619         filemode, sys_stat: Handle MPX files a la AIX.
35620         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
35621         * lib/sys_stat.in.h (S_ISMPX): New macro.
35622         * tests/test-sys_stat.c: Add tests for MPX files.
35624 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35626         x-to-1: honor $PERL
35627         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
35628         a chance to use his preferred version of Perl.  This is typically
35629         required by Darwin users whose default /usr/bin/perl does not have all
35630         the libraries required by help2man, and who need to use their MacPorts
35631         installation of Perl instead.
35633 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
35635         gnu-web-doc-update: add all the new files, even in new directories
35636         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
35637         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
35638         Use it.
35639         (main): Don't use cvsutils to get the list of unknown files,
35640         just add all the existing files and directories.
35642 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
35644         gnu-web-doc-update: improve --help
35645         * build-aux/gnu-web-doc-update: Move comments into --help.
35647 2012-12-07  Eric Wong  <normalperson@yhbt.net>
35649         mountlist: recognize more "dummy" file systems
35650         * lib/mountlist.c (ME_DUMMY_0):
35651         Add these dummy FS names to the list:
35652         - "debugfs" virtual filesystem for kernel debugging
35653         - "devpts" PTY slave filesystem
35654         - "devtmpfs" device filesystem on top of tmpfs/ramfs
35655         - "fusectl" control filesystem for FUSE
35656         - "mqueue" enumerates POSIX message queues
35657         - "rpc_pipefs" kernel <-> userspace bridge for NFS
35658         - "sysfs" is for exporting kernel objects
35659         - "devfs" device filesystem for Linux 2.4 and FreeBSD
35661 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
35663         extern-inline: avoid incompatibility with Darwin Libc
35664         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
35665         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
35666         Problem reported by Akim Demaille in
35667         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
35669 2012-12-11  Simon Josefsson  <simon@josefsson.org>
35671         gnupload: Work with GnuPG using gpg-agent (for smartcards).
35672         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
35673         let it handle password prompting.
35675 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
35677         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
35678         * lib/canonicalize.c (canonicalize_filename_mode):
35679         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
35680         fetching the current directory.  Don't overrun the beginning of
35681         rpath if there's no slashes after the MS-Windows drive letter.
35683 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
35685         maint.mk: avoid extra forks
35686         * top/maint.mk (_cfg_mk): The GNU make manual documents that
35687         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
35688         So use that instead of "$(shell test -f FILE && echo FILE)".
35690 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
35692         vasnprintf: fix ASCII_ONLY typo
35693         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35694         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35695         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35696         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
35697         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
35699 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
35701         list, oset, xlist, xoset: fix extern inline issue with C99
35702         This was introduced by my recent changes for 'inline'.
35703         Problem reported for gettext by Daiki Ueno in
35704         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
35705         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
35706         (gl_list_nx_create, gl_list_size, gl_list_node_value)
35707         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
35708         (gl_list_previous_node, gl_list_get_at)
35709         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
35710         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
35711         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
35712         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
35713         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
35714         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
35715         (gl_list_iterator_free, gl_sortedlist_search)
35716         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
35717         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
35718         (gl_sortedlist_remove):
35719         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
35720         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
35721         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
35722         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
35723         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
35724         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
35725         (gl_list_add_at, gl_sortedlist_add):
35726         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
35727         Wrap these extern decls inside "#if 0", because they are implemented
35728         as inline functions, and extern inline is not what's wanted here.
35729         It would simplify these .h files to remove the extern decls entirely,
35730         although a downside would be less-clear separation between
35731         specification and implementation.
35733 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
35735         sys_stat: no 'static inline'
35736         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
35737         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
35739         extern-inline: no 'static inline'
35740         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35741         Do not require AC_C_INLINE.
35742         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
35743         'static inline', for older compilers.
35745         snippet/warn-on-use: no 'static inline'
35746         * build-aux/snippet/warn-on-use.h:
35747         Remove unnecessary 'inline' in comment.
35749         rbtree-list, rbtreehash-list: no 'static inline'
35750         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
35751         * lib/gl_anytree_list2.h (node_at):
35752         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
35753         (gl_oset_first, add_nodes_to_buckets):
35754         Now static, not static inline.
35756         regex: no 'static inline'
35757         * lib/regex_internal.c (calc_state_hash):
35758         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
35759         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
35760         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
35761         Now static, not static inline.
35762         (inline) [__GNUC__ < 3 && _LIBC]:
35763         Remove macro; no longer needed.
35765         xvasprintf: no 'static inline'
35766         * lib/xvasprintf.c (xstrcat):
35767         Now static, not static inline.
35768         * m4/xvasprintf.m4 (gl_XVASPRINTF):
35769         Do not require AC_C_INLINE.
35771         parse-datetime, parse-duration: no 'static inline'
35772         * lib/parse-datetime.y (to_uchar):
35773         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
35774         (scale_n_add):
35775         Now static, not static inline.
35776         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
35777         * modules/parse-duration (configure.ac):
35778         Do not require AC_C_INLINE.
35780         getaddrinfo: no 'static inline'
35781         * lib/getaddrinfo.c (validate_family):
35782         Now static, not static inline.
35783         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
35784         Do not require AC_C_INLINE.
35786         ftruncate, fts, lstat, openat, raise: no 'static inline'
35787         * lib/ftruncate.c (chsize_nothrow):
35788         * lib/fts.c (opendirat, diropen):
35789         * lib/lstat.c (orig_lstat):
35790         * lib/openat.c (orig_openat):
35791         * lib/raise.c (raise_nothrow):
35792         Now static, not static inline.
35793         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
35794         * m4/fts.m4 (gl_FUNC_FTS_CORE):
35795         * m4/lstat.m4 (gl_PREREQ_LSTAT):
35796         * m4/openat.m4 (gl_PREREQ_OPENAT):
35797         * m4/raise.m4 (gl_PREREQ_RAISE):
35798         Do not require AC_C_INLINE.
35800         fflush, stat: no 'static inline'
35801         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35802         (clear_ungetc_buffer, disable_seek_optimization)
35803         (restore_seek_optimization, update_fpos_cache):
35804         * lib/stat.c (orig_stat):
35805         Now static, not static inline.
35806         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
35807         (update_fpos_cache):
35808         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
35809         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
35810         * m4/stat.m4 (gl_PREREQ_STAT):
35811         Do not require AC_C_INLINE.
35813         error, filevercmp: no 'static inline'
35814         * lib/error.c (is_open, flush_stdout):
35815         * lib/filevercmp.c (order):
35816         Now static, not static inline.
35817         * m4/error.m4 (gl_PREREQ_ERROR):
35818         * modules/filevercmp (configure.ac):
35819         Do not require AC_C_INLINE.
35821         dup, execute, fatal-signal, etc.: no 'static inline'
35822         * lib/dup.c (dup_nothrow):
35823         * lib/execute.c (nonintr_close, nonintr_open):
35824         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
35825         * lib/fopen.c (orig_fopen):
35826         * lib/freadseek.c (freadptrinc):
35827         * lib/freopen.c (orig_freopen):
35828         * lib/fstat.c (orig_fstat, fstat_nothrow):
35829         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
35830         (get_rusage_as_via_iterator):
35831         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
35832         * lib/getdtablesize.c (_setmaxstdio_nothrow):
35833         * lib/isatty.c (_isatty_nothrow):
35834         * lib/open.c (orig_open):
35835         * lib/read.c (read_nothrow):
35836         * lib/sigprocmask.c (signal_nothrow):
35837         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
35838         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
35839         * lib/wait-process.c (unregister_slave_subprocess):
35840         * lib/write.c (write_nothrow):
35841         Now static, not static inline.
35842         * lib/spawn-pipe.c (nonintr_open): Define only if
35843         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
35844         * m4/dup.m4 (gl_PREREQ_DUP):
35845         * m4/execute.m4 (gl_EXECUTE):
35846         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
35847         * m4/fopen.m4 (gl_PREREQ_FOPEN):
35848         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
35849         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
35850         * m4/fstat.m4 (gl_PREREQ_FSTAT):
35851         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
35852         * m4/isatty.m4 (gl_PREREQ_ISATTY):
35853         * m4/open.m4 (gl_PREREQ_OPEN):
35854         * m4/read.m4 (gl_PREREQ_READ):
35855         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
35856         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
35857         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
35858         * m4/wait-process.m4 (gl_WAIT_PROCESS):
35859         * m4/write.m4 (gl_PREREQ_WRITE):
35860         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
35861         Do not require AC_C_INLINE.
35863         c-strtod, memcoll, readutmp: no 'static inline'
35864         * lib/c-strtod.c (c_locale):
35865         * lib/memcoll.c (strcoll_loop):
35866         * lib/readutmp.c (desirable_utmp_entry):
35867         Now static, not static inline.
35868         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
35869         * m4/memcoll.m4 (gl_MEMCOLL):
35870         * m4/readutmp.m4 (gl_READUTMP):
35871         Do not require AC_C_INLINE.
35873         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
35874         * lib/arctwo.c (to_uchar):
35875         * lib/md4.c (set_uint32):
35876         * lib/md5.c (set_uint32):
35877         * lib/sha1.c (set_uint32):
35878         * lib/sha256.c (set_uint32):
35879         * lib/sha512.c (set_uint64):
35880         Now static, not static inline.  This is a bit simpler, and doesn't
35881         affect performance with GCC and default optimization.
35882         * m4/arctwo.m4 (gl_ARCTWO):
35883         * m4/md4.m4 (gl_MD4):
35884         * m4/md5.m4 (gl_MD5):
35885         * m4/sha1.m4 (gl_SHA1):
35886         * m4/sha256.m4 (gl_SHA256):
35887         * m4/sha512.m4 (gl_SHA512):
35888         Do not require AC_C_INLINE.
35890         cond, lock, thread: better 'inline'
35891         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
35892         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
35893         New macros.  Use them instead of static inline, for header functions.
35894         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
35895         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
35896         * lib/glthread/lock.c (gl_waitqueue_init)
35897         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
35898         * lib/glthread/thread.c (get_current_thread_handle):
35899         Change 'static inline' to 'inline'.
35900         * lib/glthread/cond.h, lib/glthread/thread.h:
35901         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35902         * m4/cond.m4 (gl_COND):
35903         * m4/lock.m4 (gl_PREREQ_LOCK):
35904         * m4/thread.m4 (gl_THREAD):
35905         Do not require AC_C_INLINE.
35906         * modules/cond, modules/thread (Depends-on): Add extern-inline.
35908         chdir-long, cycle-check, savewd: better 'inline'
35909         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
35910         (find_non_slash):
35911         * lib/cycle-check.c (is_zero_or_power_of_two):
35912         * lib/savewd.c (savewd_delegating):
35913         Change 'static inline' to 'inline'.
35914         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
35915         Replace all remaining uses of 'static inline' with it.
35916         * lib/savewd.h:
35917         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35918         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
35919         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
35920         * m4/savewd.m4 (gl_SAVEWD):
35921         Do not require AC_C_INLINE.
35922         * modules/savewd (Depends-on): Add extern-inline.
35924         base32, base64: no need for 'inline'
35925         * lib/base32.c (to_uchar, get_8, decode_8):
35926         * lib/base64.c (to_uchar, get_4, decode_4):
35927         Change 'static inline' to 'inline'.
35928         * m4/base32.m4 (gl_PREREQ_BASE32):
35929         * m4/base64.m4 (gl_PREREQ_BASE64):
35930         Do not require AC_C_INLINE.
35932         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
35933         * lib/gl_array_oset.c (gl_array_nx_add_at):
35934         (gl_array_remove_at):
35935         * lib/gl_linkedhash_list.c (hash_resize_after_add)
35936         (add_to_bucket, remove_from_bucket):
35937         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
35938         Change 'static inline' to 'static', as it's simpler to omit
35939         'inline' unless there's a significant performance advantage.
35941         list, oset, xlist, xoset, xsublist: simplify via extern inline
35942         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
35943         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
35944         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
35945         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
35946         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
35947         New macro.  Replace all uses of 'static inline' with it.
35948         [HAVE_INLINE]: Implement functions as *_INLINE functions,
35949         instead of as macros FOO that are defined to static inline
35950         functions FOO_inline.
35951         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
35952         * lib/gl_xsublist.c:
35953         Reimplement from scratch, by defining the corresponding *_INLINE
35954         macro and including the corresponding .h file.  This is simpler.
35955         * modules/list, modules/oset, modules/xlist, modules/xoset:
35956         (Files): Remove m4/gl_list.m4.
35957         (configure.ac): Remove gl_LIST.
35958         * m4/gl_list.m4: Remove.
35959         * modules/list, modules/oset, modules/xlist, modules/xoset:
35960         * modules/xsublist:
35961         (Depends-on): Depend on extern-inline, not inline.
35963         xalloc: better 'inline'
35964         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
35965         New macro.  Replace all uses of 'static inline' with it.
35966         (static_inline): Remove.
35967         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
35968         Let 'extern inline' do the work automatically, instead of doing
35969         it by hand.
35970         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
35971         Remove.  All uses removed.
35972         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
35974         gethrxtime: better 'inline'
35975         * lib/xtime.c: New file.
35976         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
35977         * lib/xtime.h (XTIME_INCLUDE):
35978         New macros.  Replace all uses of 'static inline' with them.
35979         * lib/gethrxtime.c (gethrxtime): Define only if
35980         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
35981         this source file is now always compiled, because of the extern inline.
35982         * lib/gethrxtime.h, lib/xtime.h:
35983         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35984         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
35985         if gethrtime works, as they're not needed in that case.
35986         (gl_XTIME): Do not require AC_C_INLINE.
35987         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
35988         compiled now.  Move the check into gl_GETHRXTIME.
35989         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
35990         (Depends-on): Add extern-inline.
35991         (configure.ac): gethrxtime is always compiled now.
35992         (lib_SOURCES): Add gethrxtime.c.
35994         wctype-h: better 'inline'
35995         * lib/wctype-h.c: New file.
35996         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
35997         New macro.  Replace all uses of 'static inline' with it.
35998         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35999         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
36000         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
36001         (Depends-on): Add extern-inline.
36003         unistd: better 'inline'
36004         * lib/unistd.c: New file.
36005         * lib/unistd.in.h (_GL_UNISTD_INLINE):
36006         New macro.  Replace all uses of 'static inline' with it.
36007         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36008         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
36009         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
36010         (Depends-on): Add extern-inline.
36012         sys_socket: better 'inline'
36013         * lib/sys_socket.c: New file.
36014         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
36015         New macro.  Replace all uses of 'static inline' with it.
36016         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36017         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
36018         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
36019         (Depends-on): Add extern-inline.
36021         stdio: better 'inline'
36022         * lib/stdio.c: New file.
36023         * lib/stdio.in.h (_GL_STDIO_INLINE):
36024         New macro.  Replace all uses of 'static inline' with it.
36025         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36026         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
36027         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
36028         (Depends-on): Add extern-inline.
36030         sigaction: better 'inline'
36031         * lib/sig-handler.c: New file.
36032         * lib/sig-handler.h (SIG_HANDLER_INLINE):
36033         New macro.  Replace all uses of 'static inline' with it.
36034         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36035         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
36036         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
36037         (Depends-on): Add extern-inline.
36039         selinux-h: better 'inline'
36040         * lib/se-context.c, lib/se-selinux.c: New files.
36041         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
36042         * lib/se-context.in.h (SE_CONTEXT_INLINE):
36043         New macro.  Replace all uses of 'static inline' with it.
36044         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36045         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
36046         New macro.  Replace all uses of 'static inline' with it.
36047         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36048         * modules/selinux-h (Files, lib_SOURCES):
36049         Add lib/se-context.c, lib/se-selinux.c.
36050         (Depends-on): Add extern-inline.
36051         (configure.ac): Do not require AC_C_INLINE.
36053         pthread: better 'inline'
36054         * lib/pthread.c: New file.
36055         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
36056         New macro.  Replace all uses of 'static inline' with it.
36057         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36058         * m4/pthread.m4 (gl_PTHREAD_CHECK):
36059         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
36060         * modules/pthread (Files): Add lib/pthread.c.
36061         (Depends-on): Add extern-inline.
36063         math: better 'inline'
36064         * lib/math.c: New file.
36065         * lib/math.in.h (_GL_MATH_INLINE):
36066         New macro.  Replace all uses of 'static inline' with it.
36067         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36068         * m4/math_h.m4 (gl_MATH_H):
36069         Do not require AC_C_INLINE.
36070         * modules/math (Files, lib_SOURCES):
36071         Add lib/math.c.
36072         (Depends-on): Add extern-inline.
36074         count-one-bits: better 'inline'
36075         * lib/count-one-bits.c: New file.
36076         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
36077         New macro.  Replace all uses of 'static inline' with it.
36078         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36079         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
36080         Do not require AC_C_INLINE.
36081         * modules/count-one-bits (Files, lib_SOURCES):
36082         Add lib/count-one-bits.c.
36083         (Depends-on): Add extern-inline.
36085         count-leading-zeros: better 'inline'
36086         * lib/count-leading-zeros.c: New file.
36087         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
36088         New macro.  Replace all uses of 'static inline' with it.
36089         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36090         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
36091         Do not require AC_C_INLINE.
36092         * modules/count-leading-zeros (Files, lib_SOURCES):
36093         Add lib/count-leading-zeros.c.
36094         (Depends-on): Add extern-inline.
36096         bitrotate: better 'inline'
36097         * lib/bitrotate.c: New file.
36098         * lib/bitrotate.h (BITROTATE_INLINE):
36099         New macros.
36100         Replace all uses of 'static inline' with them.
36101         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36102         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
36103         (Depends-on): Add extern-inline.
36104         (configure.ac): Do not require AC_C_INLINE.
36106 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
36108         maint.mk: avoid gratuitous failure
36109         Reported by Stefano Lattarini in
36110         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
36111         * top/maint.mk (public-submodule-commit): Quote more safely.
36113 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
36115         canonicalize, canonicalize-lgpl: support MS-Windows file names
36116         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
36117         for test cases, which it'd be nice to add at some point.
36118         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
36119         * lib/canonicalize.c (canonicalize_filename_mode):
36120         * lib/canonicalize-lgpl.c (__realpath):
36121         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
36122         slash is at the beginning of the file name.  Use ISSLASH, instead
36123         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
36124         the first character with '/'.  Test for
36125         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
36126         with a drive letter.
36127         * lib/canonicalize.c (SLASHES): New macro.
36128         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
36130 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
36132         fts: introduce FTS_VERBATIM
36133         * lib/fts_.h (FTS_VERBATIM): New bit flag.
36134         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
36135         * lib/fts.c (fts_open): Honor it.
36137 2012-11-09  Pádraig Brady  <P@draigBrady.com>
36139         getlogin-tests: allow errno == ENXIO
36140         * tests/test-getlogin.c (main): Skip tests if getlogin fails
36141         with errno == ENXIO (No controlling tty).
36142         getlogin_r-tests: Likewise. Also allow errno == ENOENT
36143         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
36144         with errno == ENOENT.  This was reported to happen in various
36145         situations on GNU/Linux.
36147 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
36149         getlogin-tests: allow errno == ENOENT
36150         * tests/test-getlogin.c (main): Skip tests if getlogin fails
36151         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
36152         when running a test in an Emacs shell buffer.
36154 2012-11-08  Jim Meyering  <jim@meyering.net>
36156         tests/nap.h: avoid warning about unused variable
36157         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
36159         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
36160         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
36161         white space before each of the special-cased file names, to avoid
36162         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
36163         in http://bugs.gnu.org/12830.
36165 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
36167         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
36168         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
36169         fails with errno == EBADF when fd is opened with O_PATH.
36170         Reported by Jim Meyering in
36171         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
36172         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
36173         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
36175 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
36177         test-utimens: speed up by taking shorter naps
36178         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
36179         New functions.
36180         (nap): Use them, to do a better job of guessing the delay.
36181         On Fedora 17 with ext4 atop md atop hard disks, this made
36182         test-utimens run 10x faster, because the test napped for
36183         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
36184         <http://bugs.gnu.org/12820#11>.
36186 2012-11-07  Jim Meyering  <jim@meyering.net>
36188         mountlist.c: fix a compilation failure
36189         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
36190         I introduced while transforming commit v0.0-7683-g613bcb6
36192 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
36194         errno: port to LynxOS 178 2.2.2
36195         Problem reported by Joel Brobecker in
36196         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
36197         * doc/posix-headers/errno.texi (errno.h): Document this.
36198         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
36199         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
36200         Supply a string for EILSEQ.
36201         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
36203 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
36205         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
36206         Linux kernel 2.6.39 introduced O_PATH (see
36207         <http://lwn.net/Articles/433854/>) and this is a better fallback
36208         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
36209         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
36210         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
36211         * lib/fcntl.in.h (O_ACCMODE):
36212         * tests/test-fcntl-h.c (main):
36213         Do not reject O_ACCMODE merely because it has more than the
36214         minimal number of bits, as POSIX allows extensions here.
36216 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
36218         mountlist: do not classify a bind-mounted dir entry as "dummy"
36219         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
36220         the "none"-testing clause.
36221         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
36222         exception for bind-mounted directories.
36224 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
36226         quote: provide a means to escape strings with nul characters
36227         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
36228         (quote, quote_n): Rename formal arguments for consistency with
36229         quotearg.
36231 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36233         test-raise: don't assume 199 is an invalid signal
36234         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
36236         sh-quote-tests: port to Solaris 9
36237         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
36238         Problem reported by Dagobert Michelsen in
36239         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
36241 2012-10-28  Jim Meyering  <jim@meyering.net>
36243         maint.mk: rename a new configurable variable
36244         * top/maint.mk (_gl_translatable_string_re): Rename from
36245         translation-markers: _gl_ prefix to insulate from user Makefile code,
36246         and the _re suffix to inform that it's a regular expression.
36248 2012-10-26  Eric Blake  <eblake@redhat.com>
36250         maint.mk: let packages tweak sc_po_check pattern
36251         * top/maint.mk (sc_po_check): Add translation-markers, to allow
36252         finding files with other translation markers.
36254 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36256         euidaccess: speed up 'configure' on GNU hosts
36257         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
36258         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
36259         it's needed only in this case.  Use AC_CHECK_DECLS, not
36260         AC_CHECK_DECLS_ONCE.
36261         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
36262         or AC_REQUIRE for AC_FUNC_GETGROUPS.
36264         * lib/regexec.c (re_search_internal): Fix grammar in comment.
36266 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36268         fchmodat, fchownat, fstatat: port to non-inlining compilers
36269         Problem reported for FreeBSD 9 by Jim Meyering in
36270         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
36271         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
36272         New files, which define FCHMODAT_INLINE etc.
36273         * lib/fchmodat.c (FCHMODAT_INLINE):
36274         * lib/fchownat.c (FCHOWNAT_INLINE):
36275         * lib/fstatat.c (FSTATAT_INLINE):
36276         Remove, as chmodat.c etc. now do this.
36277         * modules/fchmodat (Files): Add lib/chmodat.c.
36278         * modules/fchownat (Files): Add lib/chownat.c.
36279         * modules/fstatat (Files): Add lib/statat.c.
36281 2012-10-15  Jim Meyering  <jim@meyering.net>
36283         fchmodat.c, fchownat.c: compile-impeding typos
36284         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
36285         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
36286         Introduced in commit v0.0-7636-gd202279.
36288 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36290         fcntl-h: support GNU flags like O_IGNORE_CTTY
36291         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
36292         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
36293         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
36294         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
36295         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
36296         Define to 0 if not already defined.
36297         * tests/test-fcntl-h.c: Test these new flags.
36299 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
36301         faccessat, etc.: support AT_FDCWD-only use
36302         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
36303         this function only if its first argument is AT_FDCWD.
36304         Emacs wants faccessat for AT_EACCESS but not for any first-arg
36305         values other than AT_FDCWD, so it doesn't want all the openat
36306         machinery with fchdir etc.
36307         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
36308         * modules/fstatat, modules/mkdirat, modules/openat (Files):
36309         * modules/unlinkat (Files):
36310         Remove lib/openat-priv.h, as at-internal supplies this file.
36311         Removing this file here allows us to support programs like Emacs
36312         that avoid at-internal.
36314         faccessat: speed up 'configure' on mainstream hosts
36315         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
36316         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
36317         since it's only on unusual platforms that we need to check for
36318         'access', and it's better not to slow 'configure' down on all
36319         platforms.
36321         faccessat: port to Solaris 10
36322         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
36323         Needed on Solaris 10, which doesn't have AT_EACCESS,
36324         so we need the Gnulib fcntl.h, which defines it.
36326 2012-10-14  Pádraig Brady  <P@draigBrady.com>
36327         canonicalize: fix C89 compilation
36328         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
36329         declarations so C89 is supported.  Also remove the comment
36330         referencing memorty allocation as the suggested feature could
36331         not be implemented as suggested.
36332         Reported by Michael Goffioul.
36334 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36336         group-member: omit unnecessary dependencies
36337         This is for Emacs, which has its own allocator and where we
36338         don't want to use xalloc.
36339         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
36340         since we no longer use xmalloc.  Do not include stdbool.h, since
36341         the changes below happen to remove the only use of bool.
36342         (GROUPBUF_SIZE): New constant.
36343         (struct group_info): Remove n_groups member.  Add groupbuf member.
36344         This lets us get the groups without using malloc, usually.
36345         (free_group_info, get_group_info): Adjust to this.
36346         (get_group_info): Return the number of groups found, or -1 on error.
36347         Use plain malloc not xmalloc, and treat its failure as if there
36348         are no groups, as the user already loses in case of error.
36349         (group_member): Simplify, based on changes to get_group_info.
36350         * modules/group-member (Depends-on): Remove dependencies on
36351         xalloc and stdbool.  Add dependency on xalloc-oversized.
36353 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
36355         gethrxtime: port to C++
36356         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
36358 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
36360         ptsname: fix macro-name typo
36361         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
36363 2012-10-03  Simon Josefsson  <simon@josefsson.org>
36365         inttostr: Relax license.
36366         * modules/inttostr (License): Change from LGPL to LGPLv2+.
36368 2012-10-03  Eric Blake  <eblake@redhat.com>
36370         ptsname_r: support ptys returned by FreeBSD posix_openpt
36371         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
36372         lives in /dev/pts/.
36374 2012-10-02  Eric Blake  <eblake@redhat.com>
36376         pselect: reject invalid file descriptors
36377         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
36378         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
36379         * modules/pselect (Depends-on): Add dup2.
36380         * doc/posix-functions/pselect.texi (pselect): Document this.
36382         select: reject invalid file descriptors
36383         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
36384         * lib/select.c (rpl_select) [!win32]: Work around it.
36385         * modules/select (Depends-on): Add dup2.
36386         * doc/posix-functions/select.texi (select): Document this.
36388         select: enhance test
36389         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
36390         New functions.
36391         (test_function): Enhance test.
36392         (do_select_bad_fd): Avoid any stale errno values.
36394         ptsname: reject invalid file descriptors
36395         http://www.austingroupbugs.net/view.php?id=503
36396         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
36397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
36398         * modules/stdlib (Makefile.am): Replace witness.
36399         * lib/stdlib.in.h (ptsname): Allow for replacement.
36400         * modules/ptsname (configure.ac): Trigger replacement.
36401         * doc/posix-functions/ptsname.texi (ptsname): Document this.
36403 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
36405         hash-pjw-bare: new module
36406         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
36407         * lib/hash-pjw-bare.h: Likewise.
36408         * modules/hash-pjw-bare: New file.
36409         * MODULES.html.sh (Misc): Add it.
36411 2012-10-02  Eric Blake  <eblake@redhat.com>
36413         manywarnings: cater to more gcc infelicities
36414         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
36415         -Wuninitialized without -O.
36417 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
36419         select, poll tests: Make setsockopt invocation effective.
36420         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
36421         the bind() call.
36422         * tests/test-select.h (open_server_socket): Likewise.
36424 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
36426         sockets, sys_stat: restore AC_C_INLINE
36427         This undoes the 2012-09-22 patch.
36428         * m4/sockets.m4 (gl_SOCKETS):
36429         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36430         Restore AC_C_INLINE, since MSVC requires __inline or _inline
36431         and does not support plain 'inline'.  Reported by Bruno Haible in
36432         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
36434 2012-09-30  Bruno Haible  <bruno@clisp.org>
36436         localeconv tests: Avoid test failure on OpenIndiana.
36437         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
36438         skip the 'grouping' and 'mon_grouping' tests.
36439         Reported by Jim Meyering.
36441 2012-09-30  Bruno Haible  <bruno@clisp.org>
36443         havelib: Follow libtool developments.
36444         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
36445         Suggested by Simon Josefsson.
36447 2012-09-29  Jim Meyering  <meyering@redhat.com>
36449         fstatat.c: fix a compile-impeding typo
36450         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
36451         Introduced in commit v0.0-7636-gd202279.
36452         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
36454 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
36456         extern-inline: provide a -Wundef safe config.h
36457         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
36458         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
36459         to produce a -Wundef warning free config.h.
36461 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
36463         hash-pjw: relax license to LGPLv2+
36464         * modules/hash-pjw (License): Relax, with consent of author.
36466 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36468         maint.mk: fix strict vs. lazy variable issues with RELEASE
36469         * top/maint.mk (_equal): New function.
36470         (member_check): Strip the result to avoid spurious spaces.
36471         (url_dir_list): Do not use ifeq, which is strict, as it will
36472         require RELEASE_TYPE to be defined.
36473         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
36474         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
36475         (announcement_Cc_alpha,announcement_mail_headers_alpha)
36476         (announcement_Cc_beta,announcement_mail_headers_beta)
36477         (announcement_Cc_stable,announcement_mail_headers_stable): these.
36478         (release): Do not depend on $(release-type), as it forces its
36479         evaluation.  Bounce to it.
36481 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36483         maint.mk: formatting changes
36484         * top/maint.mk: Indent bodies of if's.
36486 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
36488         maint.mk: factor the validation of RELEASE_TYPE
36489         With help from Jim Meyering.
36490         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
36491         * top/maint.mk (_empty, _sp): Move their definition earlier.
36492         (member-check, release-type): New.
36493         Use the latter instead of $(RELEASE_TYPE).
36494         Remove now useless local checks.
36496 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36498         maint.mk: provide "make upload" to ease uploading
36499         See
36500         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
36501         Do not depend simply on the current $(VERSION), as there may have been
36502         new commits since the tarball generation.  Rather, rely on $(RELEASE),
36503         as "make release-commit" already does.
36505         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
36506         "make TYPE".
36508         * top/maint.mk (upload_command, upload, release): New.
36509         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
36510         (VERSION): first word of $(RELEASE) is always right.
36511         (emit_upload_commands): Adjust.
36512         * top/README-release: Update.
36514 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36516         maint.mk: silent rules
36517         With help from Stefano Lattarini.
36518         * top/maint.mk (writable-files): Use $(AM_V_GEN).
36519         (announcement): Use $(AM_V_at).
36521 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
36523         localename: port gl_locale_name_thread_unsafe to FreeBSD
36524         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
36525         and use the simpler FreeBSD implementation on Mac OS X as well.
36526         Original idea suggested by Ed Maste in
36527         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
36529 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
36531         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
36532         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
36533         * lib/mbuiter.c, lib/xsize.c: New files.
36534         * lib/binary-io.h (BINARY_IO_INLINE):
36535         * lib/eealloc.h (EEALLOC_INLINE):
36536         * lib/mbfile.h (MBFILE_INLINE):
36537         * lib/mbiter.h (MBITER_INLINE):
36538         * lib/mbuiter.h (MBUITER_INLINE):
36539         * lib/xsize.h (XSIZE_INLINE):
36540         New macros.
36541         Replace all uses of 'static inline' with them.
36542         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36543         * m4/eealloc.m4 (gl_EEALLOC):
36544         * m4/mbfile.m4 (gl_MBFILE):
36545         * m4/mbiter.m4 (gl_MBITER):
36546         * m4/xsize.m4 (gl_XSIZE):
36547         Do not require AC_C_INLINE.
36548         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
36549         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
36550         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
36551         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
36552         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
36553         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
36554         * modules/binary-io, modules/eealloc, modules/mbfile:
36555         * modules/mbiter, modules/mbuiter:
36556         (Depends-on): Add extern-inline.
36558         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
36559         * lib/pipe-filter-aux.c: New file.
36560         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
36561         Replace all uses of 'static inline' with it.
36562         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36563         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
36564         (filter_retcode): No real need for inline here.
36565         * modules/pipe-filter-gi, modules/pipe-filter-ii:
36566         (Files): Add lib/pipe-filter-aux.c.
36567         (Depends-on): Add extern-inline.
36568         (configure.ac): Do not require AC_C_INLINE.
36569         (lib_SOURCES): Add pipe-filter-aux.c.
36571         fdutimensat: omit unnecessary AC_C_INLINE
36572         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
36574         fchmodat, fchownat, fstatat: use extern-inline
36575         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
36576         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
36577         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
36578         New macros.
36579         * lib/openat.h:
36580         Replace all uses of 'static inline' with them.
36581         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36582         * modules/fchmodat, modules/fchownat, modules/fstatat:
36583         * modules/openat-h:
36584         (Depends-on):
36585         Add extern-inline.
36586         (configure.ac): Remove AC_C_INLINE.
36588         acl, mbchar, priv-set: use extern-inline
36589         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
36590         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
36591         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
36592         New macros.
36593         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
36594         Replace all uses of 'static inline' with it.
36595         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36596         * m4/acl.m4 (gl_FUNC_ACL):
36597         * m4/mbchar.m4 (gl_MBCHAR):
36598         * m4/priv-set.m4 (gl_PRIV_SET):
36599         Remove AC_C_INLINE, since 'inline' is no longer used directly.
36600         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
36601         Add extern-inline.
36603         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
36604         * m4/sockets.m4 (gl_SOCKETS):
36605         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36606         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
36607         environments where it's already guaranteed to work, so we needn't
36608         check for it at 'configure'-time.
36610         tls-tests: omit unnecessary 'inline'
36611         * tests/test-tls.c (perhaps_yield): No longer inline.
36612         Simplicity and portability trump efficiency in test cases.
36614         utimens-tests: avoid unnecessary 'inline'
36615         * modules/fdutimensat-tests (configure.ac):
36616         * modules/futimens-tests (configure.ac):
36617         * modules/utimens-tests (configure.ac):
36618         * modules/utimensat-tests (configure.ac):
36619         Remove AC_C_INLINE.
36620         * tests/test-utimens-common.h (ctime_compare):
36621         No longer inline.  Simplicity and portability trump efficiency here.
36623         misc: don't limit commentary to inline functions
36624         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
36625         * lib/xalloc-oversized.h, lib/xsize.h:
36626         Contrast macros to functions in general, not just to inline functions,
36627         when the commentary does not apply only to inline functions.
36629 2012-09-20  Jim Meyering  <meyering@redhat.com>
36631         non-recursive-gnulib-prefix-hack: new module
36632         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
36633         the file that originated in Bison.
36634         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
36635         largely copied from a snippet that resided in bison's configure.ac.
36636         * modules/non-recursive-gnulib-prefix-hack: New file.
36637         * MODULES.html.sh (Support for maintaining and releasing projects):
36638         Add it.
36640 2012-09-18  Jim Meyering  <meyering@redhat.com>
36642         maint.mk: generalize _gl_tight_scope for non-recursive make
36643         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
36644         that *.h would describe additional .h files in the directory
36645         specified by $(_gl_TS_dir).  I.e., add this...
36646         (_gl_TS_other_headers): New variable.
36648         maint.mk: exempt trailing blanks found in "binary" files
36649         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
36650         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
36651         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36653 2012-09-17  Jim Meyering  <meyering@redhat.com>
36655         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
36656         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
36657         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
36658         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36660 2012-09-17  Jim Meyering  <meyering@redhat.com>
36662         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
36663         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
36664         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
36665         It is not in the same category as "exit (0)" or "exit (1)", and
36666         besides, I know of no symbolic name for that 77.  Reported by
36667         Richard W.M. Jones in
36668         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36670 2012-09-17  Jim Meyering  <meyering@redhat.com>
36672         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
36673         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
36674         all uses of #define, not just those that start in column 1.
36675         Richard W.M. Jones reported a false positive in
36676         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36678 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
36680         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
36681         * lib/localcharset.c (locale_charset) [DARWIN7]:
36682         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
36683         as these two values are incompatible.  Problem reported by Max Horn.
36684         For more discussion, please see
36685         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
36687         doc: document sticky-EOF issue
36688         * doc/posix-functions/fgetc.texi (fgetc):
36689         * doc/posix-functions/fgets.texi (fgets):
36690         * doc/posix-functions/fread.texi (fread):
36691         * doc/posix-functions/fscanf.texi (fscanf):
36692         * doc/posix-functions/getc.texi (getc):
36693         * doc/posix-functions/getchar.texi (getchar):
36694         * doc/posix-functions/scanf.texi (scanf):
36695         Mention that glibc and default Solaris do not conform to
36696         C99 and POSIX-2001 or later, with respect to how getchar
36697         etc. behave when feof reports nonzero.
36699 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36701         poll: fix poll(0, NULL, msec)
36702         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
36703         but nfd is 0.  In that case poll should behave like select.
36705 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36706             Paolo Bonzini  <bonzini@gnu.org>
36708         poll: fix for systems that can't recv() on a non-socket
36709         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
36710         is readable.  In this case POLLHUP will not be supported.
36711         * doc/posix-functions/poll.texi: Document this.
36713 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
36715         poll/select: document portability problems not fixed by Gnulib.
36716         * doc/posix-functions/poll.texi: poll does not work well on
36717         pipes under Windows.  It has the same limitations as select on
36718         BeOS.
36719         * doc/posix-functions/select.texi: select does not work well
36720         on pipes under Windows.
36722 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
36724         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
36725         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
36726         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
36727         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
36729 2012-09-06  Eric Blake  <eblake@redhat.com>
36731         net_if: give more details about the bug being fixed
36732         * doc/posix-headers/net_if.texi: Add clarification.
36734 2012-09-05  Eric Blake  <eblake@redhat.com>
36736         net_if: new module
36737         * modules/net_if: New module, borrowing ideas from netinet_in.
36738         * m4/net_if_h.m4: New file.
36739         * lib/net_if.in.h: Likewise.
36740         * doc/posix-headers/net_if.texi (net/if.h): Document it.
36741         * MODULES.html.sh (lacking POSIX:2008): Likewise.
36742         * tests/test-net_if.c: Make function checks conditional.
36743         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
36745 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
36747         readutmp: fix non-portable UT_PID use
36748         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
36749         Use `UT_PID (u) > 0' as absolute condition.
36751 2012-09-04  Jim Meyering  <meyering@redhat.com>
36753         fts: reduce two or more trailing spaces to just one, usually
36754         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
36755         or more slashes, trim all but the final one.  But if a name consists
36756         solely of two slashes, don't modify it.  If it consists solely of
36757         three or more slashes, strip all but one.
36759         This is part of the solution to a minor problem with rm:
36760         it would print a bogus ELOOP diagnostic when failing to remove
36761         the slash-decorated name of a symlink-to-directory:
36763             $ mkdir d && ln -s d s && env rm -r s/
36764             rm: cannot remove 's': Too many levels of symbolic links
36766         With the change below and a trivial don't-trim-trailing-slashes
36767         adjustment to remove.c, it does this:
36769             $ env rm -r s/
36770             rm: cannot remove 's/': Not a directory
36772         Improved by: Eric Blake
36774         fts: when there is no risk of overlap, use memcpy, not memmove
36775         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
36777 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
36779         stdbool: be more compatible with mixed C/C++ compiles
36780         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
36781         Define to bool, true, false, respectively, as GCC's builtin
36782         stdbool.h does.  Problem reported by Michael Goffioul in
36783         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
36785 2012-08-28  Jim Meyering  <meyering@redhat.com>
36787         revert last change: it was not needed
36788         * tests/test-vc-list-files-git.sh: There's already a test for
36789         a working git, just below.
36791 2012-08-28  Jim Meyering  <meyering@redhat.com>
36793         tests: test-vc-list-files-git.sh: skip if git is not available
36794         * tests/test-vc-list-files-git.sh: Skip this test when git is
36795         not available.
36797 2012-08-26  Bruno Haible  <bruno@clisp.org>
36799         gnulib-tool: Remove no-op option --no-changelog.
36800         * gnulib-tool (func_usage): Don't mention --no-changelog.
36801         (do_changelog): Remove variable.
36802         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36804 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36806         doc: remove fdl-1.2.texi
36807         It is no longer used or maintained, and its use of @acronym
36808         is problematic.  See the thread containing
36809         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
36810         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
36811         * doc/old-licenses/fdl-1.2.texi: Remove.
36813         execinfo: port to FreeBSD
36814         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
36815         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
36816         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
36817         * modules/execinfo (Link): Add $(LIB_EXECINFO).
36819 2012-08-23  Jim Meyering  <meyering@redhat.com>
36821         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
36822         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
36823         to placate gcc's -Wold-style-declaration.
36825 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36827         doc: do not use @acronym
36828         * doc/inet_ntoa.texi (inet_ntoa):
36829         * doc/parse-datetime.texi (Seconds since the Epoch)
36830         (Specifying time zone rules):
36831         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
36832         Don't use @acronym.  Problem reported by John Darlington in
36833         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
36835 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36837         stdnoreturn: port to newer GCCs
36838         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
36839         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
36840         Problem reported by Jim Meyering in
36841         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
36842         Also, rename the 'test' function to a void a clash with the
36843         already-supplied 'main' function; this fixes a bug that incorrectly
36844         rejected GCC 4.7.1's <stdnoreturn.h>.
36845         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
36846         Document GCC problem.
36848 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
36850         pipe-filter: fix comment typo
36851         * lib/pipe-filter.h: Mention correct function.
36853 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
36855         execinfo: new module
36856         This is for Emacs.  Currently, it provides a no-effect stub
36857         on all platforms where it does not already work.
36858         It already works on glibc-based systems, and on Solaris 11.
36859         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
36860         New files.
36861         * doc/glibc-headers/execinfo.texi (execinfo.h):
36862         * MODULES.html.sh (Misc): Document it.
36864 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36866         extern-inline: support old GCC 'inline'
36867         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
36868         if available.  This applies to GCC versions 2.7 through 4.2, or
36869         when newer GCC is using -fgnu89-inline.  The goal is to address
36870         some of the performance issues mentioned by Bruno Haible in
36871         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
36873 2012-08-20  Eric Blake  <eblake@redhat.com>
36875         maint.mk: avoid redundant file name in message
36876         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
36877         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
36878         (sc_makefile_path_separator_check): Remove bogus $(ME).
36880 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
36882         timer-time: fix link order when static linking on glibc
36883         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
36884         _after_ -lrt so that it's significant.
36886 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36888         timespec: omit unnecessary AC_C_INLINE
36889         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
36891         stat-time: omit unnecessary AC_C_INLINE
36892         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36893         Do not require AC_C_INLINE.
36895         ignore-value: omit unnecessary AC_C_INLINE
36896         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
36898         sys_select: avoid 'static inline'
36899         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
36901         mktime: avoid 'static inline'
36902         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
36903         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
36905 2012-08-19  Bruno Haible  <bruno@clisp.org>
36907         gnulib-tool: Improve coding style.
36908         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
36909         func_emit_lib_Makefile_am.
36910         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36912 2012-08-19  Bruno Haible  <bruno@clisp.org>
36914         gnulib-tool: Fix indentation.
36915         * gnulib-tool (func_import): Fix indentation.
36917 2012-08-19  Bruno Haible  <bruno@clisp.org>
36919         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
36920         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
36921         on the list of removed files.
36923 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
36925         test-parse-datetime: avoid glibc leap-second glitch
36926         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
36927         with the 2012 rules.  Problem reported by Bruce Dubbs in
36928         <http://bugs.gnu.org/12206>.
36930 2012-08-14  Bruno Haible  <bruno@clisp.org>
36932         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
36933         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
36934         from argument.
36935         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36937 2012-08-14  Eric Blake  <eblake@redhat.com>
36939         ldexp: relax license
36940         * modules/ldexp (License): Trivial relax, since the module only
36941         provides a permissively licensed m4 file.
36943 2012-08-13  Bruno Haible  <bruno@clisp.org>
36945         gnulib-tool: Fix persistence of --witness-c-macro option.
36946         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
36947         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36949 2012-08-11  Eric Blake  <eblake@redhat.com>
36951         count-leading-zeros: use a lookup table on non-gcc compilers
36952         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
36953         alternate implementation, suggested by Jim Meyering.
36955 2012-08-10  Eric Blake  <eblake@redhat.com>
36957         count-leading-zeros: new module
36958         * modules/count-leading-zeros: New module.
36959         * m4/count-leading-zeros.m4: New file.
36960         * lib/count-leading-zeros.h: Likewise.
36961         * modules/count-leading-zeros-tests: New test.
36962         * tests/test-count-leading-zeros.c: New file.
36963         * MODULES.html.sh (Integer arithmetic functions): Document it.
36965 2012-08-07  Simon Josefsson  <simon@josefsson.org>
36966             Jim Meyering  <meyering@redhat.com>
36968         maintainer-makefile: Fix syntax error with dash.
36969         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
36970         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
36972 2012-08-05  Jim Meyering  <meyering@redhat.com>
36974         extern-inline: also ignore -Wmissing-declarations
36975         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
36976         required with gcc-4.8.0-to-be.
36978         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
36979         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
36980         for /error ?([^,]*)/.  This avoids false-positives for strings like
36981         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
36983 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
36985         gnumakefile: better interaction with Automake-NG
36986         * modules/gnumakefile [Makefile.am]: The makefiles generated by
36987         Automake-NG always contain a definition of VPATH, even in non-VPATH
36988         builds (its value being simply '.' in that case).  So, in the
36989         'clean-GNUmakefile' rule, to determine whether running under a
36990         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
36991         '$(VPATH)' expands to the empty string.
36993 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
36995         base64: Use extern C scope in header file, for C++.
36996         * lib/base64.h: Add C++ namespace protection.
36998 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
37000         stat-time, timespec, u64: support naive out-of-dir builds
37001         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
37002         Use '#include "foo.h"', not '#include <foo.h>', when including
37003         one's own interface.  This works better when configuring with
37004         out-of-directory builds, since packages need not add an
37005         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
37007 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
37009         utimens: use extern-inline
37010         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
37011         * lib/utimens.h: Add copyright notice, since this is now large enough
37012         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37013         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
37014         * modules/utimens (Depends-on): Add extern-inline.
37016         u64: use extern-inline
37017         * lib/u64.c: New file.
37018         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37019         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
37020         * modules/u64 (Files): Add lib/u64.c.
37021         (Depends-on): Add extern-inline.
37022         (configure.ac): No need to require AC_C_INLINE, since extern-inline
37023         does that now.
37024         (lib_SOURCES): Add u64.c.
37026         timespec: use extern-inline
37027         * lib/timespec.c: New file.
37028         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37029         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
37030         * modules/timespec (Files): Add lib/timespec.c.
37031         (Depends-on): Add extern-inline.
37032         (lib_SOURCES): Add timespec.c.
37034         stat-time: use extern-inline
37035         * lib/stat-time.c: New file.
37036         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37037         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
37038         * modules/stat-time (Files): Add lib/stat-time.c.
37039         (Depends-on): Add extern-inline.
37040         (lib_SOURCES): Add stat-time.c.
37042         extern-inline: new module
37043         * modules/extern-inline, m4/extern-inline.m4: New files.
37044         This is for better support of 'extern inline' a la ISO C99,
37045         with a portable alternative on compilers that do not support
37046         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
37047         of the Emacs executable, when compiled with debugging disabled,
37048         which is a typical way that Emacs is built while developing.
37050 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
37052         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
37053         * build-aux/do-release-commit-and-tag: Move variable definitions
37054         together.
37055         ($branch): Instead of defaulting to "master", default to the current
37056         branch (as gnu-web-doc-update does).
37057         (help): Display the current values of the option arguments.
37058         * top/maint.mk (release-commit): New.
37059         * top/README-release: Simplify the corresponding step.
37061 2012-07-30  Eric Blake  <eblake@redhat.com>
37063         passfd: fix comment on recvfd
37064         * lib/passfd.c (recvfd): Fix comment.
37065         Reported by Jann Horn <jannhorn@googlemail.com>.
37067 2012-07-30  Jim Meyering  <meyering@redhat.com>
37069         maint.mk: avoid a sub-shell
37070         * top/maint.mk (release-prep): Remove unneeded sub-shell.
37072 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37074         maint.mk: use silent-rules support from Automake
37075         * top/maint.mk (news-check, vc-diff-check, announcement)
37076         (no-submodule-changes, alpha beta stable, release-prep)
37077         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
37079 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37081         maint.mk: provide a web-manual-update target
37082         * top/maint.mk: here.
37083         * top/README-release: Use it to simplify the web manual update step.
37085 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37087         README-release: shorten the circuit to post a news
37088         * top/README-release: Point directly to the news submission form.
37090 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37092         gnu-web-doc-update: fix --help
37093         * build-aux/gnu-web-doc-update: The information "top level" was written
37094         twice.
37096 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37098         maint.mk: absolute VPATH issue
37099         * top/maint.mk (release-prep): Help Git find .git/.
37100         From Jim Meyering.
37102 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37104         gitlog-to-changelog: fix previous change
37105         * build-aux/gitlog-to-changelog: Fix condition.
37106         Add missing ";".
37108 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37110         gitlog-to-changelog: don't expect .git to be in $srcdir
37111         Reported by Bruno Haible.
37112         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
37113         * build-aux/gitlog-to-changelog (&git_dir_option): New.
37114         Use it.
37116 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37118         maint.mk: absolute VPATH build fix
37119         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
37120         $(srcdir) is not a parent of $(builddir).
37122 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
37124         clean-temp: Fix memory leak.
37125         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
37126         'files' members of tmpdir.
37128 2012-07-27  Jim Meyering  <meyering@redhat.com>
37130         maint.mk: new rule: refresh-gnulib-patches
37131         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
37132         Use this rule to refresh them.
37133         * top/maint.mk (refresh-gnulib-patches): New rule.
37135 2012-07-24  Bruno Haible  <bruno@clisp.org>
37137         gnulib-tool: Fix handling of inctests variable.
37138         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
37139         Reported by Nick Bowler <nbowler@elliptictech.com>.
37141 2012-07-22  Bruno Haible  <bruno@clisp.org>
37143         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
37144         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
37145         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
37146         Remove exemption for getpass.h.
37147         Suggested by Eric Blake.
37149 2012-07-20  Eric Blake  <eblake@redhat.com>
37151         verify: document conflict with -Wnested-externs
37152         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
37154         maint.mk: forbid exit(-1)
37155         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
37157 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
37159         fsusage: port back to Solaris
37160         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
37161         error (fsd not declared) on Solaris 10.  Reported privately by
37162         Andrew Borodin.
37164 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
37166         gnu-web-doc-update: fix error messages
37167         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
37169         gnu-web-doc-update: check the requirements.
37170         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
37171         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
37172         * build-aux/bootstrap (find_tool): Comment change.
37174 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
37176         maint.mk: minor simplication.
37177         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
37178         for default values.
37180 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
37182         gitlog-to-changelog: VPATH build issues
37183         If builddir is not a subdirectory of srcdir, running git from it will
37184         fail.
37185         * build-aux/gitlog-to-changelog (--srcdir): New option.
37187 2012-07-15  Bruno Haible  <bruno@clisp.org>
37189         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
37190         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
37191         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
37192         Remove exemption for fpending.h.
37193         Suggested by Eric Blake.
37195 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37197         pthread_sigmask: fix bug on FreeBSD 9
37198         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
37199         Include string.h.
37200         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
37201         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
37202         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
37203         but pthread_sigmask (1729, NULL, NULL) returns zero.
37204         See <http://bugs.gnu.org/11884>.
37205         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
37206         by inspecting whether the main call changed the old mask.
37208 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
37210         README-release: make it more legible
37211         * top/README-release: Improve typography slightly.
37213 2012-07-15  Jim Meyering  <meyering@redhat.com>
37215         maint: require that each sc_... command start with "@"
37216         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
37217         "make sc_maint" helps us avoid this nit.
37219 2012-07-15  Jim Meyering  <meyering@redhat.com>
37221         maint.mk: add leading "@" to quiet new "make syntax-check" rule
37222         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
37224 2012-07-13  Eric Blake  <eblake@redhat.com>
37226         maint.mk: new syntax check for HAVE_DECL checks
37227         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
37228         * cfg.mk
37229         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
37230         Exempt some false positives.
37231         Based on a report by Karel Zak.
37233         argp: make HAVE_DECL usage consistent
37234         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
37235         macros, not whether they are defined.
37236         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
37237         convention with other declaration checks.
37238         Reported by Karel Zak, with suggestions from Paul Eggert.
37240         stat-time: relax license to LGPLv2+
37241         * modules/stat-time (License): Relax, with consent of all authors.
37243         strndup: fix m4 usage error
37244         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
37245         defined, to either 0 or 1.
37246         Reported by Karel Zak.
37248 2012-07-11  Jim Meyering  <meyering@redhat.com>
37250         maint: enable the sc_avoid_if_before_free syntax-check rule
37251         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
37252         (if_before_free_offenders_): Define.
37253         (if_before_free_basename_re_): Define.
37254         Exempt current files with useless if-before-free.
37256 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
37258         gettext: do not assume '#define ... defined ...' behavior
37259         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
37260         Do not use '#define FOO ... defined BAR ...', as the C standard says
37261         it's not portable to expect that this works after macro expansion.
37262         Problem reported for gzip by Steven M. Schweda in
37263         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
37265 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
37267         getloadavg: clean out old Emacs and Autoconf cruft
37268         See Glenn Morris in <http://bugs.gnu.org/11905>.
37269         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
37270         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
37271         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
37272         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
37274 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
37276         bootstrap: let warn be like tests/init.sh's warn_
37277         Reported by Jim Meyering.
37278         * build-aux/bootstrap (warn): Remove, replaced by...
37279         (warnf_, warn_): these.
37280         Adjust callers.
37281         Shorten messages that no longer fit in 80 columns.
37283 2012-07-09  Bruno Haible  <bruno@clisp.org>
37285         getopt: Simplify after Emacs changed.
37286         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
37287         (gl_GETOPT_IFELSE): Remove macro.
37289 2012-07-09  Jim Meyering  <meyering@redhat.com>
37291         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
37292         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
37294         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
37295         Bugs in both of those conspired to make the
37296         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
37297         _sc_search_regexp's handling of non-empty $in_files would filter
37298         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
37299         choice of in_files value meant there would be no match in most
37300         projects, due to the presence of two or more Makefile.in files.
37301         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
37302         Fix a bug in how a non-empty $$in_files was processed:
37303         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
37304         in spite of the name, it's a regexp, not a list of file names.
37306 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37308         getloadavg, getopt: fix commentary re configure.in
37309         Autoconf is deprecating the name 'configure.in', so change it to
37310         to the new name 'configure.ac' in a couple of places.
37311         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
37312         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
37313         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
37314         Emacs has renamed it to configure.ac, and it no longer refers
37315         to these macros anyway.
37317         timespec: mark functions with const attributes
37318         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
37319         Mark with _GL_ATTRIBUTE_CONST.
37321 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37323         canonicalize[-lgpl]: handle "guessing" values when cross-building
37324         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37325         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
37326         matches "*yes" instead of just "yes".  Regression introduced in commit
37327         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
37329 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37330             Bruno Haible  <bruno@clisp.org>
37332         canonicalize: make the right guess when cross-compiling to GNU
37333         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
37334         determine whether cross-compiling to glibc systems, so as to
37335         include GNU/Hurd.
37337 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37339         timespec-sub: avoid duplicate include
37340         * lib/timespec-sub.c: Do not include <config.h> twice.
37341         Reported by Juanma Barranquero.
37343 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
37345         bootstrap: use a more consistent error reporting scheme
37346         * build-aux/bootstrap (warn, die): New.
37347         Use them.
37349 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37351         sys_time: allow too-wide tv_sec
37352         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
37353         timeval even if tv_sec is wider than time_t.  This allows
37354         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
37355         as without this patch gnulib replaces struct timeval
37356         and OpenBSD futimes therefore has a type mismatch.
37357         * doc/posix-headers/sys_time.texi: Mention this.
37359         pthread: check for both pthread_create and pthread_join
37360         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
37361         alter the check so that it tests for both pthread_create and
37362         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
37363         Suggested by Bruno Haible and Richard Yao in
37364         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
37366         parse-datetime: doc tuneup
37367         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
37368         spacing issues.
37370 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
37372         do-release-commit-and-tag: fix the previous commit
37373         * build-aux/do-release-commit-and-tag: Actually the test was right,
37374         but the comment and the error message were misleading.
37375         Fix comment, and improve error message.
37376         Perform check first, so that NEWS is not modified uselessly.
37378         do-release-commit-and-tag: fix typo
37379         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
37380         _not_ start with a stub.
37382 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
37384         pthread: check for pthread_create, not pthread_join
37385         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
37386         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
37387         pthread_join in libc.  I hope this removes the need for all the
37388         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
37389         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
37391 2012-07-04  Jim Meyering  <meyering@redhat.com>
37393         parse-datetime: fix failure to diagnose invalid input
37394         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
37395         rather than diagnosing the invalid input.  Now it reports this:
37396         date: invalid date '\260'
37397         * lib/parse-datetime.y (to_uchar): Define.
37398         (yylex): Don't sign-extend "other" bytes.
37399         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
37400         Thanks to Bruno Haible for the patch to this file.
37401         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
37402         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
37404 2012-07-03  Jim Meyering  <meyering@redhat.com>
37406         bootstrap: do not require now-removed build-aux/missing
37407         Now that build-aux/missing is, er, missing, bootstrap would
37408         silently fail.
37409         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
37410         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
37411         no longer part of gnulib.
37412         Diagnose the failure.
37414 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37416         alloca: add support for HP NonStop TNS/E native
37417         * lib/alloca.in.h (alloca): Support the new host.
37418         From a suggestion by Joachim Schmitz in
37419         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
37421 2012-07-02  Pádraig Brady  <P@draigBrady.com>
37423         fsusage: remove code not needed on non GNU/Linux systems.
37425         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37426         Don't include headers no longer needed in this case.
37427         * lib/fsusage.c [STAT_STATVFS &&
37428         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
37429         STAT_STATFS2_FRSIZE to exclude code not used in this case.
37431 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37433         fsusage: include files needed for glibc 2.6 fallback
37434         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37435         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
37436         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
37437         Problem reported by Ludovic Courtès in
37438         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
37440         fsusage: avoid needless check on GNU/Linux
37441         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
37442         on GNU/Linux systems, since it can't possibly work.
37444 2012-07-01  Bruno Haible  <bruno@clisp.org>
37446         log: Fix an autoconf >= 2.64 warning.
37447         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
37448         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37450 2012-06-28  Bruno Haible  <bruno@clisp.org>
37452         log10f: Fix possible configuration problem.
37453         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
37454         $LOGF_LIBM.
37455         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37457 2012-06-28  Bruno Haible  <bruno@clisp.org>
37459         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
37460         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
37461         not gl_cv_func_unlink_works.
37462         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37464 2012-06-27  Eric Blake  <eblake@redhat.com>
37466         config: drop scripts that automake says are not independent
37467         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
37468         * build-aux/elisp-comp: Delete.
37469         * build-aux/missing: Likewise.
37470         * build-aux/ylwrap: Likewise.
37471         * modules/elisp-comp: Likewise.
37472         * MODULES.html.sh: Drop mention of elisp-comp.
37473         * NEWS: Mention this.
37475 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
37477         root-uid: new module
37478         This is for portability to Tandem's NonStop Kernel.
37479         * lib/root-uid.h, modules/root-uid: New files.
37480         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
37481         * lib/write-any-file.c, tests/test-sethostname2.c:
37482         Include "root-uid.h".
37483         * lib/euidaccess.c (euidaccess):
37484         * lib/pt_chown.c (main):
37485         * lib/unlinkdir.c (cannot_unlink_dir):
37486         * lib/write-any-file.c (can_write_any_file):
37487         * m4/mknod.m4 (gl_FUNC_MKNOD):
37488         * tests/test-sethostname2.c (geteuid, main):
37489         Don't assume ROOT_UID == 0.
37490         * modules/euidaccess (Depends-on):
37491         * modules/pt_chown (Depends-on):
37492         * modules/sethostname-tests (Depends-on):
37493         * modules/unlinkdir (Depends-on):
37494         * modules/write-any-file (Depends-on):
37495         Add root-uid.
37497         regex: use locale-independent comparison for codeset name
37498         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
37499         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
37500         for codeset name.
37501         * lib/regex_internal.h: Do not include <strings.h>, since we
37502         no longer use strcasecmp.
37503         * modules/regex (Depends-on): Remove strcase.
37505 2012-06-23  Bruno Haible  <bruno@clisp.org>
37507         getopt-posix: No longer guarantee that option processing is resettable.
37508         * doc/posix-functions/getopt.texi: Drop description of problem with
37509         internal state. Fix info about mingw and msvc9.
37510         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
37511         option processing by getopt(). Run three test programs instead of one.
37512         Simplify cross-compilation guess.
37513         * NEWS: Mention the change.
37514         Reported by Rich Felker <dalias@aerifal.cx>.
37516 2012-06-26  Bruno Haible  <bruno@clisp.org>
37518         argp, regex: Ensure strcasecmp gets declared.
37519         * lib/argp-help.c: Include <strings.h>.
37520         * lib/regex_internal.h: Likewise.
37521         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
37523 2012-06-24  Bruno Haible  <bruno@clisp.org>
37525         ptsname_r: Make it consistent with ptsname on AIX.
37526         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
37527         implementation as for OSF/1.
37528         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
37529         a pty master.
37531         ptsname_r: Make it consistent with ptsname on OSF/1.
37532         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37533         OSF/1.
37535 2012-06-24  Bruno Haible  <bruno@clisp.org>
37537         ttyname_r: Fix result on OSF/1, Solaris.
37538         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
37540 2012-06-24  Bruno Haible  <bruno@clisp.org>
37542         ptsname_r: Add support for Solaris.
37543         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37544         Solaris.
37546         ptsname_r: Fix test failure on native Windows.
37547         * modules/ptsname_r (Depends-on): Add isatty.
37549         ptsname_r: Fix test failures on IRIX, Solaris.
37550         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
37551         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
37552         accordingly.
37553         * lib/ptsname_r.c: Include <fcntl.h>.
37554         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
37555         set errno if fd is invalid.
37556         * tests/test-isatty.c (main): Update comments.
37558 2012-06-24  Bruno Haible  <bruno@clisp.org>
37560         ptsname test: Extend test.
37561         * tests/test-ptsname.c: Include <errno.h>.
37562         (main): Test behaviour with invalid file descriptor.
37564 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37566         time: fix obsolete comment
37567         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
37568         reference to HAVE_STRUCT_TIMESPEC in comment.
37570 2012-06-23  Bruno Haible  <bruno@clisp.org>
37572         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
37573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
37574         does not handle abbreviated long options with equivalent
37575         disambiguations, set gl_replace_getopt to yes.
37576         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
37578 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37580         time_r: fix typo that always overrode localtime_r decl
37581         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
37582         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
37583         not in a standard include.
37585 2012-06-22  Bruno Haible  <bruno@clisp.org>
37587         Write "Mac OS X" instead of "MacOS X".
37588         * README: Write "Mac OS X" instead of "MacOS X".
37589         * build-aux/bootstrap: Likewise.
37590         * build-aux/install-reloc: Likewise.
37591         * lib/acl-internal.h: Likewise.
37592         * lib/acl_entries.c: Likewise.
37593         * lib/argp-ba.c: Likewise.
37594         * lib/argp-pv.c: Likewise.
37595         * lib/config.charset: Likewise.
37596         * lib/copy-acl.c: Likewise.
37597         * lib/csharpexec.c: Likewise.
37598         * lib/euidaccess.c: Likewise.
37599         * lib/fbufmode.c: Likewise.
37600         * lib/fflush.c: Likewise.
37601         * lib/file-has-acl.c: Likewise.
37602         * lib/filemode.h: Likewise.
37603         * lib/fpurge.c: Likewise.
37604         * lib/freadable.c: Likewise.
37605         * lib/freadahead.c: Likewise.
37606         * lib/freading.c: Likewise.
37607         * lib/freadptr.c: Likewise.
37608         * lib/freadseek.c: Likewise.
37609         * lib/fseeko.c: Likewise.
37610         * lib/fseterr.c: Likewise.
37611         * lib/fsusage.c: Likewise.
37612         * lib/fwritable.c: Likewise.
37613         * lib/fwriting.c: Likewise.
37614         * lib/get-rusage-as.c: Likewise.
37615         * lib/get-rusage-data.c: Likewise.
37616         * lib/getdomainname.c: Likewise.
37617         * lib/idpriv-drop.c: Likewise.
37618         * lib/idpriv-droptemp.c: Likewise.
37619         * lib/localcharset.c: Likewise.
37620         * lib/locale.in.h: Likewise.
37621         * lib/localename.c: Likewise.
37622         * lib/mbsrtowcs-state.c: Likewise.
37623         * lib/nproc.c: Likewise.
37624         * lib/passfd.c: Likewise.
37625         * lib/posix_openpt.c: Likewise.
37626         * lib/printf-parse.c: Likewise.
37627         * lib/progreloc.c: Likewise.
37628         * lib/safe-read.h: Likewise.
37629         * lib/safe-write.h: Likewise.
37630         * lib/sched.in.h: Likewise.
37631         * lib/set-mode-acl.c: Likewise.
37632         * lib/signal.in.h: Likewise.
37633         * lib/stdint.in.h: Likewise.
37634         * lib/stdio-impl.h: Likewise.
37635         * lib/stdlib.in.h: Likewise.
37636         * lib/strtod.c: Likewise.
37637         * lib/sys_select.in.h: Likewise.
37638         * lib/tcgetsid.c: Likewise.
37639         * lib/unistd.in.h: Likewise.
37640         * lib/unlockpt.c: Likewise.
37641         * lib/vasnprintf.c: Likewise.
37642         * lib/vma-iter.c: Likewise.
37643         * lib/wcsrtombs-state.c: Likewise.
37644         * m4/acl.m4: Likewise.
37645         * m4/acosl.m4: Likewise.
37646         * m4/asinl.m4: Likewise.
37647         * m4/atanl.m4: Likewise.
37648         * m4/c-stack.m4: Likewise.
37649         * m4/cosl.m4: Likewise.
37650         * m4/expl.m4: Likewise.
37651         * m4/extensions.m4: Likewise.
37652         * m4/fdatasync.m4: Likewise.
37653         * m4/fmal.m4: Likewise.
37654         * m4/frexp.m4: Likewise.
37655         * m4/frexpf.m4: Likewise.
37656         * m4/frexpl.m4: Likewise.
37657         * m4/fsusage.m4: Likewise.
37658         * m4/getdomainname.m4: Likewise.
37659         * m4/getloadavg.m4: Likewise.
37660         * m4/getopt.m4: Likewise.
37661         * m4/gettext.m4: Likewise.
37662         * m4/gnulib-common.m4: Likewise.
37663         * m4/intdiv0.m4: Likewise.
37664         * m4/intlmacosx.m4: Likewise.
37665         * m4/largefile.m4: Likewise.
37666         * m4/ldexpl.m4: Likewise.
37667         * m4/link-follow.m4: Likewise.
37668         * m4/locale-ar.m4: Likewise.
37669         * m4/locale-fr.m4: Likewise.
37670         * m4/locale-ja.m4: Likewise.
37671         * m4/locale-tr.m4: Likewise.
37672         * m4/locale-zh.m4: Likewise.
37673         * m4/locale_h.m4: Likewise.
37674         * m4/lock.m4: Likewise.
37675         * m4/logl.m4: Likewise.
37676         * m4/mathfunc.m4: Likewise.
37677         * m4/minus-zero.m4: Likewise.
37678         * m4/mktime.m4: Likewise.
37679         * m4/mmap-anon.m4: Likewise.
37680         * m4/multiarch.m4: Likewise.
37681         * m4/nanosleep.m4: Likewise.
37682         * m4/nocrash.m4: Likewise.
37683         * m4/poll.m4: Likewise.
37684         * m4/printf-frexpl.m4: Likewise.
37685         * m4/printf.m4: Likewise.
37686         * m4/signbit.m4: Likewise.
37687         * m4/sinl.m4: Likewise.
37688         * m4/sqrtl.m4: Likewise.
37689         * m4/strerror_r.m4: Likewise.
37690         * m4/tanl.m4: Likewise.
37691         * m4/threadlib.m4: Likewise.
37692         * m4/ttyname_r.m4: Likewise.
37693         * m4/unlink.m4: Likewise.
37694         * m4/visibility.m4: Likewise.
37695         * m4/wcwidth.m4: Likewise.
37696         * tests/minus-zero.h: Likewise.
37697         * tests/test-alloca-opt.c: Likewise.
37698         * tests/test-copy-acl.sh: Likewise.
37699         * tests/test-copy-file.sh: Likewise.
37700         * tests/test-fdatasync.c: Likewise.
37701         * tests/test-file-has-acl.sh: Likewise.
37702         * tests/test-flock.c: Likewise.
37703         * tests/test-fsync.c: Likewise.
37704         * tests/test-localename.c: Likewise.
37705         * tests/test-malloca.c: Likewise.
37706         * tests/test-nonblocking-pipe.h: Likewise.
37707         * tests/test-nonblocking-socket.h: Likewise.
37708         * tests/test-openpty.c: Likewise.
37709         * tests/test-posix_openpt.c: Likewise.
37710         * tests/test-ptsname.c: Likewise.
37711         * tests/test-ptsname_r.c: Likewise.
37712         * tests/test-sameacls.c: Likewise.
37713         * tests/test-select.h: Likewise.
37714         * tests/test-set-mode-acl.sh: Likewise.
37715         * tests/test-snprintf-posix.h: Likewise.
37716         * tests/test-sprintf-posix.h: Likewise.
37717         * tests/test-strtod.c: Likewise.
37718         * tests/test-time.c: Likewise.
37719         * tests/test-vasnprintf-posix.c: Likewise.
37720         * tests/test-vasprintf-posix.c: Likewise.
37721         * doc/acl-resources.txt: Likewise.
37722         * doc/**/*.texi: Likewise.
37723         Reported by Max Horn <max@quendi.de>.
37725 2012-06-22  Bruno Haible  <bruno@clisp.org>
37727         grantpt: Relax requirement regarding invalid file descriptors.
37728         * lib/grantpt.c: Don't include <fcntl.h>.
37729         (grantpt): Don't verify the validity of the file descriptor.
37730         * modules/grantpt (Depends-on): Remove fcntl-h.
37731         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
37732         file descriptors.
37733         * doc/posix-functions/grantpt.texi: Document more platforms on which
37734         grantpt succeeds for invalid file descriptors.
37735         Reported by Rich Felker <dalias@aerifal.cx>.
37737 2012-06-22  Bruno Haible  <bruno@clisp.org>
37739         fbufmode test: Don't test unportable behaviour.
37740         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
37741         (main): Invoke it three times.
37742         Reported by Szabolcs Nagy <nsz@port70.net>
37743         and Rich Felker <dalias@aerifal.cx>.
37745 2012-06-21  Bruno Haible  <bruno@clisp.org>
37747         gnulib-tool: Refactor inctests variable.
37748         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
37749         (func_modules_transitive_closure,
37750         func_modules_transitive_closure_separately,
37751         func_import, func_create_testdir): Update.
37753         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
37754         * gnulib-tool: Accept option --without-tests.
37755         (func_usage): Document --without-tests option. Rearrange.
37756         (inctests): Normalize according to the mode.
37757         * NEWS: Mention the change.
37758         Suggested by Simon Josefsson.
37760 2012-06-21  Bruce Korb  <bkorb@gnu.org>
37762         parse-duration test: Avoid spurious output.
37763         * tests/test-parse-duration.sh: Reindent with leading tabs.
37765 2012-06-21  Jim Meyering  <meyering@redhat.com>
37767         maint: disable the strncpy prohibition
37768         * cfg.mk: Do not prohibit strncpy here.
37770 2012-06-21  Bruno Haible  <bruno@clisp.org>
37772         nonblocking: Avoid compilation error on mingw64.
37773         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
37774         fscanf.
37775         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
37776         * modules/vfscanf (configure.ac): Likewise.
37777         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
37778         definition only if stdio.h has prepared it.
37779         Reported by Daniel P. Berrange <berrange@redhat.com>.
37781 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
37783         gnulib-tool: Use readlink if it is available.
37784         * gnulib-tool (func_readlink): Choose function more appropriately.
37786 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37788         posixtm-tests: port to buggy compiler
37789         Problem reported by Simon Josefsson in
37790         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
37791         * modules/posixtm-tests (Depends-on): Add stdint.
37792         * tests/test-posixtm.c (struct posixtm_test.t_expected):
37793         Now of type int_least64_t, not int64_t, both because that's
37794         what INT64_C returns and because int_least64_t works even
37795         on 72-bit hosts.
37796         (T): Use INT64_C on constants outside the traditional int range,
37797         to work around compiler bug noted by Simon.
37799         mktime: fix integer overflow in 'configure'-time test
37800         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
37801         after integer overflow.  Problem reported by Rich Felker in
37802         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
37803         Also, don't look for further instances of a bug if we've already
37804         found one instance; this helps 'configure' run faster.
37806 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
37808         tmpfile, clean-temp: Fix invocation of GetVersionEx.
37809         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
37810         GetVersionEx correctly.
37811         * lib/clean-temp.c (supports_delete_on_close): Likewise.
37813 2012-06-20  Bruno Haible  <bruno@clisp.org>
37815         fdopen: Allow implementations that don't reject invalid fd arguments.
37816         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
37817         succeeds.
37818         Reported by Rich Felker <dalias@aerifal.cx>.
37820 2012-06-20  Simon Josefsson  <simon@josefsson.org>
37822         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
37823         bring in LIBINTL.
37825 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37827         init.sh: do not rely on autoupated PWD
37828         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
37829         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
37830         Although Nelson's bug was not necessarily fixed by this patch,
37831         it seems wise to make the change for safety.
37832         * tests/init.sh (path_prepend_): Do not rely on PWD updating
37833         automagically after 'cd'; this is not reliable on older shells.
37834         (setup_): Fail if we cannot cd to temporary directory.
37836 2012-06-19  Bruno Haible  <bruno@clisp.org>
37838         stat, fstat: Avoid warnings on mingw64.
37839         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
37840         redefining.
37841         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
37842         Reported by Daniel P. Berrange <berrange@redhat.com>.
37844 2012-06-19  Bruno Haible  <bruno@clisp.org>
37846         stdioext: Add support for musl libc.
37848         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
37849         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
37851         * m4/fseterr.m4: New file.
37852         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
37853         function exists.
37854         * modules/fseterr (Files): Add m4/fseterr.m4.
37855         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
37856         __fseterr does not exist.
37857         (Makefile.am): Remove fseterr.c from lib_SOURCES.
37859         * lib/freadable.h: Update comment.
37861         * lib/fwritable.h: Update comment.
37863         * lib/freading.h: Update comment.
37865         * lib/fwriting.h: Update comment.
37867         * m4/freadahead.m4: New file.
37868         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
37869         that function exists.
37870         * modules/freadahead (Files): Add m4/freadahead.m4.
37871         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
37872         __freadahead does not exist.
37873         (Makefile.am): Remove freadahead.c from lib_SOURCES.
37875         * m4/freadptr.m4: New file.
37876         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
37877         function exists.
37878         * modules/freadptr (Files): Add m4/freadptr.m4.
37879         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
37880         __freadptr does not exist.
37881         (Makefile.am): Remove freadptr.c from lib_SOURCES.
37883         * m4/freadseek.m4: New file.
37884         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
37885         exists.
37886         * modules/freadseek (Files): Add m4/freadseek.m4.
37887         (configure.ac): Invoke gl_FUNC_FREADSEEK.
37889         * lib/fpurge.c (fpurge): Update comment.
37891         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
37893 2012-06-19  Bruno Haible  <bruno@clisp.org>
37895         *printf-posix: Put more info into config.log.
37896         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
37897         exit code into config.log.
37899 2012-06-19  Bruno Haible  <bruno@clisp.org>
37901         getopt-gnu: Fix exit code overflow in autoconf test.
37902         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
37903         to keep them below < 128.
37905 2012-06-17  Jim Meyering  <meyering@redhat.com>
37907         maint.mk: fix typo in code to derive GPG key at release time
37908         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
37910 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
37912         regex: avoid warning when pointers are not long
37913         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
37914         and uintptr_t, not long, for portability to hosts where pointers and
37915         long have different sizes.  Issue noted by Daniel P. Berrange in
37916         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
37917         and fix suggested by Bruno Haible in
37918         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
37920 2012-06-17  Bruno Haible  <bruno@clisp.org>
37922         dummy: Relicense into the public domain.
37923         * modules/dummy (License): Set to "public domain".
37924         Suggested by Reuben Thomas.
37926 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
37928         announce-gen: VPATH issues
37929         * build-aux/announce-gen (--srcdir): New option, used to trim the
37930         $srcdir part of the path from $builddir to NEWS.
37931         * top/maint.mk (announcement): Adjust.
37933 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
37935         gnu-web-doc-update: VPATH builds
37936         * build-aux/gnu-web-doc-update (--builddir): New option.
37937         Revamp the handling of options.
37938         Prefer $(...) to `...`.
37939         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
37940         the template, and it is GNU mktemp specific.
37941         Prefer set -e to long series of &&.
37942         Restore the initial git branch, not "master".
37943         Properly initialize submodules (don't rely only on bootstrap).
37944         Do not reconfigure blindly, use config.status.
37945         * top/README-release: Update instructions for gnu-web-doc-update.
37947 2012-06-11  Jim Meyering  <meyering@redhat.com>
37949         maint.mk: revert most of the previous change re "all these"
37950         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
37951         For rationale, see the discussion at
37952         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
37954 2012-06-10  Karl Berry  <karl@gnu.org>
37956         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
37958         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
37960 2012-06-10  Bruce Korb  <bkorb@gnu.org>
37962         parse-duration: Relicense under LGPLv2+.
37963         * modules/parse-duration (License): Change to LGPLv2+.
37965 2012-06-10  Jim Meyering  <meyering@redhat.com>
37967         maint.mk: prohibit common grammar error: "all these"
37968         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
37969         the list of prohibited word sequences.  It should be "all of these".
37970         * lib/tempname.c (__gen_tempname): Fix one of them.
37972 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
37974         do-release-commit-and-tag: support VPATH builds
37975         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
37976         (noteworthy): Defined earlier to factor its value.
37977         (noteworthy_stub): New.
37978         Use it to factor.
37979         (help_version): Split into...
37980         (help, version): these.
37981         Adjust the option processing part.
37982         Support "--option=value" in addition to "--option value".
37983         (builddir): New.
37984         (--builddir): New option.
37985         * top/README-release: Document this.
37986         Reword slightly so that the reader cannot understand that he
37987         has to do these steps before calling do-release-commit-and-tag.
37989 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
37991         readme-release: also require announce-gen and maintainer-makefile
37992         * modules/readme-release (Depends-on): here.
37993         * modules/announce-gen, modules/do-release-commit-and-tag,
37994         modules/gnu-web-doc-update, modules/maintainer-makefile
37995         (Description): Point to readme-release.
37997 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
37999         maint.mk: fix VPATH issues.
38000         * top/maint.mk (news-check): GNU Make understand $< very well.
38001         (release-prep): NEWS is in $(srcdir).
38003 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
38005         readme-release: require the promoted modules.
38006         * modules/readme-release (Depends-on): Add
38007         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
38008         in this text.
38010 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38011             Bruno Haible  <bruno@clisp.org>
38013         error, strerror-override: Support mingw64 from Fedora 17.
38014         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
38015         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
38016         EINPROGRESS.
38017         * lib/strerror-override.h (strerror_override): Test it.
38018         * lib/strerror-override.c (strerror_override): Likewise.
38019         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
38021 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38022             Bruno Haible  <bruno@clisp.org>
38024         error, strerror-override: Support mingw64 from Fedora 17.
38025         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
38026         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
38027         * lib/strerror-override.h (strerror_override): Test it.
38028         * lib/strerror-override.c (strerror_override): Likewise.
38030 2012-06-03  Bruno Haible  <bruno@clisp.org>
38032         error, strerror-override: Support new errno values from POSIX:2008.
38033         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
38034         ENOTRECOVERABLE.
38035         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
38036         platforms.
38037         * lib/strerror-override.c (strerror_override): Conditionalize the
38038         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
38039         * lib/strerror-override.h (strerror_override): Declare also if
38040         GNULIB_defined_EOWNERDEAD is defined.
38041         * tests/test-errno.c (e130, e131): New variables.
38042         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
38043         ENOTRECOVERABLE.
38044         Reported by Paolo Bonzini.
38046 2012-05-31  Jim Meyering  <meyering@redhat.com>
38048         savewd: add missing dependency on sys_wait module
38049         * modules/savewd (Depends-on): Add sys_wait, needed at least
38050         for MSVC.  Report and suggested change by Michael Goffioul.
38052 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
38054         system-quote-tests: port to CentOS 5
38055         Problem reported by Tom G. Christensen in
38056         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
38057         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
38059 2012-05-29  Jim Meyering  <meyering@redhat.com>
38061         maint: fix typos in comments and ChangeLog
38062         Culprits identified and fixed mostly automatically using these commands:
38063         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
38064         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
38065         using http://github.com/lyda/misspell-check
38066         * ChangeLog: Fix typos.
38067         * doc/solaris-versions: Likewise.
38068         * lib/regexec.c (re_search_stub): Likewise.
38069         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38071 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38073         manywarnings: remove duplicate -Wmultichar entry
38074         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
38075         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
38076         so keep the entry marked as documented.
38078 2012-05-27  Karl Berry  <karl@gnu.org>
38080         * config/srclist.txt (mktime.c): remove last libc sync,
38081         perhaps just temporarily.
38083 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
38085         regex: don't assume uint64_t or uint32_t
38086         * lib/regcomp.c (init_word_char): Don't assume that the types
38087         uint64_t and uint32_t exist.  The C standard doesn't guarantee
38088         them, and on some 32-bit compilers there is no uint64_t.
38089         Problem reported by Gianluigi Tiesi in
38090         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
38092 2012-05-25  Jim Meyering  <meyering@redhat.com>
38094         maint.mk: add strncpy-prohibiting syntax-check rule
38095         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
38097 2012-05-24  Jim Meyering  <meyering@redhat.com>
38099         maint.mk: compute $(gpg_key_ID) more portably
38100         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
38101         That use of sed is not portable to some fringe systems.
38102         Reported by Paul Eggert in
38103         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
38105 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
38107         mktime: sync from glibc
38108         * config/srclist.txt: Uncomment mktime.c.
38109         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
38110         First, indent with tabs, since glibc uses tabs and doesn't want to
38111         change and we'd rather be identical to glibc.  Also, two small
38112         coding changes:
38113         (isdst_differ): Use &&, not &, as && is the usual style.
38114         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
38115         for clarity.
38117 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38119         announce-gen: du -h is more portable than du --human
38120         * build-aux/announce-gen (sizes): Invoke du with -h instead
38121         of --human.  Accept leading white space in its output.
38123 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38125         announce-gen: Improve diagnostics.
38126         * build-aux/announce-gen: When parsing command line options,
38127         prefer "announce-gen: option --release-type requires an argument"
38128         to "Option release-type requires an argument".
38130 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38132         maint.mk: gpg_key_ID: use sed more portably
38133         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
38134         the closing brace.
38135         (refresh-po): Fuse two sed invocations into one.
38137 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
38139         gitlog-to-changelog: support the log message format used in Bison.
38140         * build-aux/gitlog-to-changelog: Support --strip-tab and
38141         --strip-cherry-picked.
38143 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38145         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
38146         the rest of the current time slice to another thread in the current
38147         process. So if the thread that feeds the file decscriptor we're
38148         polling is not in the current process, we get busy-waiting.
38149         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
38150         Patch from Theodore Leblond.
38151         * lib/select.c: Split polling out of the loop that sets the output
38152         fd_sets.  Check for zero result and loop if the wait timeout is
38153         infinite.
38155 2012-05-21  Simon Josefsson  <simon@josefsson.org>
38157         select: Fix build error on IRIX 6.5.
38158         * lib/select.c: Include stddef.h for NULL.
38160 2012-05-21  Simon Josefsson  <simon@josefsson.org>
38162         gc: fix libgcrypt detection on older machines.
38163         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
38164         copyright years because the file has been distributed every year
38165         since it was created.
38167 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
38169         crypto: fix bug in large buffer handling
38170         Problem reported by Serge Belyshev for glibc in
38171         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
38172         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
38173         * lib/md4.c (md4_process_block):
38174         * lib/md5.c (md5_process_block):
38175         * lib/sha1.c (sha1_process_block):
38176         * lib/sha256.c (sha256_process_block):
38177         Don't assume the buffer length is less than 2**32.
38178         * lib/sha512.c (sha512_process_block): Likewise.
38179         Here, the bug is present only in the rare case where the host does
38180         not support uint64_t or where size_t is wider than 64 bits.
38181         Use u64size to work around the problems.
38182         * lib/u64.h (u64size): New macro.
38184 2012-05-15  Pádraig Brady  <P@draigBrady.com>
38186         fsusage: fix block size returned on older Linux 2.6
38188         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
38189         which is available since Linux 2.6.
38190         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
38191         when the member is available so it can be used as a fallback.
38192         * doc/posix-functions/statvfs.texi: Mention the hang issue
38193         on Linux < 2.6.36.
38195 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38197         bootstrap: suppress stderr chatter
38198         * build-aux/bootstrap (insert_sorted_if_absent, main program):
38199         Omit unnecessary chatter to stderr.  The main program chatter
38200         was there only inadvertantly.
38202         bootstrap: .gitignore files created by autopoint, libtool
38203         I ran into this problem when bootstrapping the latest diffutils.
38204         After './bootstrap', 'git status' reported lots of untracked files
38205         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
38206         autopoint and do not need to be version-controlled.
38207         * build-aux/bootstrap: Put into .gitignore the files that
38208         autopoint and libtool create, by keeping track of files that exist
38209         after but not before these programs are run.
38210         (version_controlled_file): Move up.  2nd arg is now full file
38211         name, not base name; this is more convenient.  Put CVS at the end,
38212         as it's now somewhat deprecated.
38214 2012-05-14  Jim Meyering  <meyering@redhat.com>
38216         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
38217         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
38218         definition.  Reported by Bruno Haible.
38220 2012-05-13  Bruno Haible  <bruno@clisp.org>
38221             Paul Eggert  <eggert@cs.ucla.edu>
38223         binary-io: Define set_binary_mode function.
38224         * lib/binary-io.h (set_binary_mode): New function.
38225         (SET_BINARY): Define in terms of set_binary_mode.
38226         * modules/binary-io (configure.ac): Require AC_C_INLINE.
38227         * tests/test-binary-io.c (main): Accept an argument, and test either
38228         set_binary_mode or SET_BINARY depending on the argument.
38229         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
38230         argument. Clean up also t-bin-out0.tmp.
38232 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
38234         bootstrap: take advantage of POSIX shell features
38236         The 'bootstrap' script offered by Gnulib script already uses POSIX
38237         shell features (like $((...)) arithmetic expansions) that are not
38238         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
38239         means that bootstrap must already be run using a proper POSIX shell,
38240         which will thus provide more features, like ${var#pattern} parameter
38241         expansion or inversion of a command exit status with '!'.  We can
38242         thus use these features to improve the clarity and the performances
38243         of the bootstrap script.
38245         Suggested by Eric Blake.
38247         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
38248         of sed/expr plus command substitutions, to save some forks.  While
38249         we are at it, prefer the POSIX $(...) form of command substitution,
38250         rather than the legacy form `...` (since the former is visually
38251         clearer and interacts better with quoting), and prefer the idiom:
38252           "if ! CMD; then ACTION ..."
38253         over the idiom:
38254           "if CMD; then :; else ACTION ..."
38255         which was required by legacy Bourne shells not supporting '!'.
38257 2012-05-12  Bruno Haible  <bruno@clisp.org>
38259         system-quote: Add more comments.
38260         * lib/system-quote.h: Add more comments about wilcards and limitations.
38261         Suggested by Eli Zaretskii <eliz@gnu.org>.
38263         sh-quote, system-quote: Add comments about wildcards.
38264         * lib/sh-quote.h: Clarify what happens with wildcard characters.
38265         * lib/system-quote.h: Likewise.
38266         Reported by Eli Zaretskii <eliz@gnu.org>.
38268 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
38270         fsusage: check for GNU/Linux statvfs problem dynamically
38271         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
38272         Define STAT_STATFS2_BSIZE too, since in this case the code now
38273         checks dynamically whether statvfs is reliable, falling back on
38274         Linux-style statfs otherwise.
38275         (statvfs_works): New function, for dynamically testing statvfs.
38276         (get_fs_usage) [STAT_STATVFS]: Use it.
38277         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
38278         statvfs on GNU/Linux hosts, since it's now done dynamically.
38280 2012-05-10  Bruno Haible  <bruno@clisp.org>
38282         system-quote, execute, spawn-pipe: Escape '?' on Windows.
38283         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
38284         '?' character.
38285         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
38286         * tests/test-system-quote-main.c (check_all): Check also strings like
38287         "??????????".
38288         Reported by Eli Zaretskii <eliz@gnu.org>.
38290 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
38292         _Noreturn: port config.h to gcc -Wundef
38293         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
38294         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
38295         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
38297 2012-05-10  Bruno Haible  <bruno@clisp.org>
38299         system-quote: Refactor.
38300         * lib/system-quote.h (system_quote_copy): Fix comment.
38301         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
38302         New functions, extracted from system_quote_copy.
38303         (system_quote_length, system_quote_copy): Use these functions.
38304         Reported by Paul Eggert.
38306 2012-05-08  Bruno Haible  <bruno@clisp.org>
38308         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
38309         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
38311 2012-05-08  Bruno Haible  <bruno@clisp.org>
38313         Tests for module 'system-quote'.
38314         * modules/system-quote-tests: New file.
38315         * tests/test-system-quote.sh: New file.
38316         * tests/test-system-quote-main.c: New file.
38317         * tests/test-system-quote-child.c: New file.
38319         New module 'system-quote'.
38320         * lib/system-quote.h: New file.
38321         * lib/system-quote.c: New file.
38322         * modules/system-quote: New file.
38324 2012-05-08  Bruno Haible  <bruno@clisp.org>
38326         sh-quote: Make C++ safe and allow multiple inclusion.
38327         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
38328         declarations in extern "C".
38330 2012-05-08  Bruno Haible  <bruno@clisp.org>
38332         sh-quote tests: Make tests stricter.
38333         * tests/test-sh-quote.c (check_one): Check the return value of
38334         shell_quote_copy.
38335         (main): Check a string with a CR character. Check a string that
38336         contains UCHAR_MAX.
38338 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
38340         warnings.m4: provide a means to specify the program to compile.
38341         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
38342         (gl_WARN_ADD): here.
38343         Use gl_AS_VAR_APPEND.
38344         Support an argument to specify the program to compile.
38345         (gl_WARN_ADD): Accept an argument to specify the program to compile.
38346         AC_SUBST the WARN_CFLAGS when they are used.
38347         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
38348         leave this to gl_WARN_ADD.
38350 2012-05-08  Eric Blake  <eblake@redhat.com>
38352         doc: recommendations on gettext version
38353         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
38354         choice between versions.
38355         * DEPENDENCIES (gettext): Cover both approaches.
38357 2012-05-08  Jim Meyering  <meyering@redhat.com>
38359         init.sh: explain why EXEEXT support uses aliases rather than functions
38360         * tests/init.sh: Add a comment.
38362         init.sh: don't let bash aliases interfere with tests
38363         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
38364         is bash.  This avoids problems for those who alias standard commands to
38365         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
38366         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
38368 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
38370         stdint: be more consistent with glibc, SunOS libc
38371         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
38372         (gl_int_fast16_t, gl_uint_fast16_t)
38373         (gl_int_fast32_t, gl_uint_fast32_t)
38374         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
38375         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
38376         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
38377         Be consistent with glibc by default, and with SunOS 5.10 and later
38378         if __sun is defined.  This lessens the likelihood of clashes if
38379         code compiled for older hosts is combined with code compiled for
38380         newer ones.  Problem reported by Niels Möller in
38381         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
38383 2012-05-07  Eric Blake  <eblake@redhat.com>
38385         isatty: relax license to LGPLv2+
38386         * modules/isatty (License): Relax license.
38388 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38390         stat-size: comment fix
38391         * lib/stat-size.h: Remove obsolete comment about indenting.
38393 2012-05-06  Bruno Haible  <bruno@clisp.org>
38395         Tests for module 'sh-quote'.
38396         * modules/sh-quote-tests: New file.
38397         * tests/test-sh-quote.c: New file.
38399 2012-05-06  Bruno Haible  <bruno@clisp.org>
38401         sh-quote: Improve shell_quote_argv's signature.
38402         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
38403         * lib/sh-quote.c (shell_quote_argv): Likewise.
38405 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38407         stdint: document issues with int_fast8_t etc.
38408         * doc/posix-headers/stdint.texi (stdint.h): Say that other
38409         stdint.h substitutes may define these types differently.  See
38410         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
38412 2012-05-05  Bruno Haible  <bruno@clisp.org>
38414         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
38415         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
38416         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
38417         or 'guessing no (mishandles large arguments)'.
38419 2012-05-05  Bruno Haible  <bruno@clisp.org>
38421         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
38422         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
38423         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38424         set gl_cv_func_link_follows_symlink to "guessing no".
38426 2012-05-05  Bruno Haible  <bruno@clisp.org>
38428         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
38429         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
38430         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
38431         "guessing no".
38432         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
38434 2012-05-05  Bruno Haible  <bruno@clisp.org>
38436         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
38437         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
38438         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38439         set gl_cv_struct_dirent_d_ino to "guessing yes".
38441 2012-05-05  Bruno Haible  <bruno@clisp.org>
38443         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
38444         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
38445         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
38446         "guessing yes".
38448 2012-05-05  Bruno Haible  <bruno@clisp.org>
38450         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
38451         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
38452         compiling to a glibc system, set gl_cv_func_signbit and
38453         gl_cv_func_signbit_gcc to "guessing yes".
38455 2012-05-05  Bruno Haible  <bruno@clisp.org>
38457         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
38458         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
38459         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
38460         to "guessing yes".
38461         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
38462         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
38464 2012-05-05  Bruno Haible  <bruno@clisp.org>
38466         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
38467         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
38468         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
38469         gl_cv_func_realpath_works to "guessing yes".
38471 2012-05-05  Bruno Haible  <bruno@clisp.org>
38473         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
38474         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
38475         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
38477 2012-05-04  Bruno Haible  <bruno@clisp.org>
38479         Tweak last commit.
38480         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
38481         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38483 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
38485         unistd_h: make it easier to avoid sys_types_h
38486         This is useful for Emacs, which has its own method of porting to
38487         Windows, and which therefore does not need the sys_types_h module.
38488         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
38489         code moved here from gl_SYS_TYPES_H.
38490         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
38491         using the code directly.
38492         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
38493         gl_SYS_TYPES_H.
38494         * modules/sys_types (Files):
38495         * modules/unistd (Files): Add m4/off_t.m4.
38497 2012-05-03  Bruno Haible  <bruno@clisp.org>
38499         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
38500         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
38501         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
38502         "guessing yes" or "guessing no".
38503         (gl_FUNC_LSTAT): Update.
38504         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
38505         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
38506         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
38508 2012-05-03  Bruno Haible  <bruno@clisp.org>
38510         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
38511         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
38512         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
38513         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
38514         cross-compiling, choose the first alternative on glibc systems.
38515         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
38517 2012-05-03  Bruno Haible  <bruno@clisp.org>
38519         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
38520         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
38521         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
38523 2012-05-03  Bruno Haible  <bruno@clisp.org>
38525         chown: Avoid "guessing no" when cross-compiling to glibc systems.
38526         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
38528 2012-05-03  Bruno Haible  <bruno@clisp.org>
38530         Avoid "guessing no" guesses when cross-compiling to glibc systems.
38531         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
38532         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
38533         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
38534         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
38535         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
38536         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
38537         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
38538         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
38539         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
38540         compiling to glibc systems, set gl_cv_func_chown_slash_works,
38541         gl_cv_func_chown_ctime_works to "guessing yes".
38542         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
38543         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
38544         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
38545         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
38546         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
38547         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
38548         compiling to glibc systems, set gl_cv_func_open_directory_works to
38549         "guessing yes".
38550         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
38551         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
38552         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
38553         "guessing yes".
38554         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
38555         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
38556         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
38557         compiling to glibc systems, set gl_cv_func_floorf_ieee to
38558         "guessing yes".
38559         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
38560         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
38561         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
38562         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
38563         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
38564         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
38565         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
38566         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
38567         "guessing yes".
38568         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
38569         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
38570         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
38571         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
38572         "guessing yes".
38573         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
38574         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
38575         "guessing yes".
38576         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
38577         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
38578         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
38579         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
38580         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
38581         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
38582         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
38583         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
38584         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
38585         compiling to glibc systems, set gl_cv_func_log10f_ieee to
38586         "guessing yes".
38587         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
38588         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
38589         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
38590         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
38591         "guessing yes".
38592         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
38593         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
38594         "guessing yes".
38595         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
38596         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
38597         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
38598         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
38599         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
38600         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
38601         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
38602         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
38603         compiling to glibc systems, set gl_cv_func_mkfifo_works to
38604         "guessing yes".
38605         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
38606         compiling to glibc systems, set gl_cv_func_mknod_works to
38607         "guessing yes".
38608         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
38609         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
38610         "guessing yes".
38611         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
38612         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
38613         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
38614         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
38615         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
38616         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
38617         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
38618         compiling to glibc systems, set gl_cv_func_svid_putenv to
38619         "guessing yes".
38620         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
38621         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
38622         "guessing yes".
38623         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
38624         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
38625         "guessing yes".
38626         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
38627         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
38628         to "guessing yes".
38629         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
38630         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
38631         to "guessing yes".
38632         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
38633         compiling to glibc systems, set gl_cv_func_rmdir_works to
38634         "guessing yes".
38635         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
38636         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
38637         gl_cv_func_unlink_parent_fails to "guessing yes".
38638         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
38639         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
38640         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
38641         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
38642         gl_cv_func_rename_dest_works to "guessing yes".
38643         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
38644         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
38645         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
38646         compiling to glibc systems, set gl_cv_func_roundf_ieee to
38647         "guessing yes".
38648         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
38649         compiling to glibc systems, set gl_cv_func_roundl_ieee to
38650         "guessing yes".
38651         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
38652         compiling to glibc systems, set gl_cv_func_setenv_works to
38653         "guessing yes".
38654         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
38655         compiling to glibc systems, set gl_cv_func_unsetenv_works to
38656         "guessing yes".
38657         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
38658         compiling to glibc systems, set gl_cv_func_sleep_works to
38659         "guessing yes".
38660         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
38661         compiling to glibc systems, set gl_cv_func_stat_file_slash to
38662         "guessing yes".
38663         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
38664         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
38665         "guessing yes".
38666         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
38667         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
38668         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
38669         compiling to glibc systems, set gl_cv_func_truncf_ieee to
38670         "guessing yes".
38671         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
38672         compiling to glibc systems, set gl_cv_func_truncl_ieee to
38673         "guessing yes".
38674         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
38675         compiling to glibc systems, set gl_cv_func_usleep_works to
38676         "guessing yes".
38677         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
38678         compiling to glibc systems, set gl_cv_func_futimesat_works to
38679         "guessing yes".
38681 2012-05-03  Bruno Haible  <bruno@clisp.org>
38683         Say "guessing yes" or "guessing no" when cross-compiling.
38684         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
38685         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
38686         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
38687         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
38688         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
38689         am_cv_func_working_getline to "guessing yes" or "guessing no".
38690         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
38691         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
38692         (gl_FUNC_MEMMEM): When cross-compiling, set
38693         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
38694         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
38695         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
38696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
38697         set gl_cv_func_strcasestr_works_always to "guessing yes" or
38698         "guessing no".
38699         (gl_FUNC_STRCASESTR): When cross-compiling, set
38700         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
38701         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
38702         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
38703         (gl_FUNC_STRSTR): When cross-compiling, set
38704         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
38705         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
38706         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
38707         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
38708         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
38710 2012-05-01  Bruno Haible  <bruno@clisp.org>
38712         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
38713         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
38714         * build-aux/reloc-ldflags: Likewise.
38715         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
38717 2012-05-01  Bruno Haible  <bruno@clisp.org>
38719         gnulib-tool: Remove transitional code.
38720         * gnulib-tool: Don't warn about --import with 0 arguments any more.
38721         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38723 2012-05-01  Bruno Haible  <bruno@clisp.org>
38725         getcwd: Fix misindentation.
38726         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
38728 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
38730         exclude: process exclude and include directives in order
38731         This restores the pre-2009 behavior, and is part of a fix of a
38732         grep bug reported by Quentin Arce in
38733         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
38734         * lib/exclude.c (struct exclude): Remove 'tail' member.
38735         (new_exclude_segment): Prepend the new segment instead of appending.
38736         Return void, since that's now more convenient.
38737         (file_pattern_matches): Renamed from excluded_file_pattern_p.
38738         (file_name_matches): Renamed from excluded_file_name_p.
38739         (file_pattern_matches, file_name_matches):
38740         Return true if the pattern matches, not if it excludes.
38741         All callers changed.
38742         (excluded_file_name): Process the list in reverse order;
38743         since the list is now reversed this restores the pre-2009 behavior.
38744         (add_exclude): Adjust to new reversed-order list.  Use local var
38745         rather than macro, for clarity.
38746         * tests/test-exclude7.sh: Adjust to corrected behavior.
38748         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
38749         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
38750         it's not possible here.  Handle the case of \ at end of pattern
38751         without dumping core.
38752         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
38754         _Noreturn: future-proof non-GNU and non-MSVC compilers
38755         * build-aux/snippet/_Noreturn.h (_Noreturn):
38756         * m4/gnulib-common.m4 (gl_COMMON_BODY):
38757         Do not define _Noreturn if __STDC_VERSION__ indicates this is
38758         C11 or later.  This is more likely to work with random future C
38759         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
38760         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
38762         exclude: handle wildcards with FNM_EXTMATCH
38763         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
38764         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
38765         comment that "has wildcards" really means "has or may have
38766         wildcards".  Simplify by avoiding the need to call strcspn.
38768 2012-04-29  Bruno Haible  <bruno@clisp.org>
38770         gnulib-tool: Fix list of authors.
38771         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
38773 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
38775         bootstrap: support Automake-NG in $buildreq
38776         * bootstrap (check_versions): Handle automake and aclocal from
38777         Automake-NG specially.  They can be specified as respectively
38778         the "automake-ng" and "aclocal-ng" requirements.
38780 2012-04-25  Eric Blake  <eblake@redhat.com>
38782         bootstrap: only force latest Makefile.in.in for gettext module
38783         * build-aux/bootstrap (with_gettext): Only install latest
38784         Makefile.in.in for projects requesting bleeding edge gettext.
38786 2012-04-22  Bruno Haible  <bruno@clisp.org>
38788         doc: Mention reason for replacement on glibc/Linux systems.
38789         * doc/posix-functions/dprintf.texi: Mention the problem with special
38790         'long double' values.
38791         * doc/posix-functions/fprintf.texi: Likewise.
38792         * doc/posix-functions/printf.texi: Likewise.
38793         * doc/posix-functions/snprintf.texi: Likewise.
38794         * doc/posix-functions/sprintf.texi: Likewise.
38795         * doc/posix-functions/vdprintf.texi: Likewise.
38796         * doc/posix-functions/vfprintf.texi: Likewise.
38797         * doc/posix-functions/vprintf.texi: Likewise.
38798         * doc/posix-functions/vsnprintf.texi: Likewise.
38799         * doc/posix-functions/vsprintf.texi: Likewise.
38800         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
38801         platforms with F_DUPFD_CLOEXEC problems.
38802         * doc/posix-functions/glob.texi: Mention which platforms are affected
38803         by the problem with symbolic links.
38804         * doc/posix-functions/linkat.texi: Mention the problem with
38805         AT_SYMLINK_FOLLOW on Linux.
38807 2012-04-22  Bruno Haible  <bruno@clisp.org>
38809         pwrite: Don't replace on all platforms.
38810         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
38812 2012-04-22  Bruno Haible  <bruno@clisp.org>
38814         rint* tests: Avoid gcc warnings.
38815         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
38816         * tests/test-rintf.c (INFINITY, NAN): Likewise.
38817         * tests/test-rintl.c (INFINITY, NAN): Likewise.
38819 2012-04-21  Bruno Haible  <bruno@clisp.org>
38821         users.txt: Update.
38822         * users.txt: Add freedink, wdiff. Update URLs for projects that have
38823         switched from CVS to git, bzr, or svn.
38825 2012-04-21  Bruno Haible  <bruno@clisp.org>
38827         Large File Support for native Windows platforms.
38829         * m4/largefile.m4 (gl_LARGEFILE): New macro.
38830         * modules/largefile (configure.ac): Require gl_LARGEFILE.
38832         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
38833         type.
38834         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
38835         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
38836         * doc/posix-headers/sys_types.texi: Mention the effect of the
38837         'largefile' module.
38839         * lib/fcntl.in.h: Add comments about off_t.
38840         * modules/fcntl-h (Depends-on): Add sys_types.
38842         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
38843         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
38844         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
38845         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
38846         * modules/unistd (Depends-on): Add sys_types.
38847         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
38849         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
38850         instead of lseek.
38851         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
38852         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
38853         * modules/lseek (Depends-on): Add sys_types.
38855         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
38856         msvc-nothrow.h.
38857         (SetFileSize): New function.
38858         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
38859         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
38860         if Large File Support is requested.
38861         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
38862         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
38864         * lib/stdio.in.h: Add comments about off_t.
38865         * modules/stdio (Depends-on): Add sys_types.
38867         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
38868         instead of ftello.
38869         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
38870         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
38871         (gl_PREREQ_FTELLO): New macro.
38872         * modules/ftello (Depends-on): Add sys_types.
38873         (configure.ac): Incoke gl_PREREQ_FTELLO.
38875         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
38876         instead of fseeko.
38877         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
38878         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
38879         (gl_PREREQ_FSEEKO): New macro.
38880         * modules/fseeko (Depends-on): Add sys_types.
38881         (configure.ac): Invoke gl_PREREQ_FSEEKO.
38883         * lib/sys_stat.in.h: Add comments about off_t.
38884         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
38885         64-bit integer for st_size in 'struct stat'.
38886         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
38887         Define _GL_WINDOWS_64_BIT_ST_SIZE.
38888         * modules/sys_stat (Depends-on): Add sys_types.
38889         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
38891         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
38892         instead of stat or _stat.
38894         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
38895         'struct _stati64' instead of fstat and 'struct stat'.
38896         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
38897         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
38899         Reported by Ray Satiro <raysatiro@yahoo.com>.
38901 2012-04-19  Eric Blake  <eblake@redhat.com>
38903         bootstrap: accommodate older libtool
38904         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
38905         Reported by Daniel P. Berrange.
38907 2012-04-19  Jim Meyering  <meyering@redhat.com>
38909         announce-gen: avoid failure due to lack of Digest::SHA1
38910         Even with the preferred Digest::SHA available, this script
38911         would fail when the backup module, Digest::SHA1, was not installed.
38912         * build-aux/announce-gen: Quote the conditional use of "use".
38913         Reported by Reuben Thomas in:
38914         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
38916         bootstrap: don't let a user's CDPATH setting affect this script
38917         When CDPATH is set, cd will sometimes generate output.
38918         When "cd" is run in a subshell whose output matters, that
38919         surprising-to-some output can cause malfunction.
38920         Unsetting CDPATH turns off this shell "feature."
38921         * build-aux/bootstrap (CDPATH): Unset.
38922         Reported by Reuben Thomas in:
38923         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
38924         and inspired by his patch here:
38925         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
38927 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
38928         and Jim Meyering  <meyering@redhat.com>
38930         maint.mk: catch "see @xref{}" and similar
38931         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
38932         prohibit "See also @xref{", "Also see @pxref{", and similar.
38934 2012-04-16  Jim Meyering  <meyering@redhat.com>
38936         bootstrap: really use gnulib's po/Makefile.in.in
38937         * build-aux/bootstrap: Correct the source file name in previous change.
38938         Reported by Akim Demaille.
38940         configmake: correct minor inconsistency in Makefile rule
38941         * modules/configmake (Makefile.am): All other rules like this one
38942         run the final "mv -f ..." in the same backslash-continued command
38943         as the one that does everything else.  This one put the mv -f ...
38944         command on a separate, non-backslash-continued line.
38945         Make it like the others.
38947         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
38948         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
38949         the one from gettext.  Reported by Akim Demaille.
38951 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
38953         Fix recursion of install-* into po directories.
38954         Bison's install-pdf bug reported by Hans Aberg at
38955         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
38956         * build-aux/po/Makefile.in.in (install-dvi, install-html)
38957         (install-info, install-pdf, install-ps): New targets.
38959 2012-04-16  Jim Meyering  <meyering@redhat.com>
38961         maint: avoid spurious "make sc_maint" failure
38962         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
38963         exempt all *.class file names, for lib/javaversion.class.
38965 2012-04-15  Bruno Haible  <bruno@clisp.org>
38967         lseek: Make configure test independent of environment.
38968         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
38969         Windows, we know that lseek() on pipes is broken; skip the runtime
38970         test.
38972 2012-04-14  Bruno Haible  <bruno@clisp.org>
38974         stat: Bypass buggy override in mingw64.
38975         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
38976         * lib/stat.c (stat) [mingw64]: Define to _stat.
38977         * doc/posix-functions/stat.texi: Mention mingw64 bug.
38979 2012-04-14  Bruno Haible  <bruno@clisp.org>
38981         pathmax: Fix compilation error on MSVC 9.
38982         * modules/pathmax (Depends-on): Add unistd.
38984 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
38986         README: document pointer comparison assumption
38987         * README (Portability guidelines): Document assumption about
38988         pointer comparisons, in response to a recent bug-gnulib comment by
38989         Jeffrey Kegler.
38991 2012-04-12  Bruno Haible  <bruno@clisp.org>
38993         Tests for module 'getrusage'.
38994         * modules/getrusage-tests: New file.
38995         * tests/test-getrusage.c: New file.
38997         New module 'getrusage'.
38998         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
38999         warn-on-use.h.
39000         (getrusage): New declaration.
39001         * lib/getrusage.c: New file.
39002         * m4/getrusage.m4: New file.
39003         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
39004         is declared.
39005         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
39006         HAVE_GETRUSAGE.
39007         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
39008         snippet/c++defs, snippet/warn-on-use.
39009         (Makefile.am): Update generation of sys/resource.h. Substitute
39010         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
39011         * modules/getrusage: New file.
39012         * doc/posix-functions/getrusage.texi: Mention the new module.
39014 2012-04-12  Bruno Haible  <bruno@clisp.org>
39016         Tests for module 'sys_resource'.
39017         * modules/sys_resource-tests: New file.
39018         * tests/test-sys_resource.c: New file.
39020         New module 'sys_resource'.
39021         * lib/sys_resource.in.h: New file.
39022         * m4/sys_resource_h.m4: New file.
39023         * modules/sys_resource: New file.
39024         * doc/posix-headers/sys_resource.texi: Mention the new module.
39026 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
39028         ioctl: Fix compilation error on mingw.
39029         * lib/ioctl.c: Include <windows.h>.
39030         Also reported by Ray Satiro <raysatiro@yahoo.com>.
39032 2012-04-04  Jim Meyering  <meyering@redhat.com>
39034         regex: correct #pragma guard expression
39035         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
39036         not 4.3.  Correct its cpp guard expression.
39038 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
39040         regex: remove unnecessary type punning
39041         Problem reported by Vladimir Serbinenko in
39042         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
39043         * lib/regex.h (struct re_pattern_buffer): Change the type of
39044         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
39045         Fix comment to match code.
39046         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
39047         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
39048         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
39049         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
39050         (set_regs):
39051         Omit no-longer-necessary casts.
39053 2012-04-03  Bruno Haible  <bruno@clisp.org>
39055         Tests for module 'ilogbl'.
39056         * modules/ilogbl-tests: New file.
39057         * tests/test-ilogbl.c: New file.
39059         New module 'ilogbl'.
39060         * lib/math.in.h (ilogbl): New declaration.
39061         * lib/ilogbl.c: New file.
39062         * m4/ilogbl.m4: New file.
39063         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
39064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
39065         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
39066         Split sed invocation, to avoid the limit of 100 substitutions of
39067         HP-UX 'sed'.
39068         * modules/ilogbl: New file.
39069         * tests/test-math-c++.cc: Check the declaration of ilogbl.
39070         * doc/posix-functions/ilogbl.texi: Mention the new module.
39072 2012-04-03  Bruno Haible  <bruno@clisp.org>
39074         Tests for module 'ilogbf'.
39075         * modules/ilogbf-tests: New file.
39076         * tests/test-ilogbf.c: New file.
39078         New module 'ilogbf'.
39079         * lib/math.in.h (ilogbf): New declaration.
39080         * lib/ilogbf.c: New file.
39081         * m4/ilogbf.m4: New file.
39082         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
39083         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
39084         REPLACE_ILOGBF.
39085         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
39086         REPLACE_ILOGBF.
39087         * modules/ilogbf: New file.
39088         * tests/test-math-c++.cc: Check the declaration of ilogbf.
39089         * doc/posix-functions/ilogbf.texi: Mention the new module.
39091 2012-04-03  Bruno Haible  <bruno@clisp.org>
39093         Tests for module 'ilogb'.
39094         * modules/ilogb-tests: New file.
39095         * tests/test-ilogb.c: New file.
39096         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
39097         tests/test-logb-ieee.h.
39099         New module 'ilogb'.
39100         * lib/math.in.h (ilogb): New declaration.
39101         * lib/ilogb.c: New file.
39102         * m4/ilogb.m4: New file.
39103         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
39104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
39105         REPLACE_ILOGB.
39106         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
39107         REPLACE_ILOGB.
39108         * modules/ilogb: New file.
39109         * tests/test-math-c++.cc: Check the declaration of ilogb.
39110         * doc/posix-functions/ilogb.texi: Mention the new module.
39112 2012-04-03  Bruno Haible  <bruno@clisp.org>
39114         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
39115         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
39116         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
39117         (main): Check their values.
39118         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
39119         problem.
39121 2012-04-03  Bruno Haible  <bruno@clisp.org>
39123         Tests for module 'logbl-ieee'.
39124         * modules/logbl-ieee-tests: New file.
39125         * tests/test-logbl-ieee.c: New file.
39127         New module 'logbl-ieee'.
39128         * modules/logbl-ieee: New file.
39130         Tests for module 'logb-ieee'.
39131         * modules/logb-ieee-tests: New file.
39132         * tests/test-logb-ieee.c: New file.
39134         New module 'logb-ieee'.
39135         * modules/logb-ieee: New file.
39137         Tests for module 'logbf-ieee'.
39138         * modules/logbf-ieee-tests: New file.
39139         * tests/test-logbf-ieee.c: New file.
39140         * tests/test-logb-ieee.h: New file.
39142         New module 'logbf-ieee'.
39143         * modules/logbf-ieee: New file.
39145 2012-04-03  Bruno Haible  <bruno@clisp.org>
39147         Tests for module 'logbl'.
39148         * modules/logbl-tests: New file.
39149         * tests/test-logbl.c: New file.
39151         New module 'logbl'.
39152         * lib/math.in.h (logbl): New declaration.
39153         * lib/logbl.c: New file.
39154         * m4/logbl.m4: New file.
39155         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
39156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
39157         REPLACE_LOGBL.
39158         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
39159         REPLACE_LOGBL.
39160         * modules/logbl: New file.
39161         * tests/test-math-c++.cc: Check the declaration of logbl.
39162         * doc/posix-functions/logbl.texi: Mention the new module.
39164 2012-04-02  Bruno Haible  <bruno@clisp.org>
39166         Tests for module 'logbf'.
39167         * modules/logbf-tests: New file.
39168         * tests/test-logbf.c: New file.
39170         New module 'logbf'.
39171         * lib/math.in.h (logbf): New declaration.
39172         * lib/logbf.c: New file.
39173         * m4/logbf.m4: New file.
39174         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
39175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
39176         REPLACE_LOGBF.
39177         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
39178         REPLACE_LOGBF.
39179         * modules/logbf: New file.
39180         * tests/test-math-c++.cc: Check the declaration of logbf.
39181         * doc/posix-functions/logbf.texi: Mention the new module.
39183 2012-04-02  Bruno Haible  <bruno@clisp.org>
39185         logb tests: More tests.
39186         * tests/test-logb.h: New file, based on tests/test-logb.c and
39187         tests/test-frexp.h.
39188         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
39189         (main): Just invoke test_function.
39190         * modules/logb-tests (Files): Add tests/test-logb.h,
39191         tests/minus-zero.h, tests/randomd.c.
39192         (Makefile.am): Add randomd.c to test_logb_SOURCES.
39194         logb: Provide replacement and workarounds.
39195         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
39196         is 1.
39197         * lib/logb.c: New file.
39198         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
39199         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
39200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
39201         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
39202         * modules/logb (Files): Add lib/logb.c.
39203         (Depends-on): Add isfinite, frexp, isnand.
39204         (configure.ac): Compile the replacement code logb.c if needed.
39205         * tests/test-math-c++.cc: Check the declaration of logb.
39206         * doc/posix-functions/logb.texi: Mention the replacement and the bug
39207         with subnormal numbers.
39209 2012-04-02  Bruno Haible  <bruno@clisp.org>
39211         log10* tests: Speed up.
39212         * tests/test-log10.h (test_function): Reduce amount of random numbers
39213         to test.
39215 2012-04-01  Bruno Haible  <bruno@clisp.org>
39217         logf-ieee: Fix test whether logf works.
39218         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
39220 2012-04-01  Bruno Haible  <bruno@clisp.org>
39222         log10l: Work around log10l-ieee test failure on IRIX 6.5.
39223         * lib/log10l.c: Include <float.h>
39224         (log10l): On IRIX, normalize the +Infinity value.
39225         * modules/log10l (Depends-on): Add 'float'.
39226         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
39227         +Infinity.
39229         log10f-ieee: Work around test failure on NetBSD 5.1.
39230         * m4/log10f-ieee.m4: New file.
39231         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
39232         test whether log10f works with a negative argument. Replace it if not.
39233         * lib/log10f.c (log10f): For negative arguments, return NaN.
39234         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
39235         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
39236         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
39238         log10f-ieee: Work around test failure on Solaris 9.
39239         * modules/log10f-ieee (Depends-on): Add log10-ieee.
39240         (configure.ac): Require gl_FUNC_LOG10F.
39242         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
39243         * m4/log10-ieee.m4: New file.
39244         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
39245         whether log10 works with a negative argument. Replace it if not.
39246         * lib/log10.c (log10): For negative arguments, return NaN.
39247         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
39248         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
39249         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
39251         Tests for module 'log10l-ieee'.
39252         * modules/log10l-ieee-tests: New file.
39253         * tests/test-log10l-ieee.c: New file.
39255         New module 'log10l-ieee'.
39256         * modules/log10l-ieee: New file.
39258         Tests for module 'log10-ieee'.
39259         * modules/log10-ieee-tests: New file.
39260         * tests/test-log10-ieee.c: New file.
39262         New module 'log10-ieee'.
39263         * modules/log10-ieee: New file.
39265         Tests for module 'log10f-ieee'.
39266         * modules/log10f-ieee-tests: New file.
39267         * tests/test-log10f-ieee.c: New file.
39268         * tests/test-log10-ieee.h: New file.
39270         New module 'log10f-ieee'.
39271         * modules/log10f-ieee: New file.
39273 2012-04-01  Bruno Haible  <bruno@clisp.org>
39275         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
39276         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
39277         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
39278         workaround.
39279         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
39280         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
39281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
39282         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
39283         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
39284         (Depends-on): Update conditions.
39285         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
39286         IRIX 6.5, OSF/1 5.1 problems.
39288 2012-04-01  Bruno Haible  <bruno@clisp.org>
39290         log10f: Work around OSF/1 5.1 bug.
39291         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
39292         * lib/log10f.c (log10f): If logf exists, use it and provide just the
39293         workaround.
39294         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
39295         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
39296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
39297         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
39298         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
39299         (Depends-on): Update conditions.
39300         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
39302 2012-04-01  Bruno Haible  <bruno@clisp.org>
39304         log10: Work around OSF/1 5.1 bug.
39305         * lib/math.in.h (log10): New declaration.
39306         * lib/log10.c: New file.
39307         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
39308         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
39309         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
39310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
39311         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
39312         * modules/log10 (Files): Add lib/log10.c.
39313         (Depends-on): Add math.
39314         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
39315         * tests/test-math-c++.cc: Check the declaration of log10.
39316         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
39318 2012-03-31  Bruno Haible  <bruno@clisp.org>
39320         log10l tests: More tests.
39321         * modules/log10l-tests (Files): Add tests/test-log10l.h,
39322         tests/minus-zero.h, tests/randoml.c.
39323         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
39324         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
39325         (main): Invoke test_function.
39327         log10f tests: More tests.
39328         * modules/log10f-tests (Files): Add tests/test-log10.h,
39329         tests/minus-zero.h, tests/randomf.c.
39330         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
39331         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
39332         (main): Invoke test_function.
39334         log10 tests: More tests.
39335         * tests/test-log10.h: New file.
39336         * modules/log10-tests (Files): Add tests/test-log10.h,
39337         tests/minus-zero.h, tests/randomd.c.
39338         (Makefile.am): Add randomd.c to test_log10_SOURCES.
39339         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
39340         (main): Invoke test_function.
39342 2012-03-31  Simon Josefsson  <simon@josefsson.org>
39344         fflush: Fix syntax error.
39345         * lib/fflush.c: Include unused-parameter.h, needed for
39346         _GL_UNUSED_PARAMETER.
39347         * modules/fflush (Depends-on): Add snippet/unused-parameter.
39349 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39351         regex: pacify GCC when compiling GRUB
39352         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
39353         a diagnostic.  Reported by Vladimir Serbinenko in
39354         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
39356 2012-03-29  Eric Blake  <eblake@redhat.com>
39358         stdio: don't assume gets any more
39359         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
39360         support.
39361         * modules/stdio (Makefile.am): Likewise.
39362         * lib/stdio-read.c (gets): Likewise.
39363         * tests/test-stdio-c++.cc: Likewise.
39364         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
39365         * lib/stdio.in.h (gets): Make warning occur in more places.
39366         * doc/posix-functions/gets.texi (gets): Update documentation.
39367         Reported by Christer Solskogen.
39369         maint.mk: fix syntax checks without exclusions
39370         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
39371         Reported by Daniel P. Berrange.
39373         strerror_r: avoid compiler warning
39374         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
39375         level.
39377         fflush: avoid compiler warning
39378         * lib/fflush.c (update_fpos_cache): Mark variables that are
39379         potentially unused.
39381 2012-03-25  Bruno Haible  <bruno@clisp.org>
39383         Tests for module 'localeconv'.
39384         * modules/localeconv-tests: New file.
39385         * tests/test-localeconv.c: New file.
39387         New module 'localeconv'.
39388         * lib/locale.in.h (localeconv): New declaration.
39389         * lib/localeconv.c: New file.
39390         * m4/localeconv.m4: New file.
39391         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
39392         REPLACE_LOCALECONV.
39393         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
39394         REPLACE_LOCALECONV.
39395         * modules/localeconv: New file.
39396         * modules/nl_langinfo (Depends-on): Add localeconv.
39397         * modules/human (Depends-on): Likewise.
39398         * doc/posix-functions/localeconv.texi: Mention the new module.
39400 2012-03-25  Bruno Haible  <bruno@clisp.org>
39402         locale: Provide a complete 'struct lconv'.
39403         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39404         'struct lconv' does not contain int_p_cs_precedes.
39405         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39406         * doc/posix-headers/locale.texi: Update.
39408         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
39409         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
39410         * doc/posix-headers/locale.texi: Update.
39412         locale: Provide a working 'struct lconv'.
39413         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
39414         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39415         'struct lconv' does not even contain decimal_point.
39416         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
39417         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
39418         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39419         * doc/posix-headers/locale.texi: Mention the problems with
39420         'struct lconv'.
39421         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
39423 2012-03-24  Bruno Haible  <bruno@clisp.org>
39425         Enable common subexpression optimization in GCC.
39426         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
39427         macros.
39428         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
39429         GCC attribute 'const'.
39430         (uc_locale_language): Declare with GCC attribute 'pure'.
39431         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
39432         with GCC attribute 'const'.
39433         * lib/unictype.in.h (uc_is_general_category_withtable,
39434         uc_combining_class, uc_combining_class_name,
39435         uc_combining_class_long_name, uc_bidi_class_name,
39436         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
39437         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
39438         uc_decimal_value, uc_digit_value, uc_numeric_value,
39439         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
39440         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
39441         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
39442         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
39443         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
39444         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
39445         Declare with GCC attribute 'const'.
39446         (uc_general_category_name, uc_general_category_long_name,
39447         uc_general_category_byname, uc_general_category,
39448         uc_is_general_category, uc_combining_class_byname,
39449         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
39450         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
39451         Declare with GCC attribute 'pure'.
39452         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
39453         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
39454         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
39455         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
39456         with GCC attribute 'pure'.
39457         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
39458         'const'.
39459         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
39460         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
39461         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
39462         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
39463         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
39464         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
39465         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
39466         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
39467         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
39468         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
39469         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
39470         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
39471         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
39472         GCC attribute 'pure'.
39473         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
39474         'const'.
39475         * lib/uniwidth.in.h (uc_width): Simplify declaration.
39476         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
39477         u32_strwidth): Declare with GCC attribute 'pure'.
39479         Enable common subexpression optimization in GCC.
39480         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39481         (alphasort): Declare with GCC attribute 'pure'.
39482         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39483         (atoll): Declare with GCC attribute 'pure'.
39484         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39485         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39486         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
39487         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39488         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
39489         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
39490         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
39492 2012-03-24  Bruno Haible  <bruno@clisp.org>
39494         gnulib-tool: Avoid unintended error output from 'cmp'.
39495         * gnulib-tool (func_add_file, func_update_file, func_import): Use
39496         "cmp -s", not "cmp > /dev/null".
39498 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
39500         gnulib-tool: fix imprecise comments w.r.t. an automake bug
39502         It's not just Automake versions < 1.9b that creates an empty
39503         pkgdatadir at installation time if pkgdata_DATA is specified
39504         to empty; modern automake versions do this as well, at least
39505         until automake 1.11.4 (not yet released at the moment of writing,
39506         but soon to appear).  That behaviour was generally considered a
39507         feature rather than a bug, at least until this discussion:
39508         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
39510         See also automake bugs #10997 and #11030.
39512         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
39513         reference to relevant automake bug numbers.
39514         (func_emit_tests_Makefile_am): Likewise.
39516 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39518         announce-gen: use Digest::SHA when possible
39519         * build-aux/announce-gen: Use Digest::SHA when possible, falling
39520         back to Digest::SHA1 if necessary.
39522 2012-03-20  Jim Meyering  <meyering@redhat.com>
39524         tests: avoid gcc warnings about argv vs. const initializers
39525         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
39526         warnings about discarding 'const' qualifier from pointer target type.
39527         * tests/test-posix_spawn2.c (main): Likewise.
39529 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39531         README-release: simplify slightly
39532         * top/README-release: Run "git checkout master" only once.
39534 2012-03-15  Mark Wielaard  <mark@klomp.org>
39536         git-merge-changelog: add specific example on how to use with hg.
39537         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
39539 2012-03-18  Mark Wielaard  <mark@klomp.org>
39541         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
39543 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
39545         git-version-gen: don't let "prefix" envvar cause trouble
39546         * build-aux/git-version-gen (prefix): Initialize properly,
39547         so as not to use a value specified via the environment.
39548         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
39550 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39552         regex: diagnose too-large repeat counts in EREs
39553         Previously, the code did not diagnose the too-large repeat count
39554         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
39555         as if it were 'b\{1000000000}', which is unexpected.
39556         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
39557         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
39558         is a reasonable one for this problem.  Another option would be to
39559         create a new REG_OVERFLOW error for repeat counts that are too large.
39560         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
39561         count is too large, so that the caller can distinguish the two cases.
39562         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
39563         "Too large" return code, and that repeat counts are one example of this.
39565 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39567         doc: some glibc x32 integer width issues
39568         * doc/posix-headers/sys_types.texi (sys/types.h):
39569         * doc/posix-headers/time.texi (time.h):
39570         Mention that glibc x32 does not conform to POSIX in a couple of
39571         areas related to integer widths.
39573 2012-03-15  Bruno Haible  <bruno@clisp.org>
39575         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
39576         * lib/fma.c (VOLATILE): New macro.
39577         (FUNC): Use it to work around a GCC compiler bug.
39579 2012-03-13  Bruno Haible  <bruno@clisp.org>
39581         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39582         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
39583         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
39584         REPLACE_HYPOTL to 1.
39585         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
39587 2012-03-13  Bruno Haible  <bruno@clisp.org>
39589         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39590         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
39591         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
39592         REPLACE_REMAINDERL to 1.
39593         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
39594         bug.
39596 2012-03-13  Bruno Haible  <bruno@clisp.org>
39598         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39599         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
39600         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
39601         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
39602         too big rounding errors.
39603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
39604         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
39605         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
39606         (Depends-on): Update conditions.
39607         * tests/test-sqrtl.c (my_ldexpl): New function.
39608         (main): Add test of a particular value.
39609         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
39611 2012-03-13  Pádraig Brady  <P@draigBrady.com>
39613         doc: Update timer_* platform portability notes.
39614         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
39615         that always return ENOSYS.
39616         * doc/posix-functions/timer_delete.texi: Likewise.
39617         * doc/posix-functions/timer_gettime.texi: Likewise.
39618         * doc/posix-functions/timer_settime.texi: Likewise.
39620 2012-03-13  Bruno Haible  <bruno@clisp.org>
39622         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39623         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
39624         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
39625         REPLACE_CBRTL to 1.
39626         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
39628 2012-03-13  Bruno Haible  <bruno@clisp.org>
39630         remainderl: Avoid compilation error on AIX >= 5.2.
39631         * lib/math.in.h (remainderl): Undefine macro from the system header.
39633 2012-03-13  Bruno Haible  <bruno@clisp.org>
39635         Avoid compilation errors with MSVC option -fp:strict.
39636         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
39637         * lib/cbrtf.c: Likewise.
39638         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
39640 2012-03-12  Bruno Haible  <bruno@clisp.org>
39642         uninorm: Don't crash in out-of-memory conditions.
39643         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
39644         gracefully.
39645         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
39646         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
39648 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
39650         quote: fix syntax-check
39651         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
39652         also exports quote_quoting_options.
39654 2012-03-12  Simon Josefsson  <simon@josefsson.org>
39656         Collapse list of copyright years to ranges.  See
39657         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
39658         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
39659         build-aux/csharpexec.sh.in, build-aux/gnupload,
39660         build-aux/install-reloc, build-aux/javacomp.sh.in,
39661         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
39662         build-aux/move-if-change, build-aux/reloc-ldflags,
39663         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
39665 2012-03-11  Bruno Haible  <bruno@clisp.org>
39667         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39668         * m4/log2f-ieee.m4: New file.
39669         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
39670         whether log2f works with a minus zero argument. Replace it if not.
39671         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
39672         (Depends-on): Add log2-ieee.
39673         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
39674         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
39676         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39677         * m4/log2-ieee.m4: New file.
39678         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
39679         whether log2 works with a minus zero argument. Replace it if not.
39680         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
39681         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
39682         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
39684         Tests for module 'log2l-ieee'.
39685         * modules/log2l-ieee-tests: New file.
39686         * tests/test-log2l-ieee.c: New file.
39688         New module 'log2l-ieee'.
39689         * modules/log2l-ieee: New file.
39691         Tests for module 'log2-ieee'.
39692         * modules/log2-ieee-tests: New file.
39693         * tests/test-log2-ieee.c: New file.
39695         New module 'log2-ieee'.
39696         * modules/log2-ieee: New file.
39698         Tests for module 'log2f-ieee'.
39699         * modules/log2f-ieee-tests: New file.
39700         * tests/test-log2f-ieee.c: New file.
39701         * tests/test-log2-ieee.h: New file.
39703         New module 'log2f-ieee'.
39704         * modules/log2f-ieee: New file.
39706 2012-03-11  Bruno Haible  <bruno@clisp.org>
39708         Tests for module 'log2l'.
39709         * modules/log2l-tests: New file.
39710         * tests/test-log2l.c: New file.
39712         New module 'log2l'.
39713         * lib/math.in.h (log2l): New declaration.
39714         * lib/log2l.c: New file.
39715         * m4/log2l.m4: New file.
39716         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
39717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
39718         REPLACE_LOG2L.
39719         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
39720         REPLACE_LOG2L.
39721         * modules/log2l: New file.
39722         * tests/test-math-c++.cc: Check the declaration of log2l.
39723         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
39724         and OSF/1 problems.
39726 2012-03-11  Bruno Haible  <bruno@clisp.org>
39728         Tests for module 'log2f'.
39729         * modules/log2f-tests: New file.
39730         * tests/test-log2f.c: New file.
39732         New module 'log2f'.
39733         * lib/math.in.h (log2f): New declaration.
39734         * lib/log2f.c: New file.
39735         * m4/log2f.m4: New file.
39736         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
39737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
39738         REPLACE_LOG2F.
39739         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
39740         REPLACE_LOG2F.
39741         * modules/log2f: New file.
39742         * tests/test-math-c++.cc: Check the declaration of log2f.
39743         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
39744         and OSF/1 and Cygwin problems.
39746 2012-03-11  Bruno Haible  <bruno@clisp.org>
39748         Tests for module 'log2'.
39749         * modules/log2-tests: New file.
39750         * tests/test-log2.c: New file.
39751         * tests/test-log2.h: New file.
39753         New module 'log2'.
39754         * lib/math.in.h (log2): New declaration.
39755         * lib/log2.c: New file.
39756         * m4/log2.m4: New file.
39757         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
39758         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
39759         REPLACE_LOG2.
39760         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
39761         REPLACE_LOG2.
39762         * modules/log2: New file.
39763         * tests/test-math-c++.cc: Check the declaration of log2.
39764         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
39765         and OSF/1 and Cygwin problems.
39767 2012-03-11  Bruno Haible  <bruno@clisp.org>
39769         exp2* tests: More tests.
39770         * tests/test-exp2.h (test_function): Test all integral arguments that
39771         don't need to overflow or denormalized numbers.
39772         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
39773         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
39774         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
39776 2012-03-10  Bruno Haible  <bruno@clisp.org>
39778         log1pl-ieee: Work around test failure on AIX 7.1.
39779         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
39781         log1pl-ieee: Work around test failure on IRIX 6.5.
39782         * m4/log1pl-ieee.m4: New file.
39783         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
39784         test whether log1pl works with a minus zero argument. Replace it if
39785         not.
39786         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
39787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
39788         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
39789         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
39790         (Depends-on): Update conditions.
39791         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
39792         m4/signbit.m4.
39793         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
39794         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
39796         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
39797         * m4/log1pf-ieee.m4: New file.
39798         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
39799         test whether log1pf works with a minus zero argument. Replace it if
39800         not.
39801         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
39802         m4/signbit.m4.
39803         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
39804         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
39806         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
39807         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
39808         (configure.ac): Require gl_FUNC_LOG1PF.
39810         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
39811         * m4/log1p-ieee.m4: New file.
39812         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
39813         whether log1p works with a minus zero argument. Replace it if not.
39814         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
39815         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
39816         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
39817         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
39818         (Depends-on): Update conditions.
39819         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
39820         m4/signbit.m4.
39821         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
39822         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
39824         Tests for module 'log1pl-ieee'.
39825         * modules/log1pl-ieee-tests: New file.
39826         * tests/test-log1pl-ieee.c: New file.
39828         New module 'log1pl-ieee'.
39829         * modules/log1pl-ieee: New file.
39831         Tests for module 'log1p-ieee'.
39832         * modules/log1p-ieee-tests: New file.
39833         * tests/test-log1p-ieee.c: New file.
39835         New module 'log1p-ieee'.
39836         * modules/log1p-ieee: New file.
39838         Tests for module 'log1pf-ieee'.
39839         * modules/log1pf-ieee-tests: New file.
39840         * tests/test-log1pf-ieee.c: New file.
39841         * tests/test-log1p-ieee.h: New file.
39843         New module 'log1pf-ieee'.
39844         * modules/log1pf-ieee: New file.
39846 2012-03-10  Bruno Haible  <bruno@clisp.org>
39848         Tests for module 'log1pl'.
39849         * modules/log1pl-tests: New file.
39850         * tests/test-log1pl.c: New file.
39852         New module 'log1pl'.
39853         * lib/math.in.h (log1pl): New declaration.
39854         * lib/log1pl.c: New file.
39855         * m4/log1pl.m4: New file.
39856         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
39857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
39858         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
39859         * modules/log1pl: New file.
39860         * tests/test-math-c++.cc: Check the declaration of log1pl.
39861         * doc/posix-functions/log1pl.texi: Mention the new module.
39863 2012-03-10  Bruno Haible  <bruno@clisp.org>
39865         Tests for module 'log1pf'.
39866         * modules/log1pf-tests: New file.
39867         * tests/test-log1pf.c: New file.
39869         New module 'log1pf'.
39870         * lib/math.in.h (log1pf): New declaration.
39871         * lib/log1pf.c: New file.
39872         * m4/log1pf.m4: New file.
39873         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
39874         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
39875         REPLACE_LOG1PF.
39876         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
39877         REPLACE_LOG1PF.
39878         * modules/log1pf: New file.
39879         * tests/test-math-c++.cc: Check the declaration of log1pf.
39880         * doc/posix-functions/log1pf.texi: Mention the new module.
39882 2012-03-10  Bruno Haible  <bruno@clisp.org>
39884         log1p tests: More tests.
39885         * tests/test-log1p.h: New file.
39886         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
39887         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
39888         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
39889         (main): Invoke test_function.
39891         log1p: Provide replacement for Minix and MSVC.
39892         * lib/math.in.h (log1p): New declaration.
39893         * lib/log1p.c: New file.
39894         * m4/log1p.m4: New file.
39895         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
39896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
39897         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
39898         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
39899         (Depends-on): Add math, isnand, log, round.
39900         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
39901         HAVE_LOG1P is 0.
39902         * tests/test-math-c++.cc: Check the declaration of log1p.
39903         * doc/posix-functions/log1p.texi: Mention the replacement.
39905 2012-03-10  Bruno Haible  <bruno@clisp.org>
39907         math tests: Small simplification.
39908         * tests/test-exp.h (test_function): Use the same err_bound for
39909         'double' on platforms with sizeof (long double) == sizeof (double)
39910         than on platforms with sizeof (long double) > sizeof (double).
39911         * tests/test-exp2.h (test_function): Likewise.
39912         * tests/test-expm1.h (test_function): Likewise.
39913         * tests/test-log.h (test_function): Likewise.
39915 2012-03-10  Bruno Haible  <bruno@clisp.org>
39917         Fix some comments.
39918         * lib/expl.c: Fix an ambiguous comment.
39919         * lib/expm1.c: Likewise.
39920         * lib/expm1l.c: Likewise.
39921         * lib/exp2.c: Likewise.
39922         * lib/exp2l.c: Likewise.
39924 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
39926         regex: allow inclusion of <regex.h> before <limits.h>
39927         Without this patch, portable programs had to include <limits.h> before
39928         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
39929         I ran into this problem with a test version of GNU grep on Solaris 8.
39930         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
39931         This is done conditionally so that this change can be merged
39932         back to glibc.
39933         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
39934         using the included regex.
39936         fts: depend on fdopendir
39937         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
39938         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
39939         problem was introduced when fdopendir was split out.
39941 2012-03-10  Bruno Haible  <bruno@clisp.org>
39943         Remove unused variables.
39944         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
39945         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
39947 2012-03-10  Bruno Haible  <bruno@clisp.org>
39949         isnanf-nolibm: Fix last commit.
39950         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
39952         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
39953         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
39955 2012-03-10  Bruno Haible  <bruno@clisp.org>
39957         logf-ieee: Work around test failure on NetBSD 5.1.
39958         * m4/logf-ieee.m4: New file.
39959         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
39960         whether logf works with a negative argument. Replace it if not.
39961         * lib/logf.c (logf): For negative arguments, return NaN.
39962         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
39963         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
39964         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
39966         logf-ieee: Work around test failure on Solaris 9.
39967         * modules/logf-ieee (Depends-on): Add log-ieee.
39968         (configure.ac): Require gl_FUNC_LOGF.
39970         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
39971         * m4/log-ieee.m4: New file.
39972         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
39973         log works with a negative argument. Replace it if not.
39974         * lib/log.c (log): For negative arguments, return NaN.
39975         * modules/log-ieee (Files): Add m4/log-ieee.m4.
39976         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
39977         * doc/posix-functions/log.texi: Mention the log-ieee module.
39979         Tests for module 'logl-ieee'.
39980         * modules/logl-ieee-tests: New file.
39981         * tests/test-logl-ieee.c: New file.
39983         New module 'logl-ieee'.
39984         * modules/logl-ieee: New file.
39986         Tests for module 'log-ieee'.
39987         * modules/log-ieee-tests: New file.
39988         * tests/test-log-ieee.c: New file.
39990         New module 'log-ieee'.
39991         * modules/log-ieee: New file.
39993         Tests for module 'logf-ieee'.
39994         * modules/logf-ieee-tests: New file.
39995         * tests/test-logf-ieee.c: New file.
39996         * tests/test-log-ieee.h: New file.
39998         New module 'logf-ieee'.
39999         * modules/logf-ieee: New file.
40001 2012-03-10  Bruno Haible  <bruno@clisp.org>
40003         log: Fix bug introduced on 2012-03-09.
40004         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
40006 2012-03-10  Pádraig Brady  <P@draigBrady.com>
40008         timer-time: link explicitly with pthreads on glibc
40009         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
40010         to support static linking, when newer glibc is
40011         detected, as that contains pthread emulation of
40012         POSIX timer functions where required.
40013         * modules/timer-time: Depend on threadlib to
40014         pull in the appropriate library to link.
40016 2012-03-10  Bruno Haible  <bruno@clisp.org>
40018         log* tests: More tests.
40019         * tests/test-log.h: New file.
40020         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
40021         (main): Invoke test_function.
40022         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
40023         (main): Invoke test_function.
40024         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
40025         (main): Invoke test_function.
40026         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40027         tests/randomd.c.
40028         (Makefile.am): Add randomd.c to test_log_SOURCES.
40029         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40030         tests/randomf.c.
40031         (Makefile.am): Add randomf.c to test_logf_SOURCES.
40032         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40033         tests/randoml.c.
40034         (Depends-on): Add 'float'.
40035         (Makefile.am): Add randoml.c to test_logl_SOURCES.
40037 2012-03-09  Bruno Haible  <bruno@clisp.org>
40039         logl: Work around OSF/1 5.1 bug.
40040         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
40041         * lib/logl.c (logl): If logl exists, use it and provide just the
40042         workaround.
40043         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
40044         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
40045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
40046         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
40047         * modules/logl (configure.ac): Consider REPLACE_LOGL.
40048         (Depends-on): Update conditions.
40049         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
40051 2012-03-09  Bruno Haible  <bruno@clisp.org>
40053         logf: Work around OSF/1 5.1 bug.
40054         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
40055         * lib/logf.c (logf): If logf exists, use it and provide just the
40056         workaround.
40057         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
40058         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
40059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
40060         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
40061         * modules/logf (configure.ac): Consider REPLACE_LOGF.
40062         (Depends-on): Update conditions.
40063         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
40065 2012-03-09  Bruno Haible  <bruno@clisp.org>
40067         log: Work around OSF/1 5.1 bug.
40068         * lib/math.in.h (log): New declaration.
40069         * lib/log.c: New file.
40070         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
40071         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
40072         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
40073         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
40074         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
40075         * modules/log (Files): Add lib/log.c.
40076         (Depends-on): Add math.
40077         (configure.ac): If REPLACE_LOG is 1, compile an override.
40078         * tests/test-math-c++.cc: Check the declaration of log.
40079         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
40081 2012-03-09  Jim Meyering  <meyering@redhat.com>
40083         readtokens.c: adjust wording in a comment
40084         * lib/readtokens.c: Insert omitted "that" in a comment.
40086 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
40088         modechange: add notations +40, 00440, etc.
40089         * lib/modechange.c (mode_compile): Support new notations
40090         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
40092 2012-03-08  Bruno Haible  <bruno@clisp.org>
40094         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
40095         * m4/exp2l-ieee.m4: New file.
40096         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
40097         test whether exp2l works with a NaN argument and with a negative
40098         infinity argument. Replace it if not.
40099         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
40100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
40101         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
40102         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
40103         (Depends-on): Update conditions.
40104         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
40105         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
40106         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
40108         Tests for module 'exp2l-ieee'.
40109         * modules/exp2l-ieee-tests: New file.
40110         * tests/test-exp2l-ieee.c: New file.
40112         New module 'exp2l-ieee'.
40113         * modules/exp2l-ieee: New file.
40115         Tests for module 'exp2-ieee'.
40116         * modules/exp2-ieee-tests: New file.
40117         * tests/test-exp2-ieee.c: New file.
40119         New module 'exp2-ieee'.
40120         * modules/exp2-ieee: New file.
40122         Tests for module 'exp2f-ieee'.
40123         * modules/exp2f-ieee-tests: New file.
40124         * tests/test-exp2f-ieee.c: New file.
40125         * tests/test-exp2-ieee.h: New file.
40127         New module 'exp2f-ieee'.
40128         * modules/exp2f-ieee: New file.
40130 2012-03-08  Bruno Haible  <bruno@clisp.org>
40132         Tests for module 'exp2l'.
40133         * modules/exp2l-tests: New file.
40134         * tests/test-exp2l.c: New file.
40136         New module 'exp2l'.
40137         * lib/math.in.h (exp2l): New declaration.
40138         * lib/exp2l.c: New file.
40139         * lib/expl-table.c: New file, extracted from lib/expl.c.
40140         * lib/expl.c (gl_expl_table): New declaration.
40141         (expl): Remove expl_table. Update reference.
40142         * m4/exp2l.m4: New file.
40143         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
40144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
40145         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
40146         * modules/exp2l: New file.
40147         * modules/expl (Files): Add lib/expl-table.c.
40148         (configure.ac): Compile also expl-table.c.
40149         * tests/test-math-c++.cc: Check the declaration of exp2l.
40150         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
40151         problem.
40153 2012-03-08  Bruno Haible  <bruno@clisp.org>
40155         Tests for module 'exp2f'.
40156         * modules/exp2f-tests: New file.
40157         * tests/test-exp2f.c: New file.
40159         New module 'exp2f'.
40160         * lib/math.in.h (exp2f): New declaration.
40161         * lib/exp2f.c: New file.
40162         * m4/exp2f.m4: New file.
40163         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
40164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
40165         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
40166         * modules/exp2f: New file.
40167         * tests/test-math-c++.cc: Check the declaration of exp2f.
40168         * doc/posix-functions/exp2f.texi: Mention the new module and the
40169         IRIX problem.
40171 2012-03-08  Bruno Haible  <bruno@clisp.org>
40173         Tests for module 'exp2'.
40174         * modules/exp2-tests: New file.
40175         * tests/test-exp2.c: New file.
40176         * tests/test-exp2.h: New file.
40178         New module 'exp2'.
40179         * lib/math.in.h (exp2): New declaration.
40180         * lib/exp2.c: New file.
40181         * m4/exp2.m4: New file.
40182         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
40183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
40184         REPLACE_EXP2.
40185         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
40186         REPLACE_EXP2.
40187         * modules/exp2: New file.
40188         * tests/test-math-c++.cc: Check the declaration of exp2.
40189         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
40190         and OpenBSD problems.
40192 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
40194         savedir: fix comment typo
40195         * lib/savedir.c (savedirstream): Fix typo in comment.
40197 2012-03-08  Bruno Haible  <bruno@clisp.org>
40199         test-readtokens.c: use const; remove unwarranted cast
40200         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
40202 2012-03-08  Bruno Haible  <bruno@clisp.org>
40204         fmal: Avoid compilation error on AIX.
40205         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
40206         AIX 5.2..7.1.
40208 2012-03-08  Bruno Haible  <bruno@clisp.org>
40210         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
40211         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
40212         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
40213         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
40214         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
40215         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
40216         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
40218 2012-03-08  Bruno Haible  <bruno@clisp.org>
40220         remainderf: Override buggy system function on IRIX 6.5.
40221         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
40222         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
40223         when it exists.
40224         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
40226 2012-03-08  Jim Meyering  <meyering@redhat.com>
40228         test-readtokens.c: avoid const-related compilation warnings
40229         * tests/test-readtokens.c: Avoid const-related compilation warnings.
40231 2012-03-07  Jim Meyering  <meyering@redhat.com>
40232             Bruno Haible  <bruno@clisp.org>
40234         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
40235         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
40236         tests/randomd.c.
40237         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
40238         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
40239         tests/randoml.c.
40240         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
40242 2012-03-07  Bruno Haible  <bruno@clisp.org>
40244         expm1l: Avoid compilation error on AIX.
40245         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
40246         AIX 5.2..7.1.
40248 2012-03-07  Bruno Haible  <bruno@clisp.org>
40250         expm1l: Don't override undeclared system function on IRIX 6.5.
40251         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
40252         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
40253         it exists. Set HAVE_DECL_EXPM1L.
40254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
40255         HAVE_EXPM1L.
40256         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
40257         HAVE_EXPM1L.
40258         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
40260 2012-03-07  Bruno Haible  <bruno@clisp.org>
40262         remainderl: Don't override undeclared system function on IRIX 6.5.
40263         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
40264         HAVE_REMAINDERL.
40265         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
40266         declared when it exists. Set HAVE_DECL_REMAINDERL.
40267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
40268         not HAVE_REMAINDERL.
40269         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
40270         HAVE_REMAINDERL.
40271         * doc/posix-functions/remainderl.texi: Mention missing declaration
40272         problem.
40274 2012-03-07  Bruno Haible  <bruno@clisp.org>
40276         rintf: Don't override undeclared system function on IRIX 6.5.
40277         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
40278         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
40279         exists. Set HAVE_DECL_RINTF.
40280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
40281         HAVE_RINTF.
40282         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
40283         HAVE_RINTF.
40284         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
40286 2012-03-07  Bruno Haible  <bruno@clisp.org>
40288         roundl: Avoid compilation error on AIX.
40289         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
40290         AIX 5.2..7.1.
40292 2012-03-07  Bruno Haible  <bruno@clisp.org>
40294         roundl: Don't override undeclared system function on IRIX 6.5.
40295         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
40296         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
40297         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40298         * modules/roundl (configure.ac): For replacement code, test
40299         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40300         (Depends-on): Update conditions.
40301         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
40303 2012-03-07  Bruno Haible  <bruno@clisp.org>
40305         roundf: Don't override undeclared system function on IRIX 6.5.
40306         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
40307         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
40308         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40309         * modules/roundf (configure.ac): For replacement code, test
40310         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40311         (Depends-on): Update conditions.
40312         * modules/roundf-ieee (Depends-on): Update conditions.
40313         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
40315 2012-03-07  Bruno Haible  <bruno@clisp.org>
40317         round: Don't override undeclared system function on IRIX 6.5.
40318         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
40319         argument.
40320         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
40321         also when it is not declared. Set HAVE_ROUND. For replacement code,
40322         test HAVE_ROUND, not HAVE_DECL_ROUND.
40323         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
40324         not HAVE_DECL_ROUND.
40325         (Depends-on): Update conditions.
40326         * modules/round-ieee (Depends-on): Update conditions.
40327         * doc/posix-functions/round.texi: Mention the IRIX problem.
40329 2012-03-07  Bruno Haible  <bruno@clisp.org>
40331         copysignf: Don't override undeclared system function on IRIX 6.5.
40332         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
40333         HAVE_COPYSIGNF.
40334         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
40335         declared when it exists. Set HAVE_DECL_COPYSIGNF.
40336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
40337         not HAVE_COPYSIGNF.
40338         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
40339         HAVE_COPYSIGNF.
40340         * doc/posix-functions/copysignf.texi: Mention missing declaration
40341         problem.
40343 2012-03-07  Jim Meyering  <meyering@redhat.com>
40345         readtokens: add tests
40346         * modules/readtokens-tests: New file.
40347         * tests/test-readtokens.c: New file.
40349 2012-03-07  Jim Meyering  <meyering@redhat.com>
40351         quotearg: the module must now include quote.h
40352         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
40353         So must the module.
40354         * modules/quotearg (Files): Add quote.h.
40356 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
40358         readtokens: avoid core dumps with unusual calling patterns
40359         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
40360         * lib/readtokens.c: Include limits.h.
40361         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
40362         (readtoken): Don't cache the delimiters; the cache code was buggy
40363         if !delim && saved_delim, or if the new n_delim differs from the old.
40364         Also, it wasn't thread-safe.
40366 2012-03-07  Bruno Haible  <bruno@clisp.org>
40368         quote: Adhere to common module description layout.
40369         * modules/quote (Makefile.am): Add back empty section.
40371 2012-03-06  Akim Demaille  <demaille@gostai.com>
40373         quote: fuse into quotearg
40374         This patch is made for the benefit of Bison.
40375         quote does not leave the choice of the quoting style to the user.
40376         quoting_style provides poor customizability, yet quoting_options,
40377         which is very rich, is hidden inside quotearg.c.  So in order to
40378         allow quote customization, move its implementation to quotearg.c.
40379         * lib/quote.c: Remove.
40380         * modules/quote: Adjust.
40381         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
40382         warning: provide all the members of literal structs.
40383         (quote_quoting_options): New.
40384         (quote, quote_n): Import implementation from quote.c.
40385         * lib/quote.h: Import the comments from quote.c.
40386         (quote_quoting_options): New.
40388 2012-03-06  Bruno Haible  <bruno@clisp.org>
40390         Tests for module 'expm1l-ieee'.
40391         * modules/expm1l-ieee-tests: New file.
40392         * tests/test-expm1l-ieee.c: New file.
40394         New module 'expm1l-ieee'.
40395         * modules/expm1l-ieee: New file.
40397         Tests for module 'expm1f-ieee'.
40398         * modules/expm1f-ieee-tests: New file.
40399         * tests/test-expm1f-ieee.c: New file.
40401         New module 'expm1f-ieee'.
40402         * modules/expm1f-ieee: New file.
40404         Tests for module 'expm1-ieee'.
40405         * modules/expm1-ieee-tests: New file.
40406         * tests/test-expm1-ieee.c: New file.
40407         * tests/test-expm1-ieee.h: New file.
40409         New module 'expm1-ieee'.
40410         * modules/expm1-ieee: New file.
40411         * m4/expm1-ieee.m4: New file.
40412         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
40413         whether expm1 works with a minus zero argument. Replace it if not.
40414         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
40415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
40416         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
40417         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
40418         (Depends-on): Update conditions.
40419         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
40420         AIX problem.
40422 2012-03-06  Bruno Haible  <bruno@clisp.org>
40424         Work around expm1f bug on IRIX 6.5.
40425         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
40426         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
40427         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
40428         not work.
40429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
40430         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
40431         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
40432         (Depends-on): Update conditions.
40433         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
40435 2012-03-06  Bruno Haible  <bruno@clisp.org>
40437         Tests for module 'expm1l'.
40438         * modules/expm1l-tests: New file.
40439         * tests/test-expm1l.c: New file.
40441         New module 'expm1l'.
40442         * lib/math.in.h (expm1l): New declaration.
40443         * lib/expm1l.c: New file.
40444         * m4/expm1l.m4: New file.
40445         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
40446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
40447         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
40448         * modules/expm1l: New file.
40449         * tests/test-math-c++.cc: Check the declaration of expm1l.
40450         * doc/posix-functions/expm1l.texi: Mention the new module.
40452 2012-03-06  Bruno Haible  <bruno@clisp.org>
40454         Tests for module 'expm1f'.
40455         * modules/expm1f-tests: New file.
40456         * tests/test-expm1f.c: New file.
40458         New module 'expm1f'.
40459         * lib/math.in.h (expm1f): New declaration.
40460         * lib/expm1f.c: New file.
40461         * m4/expm1f.m4: New file.
40462         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
40463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
40464         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
40465         * modules/expm1f: New file.
40466         * tests/test-math-c++.cc: Check the declaration of expm1f.
40467         * doc/posix-functions/expm1f.texi: Mention the new module.
40469 2012-03-06  Bruno Haible  <bruno@clisp.org>
40471         Tests for module 'expm1'.
40472         * modules/expm1-tests: New file.
40473         * tests/test-expm1.c: New file.
40474         * tests/test-expm1.h: New file.
40476         New module 'expm1'.
40477         * lib/math.in.h (expm1): New declaration.
40478         * lib/expm1.c: New file.
40479         * m4/expm1.m4: New file.
40480         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
40481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
40482         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
40483         * modules/expm1: New file.
40484         * tests/test-math-c++.cc: Check the declaration of expm1.
40485         * doc/posix-functions/expm1.texi: Mention the new module.
40487 2012-03-06  Bruno Haible  <bruno@clisp.org>
40489         math: Ensure declarations of math functions.
40490         * modules/acosf (Depends-on): Add 'extensions'.
40491         * modules/asinf (Depends-on): Likewise.
40492         * modules/atan2f (Depends-on): Likewise.
40493         * modules/atanf (Depends-on): Likewise.
40494         * modules/cbrt (Depends-on): Likewise.
40495         * modules/cbrtf (Depends-on): Likewise.
40496         * modules/cbrtl (Depends-on): Likewise.
40497         * modules/copysignf (Depends-on): Likewise.
40498         * modules/copysignl (Depends-on): Likewise.
40499         * modules/cosf (Depends-on): Likewise.
40500         * modules/coshf (Depends-on): Likewise.
40501         * modules/expf (Depends-on): Likewise.
40502         * modules/fabsf (Depends-on): Likewise.
40503         * modules/fabsl (Depends-on): Likewise.
40504         * modules/fmaf (Depends-on): Likewise.
40505         * modules/fmal (Depends-on): Likewise.
40506         * modules/fmodf (Depends-on): Likewise.
40507         * modules/fmodl (Depends-on): Likewise.
40508         * modules/frexpf (Depends-on): Likewise.
40509         * modules/frexpl (Depends-on): Likewise.
40510         * modules/hypot (Depends-on): Likewise.
40511         * modules/hypotf (Depends-on): Likewise.
40512         * modules/hypotl (Depends-on): Likewise.
40513         * modules/ldexpf (Depends-on): Likewise.
40514         * modules/ldexpl (Depends-on): Likewise.
40515         * modules/log10f (Depends-on): Likewise.
40516         * modules/log10l (Depends-on): Likewise.
40517         * modules/log1p (Depends-on): Likewise.
40518         * modules/logb (Depends-on): Likewise.
40519         * modules/logf (Depends-on): Likewise.
40520         * modules/modff (Depends-on): Likewise.
40521         * modules/modfl (Depends-on): Likewise.
40522         * modules/powf (Depends-on): Likewise.
40523         * modules/remainderf (Depends-on): Likewise.
40524         * modules/remainderl (Depends-on): Likewise.
40525         * modules/rintf (Depends-on): Likewise.
40526         * modules/rintl (Depends-on): Likewise.
40527         * modules/sinf (Depends-on): Likewise.
40528         * modules/sinhf (Depends-on): Likewise.
40529         * modules/sqrtf (Depends-on): Likewise.
40530         * modules/tanf (Depends-on): Likewise.
40531         * modules/tanhf (Depends-on): Likewise.
40532         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
40533         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
40534         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
40535         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
40536         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
40537         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
40538         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
40539         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
40540         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
40541         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
40542         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
40543         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
40544         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
40545         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
40546         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
40547         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
40548         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
40549         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
40550         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
40551         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
40552         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
40553         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
40554         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
40555         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
40556         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
40557         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
40558         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
40559         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
40560         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
40561         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
40562         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
40563         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
40564         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40565         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
40566         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
40567         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
40568         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
40569         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
40570         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
40571         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
40572         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
40574 2012-03-06  Bruno Haible  <bruno@clisp.org>
40576         math: Update module names in warnings.
40577         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
40578         tanl): Use specific module name in warn-on-use warning.
40580 2012-03-06  Bruno Haible  <bruno@clisp.org>
40582         expl: Simplify computation.
40583         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
40585 2012-03-05  Bruno Haible  <bruno@clisp.org>
40587         exp* tests: More tests.
40588         * tests/test-exp.h: New file.
40589         * tests/test-exp.c: Include <float.h> and test-exp.h.
40590         (main): Invoke test_function.
40591         * tests/test-expf.c: Include <float.h> and test-exp.h.
40592         (main): Invoke test_function.
40593         * tests/test-expl.c: Include <float.h> and test-exp.h.
40594         (main): Invoke test_function.
40595         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
40596         (Makefile.am): Add randomd.c to test_exp_SOURCES.
40597         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
40598         (Makefile.am): Add randomf.c to test_expf_SOURCES.
40599         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
40600         (Depends-on): Add 'float'.
40601         (Makefile.am): Add randoml.c to test_expl_SOURCES.
40603         expl: Fix precision of computed result.
40604         * lib/expl.c: Completely rewritten.
40605         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
40606         (Maintainer): Add me.
40607         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
40609 2012-03-05  Bruno Haible  <bruno@clisp.org>
40611         cbrt* tests: More tests.
40612         * tests/test-cbrt.h: New file.
40613         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
40614         (main): Invoke test_function.
40615         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
40616         (main): Invoke test_function.
40617         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
40618         (main): Invoke test_function.
40619         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
40620         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
40621         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
40622         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
40623         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
40624         (Depends-on): Add 'float'.
40625         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
40627 2012-03-05  Bruno Haible  <bruno@clisp.org>
40629         hypot* tests: More tests.
40630         * tests/test-hypot.h: New file, partially extracted from
40631         tests/test-hypotl.c.
40632         * tests/test-hypot.c: Include test-hypot.h.
40633         (main): Invoke test_function.
40634         * tests/test-hypotf.c: Include test-hypot.h.
40635         (main): Invoke test_function.
40636         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
40637         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
40638         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
40639         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
40640         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
40641         tests/randomf.c.
40642         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
40643         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
40644         tests/randoml.c.
40645         (Depends-on): Add 'fpucw', 'float'.
40646         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
40648 2012-03-05  Bruno Haible  <bruno@clisp.org>
40650         fpucw: Doc about FreeBSD.
40651         * lib/fpucw.h: Mention FreeBSD in comments.
40653 2012-03-04  Bruno Haible  <bruno@clisp.org>
40655         sqrt* tests: More tests.
40656         * tests/test-sqrt.h: New file.
40657         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
40658         (main): Invoke test_function.
40659         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
40660         (main): Invoke test_function.
40661         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
40662         (main): Invoke test_function.
40663         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
40664         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
40665         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
40666         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
40667         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
40668         (Depends-on): Add 'float'.
40669         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
40671 2012-03-04  Bruno Haible  <bruno@clisp.org>
40673         remainder* tests: More tests.
40674         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
40675         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
40676         (main): Invoke test_function.
40677         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
40678         (main): Invoke test_function.
40679         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
40680         (main): Invoke test_function.
40681         * modules/remainder-tests (Files): Add tests/test-remainder.h,
40682         tests/randomd.c.
40683         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
40684         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
40685         tests/randomf.c.
40686         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
40687         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
40688         tests/randoml.c.
40689         (Depends-on): Add 'float'.
40690         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
40692 2012-03-04  Bruno Haible  <bruno@clisp.org>
40694         remainder, remainderf, remainderl: Fix computation for large quotients.
40695         * lib/remainder.c: Completely rewritten.
40696         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
40697         USE_FLOAT.
40698         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
40699         USE_LONG_DOUBLE.
40700         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
40701         isnand, isinf. Remove round, fma.
40702         * modules/remainderf (Files): Add lib/remainder.c.
40703         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
40704         Remove roundf, fmaf.
40705         * modules/remainderl (Files): Add lib/remainder.c.
40706         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
40707         isinf. Remove roundl, fmal.
40708         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
40709         REMAINDER_LIBM.
40710         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
40711         REMAINDERF_LIBM.
40712         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
40713         REMAINDERL_LIBM.
40715 2012-03-04  Bruno Haible  <bruno@clisp.org>
40717         fmod* tests: More tests.
40718         * tests/test-fmod.h (my_ldexp): New function.
40719         (test_function): Reduce amount of random numbers to test. Add tests
40720         of very large quotients x / y.
40721         * tests/test-fmod.c (MAX_EXP): New macro.
40722         * tests/test-fmodf.c (MAX_EXP): Likewise.
40723         * tests/test-fmodl.c (MAX_EXP): Likewise.
40725 2012-03-04  Bruno Haible  <bruno@clisp.org>
40727         fmod, fmodl: Fix computation for large quotients x / y.
40728         * lib/fmod.c: Completely rewritten.
40729         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
40730         USE_LONG_DOUBLE.
40731         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
40732         isnand. Remove fma.
40733         * modules/fmodl (Files): Add lib/fmod.c.
40734         (Depends-on): Add float, isfinite, signbit, fabsl,
40735         frexpl, ldexpl, isnanl. Remove fma.
40736         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
40737         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
40739 2012-03-03  Bruno Haible  <bruno@clisp.org>
40741         fmod* tests: More tests.
40742         * tests/test-fmod.h: New file.
40743         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
40744         (main): Invoke test_function.
40745         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
40746         (main): Invoke test_function.
40747         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
40748         (main): Invoke test_function.
40749         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
40750         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
40751         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
40752         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
40753         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
40754         (Depends-on): Add 'float'.
40755         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
40757 2012-03-03  Bruno Haible  <bruno@clisp.org>
40759         rint* tests: More tests.
40760         * tests/test-rint.h: New file, partially extracted from
40761         tests/test-rintl.c.
40762         * tests/test-rint.c: Include test-rint.h.
40763         (main): Invoke test_function.
40764         * tests/test-rintf.c: Include test-rint.h.
40765         (main): Invoke test_function.
40766         * tests/test-rintl.c: Include test-rint.h.
40767         (main): Invoke test_function.
40768         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
40769         (Makefile.am): Add randomd.c to test_rint_SOURCES.
40770         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
40771         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
40772         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
40773         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
40775 2012-03-03  Bruno Haible  <bruno@clisp.org>
40777         modf* tests: More tests.
40778         * tests/test-modf.h: New file.
40779         * tests/test-modf.c: Include <float.h> and test-modf.h.
40780         (main): Invoke test_function.
40781         * tests/test-modff.c: Include <float.h> and test-modf.h.
40782         (main): Invoke test_function.
40783         * tests/test-modfl.c: Include <float.h> and test-modf.h.
40784         (main): Invoke test_function.
40785         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
40786         (Makefile.am): Add randomd.c to test_modf_SOURCES.
40787         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
40788         (Makefile.am): Add randomf.c to test_modff_SOURCES.
40789         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
40790         (Depends-on): Add 'float'.
40791         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
40793 2012-03-03  Bruno Haible  <bruno@clisp.org>
40795         fabs* tests: More tests.
40796         * tests/test-fabs.h: New file, partially extracted from
40797         tests/test-fabsl.c.
40798         * tests/test-fabs.c (RANDOM): New macro.
40799         * tests/test-fabsf.c (RANDOM): New macro.
40800         * tests/test-fabsl.c (RANDOM): New macro.
40801         * modules/fabs-tests (Files): Add tests/randomd.c.
40802         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
40803         * modules/fabsf-tests (Files): Add tests/randomf.c.
40804         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
40805         * modules/fabsl-tests (Files): Add tests/randoml.c.
40806         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
40808 2012-03-03  Bruno Haible  <bruno@clisp.org>
40810         ldexp* tests: More tests.
40811         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
40812         * tests/test-ldexp.c (RANDOM): New macro.
40813         * tests/test-ldexpf.c (RANDOM): New macro.
40814         * tests/test-ldexpl.c (RANDOM): New macro.
40815         * modules/ldexp-tests (Files): Add tests/randomd.c.
40816         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
40817         * modules/ldexpf-tests (Files): Add tests/randomf.c.
40818         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
40819         * modules/ldexpl-tests (Files): Add tests/randoml.c.
40820         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
40822 2012-03-03  Bruno Haible  <bruno@clisp.org>
40824         frexp* tests: More tests.
40825         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
40826         * tests/test-frexp.c (RANDOM): New macro.
40827         * tests/test-frexpf.c (RANDOM): New macro.
40828         * tests/test-frexpl.c (RANDOM): New macro.
40829         * modules/frexp-tests (Files): Add tests/randomd.c.
40830         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
40831         * modules/frexpf-tests (Files): Add tests/randomf.c.
40832         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
40833         * modules/frexpl-tests (Files): Add tests/randoml.c.
40834         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
40836 2012-03-03  Bruno Haible  <bruno@clisp.org>
40838         Support for pseudo-random numbers in tests.
40839         * tests/randomf.c: New file.
40840         * tests/randomd.c: New file.
40841         * tests/randoml.c: New file.
40842         * tests/macros.h (randomf, randomd, randoml): New declarations.
40844 2012-03-03  Bruno Haible  <bruno@clisp.org>
40846         frexp* tests: Refactor.
40847         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
40848         * tests/test-frexp.c: Include and use it.
40849         * tests/test-frexpf.c: Likewise.
40850         * tests/test-frexpl.c: Likewise.
40851         * modules/frexp-tests (Files): Add tests/test-frexp.h.
40852         * modules/frexpf-tests (Files): Likewise.
40853         * modules/frexpl-tests (Files): Likewise.
40855 2012-03-02  Jim Meyering  <meyering@redhat.com>
40857         maint: don't specify XZ_OPT=-9ev in dist-related rule
40858         Using xz's -9 option is warranted only if you have a very large
40859         tarball (see xz's documentation for the sizes vs. presets), and
40860         requires 64MiB of memory at decompression time.
40861         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
40862         Automake's default of just "-e" is fine.  Override on a
40863         per-package basis by setting XZ_OPT e.g., in cfg.mk.
40865 2012-03-01  Eric Blake  <eblake@redhat.com>
40867         maint.mk: allow announcement for non-gnulib project
40868         * maint.mk (announcement): Skip gnulib version if not used.
40870 2012-03-01  Jim Meyering  <meyering@redhat.com>
40872         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
40873         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
40874         envvar settings cannot interfere.  Otherwise, setting envvars like
40875         prohibit=foo require=bar, etc. would cause spurious test failures.
40877 2012-03-01  Eric Blake  <eblake@redhat.com>
40879         maint.mk: add per-line exclusions to prohibitions
40880         * maint.mk (_sc_search_regexp): Add $exclude parameter.
40881         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
40882         (sc_const_long_option): Use it.
40884 2012-03-01  Bruno Haible  <bruno@clisp.org>
40886         Tests for module 'expl-ieee'.
40887         * modules/expl-ieee-tests: New file.
40888         * tests/test-expl-ieee.c: New file.
40890         New module 'expl-ieee'.
40891         * modules/expl-ieee: New file.
40893         Tests for module 'exp-ieee'.
40894         * modules/exp-ieee-tests: New file.
40895         * tests/test-exp-ieee.c: New file.
40897         New module 'exp-ieee'.
40898         * modules/exp-ieee: New file.
40900         Tests for module 'expf-ieee'.
40901         * modules/expf-ieee-tests: New file.
40902         * tests/test-expf-ieee.c: New file.
40903         * tests/test-exp-ieee.h: New file.
40905         New module 'expf-ieee'.
40906         * modules/expf-ieee: New file.
40908 2012-02-29  Bruno Haible  <bruno@clisp.org>
40910         cbrtl-ieee: Work around test failure on IRIX 6.5.
40911         * m4/cbrtl-ieee.m4: New file.
40912         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
40913         test whether cbrtl works with a minus zero argument. Replace it if not.
40914         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
40915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
40916         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
40917         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
40918         (Depends-on): Update conditions.
40919         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
40920         m4/signbit.m4.
40921         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
40922         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
40923         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
40925         Tests for module 'cbrtl-ieee'.
40926         * modules/cbrtl-ieee-tests: New file.
40927         * tests/test-cbrtl-ieee.c: New file.
40929         New module 'cbrtl-ieee'.
40930         * modules/cbrtl-ieee: New file.
40932         Tests for module 'cbrt-ieee'.
40933         * modules/cbrt-ieee-tests: New file.
40934         * tests/test-cbrt-ieee.c: New file.
40936         New module 'cbrt-ieee'.
40937         * modules/cbrt-ieee: New file.
40939         Tests for module 'cbrtf-ieee'.
40940         * modules/cbrtf-ieee-tests: New file.
40941         * tests/test-cbrtf-ieee.c: New file.
40942         * tests/test-cbrt-ieee.h: New file.
40944         New module 'cbrtf-ieee'.
40945         * modules/cbrtf-ieee: New file.
40947 2012-02-29  Bruno Haible  <bruno@clisp.org>
40949         cbrtf: Work around bug in IRIX 6.5 system function.
40950         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
40951         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
40952         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
40953         work.
40954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
40955         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
40956         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
40957         (Depends-on): Update conditions.
40958         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
40960 2012-02-29  Bruno Haible  <bruno@clisp.org>
40962         Tests for module 'cbrtl'.
40963         * modules/cbrtl-tests: New file.
40964         * tests/test-cbrtl.c: New file.
40966         New module 'cbrtl'.
40967         * lib/math.in.h (cbrtl): New declaration.
40968         * lib/cbrtl.c: New file.
40969         * m4/cbrtl.m4: New file.
40970         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
40971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
40972         HAVE_DECL_CBRTL.
40973         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
40974         HAVE_DECL_CBRTL.
40975         * modules/cbrtl: New file.
40976         * tests/test-math-c++.cc: Check the declaration of cbrtl.
40977         * doc/posix-functions/cbrtl.texi: Mention the new module.
40979 2012-02-29  Bruno Haible  <bruno@clisp.org>
40981         Tests for module 'cbrtf'.
40982         * modules/cbrtf-tests: New file.
40983         * tests/test-cbrtf.c: New file.
40985         New module 'cbrtf'.
40986         * lib/math.in.h (cbrtf): New declaration.
40987         * lib/cbrtf.c: New file.
40988         * m4/cbrtf.m4: New file.
40989         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
40990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
40991         HAVE_DECL_CBRTF.
40992         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
40993         HAVE_DECL_CBRTF.
40994         * modules/cbrtf: New file.
40995         * tests/test-math-c++.cc: Check the declaration of cbrtf.
40996         * doc/posix-functions/cbrtf.texi: Mention the new module.
40998 2012-02-29  Bruno Haible  <bruno@clisp.org>
41000         cbrt: Provide replacement on MSVC and Minix.
41001         * lib/math.in.h (cbrt): New declaration.
41002         * lib/cbrt.c: New file.
41003         * m4/cbrt.m4: New file.
41004         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
41005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
41006         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
41007         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
41008         (Depends-on): Add dependencies.
41009         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
41010         * tests/test-math-c++.cc: Check the declaration of cbrt.
41011         * doc/posix-functions/cbrt.texi: Mention that the module provides a
41012         replacement.
41014 2012-02-29  Bruno Haible  <bruno@clisp.org>
41016         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
41017         * m4/hypotl-ieee.m4: New file.
41018         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
41019         test whether hypotl works with mixed NaN and Infinity arguments.
41020         Replace it if not.
41021         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
41022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
41023         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
41024         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
41025         (Depends-on): Update conditions.
41026         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
41027         (Depends-on): Add hypot-ieee.
41028         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
41029         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
41031         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
41032         * m4/hypotf-ieee.m4: New file.
41033         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
41034         test whether hypotf works with mixed NaN and Infinity arguments.
41035         Replace it if not.
41036         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
41037         (Depends-on): Add hypot-ieee.
41038         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
41039         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
41041         hypot-ieee: Work around test failure on OSF/1 and native Windows.
41042         * lib/math.in.h (hypot): New declaration.
41043         * lib/hypot.c: New file.
41044         * m4/hypot-ieee.m4: New file.
41045         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
41046         whether hypot works with mixed NaN and Infinity arguments. Replace it
41047         if not.
41048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
41049         REPLACE_HYPOT.
41050         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
41051         * modules/hypot (Files): Add lib/hypot.c.
41052         (Depends-on): Add dependencies.
41053         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
41054         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
41055         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
41056         * tests/test-math-c++.cc: Check the declaration of hypot.
41057         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
41059         Tests for module 'hypotl-ieee'.
41060         * modules/hypotl-ieee-tests: New file.
41061         * tests/test-hypotl-ieee.c: New file.
41063         New module 'hypotl-ieee'.
41064         * modules/hypotl-ieee: New file.
41066         Tests for module 'hypot-ieee'.
41067         * modules/hypot-ieee-tests: New file.
41068         * tests/test-hypot-ieee.c: New file.
41070         New module 'hypot-ieee'.
41071         * modules/hypot-ieee: New file.
41073         Tests for module 'hypotf-ieee'.
41074         * modules/hypotf-ieee-tests: New file.
41075         * tests/test-hypotf-ieee.c: New file.
41076         * tests/test-hypot-ieee.h: New file.
41078         New module 'hypotf-ieee'.
41079         * modules/hypotf-ieee: New file.
41081 2012-02-29  Bruno Haible  <bruno@clisp.org>
41083         Remove unused variables.
41084         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
41085         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
41086         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
41087         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
41089 2012-02-29  Eric Blake  <eblake@redhat.com>
41091         termios: fix pid_t always, not just for tcgetsid
41092         * doc/posix-headers/termios.texi (termios.h): Mention problem.
41093         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
41094         just when building tcgetsid.
41096 2012-02-29  Bruno Haible  <bruno@clisp.org>
41098         Tests for module 'hypotl'.
41099         * modules/hypotl-tests: New file.
41100         * tests/test-hypotl.c: New file.
41102         New module 'hypotl'.
41103         * lib/math.in.h (hypotl): New declaration.
41104         * lib/hypotl.c: New file.
41105         * m4/hypotl.m4: New file.
41106         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
41107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
41108         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
41109         * modules/hypotl: New file.
41110         * tests/test-math-c++.cc: Check the hypotl declaration.
41111         * doc/posix-functions/hypotl.texi: Mention the new module.
41113 2012-02-29  Eric Blake  <eblake@redhat.com>
41115         tcgetsid: fix cygwin header bug
41116         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
41118         docs: update cygwin progress
41119         * doc/posix-functions/llround.texi (llround): Added in cygwin
41120         1.7.8.
41121         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
41122         * doc/glibc-functions/program_invocation_name.texi
41123         (program_invocation_name): Likewise.
41124         * doc/glibc-functions/program_invocation_short_name.texi
41125         (program_invocation_short_name): Likewise.
41126         * doc/glibc-functions/madvise.texi (madvise): Likewise.
41127         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
41128         Likewise.
41129         * doc/posix-functions/pthread_spin_destroy.texi
41130         (pthread_spin_destroy): Added in cygwin 1.7.10.
41131         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
41132         Likewise.
41133         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
41134         Likewise.
41135         * doc/posix-functions/pthread_spin_trylock.texi
41136         (pthread_spin_trylock): Likewise.
41137         * doc/posix-functions/pthread_spin_unlock.texi
41138         (pthread_spin_unlock): Likewise.
41139         * doc/posix-functions/pthread_setschedprio.texi
41140         (pthread_setschedprio): Likewise.
41141         * doc/posix-functions/pthread_attr_getstack.texi
41142         (pthread_attr_getstack): Likewise.
41143         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
41144         (pthread_attr_getstackaddr): Likewise.
41145         * doc/glibc-functions/pthread_getattr_np.texi
41146         (pthread_getattr_np): Likewise.
41147         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
41148         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
41149         * doc/posix-functions/clock_settime.texi (clock_settime):
41150         Likewise.
41151         * doc/posix-functions/pthread_attr_getguardsize.texi
41152         (pthread_attr_getguardsize): Likewise.
41153         * doc/posix-functions/pthread_attr_setguardsize.texi
41154         (pthread_attr_setguardsize): Likewise.
41155         * doc/posix-functions/pthread_attr_setstack.texi
41156         (pthread_attr_setstack): Likewise.
41157         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
41158         (pthread_attr_setstackaddr): Likewise.
41159         * doc/posix-functions/clock_getcpuclockid.texi
41160         (clock_getcpuclockid): Likewise.
41161         * doc/posix-functions/pthread_getcpuclockid.texi
41162         (pthread_getcpuclockid): Likewise.
41163         * doc/glibc-functions/error.texi (error): Likewise.
41164         * doc/glibc-functions/error_at_line.texi (error_at_line):
41165         Likewise.
41166         * doc/glibc-functions/error_message_count.texi
41167         (error_message_count): Likewise.
41168         * doc/glibc-functions/error_one_per_line.texi
41169         (error_one_per_line): Likewise.
41170         * doc/glibc-functions/error_print_progname.texi
41171         (error_print_progname): Likewise.
41172         * doc/posix-functions/pthread_condattr_getclock.texi
41173         (pthread_condattr_getclock): Likewise.
41174         * doc/posix-functions/pthread_condattr_setclock.texi
41175         (pthread_condattr_setclock): Likewise.
41176         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
41177         Likewise.
41178         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
41179         * doc/glibc-functions/getpt.texi (getpt): Likewise.
41180         * doc/glibc-functions/get_current_dir_name.texi
41181         (get_current_dir_name): Likewise.
41182         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
41183         Likewise.
41184         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
41185         wrong return type.
41186         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
41187         1.7.11.
41189 2012-02-29  Bruno Haible  <bruno@clisp.org>
41191         Tests for module 'hypotf'.
41192         * modules/hypotf-tests: New file.
41193         * tests/test-hypotf.c: New file.
41195         New module 'hypotf'.
41196         * lib/math.in.h (hypotf): New declaration.
41197         * lib/hypotf.c: New file.
41198         * m4/hypotf.m4: New file.
41199         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
41200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
41201         REPLACE_HYPOTF.
41202         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
41203         REPLACE_HYPOTF.
41204         * modules/hypotf: New file.
41205         * tests/test-math-c++.cc: Check the hypotf declaration.
41206         * doc/posix-functions/hypotf.texi: Mention the new module.
41208         hypot: Prepare for hypotf module.
41209         * m4/hypot.m4: New file.
41210         * modules/hypot (Files): Add m4/hypot.m4.
41211         (configure.ac): Invoke gl_FUNC_HYPOT.
41213 2012-02-29  Bruno Haible  <bruno@clisp.org>
41215         hypot tests: More tests.
41216         * tests/test-hypot.c: Include <float.h>.
41217         (main): Add tests about overflow and underflow.
41219 2012-02-29  Bruno Haible  <bruno@clisp.org>
41221         math code: Add comments.
41222         * lib/acosl.c: Add comment about related glibc source files.
41223         * lib/asinl.c: Likewise.
41224         * lib/atanl.c: Likewise.
41225         * lib/expl.c: Likewise.
41226         * lib/logl.c: Likewise.
41227         * lib/sincosl.c: Likewise.
41228         * lib/sinl.c: Likewise.
41229         * lib/tanl.c: Likewise.
41230         * lib/trigl.c: Likewise.
41231         * lib/cosl.c: Likewise. Fix comments.
41233 2012-02-28  Bruno Haible  <bruno@clisp.org>
41235         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
41236         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
41237         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
41238         HUGE_VALL are defined.
41239         (numeric_equald): Renamed from numeric_equal.
41240         (numeric_equalf, numeric_equall): New functions.
41241         (main): Check also HUGE_VALF, HUGE_VALL.
41242         * modules/math-tests (Files): Add tests/macros.h.
41243         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
41244         HUGE_VALL.
41246 2012-02-28  Bruno Haible  <bruno@clisp.org>
41248         doc: Move ISO C11 feature notes into POSIX chapters.
41249         * doc/posix-functions/aligned_alloc.texi: Renamed from
41250         doc/glibc-functions/aligned_alloc.texi.
41251         * doc/posix-functions/quick_exit.texi: Renamed from
41252         doc/glibc-functions/quick_exit.texi.
41253         * doc/posix-headers/uchar.texi: Renamed from
41254         doc/glibc-headers/uchar.texi.
41255         * doc/posix-functions/c16rtomb.texi: Renamed from
41256         doc/glibc-functions/c16rtomb.texi.
41257         * doc/posix-functions/c32rtomb.texi: Renamed from
41258         doc/glibc-functions/c32rtomb.texi.
41259         * doc/posix-functions/mbrtoc16.texi: Renamed from
41260         doc/glibc-functions/mbrtoc16.texi.
41261         * doc/posix-functions/mbrtoc32.texi: Renamed from
41262         doc/glibc-functions/mbrtoc32.texi.
41263         * doc/gnulib.texi: Update.
41264         (Glibc uchar.h): Remove section.
41265         Suggested by Eric Blake.
41267 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
41269         stdnoreturn: port to MSVC better
41270         MSVC standard headers use __declspec(noreturn), so #define noreturn
41271         to empty on that platform.  Reported by Bruno Haible in
41272         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
41273         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
41274         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
41276 2012-02-28  Bruno Haible  <bruno@clisp.org>
41278         doc: Mention new glibc headers and functions.
41279         * doc/glibc-headers/uchar.texi: New file.
41280         * doc/glibc-functions/aligned_alloc.texi: New file.
41281         * doc/glibc-functions/c16rtomb.texi: New file.
41282         * doc/glibc-functions/c32rtomb.texi: New file.
41283         * doc/glibc-functions/clock_adjtime.texi: New file.
41284         * doc/glibc-functions/fanotify_init.texi: New file.
41285         * doc/glibc-functions/fanotify_mark.texi: New file.
41286         * doc/glibc-functions/inet6_opt_append.texi: New file.
41287         * doc/glibc-functions/inet6_opt_find.texi: New file.
41288         * doc/glibc-functions/inet6_opt_finish.texi: New file.
41289         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
41290         * doc/glibc-functions/inet6_opt_init.texi: New file.
41291         * doc/glibc-functions/inet6_opt_next.texi: New file.
41292         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
41293         * doc/glibc-functions/inet6_rth_add.texi: New file.
41294         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
41295         * doc/glibc-functions/inet6_rth_init.texi: New file.
41296         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
41297         * doc/glibc-functions/inet6_rth_segments.texi: New file.
41298         * doc/glibc-functions/inet6_rth_space.texi: New file.
41299         * doc/glibc-functions/login.texi: New file.
41300         * doc/glibc-functions/mbrtoc16.texi: New file.
41301         * doc/glibc-functions/mbrtoc32.texi: New file.
41302         * doc/glibc-functions/name_to_handle_at.texi: New file.
41303         * doc/glibc-functions/ntp_gettimex.texi: New file.
41304         * doc/glibc-functions/open_by_handle_at.texi: New file.
41305         * doc/glibc-functions/prlimit.texi: New file.
41306         * doc/glibc-functions/process_vm_readv.texi: New file.
41307         * doc/glibc-functions/process_vm_writev.texi: New file.
41308         * doc/glibc-functions/recvmmsg.texi: New file.
41309         * doc/glibc-functions/scandirat.texi: New file.
41310         * doc/glibc-functions/sendmmsg.texi: New file.
41311         * doc/glibc-functions/setns.texi: New file.
41312         * doc/glibc-functions/timespec_get.texi: New file.
41313         * doc/gnulib.texi: Include them.
41314         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
41315         sections.
41316         Reported by Eric Blake.
41318 2012-02-28  Bruno Haible  <bruno@clisp.org>
41320         Avoid compilation errors with MSVC option -fp:strict.
41321         * lib/floor.c: Use MSVC specific pragma fenv_access.
41322         * lib/ceil.c: Likewise.
41323         * lib/trunc.c: Likewise.
41324         * lib/round.c: Likewise.
41325         * lib/rint.c: Likewise.
41326         * lib/fma.c: Likewise.
41327         * lib/integer_length.c: Likewise.
41328         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41329         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41330         * tests/test-floor2.c: Likewise.
41331         * tests/test-floorf2.c: Likewise.
41332         * tests/test-ceil2.c: Likewise.
41333         * tests/test-ceilf2.c: Likewise.
41334         * tests/test-trunc2.c: Likewise.
41335         * tests/test-truncf2.c: Likewise.
41336         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41338 2012-02-27  Bruno Haible  <bruno@clisp.org>
41340         Tests for module 'sqrtl-ieee'.
41341         * modules/sqrtl-ieee-tests: New file.
41342         * tests/test-sqrtl-ieee.c: New file.
41344         New module 'sqrtl-ieee'.
41345         * modules/sqrtl-ieee: New file.
41347         Tests for module 'sqrt-ieee'.
41348         * modules/sqrt-ieee-tests: New file.
41349         * tests/test-sqrt-ieee.c: New file.
41351         New module 'sqrt-ieee'.
41352         * modules/sqrt-ieee: New file.
41354         Tests for module 'sqrtf-ieee'.
41355         * modules/sqrtf-ieee-tests: New file.
41356         * tests/test-sqrtf-ieee.c: New file.
41357         * tests/test-sqrt-ieee.h: New file.
41359         New module 'sqrtf-ieee'.
41360         * modules/sqrtf-ieee: New file.
41362 2012-02-27  Bruno Haible  <bruno@clisp.org>
41364         remainderl-ieee: Work around test failure on OSF/1.
41365         * m4/remainderl-ieee.m4: New file.
41366         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
41367         present, test whether remainderl works with a zero second argument.
41368         Replace it if not.
41369         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
41370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
41371         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
41372         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
41373         (Depends-on): Update conditions.
41374         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
41375         (Depends-on): Add remainder-ieee.
41376         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
41377         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
41378         module.
41380         remainderf-ieee: Work around test failure on OSF/1.
41381         * m4/remainderf-ieee.m4: New file.
41382         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
41383         present, test whether remainderf works with a zero second argument.
41384         Replace it if not.
41385         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
41386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
41387         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
41388         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
41389         (Depends-on): Update conditions.
41390         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
41391         (Depends-on): Add remainder-ieee.
41392         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
41393         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
41394         module.
41396         remainder-ieee: Work around test failure on OSF/1.
41397         * m4/remainder-ieee.m4: New file.
41398         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
41399         present, test whether remainder works with a zero second argument.
41400         Replace it if not.
41401         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
41402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
41403         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
41404         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
41405         (Depends-on): Update dependencies.
41406         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
41407         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
41408         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
41410         Tests for module 'remainderl-ieee'.
41411         * modules/remainderl-ieee-tests: New file.
41412         * tests/test-remainderl-ieee.c: New file.
41414         New module 'remainderl-ieee'.
41415         * modules/remainderl-ieee: New file.
41417         Tests for module 'remainder-ieee'.
41418         * modules/remainder-ieee-tests: New file.
41419         * tests/test-remainder-ieee.c: New file.
41421         New module 'remainder-ieee'.
41422         * modules/remainder-ieee: New file.
41424         Tests for module 'remainderf-ieee'.
41425         * modules/remainderf-ieee-tests: New file.
41426         * tests/test-remainderf-ieee.c: New file.
41427         * tests/test-remainder-ieee.h: New file.
41429         New module 'remainderf-ieee'.
41430         * modules/remainderf-ieee: New file.
41432 2012-02-27  Bruno Haible  <bruno@clisp.org>
41434         modff, modfl: Fix configure syntax error.
41435         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
41436         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
41438 2012-02-27  Bruno Haible  <bruno@clisp.org>
41440         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
41441         * m4/fmodl-ieee.m4: New file.
41442         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
41443         whether fmodl works with zero arguments. Replace it if not.
41444         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
41445         (Depends-on): Add fmod-ieee.
41446         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
41447         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
41449         fmodf-ieee: Work around test failure on OSF/1.
41450         * m4/fmodf-ieee.m4: New file.
41451         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
41452         whether fmodf works with zero arguments. Replace it if not.
41453         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
41454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
41455         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
41456         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
41457         (Depends-on): Update dependencies.
41458         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
41459         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
41460         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
41462         fmodf-ieee: Work around test failure on MSVC 9.
41463         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
41464         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
41466         fmod-ieee: Work around test failures on OSF/1, mingw.
41467         * m4/fmod-ieee.m4: New file.
41468         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
41469         whether fmod works with zero arguments. Replace it if not.
41470         * lib/math.in.h (fmod): New declaration.
41471         * lib/fmod.c: New file.
41472         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
41473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
41474         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
41475         * modules/fmod (Files): Add lib/fmod.c.
41476         (Depends-on): Add math, isinf, trunc, fma.
41477         (configure.ac): Arrange to compile lib/fmod.c if needed.
41478         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
41479         m4/signbit.m4.
41480         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
41481         * tests/test-math-c++.cc: Check the declaration of fmod.
41482         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
41484         fmodl-ieee: Fix test failures.
41485         * lib/fmodl.c (fmodl): Treat Inf specially.
41486         * modules/fmodl (Depends-on): Add isinf.
41488         Tests for module 'fmodl-ieee'.
41489         * modules/fmodl-ieee-tests: New file.
41490         * tests/test-fmodl-ieee.c: New file.
41492         New module 'fmodl-ieee'.
41493         * modules/fmodl-ieee: New file.
41495         Tests for module 'fmod-ieee'.
41496         * modules/fmod-ieee-tests: New file.
41497         * tests/test-fmod-ieee.c: New file.
41499         New module 'fmod-ieee'.
41500         * modules/fmod-ieee: New file.
41502         Tests for module 'fmodf-ieee'.
41503         * modules/fmodf-ieee-tests: New file.
41504         * tests/test-fmodf-ieee.c: New file.
41505         * tests/test-fmod-ieee.h: New file.
41507         New module 'fmodf-ieee'.
41508         * modules/fmodf-ieee: New file.
41510 2012-02-27  Bruno Haible  <bruno@clisp.org>
41512         Tests for module 'rintl-ieee'.
41513         * modules/rintl-ieee-tests: New file.
41514         * tests/test-rintl-ieee.c: New file.
41516         New module 'rintl-ieee'.
41517         * modules/rintl-ieee: New file.
41519         Tests for module 'rint-ieee'.
41520         * modules/rint-ieee-tests: New file.
41521         * tests/test-rint-ieee.c: New file.
41523         New module 'rint-ieee'.
41524         * modules/rint-ieee: New file.
41526         Tests for module 'rintf-ieee'.
41527         * modules/rintf-ieee-tests: New file.
41528         * tests/test-rintf-ieee.c: New file.
41529         * tests/test-rint-ieee.h: New file.
41531         New module 'rintf-ieee'.
41532         * modules/rintf-ieee: New file.
41534 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
41536         regex: re_search etc. should return -2 when memory exhausted
41537         This bug was uncovered when testing 'grep'.  Without the fix,
41538         re_search and friends return -1 when memory is exhausted, but -1
41539         means no match, and this causes grep to falsely report no-match
41540         instead of memory-exhaustion.  See
41541         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
41542         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
41543         trouble; this can occur if re_search_internal ran out of memory.
41545 2012-02-26  Bruno Haible  <bruno@clisp.org>
41547         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
41548         * m4/modfl-ieee.m4: New file.
41549         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
41550         whether modfl works with Inf. Replace it if not.
41551         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
41552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
41553         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
41554         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
41555         (Depends-on): Update dependencies.
41556         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
41557         m4/signbit.m4.
41558         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
41559         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
41561         modfl-ieee: Fix dependencies.
41562         * modules/modfl-ieee (Depends-on): Add modf-ieee.
41564         modfl-ieee: Fix test failures.
41565         * lib/modfl.c (modfl): Treat NaN and Inf specially.
41566         * modules/modfl (Depends-on): Add isfinite, isinf.
41568         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
41569         * m4/modff-ieee.m4: New file.
41570         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
41571         whether modff works with NaN and Inf. Replace it if not.
41572         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
41573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
41574         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
41575         * modules/modff (configure.ac): Consider REPLACE_MODFF.
41576         (Depends-on): Update dependencies.
41577         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
41578         m4/signbit.m4.
41579         (Depends-on): Add modf-ieee.
41580         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
41581         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
41583         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
41584         * m4/modf-ieee.m4: New file.
41585         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
41586         whether modf works with NaN and Inf. Replace it if not.
41587         * lib/math.in.h (modf): New declaration.
41588         * lib/modf.c: New file.
41589         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
41590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
41591         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
41592         * modules/modf (Files): Add lib/modf.c.
41593         (Depends-on): Add math, isfinite, trunc, isinf.
41594         (configure.ac): Addrange to compile lib/modf.c if needed.
41595         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
41596         m4/signbit.m4.
41597         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
41598         * tests/test-math-c++.cc: Check the declaration of modf.
41599         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
41601         Tests for module 'modfl-ieee'.
41602         * modules/modfl-ieee-tests: New file.
41603         * tests/test-modfl-ieee.c: New file.
41605         New module 'modfl-ieee'.
41606         * modules/modfl-ieee: New file.
41608         Tests for module 'modf-ieee'.
41609         * modules/modf-ieee-tests: New file.
41610         * tests/test-modf-ieee.c: New file.
41612         New module 'modf-ieee'.
41613         * modules/modf-ieee: New file.
41615         Tests for module 'modff-ieee'.
41616         * modules/modff-ieee-tests: New file.
41617         * tests/test-modff-ieee.c: New file.
41618         * tests/test-modf-ieee.h: New file.
41620         New module 'modff-ieee'.
41621         * modules/modff-ieee: New file.
41623 2012-02-26  Bruno Haible  <bruno@clisp.org>
41625         Tests for module 'fabsl-ieee'.
41626         * modules/fabsl-ieee-tests: New file.
41627         * tests/test-fabsl-ieee.c: New file.
41629         New module 'fabsl-ieee'.
41630         * modules/fabsl-ieee: New file.
41632         Tests for module 'fabs-ieee'.
41633         * modules/fabs-ieee-tests: New file.
41634         * tests/test-fabs-ieee.c: New file.
41636         New module 'fabs-ieee'.
41637         * modules/fabs-ieee: New file.
41639         Tests for module 'fabsf-ieee'.
41640         * modules/fabsf-ieee-tests: New file.
41641         * tests/test-fabsf-ieee.c: New file.
41642         * tests/test-fabs-ieee.h: New file.
41644         New module 'fabsf-ieee'.
41645         * modules/fabsf-ieee: New file.
41647 2012-02-26  Bruno Haible  <bruno@clisp.org>
41649         Tests for module 'fmal-ieee'.
41650         * modules/fmal-ieee-tests: New file.
41651         * tests/test-fmal-ieee.c: New file.
41653         New module 'fmal-ieee'.
41654         * modules/fmal-ieee: New file.
41656         Tests for module 'fma-ieee'.
41657         * modules/fma-ieee-tests: New file.
41658         * tests/test-fma-ieee.c: New file.
41660         New module 'fma-ieee'.
41661         * modules/fma-ieee: New file.
41663         Tests for module 'fmaf-ieee'.
41664         * modules/fmaf-ieee-tests: New file.
41665         * tests/test-fmaf-ieee.c: New file.
41666         * tests/test-fma-ieee.h: New file.
41668         New module 'fmaf-ieee'.
41669         * modules/fmaf-ieee: New file.
41671 2012-02-26  Bruno Haible  <bruno@clisp.org>
41673         Tests for module 'ldexpl-ieee'.
41674         * modules/ldexpl-ieee-tests: New file.
41675         * tests/test-ldexpl-ieee.c: New file.
41677         New module 'ldexpl-ieee'.
41678         * modules/ldexpl-ieee: New file.
41680         Tests for module 'ldexp-ieee'.
41681         * modules/ldexp-ieee-tests: New file.
41682         * tests/test-ldexp-ieee.c: New file.
41684         New module 'ldexp-ieee'.
41685         * modules/ldexp-ieee: New file.
41687         Tests for module 'ldexpf-ieee'.
41688         * modules/ldexpf-ieee-tests: New file.
41689         * tests/test-ldexpf-ieee.c: New file.
41690         * tests/test-ldexp-ieee.h: New file.
41692         New module 'ldexpf-ieee'.
41693         * modules/ldexpf-ieee: New file.
41695 2012-02-26  Bruno Haible  <bruno@clisp.org>
41697         Refactor frexp*-ieee tests.
41698         * tests/test-frexp-ieee.h: New file.
41699         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
41700         (main): Just call test_function.
41701         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
41702         (main): Just call test_function.
41703         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
41704         (main): Just call test_function.
41705         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
41706         * modules/frexp-ieee-tests (Files): Likewise.
41707         * modules/frexpl-ieee-tests (Files): Likewise.
41709         Tests for module 'frexpl-ieee'.
41710         * modules/frexpl-ieee-tests: New file.
41711         * tests/test-frexpl-ieee.c: New file.
41713         New module 'frexpl-ieee'.
41714         * modules/frexpl-ieee: New file.
41716         Tests for module 'frexp-ieee'.
41717         * modules/frexp-ieee-tests: New file.
41718         * tests/test-frexp-ieee.c: New file.
41720         New module 'frexp-ieee'.
41721         * modules/frexp-ieee: New file.
41723         Tests for module 'frexpf-ieee'.
41724         * modules/frexpf-ieee-tests: New file.
41725         * tests/test-frexpf-ieee.c: New file.
41727         New module 'frexpf-ieee'.
41728         * modules/frexpf-ieee: New file.
41730 2012-02-26  Bruno Haible  <bruno@clisp.org>
41732         roundl-ieee tests: More tests.
41733         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41734         (main): Add tests for [MX] shaded specification in POSIX.
41735         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41736         (Depends-on): Add isnanl-nolibm.
41738         round-ieee tests: More tests.
41739         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41740         (main): Add tests for [MX] shaded specification in POSIX.
41741         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41742         (Depends-on): Add isnand-nolibm.
41744         roundf-ieee tests: More tests.
41745         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41746         (main): Add tests for [MX] shaded specification in POSIX.
41747         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41748         (Depends-on): Add isnanf-nolibm.
41750         truncl-ieee tests: More tests.
41751         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41752         (main): Add tests for [MX] shaded specification in POSIX.
41753         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41754         (Depends-on): Add isnanl-nolibm.
41756         trunc-ieee tests: More tests.
41757         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41758         (main): Add tests for [MX] shaded specification in POSIX.
41759         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41760         (Depends-on): Add isnand-nolibm.
41762         truncf-ieee tests: More tests.
41763         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41764         (main): Add tests for [MX] shaded specification in POSIX.
41765         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41766         (Depends-on): Add isnanf-nolibm.
41768         ceill-ieee tests: More tests.
41769         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41770         (main): Add tests for [MX] shaded specification in POSIX.
41771         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41772         (Depends-on): Add isnanl-nolibm.
41774         ceil-ieee tests: More tests.
41775         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41776         (main): Add tests for [MX] shaded specification in POSIX.
41777         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41778         (Depends-on): Add isnand-nolibm.
41780         ceilf-ieee tests: More tests.
41781         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41782         (main): Add tests for [MX] shaded specification in POSIX.
41783         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41784         (Depends-on): Add isnanf-nolibm.
41786         floorl-ieee tests: More tests.
41787         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41788         (main): Add tests for [MX] shaded specification in POSIX.
41789         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41790         (Depends-on): Add isnanl-nolibm.
41792         floor-ieee tests: More tests.
41793         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41794         (main): Add tests for [MX] shaded specification in POSIX.
41795         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41796         (Depends-on): Add isnand-nolibm.
41798         floorf-ieee tests: More tests.
41799         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41800         (main): Add tests for [MX] shaded specification in POSIX.
41801         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41802         (Depends-on): Add isnanf-nolibm.
41804 2012-02-26  Bruno Haible  <bruno@clisp.org>
41806         fpieee: More comments.
41807         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
41809 2012-02-25  Bruno Haible  <bruno@clisp.org>
41811         Tests for module 'log10l'.
41812         * modules/log10l-tests: New file.
41813         * tests/test-log10l.c: New file.
41814         * tests/test-math-c++.cc: Check the declaration of log10l.
41816         New module 'log10l'.
41817         * lib/math.in.h (log10l): New declaration.
41818         * lib/log10l.c: New file.
41819         * m4/log10l.m4: New file.
41820         * modules/log10l: New file.
41821         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
41822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
41823         HAVE_DECL_LOG10L.
41824         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
41825         HAVE_DECL_LOG10L.
41826         * doc/posix-functions/log10l.texi: Mention the new module.
41828 2012-02-25  Bruno Haible  <bruno@clisp.org>
41830         fmodl, remainder*: Avoid wrong results due to rounding errors.
41831         * lib/fmodl.c (fmodl): Correct the result if it is not within the
41832         expected bounds.
41833         * lib/remainderf.c (remainderf): Likewise.
41834         * lib/remainder.c (remainder): Likewise.
41835         * lib/remainderl.c (remainderl): Likewise.
41837 2012-02-25  Bruno Haible  <bruno@clisp.org>
41839         Tests for module 'remainderl'.
41840         * modules/remainderl-tests: New file.
41841         * tests/test-remainderl.c: New file.
41842         * tests/test-math-c++.cc: Check the declaration of remainderl.
41844         New module 'remainderl'.
41845         * lib/math.in.h (remainderl): New declaration.
41846         * lib/remainderl.c: New file.
41847         * m4/remainderl.m4: New file.
41848         * modules/remainderl: New file.
41849         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
41850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
41851         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
41852         HAVE_REMAINDERL.
41853         * doc/posix-functions/remainderl.texi: Mention the new module.
41855 2012-02-25  Bruno Haible  <bruno@clisp.org>
41857         Tests for module 'remainderf'.
41858         * modules/remainderf-tests: New file.
41859         * tests/test-remainderf.c: New file.
41860         * tests/test-math-c++.cc: Check the declaration of remainderf.
41862         New module 'remainderf'.
41863         * lib/math.in.h (remainderf): New declaration.
41864         * lib/remainderf.c: New file.
41865         * m4/remainderf.m4: New file.
41866         * modules/remainderf: New file.
41867         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
41868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
41869         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
41870         HAVE_REMAINDERF.
41871         * doc/posix-functions/remainderf.texi: Mention the new module.
41873 2012-02-25  Bruno Haible  <bruno@clisp.org>
41875         remainder: Support for MSVC.
41876         * lib/math.in.h (remainder): New declaration.
41877         * lib/remainder.c: New file.
41878         * m4/remainder.m4: New file.
41879         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
41880         (Depends-on): Add math, round, fma.
41881         (configure.ac): Use results of gl_FUNC_REMAINDER.
41882         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
41883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
41884         HAVE_DECL_REMAINDER.
41885         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
41886         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
41887         * tests/test-math-c++.cc: Check the declaration of remainder.
41888         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
41889         problems are fixed.
41891 2012-02-25  Bruno Haible  <bruno@clisp.org>
41893         Tests for module 'fmodl'.
41894         * modules/fmodl-tests: New file.
41895         * tests/test-fmodl.c: New file.
41896         * tests/test-math-c++.cc: Check the declaration of fmodl.
41898         New module 'fmodl'.
41899         * lib/math.in.h (fmodl): New declaration.
41900         * lib/fmodl.c: New file.
41901         * m4/fmodl.m4: New file.
41902         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
41903         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
41904         REPLACE_FMODL.
41905         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
41906         REPLACE_FMODL.
41907         * modules/fmodl: New file.
41908         * doc/posix-functions/fmodl.texi: Mention the new module.
41910 2012-02-25  Bruno Haible  <bruno@clisp.org>
41912         Tests for module 'modfl'.
41913         * modules/modfl-tests: New file.
41914         * tests/test-modfl.c: New file.
41915         * tests/test-math-c++.cc: Check the declaration of modfl.
41917         New module 'modfl'.
41918         * lib/math.in.h (modfl): New declaration.
41919         * lib/modfl.c: New file.
41920         * m4/modfl.m4: New file.
41921         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
41922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
41923         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
41924         * modules/modfl: New file.
41925         * doc/posix-functions/modfl.texi: Mention the new module.
41927 2012-02-25  Bruno Haible  <bruno@clisp.org>
41929         Tests for module 'fabsl'.
41930         * modules/fabsl-tests: New file.
41931         * tests/test-fabsl.c: New file.
41932         * tests/test-math-c++.cc: Check the declaration of fabsl.
41934         New module 'fabsl'.
41935         * lib/math.in.h (fabsl): New declaration.
41936         * lib/fabsl.c: New file.
41937         * m4/fabsl.m4: New file.
41938         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
41939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
41940         REPLACE_FABSL.
41941         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
41942         REPLACE_FABSL.
41943         * modules/fabsl: New file.
41944         * doc/posix-functions/fabsl.texi: Mention the new module.
41946 2012-02-25  Bruno Haible  <bruno@clisp.org>
41948         fabs tests: More tests.
41949         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
41950         (zero): New variable.
41951         (main): Add tests for signed zero.
41952         * modules/fabs-tests (Files): Add tests/minus-zero.h.
41954         fabsf tests: More tests.
41955         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
41956         (zero): New variable.
41957         (main): Add tests for signed zero.
41958         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
41960 2012-02-24  Bruno Haible  <bruno@clisp.org>
41962         atanl: Provide function definition on MSVC.
41963         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
41964         function pointer.
41965         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
41967 2012-02-24  Bruno Haible  <bruno@clisp.org>
41969         acosl: Provide function definition on MSVC.
41970         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
41971         function pointer.
41972         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
41974 2012-02-24  Bruno Haible  <bruno@clisp.org>
41976         asinl: Provide function definition on MSVC.
41977         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
41978         function pointer.
41979         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
41981 2012-02-24  Bruno Haible  <bruno@clisp.org>
41983         tanl: Provide function definition on MSVC.
41984         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
41985         function pointer.
41986         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
41988 2012-02-24  Bruno Haible  <bruno@clisp.org>
41990         cosl: Provide function definition on MSVC.
41991         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
41992         function pointer.
41993         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
41995 2012-02-24  Bruno Haible  <bruno@clisp.org>
41997         sinl: Provide function definition on MSVC.
41998         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
41999         function pointer.
42000         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
42002 2012-02-24  Bruno Haible  <bruno@clisp.org>
42004         logl: Provide function definition on MSVC.
42005         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
42006         function pointer.
42007         * lib/math.in.h (logl): Undefine if it does not exist as a function.
42009 2012-02-24  Bruno Haible  <bruno@clisp.org>
42011         expl: Provide function definition on MSVC.
42012         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
42013         function pointer.
42014         * lib/math.in.h (expl): Undefine if it does not exist as a function.
42016 2012-02-24  Bruno Haible  <bruno@clisp.org>
42018         sqrtl: Provide function definition on MSVC.
42019         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
42020         a function pointer.
42021         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
42023 2012-02-24  Bruno Haible  <bruno@clisp.org>
42025         ceill: Provide function definition on MSVC.
42026         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
42027         used as a function pointer.
42028         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
42030 2012-02-24  Bruno Haible  <bruno@clisp.org>
42032         floorl: Provide function definition on MSVC.
42033         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
42034         used as a function pointer.
42035         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
42037 2012-02-24  Bruno Haible  <bruno@clisp.org>
42039         ceilf: Provide function definition on MSVC.
42040         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
42041         used as a function pointer.
42042         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
42044 2012-02-24  Bruno Haible  <bruno@clisp.org>
42046         floorf: Provide function definition on MSVC.
42047         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
42048         used as a function pointer.
42049         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
42051 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42053         stdnoreturn: new module
42054         This implements a replacement for C11's <stdnoreturn.h>.
42055         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
42056         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
42057         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
42058         * tests/test-stdnoreturn.c: New files.
42060 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
42062         regex: fix false multibyte matches in some regular expressions
42063         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
42064         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
42065         * lib/regex_internal.c (re_string_skip_chars):
42066         Fix miscomputation of remain_len that may cause incomplete
42067         multi-byte character and false match.
42069 2012-02-24  Jim Meyering  <meyering@redhat.com>
42071         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
42072         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
42073         uses with "==" *before* the call, e.g., 0 == strcmp (...)
42074         Remove now-unnecessary str''cmp obfuscation.
42075         Suggested by Akim Demaille.
42077 2012-02-24  Bruno Haible  <bruno@clisp.org>
42079         streq: Rename macro.
42080         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
42081         * NEWS: Mention the change.
42082         * lib/mbrtowc.c (mbrtowc): Update.
42083         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
42084         * lib/wcwidth.c (wcwidth): Update.
42085         Suggested by Akim Demaille and Jim Meyering.
42087 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42089         regex: fix typo in definition of MIN
42090         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
42091         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
42093 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
42094             Bruno Haible  <bruno@clisp.org>
42096         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
42097         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
42098         entries into a stack-allocated buffer directly.
42099         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
42101 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
42102             Bruno Haible  <bruno@clisp.org>
42104         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
42106          - There were several instances of this pattern:
42108              for (;;) {
42109                n = acl (f, GETACLCNT, 0, NULL);
42110                [ allocate an array A of size N ]
42111                if (acl (f, GETACL, n, a) == n)
42112                  break;
42113              }
42115            This loop might never terminate if some other process is constantly
42116            manipulating the file's ACL.  The loop should be rewritten to
42117            terminate.
42119          - The acl (... GETACLNT ...) call is merely an optimization; its value
42120            is merely a hint as to how big to make the array.  A better
42121            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
42122            and just guess a reasonably-big size, growing the size and trying
42123            again if it's not large enough.  This guarantees termination, and
42124            saves a system call.
42126         * lib/acl-internal.h: Include <limits.h>.
42127         (MIN, SIZE_MAX): New macros.
42128         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
42129         a stack-allocated buffer, and use malloc if it does not fit. Don't
42130         use GETACLCNT.
42131         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
42133 2012-02-19  Bruno Haible  <bruno@clisp.org>
42135         acl: Fix endless loop on Solaris with vxfs.
42136         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
42137         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
42138         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
42139         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
42140         * tests/test-sameacls.c (main)[Solaris]: Likewise.
42141         Reported by Bill Jones in
42142         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
42144 2012-02-19  Bruno Haible  <bruno@clisp.org>
42146         acl: Fix copy-acl test failure on Solaris 11.0.
42147         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
42148         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
42149         that this function returns 0 in some more cases.
42151 2012-02-19  Bruno Haible  <bruno@clisp.org>
42153         acl: Update doc references.
42154         * doc/acl-resources.txt: Update links to Solaris documentation.
42156 2012-02-19  Bruno Haible  <bruno@clisp.org>
42158         Fix test failure in many locales on Solaris 11.
42159         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
42160         'tr' arguments.
42161         * tests/test-pipe-filter-ii1.c (main): Likewise.
42162         * build-aux/bootstrap (check_versions): Run 'tr' command with range
42163         expressions in the C locale.
42164         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
42165         * m4/host-os.m4 (gl_HOST_OS): Likewise.
42167 2012-02-19  Bruno Haible  <bruno@clisp.org>
42169         gnulib-tool: Improve usage message.
42170         * gnulib-tool (func_usage): Move doc of --help and --version to the
42171         section "Operation modes".
42173 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
42175         README-release: make it easier to execute commands
42176         * top/README-release: break commands out on to separate lines.
42178 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
42180         GNUmakefile: simplify detection of unconfigured trees
42181         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
42182         whether the tree make is being run from is already configured or
42183         not.  Related simplifications.
42185 2012-02-13  Simon Josefsson  <simon@josefsson.org>
42187         * gnulib-tool (func_usage): Document --help and --version.
42189 2012-02-11  Jim Meyering  <meyering@redhat.com>
42191         bootstrap: don't exit 0 upon gnulib-tool failure
42192         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
42193         its exit status, not 0.
42195 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
42197         README-release: various improvements
42198         * top/README-release: Give a command to push changes for the
42199         release.  Add "distcheck" to list of other pre-release checks.
42200         Fix instance of "make stable" which should be "make TYPE".
42202 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
42204         maint: replace FSF snail-mail addresses with URLs
42205         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
42206         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
42207         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
42208         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
42209         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
42210         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
42211         * lib/check-version.c, lib/check-version.h, lib/config.charset:
42212         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
42213         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
42214         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
42215         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
42216         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
42217         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
42218         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
42219         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
42220         * lib/glthread/thread.c, lib/glthread/thread.h:
42221         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
42222         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
42223         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
42224         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
42225         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
42226         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
42227         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
42228         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
42229         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
42230         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
42231         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
42232         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
42233         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
42234         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
42235         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
42236         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
42237         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
42238         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
42239         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
42240         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
42241         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
42242         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
42243         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
42244         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
42245         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
42246         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
42247         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
42248         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
42249         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
42250         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
42251         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
42252         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
42253         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
42254         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
42255         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
42256         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
42257         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
42258         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
42259         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
42260         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
42261         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
42262         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
42263         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
42264         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
42265         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
42266         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
42267         * tests/test-poll.c, tests/test-quotearg-simple.c:
42268         * tests/test-quotearg.c, tests/test-quotearg.h:
42269         * tests/test-round-ieee.c, tests/test-round1.c:
42270         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
42271         * tests/test-roundl-ieee.c, tests/test-roundl.c:
42272         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
42273         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
42274         * tests/test-strerror.c, tests/test-strerror_r.c:
42275         * tests/test-strsignal.c, tests/test-strverscmp.c:
42276         * tests/test-xmemdup0.c:
42277         Replace FSF snail mail addresses with URLs, as per GNU coding
42278         standards.  See glibc bug
42279         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
42281 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
42283         README-release: capitalize a word and split a line
42284         * top/README-release: Fix punctuation and spacing.
42286 2012-02-08  Akim Demaille  <demaille@gostai.com>
42288         fatal-signal: use C prototypes (with explicit void).
42289         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42290         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
42292 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42294         regex: spelling fix
42295         * lib/regexec.c: spelling fix
42297         regex: rely on stdint.h for SIZE_MAX
42298         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
42300 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42302         regex: merge glibc changes
42304         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
42305         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
42306         (init_word_char): Work even if bitset words are not exactly 32 or
42307         64 bits wide.  Don't assume there are no padding bits.
42308         * lib/regex.c [_LIBC]: Do not include <config.h>.
42309         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
42310         and -Wtype-limits.
42311         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
42312         needless disagreement with glibc.  All uses changed.  Define it to
42313         1 only if _GNU_SOURCE, to match glibc.
42314         (_REG_RM_NAME): Remove; no longer needed, since the names in
42315         question are now all protected by __USE_GNU.
42316         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
42317         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
42318         * lib/regex_internal.h (MIN): New macro.
42320         2012-01-03 Ulrich Drepper <drepper@gmail.com>
42321         * lib/regcomp.c (init_word_char): Optimize regex a bit.
42323         2011-12-30 Jakub Jelinek <jakub@redhat.com>
42324         * lib/regex_internal.c (re_string_fetch_byte_case):
42325         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
42326         is miscompiled, and it turns out it is because of an incorrect
42327         attribute on re_string_fetch_byte_case.  Unlike
42328         re_string_peek_byte_case, this one is really not pure, it modifies
42329         memory (increments pstr->cur_idx), and with the pure attribute GCC
42330         assumed it doesn't and it cached the presumed value of
42331         regexp->cur_idx in a variable across the
42332          for (;; ++i)
42333            {
42334              if (i >= BRACKET_NAME_BUF_SIZE)
42335                return REG_EBRACK;
42336              if (token->type == OP_OPEN_CHAR_CLASS)
42337                ch = re_string_fetch_byte_case (regexp);
42338              else
42339                ch = re_string_fetch_byte (regexp);
42340              if (re_string_eoi(regexp))
42341                return REG_EBRACK;
42342              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
42343                break;
42344              elem->opr.name[i] = ch;
42345            }
42347         2011-11-29 Andreas Schwab <schwab@redhat.com>
42348         * lib/regcomp.c (build_equiv_class):
42349         Fix access after end of search string in regex matcher.
42351         2011-11-12 Ulrich Drepper <drepper@redhat.com>
42352         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
42354         2011-10-12 Ulrich Drepper <drepper@redhat.com>
42355         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
42357         2011-10-11 Ulrich Drepper <drepper@redhat.com>
42358         * lib/regcomp.c (parse_branch, parse_sub_exp):
42359         More regex memory leak fixes and tests.
42360         (parse_sub_exp, parse_bracket_exp):
42361         Fix memory leak for some invalid regular expressions.
42363         2011-05-28 Ulrich Drepper <drepper@gmail.com>
42364         * lib/regex_internal.c, lib/regexec.c:
42365         Fix unnecessary overallocation due to incomplete character.  When
42366         incomplete characters are found at the end of a string the code
42367         ran amok and allocated lots of memory.  Stricter limits are now in
42368         place.
42370         2011-05-20 Reuben Thomas <rrt@sc3d.org>
42371         * lib/regex.h: Update documentation.
42373         2011-05-16 Aharon Robbins <arnold@skeeve.com>
42374         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
42376         2010-05-05 Andreas Schwab <schwab@redhat.com>
42377         * lib/regexec.c (find_collation_sequence_value):
42378         Fix lookup of collation sequence value during regexp matching.
42380         2010-01-22 Ulrich Drepper <drepper@redhat.com>
42381         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
42383         2008-01-16 Ulrich Drepper <drepper@redhat.com>
42384         * lib/regex.h: Cleanup namespace.
42386         2007-11-26 Ulrich Drepper <drepper@redhat.com>
42387         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
42389         2007-08-26 Ulrich Drepper <drepper@redhat.com>
42390         * lib/regex_internal.h: Prevent some declarations and definitions
42391         to be seen when used in tests.
42393         2005-05-06 Ulrich Drepper <drepper@redhat.com>
42394         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
42395         __libc_lock_* macros if not _LIBC.
42396         (struct re_dfa_t): Add lock.
42398 2012-02-07  Eric Blake  <eblake@redhat.com>
42400         maint.mk: also prohibit lower-case @var@
42401         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
42402         lower case, like @top_srcdir@.
42404 2012-02-04  Eric Blake  <eblake@redhat.com>
42406         canonicalize: avoid uninitialized memory use
42407         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
42408         random '/' left in dest.
42409         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
42411 2012-02-04  Bruno Haible  <bruno@clisp.org>
42413         isatty: Fix test failure of ptsname_r on native Windows.
42414         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
42415         and don't set errno.
42416         (isatty): Test first whether fd is valid. Set errno when returning 0.
42418 2012-02-04  Bruno Haible  <bruno@clisp.org>
42420         spawn-pipe tests: Fix a NULL program name in a diagnostic.
42421         * tests/test-spawn-pipe-main.c: Include progname.h.
42422         (main): Invoke set_program_name.
42423         * modules/spawn-pipe-tests (Depends-on): Add progname.
42425         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
42426         * tests/test-nonblocking-socket-main.c: Include progname.h.
42427         (main): Invoke set_program_name.
42428         * modules/nonblocking-socket-tests (Depends-on): Add progname.
42430         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
42431         * tests/test-nonblocking-pipe-main.c: Include progname.h.
42432         (main): Invoke set_program_name.
42433         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
42435 2012-02-04  Eric Blake  <eblake@redhat.com>
42437         canonicalize-lgpl: fix // handling
42438         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
42440         canonicalize: fix // handling
42441         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
42442         /// to //, since only // is special.
42444 2012-02-04  Bruno Haible  <bruno@clisp.org>
42446         ioctl: Fix test failure on native Windows.
42447         * lib/ioctl.c: Include msvc-nothrow.h.
42448         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
42450 2012-02-04  Bruno Haible  <bruno@clisp.org>
42452         fsync: Avoid test failure on native Windows.
42453         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
42454         read-only.
42456 2012-02-04  Bruno Haible  <bruno@clisp.org>
42458         sys_select: Avoid syntax error on OpenBSD 5.0.
42459         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
42460         currently being included, just include the system's <sys/select.h>.
42462 2012-02-04  Bruno Haible  <bruno@clisp.org>
42464         sys_select: Avoid syntax error on OpenBSD 5.0.
42465         * lib/sys_select.in.h: Include <signal.h> only after the include_next
42466         <sys/select.h>, not before.
42467         Reported by Jiri B <jirib@devio.us>.
42469 2012-02-04  Bruno Haible  <bruno@clisp.org>
42471         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
42472         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
42473         global variables.
42474         * tests/test-get-rusage-data.c (main): Likewise.
42475         Reported by Jim Meyering.
42477 2012-02-04  Bruno Haible  <bruno@clisp.org>
42479         stdioext: Fix last commit.
42480         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
42482 2012-02-03  Bruno Haible  <bruno@clisp.org>
42484         stdioext: Add tentative support for Plan9.
42485         * lib/stdio-impl.h: Include <errno.h>.
42486         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
42487         * lib/freadable.c (freadable): Likewise.
42488         * lib/fwritable.c (fwritable): Likewise.
42489         * lib/fbufmode.c (fbufmode): Likewise.
42490         * lib/freading.c (freading): Likewise.
42491         * lib/fwriting.c (fwriting): Likewise.
42492         * lib/freadptr.c (freadptr): Likewise.
42493         * lib/freadseek.c (freadptrinc): Likewise.
42494         * lib/freadahead.c (freadahead): Likewise.
42495         * lib/fpurge.c (fpurge): Likewise.
42496         * lib/fseeko.c (rpl_fseeko): Likewise.
42497         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
42498         Reported by Jens Staal <staal1978@gmail.com>.
42500 2012-02-02  Jim Meyering  <meyering@redhat.com>
42502         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
42503         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
42504         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
42505         not even to try to add the attribute.  Instead, add a pragma to suppress
42506         the suggestion/warning.
42508 2012-01-31  Karl Berry  <karl@gnu.org>
42510         setstate doc: typo.
42511         * doc/posix-functions/setstate.texi (setstate): { not (.
42513 2012-01-31  Bruno Haible  <bruno@clisp.org>
42515         popen: Make more robust on Windows.
42516         * lib/popen.c: On native Windows, use the _popen based code even if
42517         HAVE_POPEN is set.
42518         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
42519         environment variable on native Windows.
42521 2012-01-30  Bruno Haible  <bruno@clisp.org>
42523         pclose: Fix typo.
42524         * lib/stdio.in.h (pclose): Fix typo in warning message.
42526 2012-01-30  Bruno Haible  <bruno@clisp.org>
42528         doc about getlogin_r, setstate.
42529         * doc/posix-functions/getlogin_r.texi: List the incompatible
42530         declaration problem under "not fixed by gnulib".
42531         * doc/posix-functions/setstate.texi: Mention incompatible declaration
42532         problem on Solaris 11 and other platforms.
42534 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
42535             Bruno Haible  <bruno@clisp.org>
42537         poll tests: Make test more robust.
42538         * tests/test-poll.c: Include macros.h.
42539         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
42540         return value of various I/O operations.
42541         * modules/poll-tests (Files): Add tests/macros.h.
42543 2012-01-30  Bruno Haible  <bruno@clisp.org>
42545         sys_stat: Fix support for mingw64 and MSVC.
42546         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
42547         header files already do it.
42548         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
42549         stat itself.
42550         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42552 2012-01-30  Bruno Haible  <bruno@clisp.org>
42554         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
42555         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
42556         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
42558 2012-01-29  Bruno Haible  <bruno@clisp.org>
42560         quotearg: Fix test failure on MacOS X 10.5.
42561         * tests/test-quotearg-simple.c: Include localcharset.h.
42562         (main): If the locale encoding is not ASCII, bypass the tests of
42563         locale_quoting_style and clocale_quoting_style.
42564         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
42566 2012-01-29  Jim Meyering  <meyering@redhat.com>
42568         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
42569         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
42570         detect uses of canonicalize_file_name.
42572 2012-01-28  Bruno Haible  <bruno@clisp.org>
42574         test-framework-sh: Fix test failure with AIX 7.1 diff.
42575         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
42576         in column 1, like 'diff -c' does.
42577         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
42578         whether 'diff -u' is used. Instead, test whether the output contains
42579         some '@' character.
42581 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42583         strtoimax: eliminate need for stdint.h, inttypes.h checks
42584         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
42585         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
42586         the prerequisites for a recently-introduced strtoimax test.
42587         I guess this might cause strtoimax to be replaced when not
42588         strictly necessary on older hosts, but this shouldn't introduce
42589         any bugs and it should make Emacs 'configure' faster on typical
42590         modern hosts.  Problem discovered when importing the latest gnulib
42591         to an Emacs test version.
42592         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
42594 2012-01-28  Bruno Haible  <bruno@clisp.org>
42596         sys_time: Override 'struct timeval' on some native Windows platforms.
42597         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
42598         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
42599         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
42600         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
42601         needs to be overridden.
42602         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
42603         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
42604         * tests/test-sys_select.c: Check that the tv_sec member has the same
42605         size as a 'time_t'.
42606         * tests/test-sys_time.c: Likewise.
42607         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
42608         is set, set also REPLACE_GETTIMEOFDAY.
42609         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
42610         convert the resulting 'struct timeval' before returning.
42611         * lib/select.c: Include <sys/time.h>.
42612         (select, timeval): Undefine at the right place.
42613         * modules/select (Depends-on): Add sys_time.
42614         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
42615         some Windows platforms.
42616         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42618 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42620         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
42621         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
42622         an integer.
42623         * lib/fcntl.c (dupfd): Likewise.
42624         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
42626 2012-01-28  Bruno Haible  <bruno@clisp.org>
42628         fcntl: Avoid compilation error on native Windows.
42629         * modules/fcntl (Depends-on): Add 'close'.
42631 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42633         select, poll, isatty: Avoid warnings on x86_64 mingw64.
42634         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
42635         pointer to an integer.
42636         * lib/poll.c (IsConsoleHandle): Likewise.
42637         * lib/isatty.c (IsConsoleHandle): Likewise.
42639 2012-01-28  Jim Meyering  <meyering@redhat.com>
42641         doc: clarify README-release
42642         * top/README-release: Clarify: you should make a point to have
42643         the latest stable versions of build tools in your PATH, and the
42644         reference to buildreq is solely for its list of tool names, not
42645         for its minimal-functional version numbers.
42646         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
42648         maint.mk: use more readable (yet functionally equivalent) quoting
42649         It is common to quote a single quote in a single quoted string like
42650         this:  '...'\''...'.  Unless you know the idiom, that looks like
42651         gibberish, so prefer to double-quote the string when possible.
42652         Then you can use a more readable, lone single quote: "...'..."
42653         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
42654         "don't" is more readable than the equivalent 'don'\''t'.
42655         (sc_cast_of_x_alloc_return_value): Likewise.
42656         (sc_cast_of_alloca_return_value): Likewise.
42657         (sc_makefile_path_separator_check): Similar: use ":" in '...',
42658         rather than '\'':'\''.
42660 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
42662         stdalign: relax _Alignof and tighten _Alignas test
42663         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
42664         as it was too strict: alignof must divide offsetof, but it need
42665         not equal offsetof.  Inspired by Joseph S. Myers's comment
42666         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
42667         Conversely, tighten the _Alignas test a bit, as the resulting
42668         alignment must be exactly 8.
42670 2012-01-27  Bruno Haible  <bruno@clisp.org>
42672         stdalign: Document the last change.
42673         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
42675 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
42677         stdalign: check that alignof and offsetof are consistent
42678         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
42679         Problem reported for gnulib by Richard W.M. Jones in
42680         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
42682 2012-01-27  Jim Meyering  <meyering@redhat.com>
42684         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
42685         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
42686         convert a sequence with gaps to the minimal containing range.
42687         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
42688         * tests/test-update-copyright.sh: Test for this.
42689         The FSF confirmed it is ok to do this, assuming there is at
42690         least one significant change per year in the affected range:
42691         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
42693 2012-01-26  Bruno Haible  <bruno@clisp.org>
42695         pipe2: refine doc about thread-safety
42696         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
42697         multithread-safety problem.
42698         * doc/glibc-functions/accept4.texi: Likewise.
42700 2012-01-26  Bruno Haible  <bruno@clisp.org>
42702         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
42703         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
42704         In the test program, include <fcntl.h>, for O_RDONLY.
42706 2012-01-26  Eric Blake  <eblake@redhat.com>
42708         pipe2: document lack of thread-safety in replacement
42709         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
42710         issue in replacement.
42711         * doc/glibc-functions/accept4.texi (accept4): Likewise.
42712         Based on a report by Eric Wong.
42714 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42715             Bruno Haible  <bruno@clisp.org>
42717         malloca: Avoid warnings on x86_64 mingw64.
42718         * lib/malloca.c: Include <stdint.h>.
42719         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
42720         * modules/malloca (Depends-on): Add stdint.
42721         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
42723 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42725         obstack: remove __STDC__ conditionals
42726         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
42727         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
42728         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
42729         m4/include_next.m4 as the only gnulib-maintained places that still
42730         refer to __STDC__.
42732 2012-01-24  Bruno Haible  <bruno@clisp.org>
42734         havelib: Modern quoting.
42735         * build-aux/config.rpath: Quote 'like this', not `like this', as per
42736         the recent change to the GNU coding standards.
42738 2012-01-24  Bruno Haible  <bruno@clisp.org>
42740         stdint: Improve support for Android.
42741         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
42742         Reported by Simon Josefsson <simon@josefsson.org>.
42744 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42746         doc: omit trailing empty lines from INSTALL etc.
42747         * doc/Makefile (INSTALL): Omit trailing empty lines.
42748         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
42749         omit trailing empty lines.  This simplifies the build procedure.
42751 2012-01-23  Jim Meyering  <meyering@redhat.com>
42753         tests: avoid spurious warnings about gl_sockets_startup
42754         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
42755         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
42756         reporting a "statement with no effect".
42757         * tests/test-accept.c (main): Mark as "(void)".
42758         * tests/test-accept4.c (main): Likewise.
42759         * tests/test-bind.c (main): Likewise.
42760         * tests/test-connect.c (main): Likewise.
42761         * tests/test-getpeername.c (main): Likewise.
42762         * tests/test-getsockname.c (main): Likewise.
42763         * tests/test-getsockopt.c (main): Likewise.
42764         * tests/test-listen.c (main): Likewise.
42765         * tests/test-recv.c (main): Likewise.
42766         * tests/test-recvfrom.c (main): Likewise.
42767         * tests/test-send.c (main): Likewise.
42768         * tests/test-sendto.c (main): Likewise.
42769         * tests/test-setsockopt.c (main): Likewise.
42770         * tests/test-shutdown.c (main): Likewise.
42772 2012-01-21  Bruno Haible  <bruno@clisp.org>
42774         locale-fr.m4: Fix for Android.
42775         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
42776         failure of the test program on Bionic libc.
42778 2012-01-21  Jim Meyering  <meyering@redhat.com>
42780         bootstrap: fail when bootstrap_post_import_hook fails
42781         Otherwise, it's far too easy to miss diagnostics emitted
42782         between gnulib-tool's output and that of running configure.
42783         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
42785 2012-01-17  Jim Meyering  <meyering@redhat.com>
42787         maint: enable sc_trailing_blank
42788         * build-aux/pmccabe.css: Remove trailing blanks.
42789         * doc/acl-cygwin.txt: Likewise.
42790         * doc/gnu-oids.texi: Likewise
42791         * cfg.mk: Enable sc_trailing_blank.
42792         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
42794 2012-01-17  Jim Meyering  <meyering@redhat.com>
42796         maint: enable sc_prohibit_openat_without_use
42797         * cfg.mk: Enable sc_prohibit_openat_without_use.
42798         Exempt lib/selinux-at.c.
42800 2012-01-17  Jim Meyering  <meyering@redhat.com>
42802         maint: enable sc_prohibit_cloexec_without_use
42803         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
42804         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
42806 2012-01-17  Jim Meyering  <meyering@redhat.com>
42808         maint: enable sc_prohibit_intprops_without_use
42809         * cfg.mk: Enable sc_prohibit_intprops_without_use
42810         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
42812 2012-01-17  Jim Meyering  <meyering@redhat.com>
42814         maint: enable sc_prohibit_hash_pjw_without_use
42815         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
42816         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
42817         to match any use of \<hash_pjw\>, i.e., not necessarily with a
42818         following " (".
42820 2012-01-17  Jim Meyering  <meyering@redhat.com>
42822         maint: enable double-word-prohibiting rule
42823         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
42824         Exempt three files.
42826 2012-01-17  Jim Meyering  <meyering@redhat.com>
42828         maint: remove empty lines at EOF, but excluding modules/*
42829         Apply syntax rules at home as well as abroad.  Most changes
42830         were induced by running this:
42831           make srcdir=. _build-aux=build-aux -f top/maint.mk \
42832             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
42833             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
42834         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
42835         Exempt modules/* and two binary files.
42836         Also exempt doc/INSTALL*, per request from Bruno Haible.
42837         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
42838         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
42839         * doc/Copyright/request-assign.future: Likewise.
42840         * doc/Copyright/request-disclaim.changes: Likewise.
42841         * doc/INSTALL: Likewise.
42842         * doc/INSTALL.ISO: Likewise.
42843         * doc/INSTALL.UTF-8: Likewise.
42844         * doc/acl-cygwin.txt: Likewise.
42845         * doc/acl-resources.txt: Likewise.
42846         * doc/fdl-1.2.texi: Likewise.
42847         * doc/fdl-1.3.texi: Likewise.
42848         * doc/fdl.texi: Likewise.
42849         * lib/argp-pin.c: Likewise.
42850         * lib/round.c: Likewise.
42851         * lib/unicase/u16-totitle.c: Likewise.
42852         * lib/unictype/block_test.c: Likewise.
42853         * lib/uninorm/canonical-decomposition.c: Likewise.
42854         * m4/README: Likewise.
42855         * m4/relocatable-lib.m4: Likewise.
42856         * tests/test-isnand-nolibm.c: Likewise.
42857         * tests/test-isnand.c: Likewise.
42858         * tests/uninorm/NormalizationTest.txt: Likewise.
42860 2012-01-17  Jim Meyering  <meyering@redhat.com>
42862         maint: add framework to run syntax-check rules against gnulib sources
42863         * cfg.mk: New file, to disable all currently-failing tests.
42864         We'll enable them one by one, as they are made to pass.
42865         * Makefile (sc_maint): New rule.
42867 2012-01-21  Bruno Haible  <bruno@clisp.org>
42869         stdint: Add support for Android.
42870         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
42871         include the system's <stdint.h>.
42872         Reported by Simon Josefsson <simon@josefsson.org>.
42874 2012-01-19  Jim Meyering  <meyering@redhat.com>
42876         bootstrap: add bootstrap_post_import_hook
42877         Bison does still need something like the gnulib_mk_hook whose
42878         invocation I had to remove along with slurp in commit 767ccd40.
42879         Technically, we could get along without it, but doing so would
42880         have required living with a warning and a mandatory post-bootstrap
42881         automake rerun.
42882         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
42883         (bootstrap_post_import_hook): New function.
42884         Invoke it after gnulib-tool --import and before autoreconf.
42886 2012-01-18  Jim Meyering  <meyering@redhat.com>
42888         gitlog-to-changelog: don't use "no_"-prefixed variable name
42889         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
42890         to enable both --cluster and --no-cluster.  Change variable name,
42891         s/\$no_cluster/$cluster/, and reverse usage to match.
42893         gitlog-to-changelog: use "||", not "or" in expressions
42894         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
42895         expressions.
42897 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
42899         gitlog-to-changelog: new option --no-cluster
42900         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
42901         clustering of adjacent commit messages.
42903 2012-01-17  Jim Meyering  <meyering@redhat.com>
42905         maint: spell file systems with two words, not one
42906         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
42907         two words, not one.
42909 2012-01-16  Jim Meyering  <meyering@redhat.com>
42911         bootstrap: add a FIXME comment to ensure we eventually remove the hack
42912         * build-aux/bootstrap (gnulib_tool_options): Add comment.
42914 2012-01-16  Eric Blake  <eblake@redhat.com>
42916         bootstrap: cater to autoconf 2.59
42917         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
42918         is not available.
42920         bootstrap: properly check for libtool
42921         * build-aux/bootstrap (libtoolize): Also run libtool when older
42922         usage is detected.
42924 2012-01-15  Bruno Haible  <bruno@clisp.org>
42926         Improve support for MSVC 9.
42927         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
42928         clashes on MSVC.
42929         * lib/fcntl.in.h: Likewise.
42930         * lib/stdlib.in.h: Likewise.
42931         * lib/sys_stat.in.h: Likewise.
42933 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
42935         gnupload: we hold the master copy of this script now
42936         For motivation and more information, see:
42937         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
42938         * build-aux/gnupload: Make it clear in the heading comments that the
42939         master copy of this file is maintained by gnulib.  Since we are at
42940         it, bump its copyright year and ...
42941         ($scriptversion): ... the date in its version.
42942         ($usage): Patches and bug reports should be sent to the gnulib list,
42943         not the automake one.
42944         * config/srclist.txt: Don't try to sync 'gnupload' from automake
42945         anymore.
42947 2012-01-15  Bruno Haible  <bruno@clisp.org>
42949         Fix module 'random'.
42950         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
42951         initstate, setstate are declared.
42953 2012-01-14  Bruno Haible  <bruno@clisp.org>
42955         Tests for module 'random'.
42956         * modules/random-tests: New file.
42957         * tests/test-random.c: New file, based on tests/test-random_r.c.
42959         New module 'random'.
42960         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
42961         declarations.
42962         * lib/random.c: New file, based on glibc/stdlib/random.c.
42963         * m4/random.m4: New file.
42964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
42965         HAVE_RANDOM.
42966         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
42967         * modules/random: New file.
42968         * config/srclist.txt: Add an entry for random.c.
42969         * doc/posix-functions/random.texi: Mention the 'random' module.
42970         * doc/posix-functions/initstate.texi: Likewise.
42971         * doc/posix-functions/setstate.texi: Likewise.
42972         * doc/posix-functions/srandom.texi: Likewise.
42974 2012-01-12  Bruno Haible  <bruno@clisp.org>
42976         random_r: Use common idioms.
42977         * lib/random_r.c: Include <stdlib.h> first.
42979         random_r: Override incompatible API on AIX, OSF/1.
42980         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
42981         Override the system function if REPLACE_RANDOM_R is 1.
42982         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
42983         and OSF/1, set REPLACE_RANDOM_R.
42984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
42985         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
42986         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
42987         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
42988         * doc/glibc-functions/random_r.texi: Likewise.
42989         * doc/glibc-functions/setstate_r.texi: Likewise.
42991         random_r: Support for MSVC 9.
42992         * lib/random_r.c: Include stdint.h, not inttypes.h.
42994 2012-01-12  Eric Blake  <eblake@redhat.com>
42996         inet_ntop: guard extra work by IF_LINT
42997         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
42998         better code generation when not checking for warnings.
42999         Suggested by Paul Eggert and Jim Meyering.
43001         strptime: fix regression on mingw
43002         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
43003         Fix regression.  Reported by Bruno Haible.
43005 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
43006             Bruno Haible  <bruno@clisp.org>
43008         copy-file: add error-code-returning variant.
43009         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
43010         (qcopy_file_preserving): New declaration.
43011         * lib/copy-file.c (qcopy_file_preserving): Renamed from
43012         copy_file_preserving. Change return type to 'int'. Don't emit an error
43013         message here.
43014         (copy_file_preserving): New function.
43015         * tests/test-copy-file.c: Include <stdlib.h>.
43016         (main): Test qcopy_file_preserving if the environment variable
43017         NO_STDERR_OUTPUT is set.
43018         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
43019         with NO_STDERR_OUTPUT
43020         * tests/test-copy-file-2.sh: Likewise.
43022 2012-01-10  Bruno Haible  <bruno@clisp.org>
43024         copy-file: Use 'quote' module consistently.
43025         * lib/copy-file.c (copy_file_preserving): Use quote().
43027         copy-file: Refactor.
43028         * lib/copy-file.c: Include quote.h.
43029         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
43030         message here.
43031         * modules/copy-file (Depends-on): Add quote.
43033         acl: Export qcopy_acl.
43034         * lib/acl.h (qcopy_acl): New declaration.
43035         * lib/copy-acl.c (qcopy_acl): Make non-static.
43037         acl: Rename a local variable.
43038         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
43040         acl: Align return values of copy_acl and qcopy_acl.
43041         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
43042         maybe < -1.
43044 2012-01-11  Eric Blake  <eblake@redhat.com>
43046         strptime: silence gcc warnings
43047         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
43048         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
43049         Reported by Daniel P. Berrange.
43051         inet_ntop: silence gcc warning
43052         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
43053         Reported by Daniel P. Berrange.
43055 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
43057         getloadavg test: skip the test on GNU/Linux without /proc mounted
43058         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
43059         file.  When /proc is not mounted, it always fails with ENOENT.
43060         * tests/test-getloadavg.c (main): Treat ENOENT return code from
43061         getloadavg(3) the same way as ENOSYS and ENOTSUP.
43063 2012-01-10  Bruno Haible  <bruno@clisp.org>
43065         regex: Avoid link error on MSVC 9.
43066         * modules/regex (Depends-on): Add wctype.
43068 2012-01-10  Bruno Haible  <bruno@clisp.org>
43070         doc: Mention --with-tests option.
43071         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
43072         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
43073         --with-tests.
43074         Reported by Reuben Thomas.
43076 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
43078         users.txt: order package names lexicographically.
43079         * users.txt: Order package names lexicographically.
43081 2012-01-10  Jim Meyering  <meyering@redhat.com>
43083         maint.mk: fix description in comment
43084         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
43086         ignore-value: remove deprecated ignore_ptr function
43087         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
43088         * NEWS: Note this.
43090 2012-01-09  Jim Meyering  <meyering@redhat.com>
43092         test-init.sh: avoid a subshell
43093         * tests/test-init.sh: Remove protective subshell.
43094         Suggested by Bernhard Voelker.  While a subshell is normally
43095         required to protect against older shells (Solaris, FreeBSD) that
43096         warn about a missing program before performing redirection, the
43097         shell-selection tests performed by init.sh probably exclude any
43098         offending shell.
43100 2012-01-08  Bruno Haible  <bruno@clisp.org>
43102         setlocale tests: Avoid test failure on Solaris 11.0.
43103         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
43104         variable.
43106 2012-01-08  Bruno Haible  <bruno@clisp.org>
43108         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
43109         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43110         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
43111         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
43112         macro.
43113         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
43114         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
43115         * lib/spawn_faction_addopen.c: Add workaround implementation if
43116         HAVE_WORKING_POSIX_SPAWN.
43117         * modules/spawn (Makefile): Substitute
43118         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
43119         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
43120         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
43121         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
43122         (Depends-on): Update conditions.
43123         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43124         the Solaris 11 bug.
43126 2012-01-08  Bruno Haible  <bruno@clisp.org>
43128         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
43129         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43130         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
43131         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
43132         macro.
43133         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
43134         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
43135         * lib/spawn_faction_adddup2.c: Add workaround implementation if
43136         HAVE_WORKING_POSIX_SPAWN.
43137         * modules/spawn (Makefile): Substitute
43138         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
43139         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
43140         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
43141         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
43142         (Depends-on): Update conditions.
43143         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43144         the Solaris 11 bug.
43146 2012-01-08  Bruno Haible  <bruno@clisp.org>
43148         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
43149         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43150         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
43151         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
43152         HAVE_WORKING_POSIX_SPAWN.
43153         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
43154         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
43155         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
43156         * lib/spawn_faction_addclose.c: Add workaround implementation if
43157         HAVE_WORKING_POSIX_SPAWN.
43158         * modules/spawn (Makefile): Substitute
43159         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
43160         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
43161         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
43162         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
43163         (Depends-on): Update conditions.
43164         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43165         the Solaris 11 bug.
43167 2012-01-08  Bruno Haible  <bruno@clisp.org>
43169         doc: Update for Solaris 11.0.
43170         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
43171         * m4/printf.m4: Update comments.
43173 2012-01-08  Bruno Haible  <bruno@clisp.org>
43175         mktime: Avoid compilation error on Solaris 11.
43176         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
43178 2012-01-08  Bruno Haible  <bruno@clisp.org>
43180         doc: Small fix.
43181         * doc/posix-headers/nl_types.texi: Correct platforms list.
43183 2012-01-08  Simon Josefsson  <simon@josefsson.org>
43185         Add lgpl-3.0 module.
43186         * MODULES.html.sh (Support for building documentation): Add
43187         lgpl-3.0.
43188         * modules/lgpl-3.0: New file.
43190 2012-01-08  Jim Meyering  <meyering@redhat.com>
43192         select.c: indent with spaces, not TABs
43193         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
43195 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43197         quotearg: do not use grave accent for left quote
43198         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
43199         locale_quoting_style.
43200         (quotearg_buffer_restyled): Fix example.
43201         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
43203 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43205         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
43206         Most programs do not have translation catalogs for English and much
43207         less separate catalogs for British and American English.  Drop the
43208         suggestion to translators about these two, and provide it
43209         automatically for Unicode locales.  Like most programs, even those
43210         using American English, we use single quotation marks.  This conflicts
43211         with the American typographic convention, but works better when you
43212         cite the entire error message within double quotes.  It also tries not
43213         to clash with established practice and with what non-gnulib programs
43214         will usually do.
43215         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
43216         using an UTF-8 or GB-18030 locale.  The list of other locales with
43217         quotes was provided by Bruno Haible.
43218         (quotearg_buffer_restyled): Adjust instructions to translators.
43219         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
43220         text, since this would be wrong when using Unicode.
43221         * modules/quotearg: Depend on c-strcaseeq.
43223 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43225         quotearg: fix Wikipedia link
43226         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
43228 2012-01-07  Simon Josefsson  <simon@josefsson.org>
43230         Fix for mingw with MSVC9.
43231         * m4/ld-version-script.m4: Check that compiler rejects version
43232         scripts with syntax errors.  Reported by Bruno Haible
43233         <bruno@clisp.org>.
43235 2012-01-06  Bruno Haible  <bruno@clisp.org>
43237         Talk about "native Windows API", not "Woe32".
43238         * lib/accept4.c: Update comments to mention native Windows.
43239         * lib/execute.c: Likewise.
43240         * lib/fatal-signal.c: Likewise.
43241         * lib/localcharset.c: Likewise.
43242         * lib/nanosleep.c: Likewise.
43243         * lib/nl_langinfo.c: Likewise.
43244         * lib/pclose.c: Likewise.
43245         * lib/pipe-filter-gi.c: Likewise.
43246         * lib/pipe-filter-ii.c: Likewise.
43247         * lib/pipe.c: Likewise.
43248         * lib/pipe2.c: Likewise.
43249         * lib/popen.c: Likewise.
43250         * lib/progreloc.c: Likewise.
43251         * lib/relocatable.c: Likewise.
43252         * lib/sigaction.c: Likewise.
43253         * lib/sigprocmask.c: Likewise.
43254         * lib/spawn-pipe.h: Likewise.
43255         * lib/spawn-pipe.c: Likewise.
43256         * lib/spawni.c: Likewise.
43257         * lib/stat-time.h: Likewise.
43258         * lib/w32spawn.h: Likewise.
43259         * tests/test-isatty.c: Likewise.
43260         * lib/config.charset: More comments.
43261         * doc/gnulib-intro.texi: Mention native Windows.
43262         * doc/posix-functions/_Exit_C99.texi: Likewise.
43263         * doc/posix-headers/fcntl.texi: Likewise.
43265 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
43267         argp: Avoid crash if translator uses % characters in a translation.
43268         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
43269         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43271 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
43273         doc: C11 and C++11 are now official
43274         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
43275         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
43276         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
43277         * modules/stdalign:
43278         Replace references to draft C1X to C11, and to draft C++0X to C++11.
43280 2012-01-06  Bruno Haible  <bruno@clisp.org>
43282         uc-is-grapheme-break tests: Tweak.
43283         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
43284         message.
43286 2012-01-06  Bruno Haible  <bruno@clisp.org>
43288         test-init.sh: correct the test for diff -u
43289         * tests/test-init.sh: Also redirect stdout to /dev/null.
43291 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
43293         Use ', not `, for quoting output.
43294         * build-aux/announce-gen (usage, sizes, print_news_deltas)
43295         (print_changelog_deltas, get_tool_versions, main program):
43296         * build-aux/git-version-gen:
43297         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
43298         * build-aux/move-if-change (help):
43299         * build-aux/useless-if-before-free (usage, main program):
43300         * check-module (parse_module_file, usage)
43301         (find_included_lib_files, check_module):
43302         * lib/argmatch.c (main) [TEST]:
43303         * lib/argp-help.c (_help):
43304         * lib/getopt1.c (main) [TEST]:
43305         * lib/git-merge-changelog.c (usage):
43306         * lib/xstrtol-error.c (xstrtol_error):
43307         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
43308         * m4/argz.m4 (gl_FUNC_ARGZ):
43309         * m4/bison.m4 (gl_BISON):
43310         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
43311         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
43312         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
43313         * m4/fpending.m4 (gl_PREREQ_FPENDING):
43314         * m4/gc-random.m4 (gl_GC_RANDOM):
43315         * m4/intl.m4 (gt_CHECK_DECL):
43316         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
43317         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
43318         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
43319         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
43320         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
43321         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
43322         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
43323         * tests/test-dirname.c (main):
43324         * tests/test-getpass.c (main):
43325         * tests/test-iconvme.c (main):
43326         * tests/test-parse-datetime.c (LOG):
43327         * tests/test-xstrtoimax.sh:
43328         * tests/test-xstrtol.sh:
43329         * tests/test-xstrtoll.sh:
43330         * tests/test-xstrtoumax.sh:
43331         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
43332         * top/GNUmakefile (abort-due-to-no-makefile):
43333         Quote 'like this', not `like this', as per the recent change to
43334         the GNU coding standards.
43336 2012-01-05  Bruno Haible  <bruno@clisp.org>
43338         strtoimax: Don't force a replacement on systems where intmax_t is int.
43339         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
43340         'intmax_t' is not larger than 'int'.
43341         Reported by Pádraig Brady <P@draigBrady.com>.
43343 2012-01-05  Bruno Haible  <bruno@clisp.org>
43345         doc: Mention NetBSD bugs.
43346         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
43347         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
43349 2012-01-05  Bruno Haible  <bruno@clisp.org>
43351         strtoumax tests: Enhance tests.
43352         * tests/test-strtoumax.c (main): Add tests for large values.
43354 2012-01-05  Bruno Haible  <bruno@clisp.org>
43356         strtoimax: Work around AIX 5.1 bug.
43357         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
43358         definition.
43359         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
43360         Set HAVE_STRTOIMAX.
43361         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
43362         REPLACE_STRTOIMAX.
43363         * modules/inttypes-incomplete (Makefile.am): Substitute
43364         REPLACE_STRTOIMAX.
43365         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
43366         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
43367         (Depends-on): Update conditions.
43368         * tests/test-strtoimax.c (main): Add tests for large values.
43369         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
43371 2012-01-05  Bruno Haible  <bruno@clisp.org>
43373         inttypes: Modernize.
43374         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
43375         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
43376         (Makefile.am): Update inttypes.h rule.
43378 2012-01-05  Jim Meyering  <meyering@redhat.com>
43380         init.sh: don't waste a subshell just to redirect stderr
43381         * tests/init.sh: In testing for diff -u and diff -c, use a
43382         stderr-redirecting exec inside `...` rather than a subshell.
43384         test-init.sh: avoid failure on HP-UX 11.00
43385         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
43386         resolves to diff -c or cmp.  Reported by Bruno Haible.
43388 2012-01-05  Bruno Haible  <bruno@clisp.org>
43390         Tests for module 'strtoull'.
43391         * modules/strtoull-tests: New file.
43392         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
43394 2012-01-05  Bruno Haible  <bruno@clisp.org>
43396         Tests for module 'strtoll'.
43397         * modules/strtoll-tests: New file.
43398         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
43400 2012-01-05  Bruno Haible  <bruno@clisp.org>
43402         Tests for module 'strtoul'.
43403         * modules/strtoul-tests: New file.
43404         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
43406 2012-01-05  Bruno Haible  <bruno@clisp.org>
43408         Tests for module 'strtol'.
43409         * modules/strtol-tests: New file.
43410         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
43412 2012-01-04  Jim Meyering  <meyering@redhat.com>
43414         test-init.sh: accommodate Solaris 5.10's different diff -u output
43415         * tests/test-init.sh: Also exempt @@ lines from the comparison
43416         of diff output, since Solaris 5.10 and GNU diff formats differ.
43417         Reported by Stefano Lattarini.
43419 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43421         test-posixtm: don't assume signed integer wraparound
43422         * tests/test-posixtm.c (main): Don't assume wraparound semantics
43423         after signed integer overflow.  Inspired by (though it may not
43424         fix) Bruno Haible's bug report in
43425         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
43427         Spell out "Windows 9x" and "Windows XP".
43428         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
43429         "Windows 9x" and "WinXP" with "Windows XP".
43431 2012-01-04  Jim Meyering  <meyering@redhat.com>
43433         test-vc-list-files-cvs.sh: remove obsolete comment
43434         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
43435         double exit.  Now that's all encapsulated via skip_ and Exit.
43437 2012-01-04  Bruno Haible  <bruno@clisp.org>
43439         Talk about "native Windows API", not "Win32".
43440         * lib/classpath.c: Update comments to mention native Windows.
43441         * lib/csharpexec.c: Likewise.
43442         * lib/dup2.c: Likewise.
43443         * lib/error.c: Likewise.
43444         * lib/fcntl.c: Likewise.
43445         * lib/filename.h: Likewise.
43446         * lib/findprog.c: Likewise.
43447         * lib/get-rusage-as.c: Likewise.
43448         * lib/get-rusage-data.c: Likewise.
43449         * lib/getpagesize.c: Likewise.
43450         * lib/javaexec.c: Likewise.
43451         * lib/msvc-inval.c: Likewise.
43452         * lib/msvc-nothrow.c: Likewise.
43453         * lib/nanosleep.c: Likewise.
43454         * lib/nonblocking.c: Likewise.
43455         * lib/printf-parse.c: Likewise.
43456         * lib/setlocale.c: Likewise.
43457         * lib/sigaction.c: Likewise.
43458         * lib/strerror_r.c: Likewise.
43459         * lib/tmpdir.c: Likewise.
43460         * lib/vasnprintf.c: Likewise.
43461         * lib/w32spawn.h: Likewise.
43462         * lib/waitpid.c: Likewise.
43463         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
43464         * m4/locale-ar.m4: Likewise.
43465         * m4/locale-fr.m4: Likewise.
43466         * m4/locale-ja.m4: Likewise.
43467         * m4/locale-tr.m4: Likewise.
43468         * m4/locale-zh.m4: Likewise.
43469         * m4/printf.m4: Likewise.
43470         * tests/test-cloexec.c: Likewise.
43471         * tests/test-copy-acl.sh: Likewise.
43472         * tests/test-copy-file.sh: Likewise.
43473         * tests/test-file-has-acl.sh: Likewise.
43474         * tests/test-set-mode-acl.sh: Likewise.
43475         * tests/test-dup-safer.c: Likewise.
43476         * tests/test-dup2.c: Likewise.
43477         * tests/test-dup3.c: Likewise.
43478         * tests/test-fcntl.c: Likewise.
43479         * tests/test-nonblocking-pipe.h: Likewise.
43480         * tests/test-nonblocking-socket.h: Likewise.
43481         * tests/test-pipe.c: Likewise.
43482         * tests/test-pipe2.c: Likewise.
43483         * tests/test-spawn-pipe-child.c: Likewise.
43484         * doc/acl-resources.txt: Likewise.
43485         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43486         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
43487         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
43488         * lib/localcharset.c: Update comments to mention native Windows.
43489         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43490         * lib/localename.c: Likewise.
43491         * lib/progreloc.c: Likewise.
43492         * lib/relocatable.c: Likewise.
43493         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43494         (windows_compute_revents): Renamed from win32_compute_revents.
43495         (windows_compute_revents_socket): Renamed from
43496         win32_compute_revents_socket.
43497         * lib/select.c: Update comments to mention native Windows.
43498         (windows_poll_handle): Renamed from win32_poll_handle.
43499         * m4/threadlib.m4: Update comments to mention native Windows.
43500         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
43501         --enable-threads=windows instead of --enable-threads=win32. Set
43502         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
43503         * lib/glthread/lock.h: Update comments to mention native Windows.
43504         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
43505         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
43506         USE_WIN32_THREADS.
43507         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
43508         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
43509         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
43510         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
43511         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
43512         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
43513         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
43514         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
43515         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
43516         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
43517         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
43518         * tests/test-tls.c: Likewise.
43519         Rationale:
43520         Microsoft renamed the "Win32 API" to "Windows API", as it is available
43521         on both 32-bit and 64-bit Windows systems.
43522         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
43523         line of distinction is between "native Windows" on one side and Unix/
43524         POSIX systems on the other side. More details in
43525         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
43526         Suggested by Paul Eggert.
43528 2012-01-03  Bruno Haible  <bruno@clisp.org>
43530         isatty: Support for MSVC 9.
43531         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
43532         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
43533         (_isatty_nothrow): New function.
43534         (isatty): Use it instead of _isatty.
43535         (IsConsoleHandle): Add comment, from Paolo Bonzini.
43536         * lib/poll.c (IsConsoleHandle): Likewise.
43537         * lib/select.c (IsConsoleHandle): Likewise.
43538         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
43539         (gl_PREREQ_ISATTY): New macro.
43540         * modules/isatty (Depends-on): Add msvc-inval.
43541         (configure.ac): Invoke gl_PREREQ_ISATTY.
43543 2012-01-03  Jim Meyering  <meyering@redhat.com>
43545         maint.mk: remove temporary transition aid from over 1.5 years ago
43546         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
43547         purpose was to aid in the transition (avoiding silent malfunction)
43548         from that old name to the new _sc_search_regexp.  This shim was
43549         added by commit 219c504b.
43551         init.sh: do not try to accommodate compare arguments starting with "-"
43552         * tests/init.sh (compare_dev_null_): Do not try to accommodate
43553         compare arguments that start with "-".  Besides, we do not worry
43554         about this when invoking diff or cmp; why start now with sed?
43555         Using "--" to separate options from argument would trigger sed
43556         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
43557         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
43559 2012-01-02  Bruno Haible  <bruno@clisp.org>
43561         Enhance tests for module 'isatty'.
43562         * modules/isatty-tests (Depends-on): Add pipe-posix.
43563         * tests/test-isatty.c: Include <fcntl.h>.
43564         (DEV_NULL): New macro.
43565         (main): Test the resut of isatty() also on regular files, pipes, and
43566         /dev/null.
43568         New module 'isatty'.
43569         * lib/unistd.in.h (isatty): New declaration.
43570         * lib/isatty.c: New file, based on an idea of
43571         Bastien Roucariès <roucaries.bastien@gmail.com>.
43572         * m4/isatty.m4: New file.
43573         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
43574         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
43575         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
43576         REPLACE_ISATTY.
43577         * modules/isatty: New file.
43578         * doc/posix-functions/isatty.texi: Mention the new module.
43579         Suggested by Paolo Bonzini.
43581 2012-01-02  Bruno Haible  <bruno@clisp.org>
43583         canonicalize: Tweak 2011-12-29 commit.
43584         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
43585         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
43587 2012-01-02  Jim Meyering  <meyering@redhat.com>
43589         gitlog-to-changelog: describe input syntax in --help output
43590         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
43592         gitlog-to-changelog: fix typo in --help: show backslash before email @
43593         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
43594         in sources, but not in actual output.
43596 2011-12-30  Jim Meyering  <meyering@redhat.com>
43598         gitlog-to-changelog: don't malfunction when name contains %-directive
43599         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
43600         in a name string cause trouble.  E.g., with a user name of "%s",
43601         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
43603 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
43605         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
43606         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
43607         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
43608         the "  (tiny change)" notation that is appended to the standard
43609         ChangeLog "date  name  email" header line.
43611 2012-01-01  Jim Meyering  <meyering@redhat.com>
43613         test-framework-sh: init.sh: fix "make dist" failure
43614         When using gnulib-tool's --with-tests option and any module that
43615         depends on test-framework-sh, "make dist" would fail due to the
43616         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
43617         in the gltests directory, and not in the gllib/ directory.
43618         One way to work around that is to move the EXTRA_DIST += init.sh
43619         from the primary module to the -tests one:
43620         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
43621         * modules/test-framework-sh (Makefile.am): ...not here.
43622         Reported by Tom G. Christensen in
43623         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
43625         version-etc: update copyright year reported by --version
43626         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
43628 2011-12-31  Pádraig Brady  <P@draigBrady.com>
43630         canonicalize: only stat() if required
43631         * lib/canonicalize.c (canonicalize_filename_mode):
43632         Avoid calling l?stat() when both CAN_MISSING,
43633         and CAN_NOLINKS are set, as we neither need
43634         to resolve symlinks or test component existence.
43636 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
43638         doc: cover st_ino issues once; add OpenVMS etc.
43639         * doc/posix-functions/stat.texi (stat):
43640         * doc/posix-functions/lstat.texi (lstat):
43641         * doc/posix-functions/fstatat.texi (fstatat):
43642         * doc/posix-functions/fstat.texi (fstat):
43643         Move general 'struct stat' stuff to sys_stat.texi,
43644         leaving behind a pointer.
43645         * doc/posix-headers/sys_stat.texi (sys/stat.h):
43646         Merge duplicate info about 'struct stat' problems into here.
43647         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
43648         and suggest partial workarounds.
43650         same-inode: port to OpenVMS
43651         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
43652         three st_ino values.
43654 2011-12-30  Pádraig Brady  <P@draigBrady.com>
43656         canonicalize: fix references to stat() and lstat()
43657         * lib/canonicalize.c (canonicalize_filename_mode):
43658         Ensure references always resolve to a replacement
43659         function if required (even via a macro).
43661 2011-12-30  Jim Meyering  <meyering@redhat.com>
43663         gitlog-to-changelog: remove a little duplication
43664         * build-aux/gitlog-to-changelog (main): Grep @lines once,
43665         rather than twice.
43667 2011-12-29  Pádraig Brady  <P@draigBrady.com>
43669         canonicalize: add support for not resolving symlinks
43670         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
43671         indicate we don't want to follow symlinks.  Also
43672         provide CAN_MODE_MASK to aid setting these existing
43673         mutually exclusive values.
43674         * lib/canonicalize.c (canonicalize_filename_mode):
43675         Extract the flags from can_mode parameter, which
43676         are currently just used to select between stat()
43677         and lstat().  Also ensure that mutually exclusive
43678         values are flagged immediately as invalid.
43679         * tests/test-canonicalize.c: Verify symlinks are
43680         not followed, and that invalid flag combinations
43681         are diagnosed.
43683 2011-12-25  Jim Meyering  <meyering@redhat.com>
43685         gitlog-to-changelog: do not clump multi-paragraph entries
43686         Identical header lines (date,name,email+coauthors) are suppressed,
43687         thus putting all entries with those same characteristics under
43688         a single header.  However, when a log entry consists of two or
43689         more paragraphs, it may not be clear where it starts and ends.
43690         This change makes it so that such an entry is always separated
43691         from others by a header line, even when that header would
43692         otherwise be suppressed.
43693         * build-aux/gitlog-to-changelog: Implement the above.
43694         Inspired by a related request from Stefano Lattarini in
43695         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
43697 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43699         announce-gen: fix `cmd' typo in diagnostic
43700         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
43701         diagnostic: a missing '$' meant that the command was not output.
43703 2011-12-23  Jim Meyering  <meyering@redhat.com>
43705         test-framework-sh: distribute init.sh
43706         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
43707         Otherwise, "make -C gnulib-tests check" (at least in grep) would
43708         fail due to the lack of init.sh.
43710         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
43711         * modules/atexit-tests: Rather than listing tests/init.sh,
43712         now that there's a module for it, simply depend on that new module.
43713         * modules/closein-tests: Likewise.
43714         * modules/exclude-tests: Likewise.
43715         * modules/getcwd-tests: Likewise.
43716         * modules/perror-tests: Likewise.
43717         * modules/pread-tests: Likewise.
43718         * modules/pwrite-tests: Likewise.
43719         * modules/vc-list-files-tests: Likewise.
43720         * modules/verify-tests: Likewise.
43721         * modules/xalloc-die-tests: Likewise.
43722         * modules/xstrtoimax-tests: Likewise.
43723         * modules/xstrtol-tests: Likewise.
43724         * modules/xstrtoll-tests: Likewise.
43725         * modules/xstrtoumax-tests: Likewise.
43726         * modules/yesno-tests: Likewise.
43728 2011-12-22  Jim Meyering  <meyering@redhat.com>
43730         test-framework-sh: add minimal tests of init.sh's compare function
43731         * modules/test-framework-sh-tests: New file.
43732         * tests/test-init.sh: New file.
43734         test-framework-sh: new module
43735         * modules/test-framework-sh: New file.
43736         * MODULES.html.sh (Support for maintaining and releasing projects):
43737         List it.
43739         init.sh: do not emit simulated diff output to stderr
43740         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
43742 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43744         .gitignore: ignore gnulib.dvi and regex.info
43745         * doc/.gitignore:add gnulib.dvi and regex.info
43747 2011-12-22  Jim Meyering  <meyering@redhat.com>
43749         init.sh: correct previous change
43750         * tests/init.sh (compare): My previous change was wrong.
43751         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
43753         init.sh: avoid unwarranted test failure when using "set -e"
43754         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
43755         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
43756         a use like "compare exp out" would get evoke an unconditional failure.
43758 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
43760         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
43761         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
43762         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
43763         autoreconf that did not.
43764         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
43765         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43767 2011-12-17  Jim Meyering  <meyering@redhat.com>
43769         bootstrap: remove some now-unneeded code
43770         This script arose back when gnulib-tool was young.
43771         Since then, it has seen improvements that render much of this
43772         script unnecessary.  In particular, it can now make symlinks
43773         to the files it uses.  Also, I no longer see as much value in
43774         marking files as read-only via comments.
43775         If you relied on the symlink-creation feature of the preceding
43776         version of this script, you can get most of that functionality
43777         by adding the --symlink option to the definition of
43778         gnulib_tool_option_extras in your bootstrap.conf file.
43779         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
43780         Run autopoint and libtoolize *before* gnulib-tool.
43781         After it, run an abbreviated autoreconf, rather than a loop around
43782         all tools.
43783         (slirp, bt_mark_as_generated): Remove functions.
43785 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43787         ftoastr: fix typo
43788         * lib/ftoastr.h: Fix misspelling in comment.
43790 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
43792         * top/README-release: fix punctuation.
43794 2011-12-17  Jim Meyering  <meyering@redhat.com>
43796         bootstrap: correct the recent buildreq change
43797         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
43798         had no effect.
43799         * build-aux/bootstrap (buildreq): Bracket each search term with
43800         "*...*", so that the shell "case" statement works as intended.
43801         Add comments.
43803 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
43805         build: let bootstrap resort to wget when downloading .po files
43806         * build-aux/bootstrap (download_po_files): Fallback to wget when
43807         downloading the .po files via rsync fails.  This is necessary to
43808         bootstrap from behind a strict firewall.
43810 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
43812         stdint: don't assume C++11 when compiling with g++
43813         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
43814         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
43815         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
43816         work also in C++ before C++11, as that improperly inhibits
43817         generating a substitute stdint.h for that case.
43819 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
43821         alloca: protect comment from gnulib-tool
43822         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
43823         that gnulib-tool doesn't think it's a license, and munge it to
43824         say "GCC version 3".
43826 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
43828         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
43829         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
43830         $(abs_top_builddir) instead of $(top_builddir).
43832 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
43834         strftime-tests: also test nanoseconds
43835         * tests/test-strftime.c (T): Add a test of %N.
43837 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
43839         inttypes, stdint: add C++11 support
43840         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
43841         when including inttypes.h and stdint.h.  Support this change to
43842         the standard.
43843         * doc/posix-headers/inttypes.texi (inttypes.h):
43844         * doc/posix-headers/stdint.texi (stdint.h): Document this.
43845         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
43846         Define if not defined already, for the benefit of pre-C++11 hosts.
43847         Define the standard format macros (e.g., PRId8) always.
43848         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
43849         Likewise, if __cpluspus.  Define the standard constant and limit
43850         macros (e.g., INT8_C, INT8_MAX) always.
43851         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
43852         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
43853         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
43854         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
43855         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
43856         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
43857         Likewise.
43859 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
43861         nonblocking tests: Fix test failure on Linux/PPC.
43862         Suggested by Prerna Saxena in
43863         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
43864         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
43865         Set to 1100000.
43867 2011-12-12  Jim Meyering  <meyering@redhat.com>
43869         argmatch: don't hard-code `' when listing valid option arguments
43870         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
43871         use the quote function to add quotes.  Use fputs rather than
43872         fprintf for the format string with no format directive.
43874 2011-12-07  Eric Blake  <eblake@redhat.com>
43876         bootstrap: detect tools required by gnulib-tool
43877         * build-aux/bootstrap (buildreq): Provide minimum implicit
43878         dependencies.
43879         * DEPENDENCIES: Mention patch as a prereq.
43881 2011-12-04  Bruno Haible  <bruno@clisp.org>
43883         sethostname: Port to Windows platforms.
43884         * lib/sethostname.c: Provide an alternate implementation for Windows
43885         platforms.
43886         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
43887         (main): Skip the test if sethostname() fails with EPERM. On Windows
43888         platforms, don't check the result of gethostname().
43890 2011-12-04  Bruno Haible  <bruno@clisp.org>
43891             Jim Meyering  <meyering@redhat.com>
43893         tests: Avoid spurious error message on platforms without mktemp program.
43894         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
43896 2011-12-04  Bruno Haible  <bruno@clisp.org>
43898         sethostname: Fix documentation.
43899         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
43900         "not fixed" section.
43902 2011-12-03  Bruno Haible  <bruno@clisp.org>
43904         gnulib-tool: Verify that the License field is present and non-empty.
43905         * gnulib-tool (func_get_license_raw): New function, extracted from
43906         func_get_license.
43907         (func_get_license): Use it. Warn if the module is not a test module and
43908         has no license.
43909         Suggested by Jim Meyering.
43911 2011-12-03  Bruno Haible  <bruno@clisp.org>
43913         sethostname tests: Fix link error on mingw.
43914         * tests/test-sethostname1.c: New file, extracted from
43915         tests/test-sethostname.c.
43916         * tests/test-sethostname2.c: New file, extracted from
43917         tests/test-sethostname.c.
43918         * tests/test-sethostname.c: Remove file.
43919         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
43920         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
43921         (Depends-on): Add gethostname.
43922         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
43923         Link the latter with $(GETHOSTNAME_LIB).
43925         sethostname tests: Fix compilation error on mingw.
43926         * tests/test-sethostname.c: Don't include <sys/types.h>.
43927         (geteuid): Use a dummy value without uid_t.
43928         * modules/sethostname-tests (Depends-on): Remove sys_types.
43930         sethostname tests: Avoid a gcc warning.
43931         * tests/test-sethostname.c (main): Remove an unused variable.
43933         Tweak last commit.
43934         * modules/sethostname-tests (Files): Sort by decreasing importance.
43935         (configure.ac): Check for geteuid.
43936         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
43937         the test when there's nothing to test. Drop an unnecessary cast.
43938         Improve an error message. Verify that the final sethostname() call
43939         succeeds.
43941 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43943         Add a test suite for the sethostname module.
43944         * modules/sethostname-tests: New file.  A test program
43945         for the sethostname module.
43946         * tests/test-sethostname.c: Likewise.
43948 2011-12-03  Bruno Haible  <bruno@clisp.org>
43950         Tweak last commit.
43951         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
43952         Fix preprocessor directives indentation. Fix typos.
43953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
43954         * modules/unistd (Makefile): Likewise.
43956 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43958         Integrate the sethostname module into unistd.
43959         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
43960         into the unistd.h header.
43961         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
43962         preprocessor directives.
43963         * modules/unistd: Setup the Makefile substitutions of the
43964         SETHOSTNAME preprocessor directives.
43966 2011-12-03  Bruno Haible  <bruno@clisp.org>
43968         Tweak last commit.
43969         * lib/sethostname.c: Don't include <string.h>.
43970         (sethostname): No need to copy the argument string to the stack. Don't
43971         call clearerr. Preserve errno when fprintf failed.
43972         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
43973         Don't invoke AC_REPLACE_FUNCS.
43974         * modules/sethostname (Link): Remove empty section.
43975         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
43976         failure problem.
43978 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43980         New module 'sethostname'.
43981         * lib/sethostname.c (sethostname): New file.  Provide sethostname
43982         for systems that lack it.
43983         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
43984         sethostname declaration and function.
43985         * modules/sethostname: New file.  Define the sethostname module.
43987 2011-12-03  Bruno Haible  <bruno@clisp.org>
43989         Tweak last commit.
43990         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
43992 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43994         Split the HOST_NAME_MAX detection into a separate m4 macro.
43995         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
43996         macro so it can be used by the pending sethostname module.
43998 2011-12-03  Bruno Haible  <bruno@clisp.org>
44000         Fix module descriptions syntax.
44001         * modules/argv-iter (License): Fix syntax.
44002         * modules/di-set (License): Likewise.
44003         * modules/ino-map (License): Likewise.
44004         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
44006 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
44008         stdalign: port to Clang 3.0
44009         Problem reported by Simon Josefsson in
44010         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
44011         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
44012         which has <stdalign.h> but which does not define alignof.
44013         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
44015 2011-12-01  Eric Blake  <eblake@redhat.com>
44017         mktempd: silence dd usage
44018         * build-aux/mktempd (rand_bytes): Silence dd.
44020 2011-11-30  Simon Josefsson  <simon@josefsson.org>
44022         manywarnings: Don't mention gcc version in docstring.
44023         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
44024         Jim Meyering <meyering@redhat.com>.
44026 2011-11-30  Jim Meyering  <meyering@redhat.com>
44028         hash: mark a few floating point constants with "f" suffix
44029         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
44030         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
44031         floating point constants with "f", since they're destined to be
44032         saved/used as "float"s.
44034 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
44036         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
44037         * tests/test-float.c (test_long_double): Correct and re-enable the
44038         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
44040 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
44042         Avoid subtracting two pointers that don't point into the same block.
44043         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
44044         only pointers into the same memory block are subtracted. We cannot
44045         assume that sizeof (ptrdiff_t) == sizeof (void *).
44047 2011-11-29  Eric Blake  <eblake@redhat.com>
44049         maint.mk: add syntax check for use of compare from init.sh
44050         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
44051         moved here from coreutils.
44053         manywarnings: drop -Wunsuffixed-float-constants
44054         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
44055         '1.0D', which is the only way to silence this warning for 'double'.
44057 2011-11-29  Jim Meyering  <meyering@redhat.com>
44059         hash: mark compute_bucket_size with the pure attribute
44060         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
44062         quotearg, propername: correct pragma guard expression
44063         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
44064         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
44066 2011-11-28  Jim Meyering  <meyering@redhat.com>
44068         propername: do not mark proper_name with the const attribute
44069         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
44070         since it examines data pointed to by its parameter.
44071         * lib/propername.c (proper_name): Instead, add a pragma to suppress
44072         the suggestion from -Wsuggest-attribute=const.
44074         propername: mark one more function as const
44075         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
44077 2011-11-27  Jim Meyering  <meyering@redhat.com>
44079         mark functions with const and pure attributes
44081         Mark functions per suggestions from gcc-4.6 when using these options:
44082         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
44083         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
44084         Follow these guidelines: when possible, apply the attribute to
44085         an extern declaration, not to its definition.  Apply it to the
44086         definition only when the definition is static.
44087         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
44088         * lib/argv-iter.h (argv_iter_n_args): Likewise.
44089         * lib/base64.h (isbase64): Likewise.
44090         * lib/basename-lgpl.c (last_component, base_len): Likewise.
44091         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
44092         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
44093         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
44094         (c_tolower, c_toupper): Likewise.
44095         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
44096         * lib/chdir-long.c (find_non_slash): Likewise.
44097         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
44098         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
44099         * lib/file-type.h (file_type): Likewise.
44100         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
44101         * lib/filevercmp.c (verrevcmp): Likewise.
44102         * lib/freadahead.h (freadahead): Likewise.
44103         * lib/fts.c (fts_maxarglen): Likewise.
44104         * lib/hash-pjw.h (hash_pjw): Likewise.
44105         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
44106         * lib/hash.c (is_prime, next_prime): Likewise.
44107         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
44108         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
44109         (hash_table_ok, hash_get_first, hash_string): Likewise.
44110         (compute_bucket_size): Likewise.
44111         * lib/i-ring.h (i_ring_empty): Likewise.
44112         * lib/isnan.c (isnanl): Likewise.
44113         * lib/math.h (isnanl, rpl_isnanl): Likewise.
44114         * lib/memcasecmp.h (memcasecmp): Likewise.
44115         * lib/memchr2.h (memchr2): Likewise.
44116         * lib/memcmp2.h (memcmp2): Likewise.
44117         * lib/parse-datetime.y (lookup_zone): Likewise.
44118         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
44119         [!WINDOWS_SOCKETS]: Likewise.
44120         * lib/strnlen1.h (strnlen1): Likewise.
44121         * lib/uniwidth.in.h (uc_width): Likewise.
44122         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
44123         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
44124         (quoting_options_from_style): Add a comment.
44125         * lib/propername.h (proper_name): Add a comment.
44127 2011-11-27  Bruno Haible  <bruno@clisp.org>
44129         Remove unused macros from !_LIBC code in glibc-borrowed files.
44130         * lib/fnmatch.c (STRCOLL): Remove macro.
44131         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
44132         * lib/glob.c (__stat, __readdir64): Remove macros.
44133         * lib/tempname.c (__open64, __xstat64): Remove macros.
44134         Suggested by Paul Eggert.
44136 2011-11-27  Bruno Haible  <bruno@clisp.org>
44138         getcwd: Fix link error on MSVC 9.
44139         * modules/getcwd (Depends-on): Add readdir, rewinddir.
44141 2011-11-27  Bruno Haible  <bruno@clisp.org>
44143         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
44144         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
44145         HAVE_OPENDIR is 0.
44146         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
44147         HAVE_CLOSEDIR is 0.
44148         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
44149         is 0.
44150         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
44152 2011-11-27  Bruno Haible  <bruno@clisp.org>
44154         getcwd: Fix bug from 2011-08-17.
44155         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
44156         platforms that need it.
44157         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
44158         code of 4 to be a failure, not a success. This ensures that
44159         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
44161 2011-11-27  Bruno Haible  <bruno@clisp.org>
44163         binary-io tests: Avoid test failure on mingw when libtool is used.
44164         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
44165         Don't verify the size of t-bin-out1.tmp here.
44166         * tests/test-binary-io.sh: Verify it here.
44167         Reported by Simon Josefsson.
44169 2011-11-26  Bruno Haible  <bruno@clisp.org>
44171         Fix conflict between two instantiations of module 'unistd'.
44172         * gnulib-tool (func_emit_autoconf_snippet): Substitute
44173         ${include_guard_prefix} also in the autoconf snippet.
44174         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
44175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
44176         GNULIB_UNISTD_H_GETOPT.
44177         * modules/getopt-posix (configure.ac): Set the
44178         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
44179         * modules/getopt-gnu (configure.ac): Likewise.
44180         * modules/unistd (Makefile.am): Change the substitution value of
44181         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
44182         Reported by Simon Josefsson.
44184 2011-11-25  Bruno Haible  <bruno@clisp.org>
44186         pagealign_alloc: Doc and comments.
44187         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
44188         module.
44189         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
44191 2011-11-25  Jim Meyering  <meyering@redhat.com>
44193         test-update-copyright.sh: avoid false-positive failure
44194         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
44195         around false positive failure on Cygwin/Windows.  The latter was
44196         matching erroneously-created files with names like
44197         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
44199 2011-11-25  Simon Josefsson  <simon@josefsson.org>
44201         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
44202         * m4/valgrind-tests.m4: Check that the parameters that will be
44203         used works, not just a subset of them.  Reported by Bruno Haible
44204         <bruno@clisp.org>.
44206 2011-11-24  Jim Meyering  <meyering@redhat.com>
44208         test-stdalign.c: comment out long double tests
44209         * tests/test-stdalign.c: Don't try to reduce alignment of long double
44210         variables.  That provokes errors like this from gcc-4.7.0 20111124:
44211         error: '_Alignas' specifiers cannot reduce alignment of \
44212         'static_longdouble_alignas'.
44214 2011-11-22  Jim Meyering  <meyering@redhat.com>
44216         init.sh: make "compare /dev/null FILE" output more readable
44217         * tests/init.sh (compare_): Document the preferred order of arguments.
44218         (emit_diff_u_header_): New function.
44219         (compare_dev_null_): Emit a simulated diff, rather than just the
44220         contents of the unexpected file.  Suggestion from Bruno Haible.
44222 2011-11-21  Jim Meyering  <meyering@redhat.com>
44223             Eric Blake  <eblake@redhat.com>
44225         init.sh: work around OSF/1 5.1's mishandling of /dev/null
44226         * tests/init.sh: Make our compare function slightly more portable.
44227         Reported by Bruno Haible in
44228         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
44230 2011-11-21  Simon Josefsson  <simon@josefsson.org>
44232         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
44233         before using it, in code that ends up in config.h.
44235 2011-11-20  Bruno Haible  <bruno@clisp.org>
44237         getcwd: Work around getcwd bug on AIX 5..7.
44238         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
44239         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
44240         Use a different value for gl_cv_func_getcwd_path_max. Move the
44241         definition of HAVE_PARTLY_WORKING_GETCWD from here...
44242         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
44243         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
44244         Define HAVE_MINIMALLY_WORKING_GETCWD.
44245         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
44246         where it is not even minimally working, that is, on AIX.
44247         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
44248         m4/getcwd-path-max.m4.
44249         (main): Update exit code computation.
44250         * doc/posix-functions/getcwd.texi: Mention list of platforms where
44251         getcwd does not handle long file names.
44253 2011-11-20  Bruno Haible  <bruno@clisp.org>
44255         getcwd: Fix bug from 2009-09-10.
44256         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
44257         like "no".
44259 2011-11-20  Simon Josefsson  <simon@josefsson.org>
44261         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
44263 2011-11-20  Bruno Haible  <bruno@clisp.org>
44265         fma tests: Avoid shadowing local variables.
44266         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
44267         expected.
44269 2011-11-20  Bruno Haible  <bruno@clisp.org>
44271         copysignf tests: Fix.
44272         * tests/test-copysignf.c: Fix signature check.
44274 2011-11-20  Bruno Haible  <bruno@clisp.org>
44276         fma: Remove unused code.
44277         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
44278         unused macros.
44280 2011-11-20  Bruno Haible  <bruno@clisp.org>
44282         sethostname: Fix doc about AIX.
44283         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
44284         sethostname; it has it.
44286         sethostname: Mention more portability problems.
44287         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
44288         problem.
44289         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
44291 2011-11-19  Bruno Haible  <bruno@clisp.org>
44293         Depend on module fcntl-h when AT_FDCWD is used.
44294         * modules/utimens (Depends-on): Add fcntl-h.
44295         * modules/areadlinkat (Depends-on): Likewise.
44296         * modules/areadlinkat-with-size (Depends-on): Likewise.
44297         * modules/faccessat (Depends-on): Likewise.
44298         * modules/fchmodat (Depends-on): Likewise.
44299         * modules/fchownat (Depends-on): Likewise.
44300         * modules/getcwd (Depends-on): Likewise.
44301         * modules/mkdirat (Depends-on): Likewise.
44302         * modules/mkfifoat (Depends-on): Likewise.
44303         * modules/readlinkat (Depends-on): Likewise.
44304         * modules/symlinkat (Depends-on): Likewise.
44305         * modules/dup2-tests (Depends-on): Likewise.
44306         * modules/fdutimensat-tests (Depends-on): Likewise.
44307         * modules/futimens-tests (Depends-on): Likewise.
44309 2011-11-19  Bruno Haible  <bruno@clisp.org>
44311         euidaccess: Update a comment.
44312         * lib/euidaccess.c: Update comment about platforms with faccessat.
44314 2011-11-19  Bruno Haible  <bruno@clisp.org>
44316         openat: Fix file list.
44317         * modules/openat (Files): Remove lib/at-func.c.
44319 2011-11-19  Bruno Haible  <bruno@clisp.org>
44321         fstatat: Simplify.
44322         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
44323         gnulib should define rpl_fstatat, there is a
44324         "#define fstatat rpl_fstatat" in <sys/stat.h>.
44326 2011-11-19  Bruno Haible  <bruno@clisp.org>
44328         Ensure 'inline' can be used in tests/test-utimens-common.h.
44329         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
44330         * modules/futimens-tests (configure.ac): Likewise.
44331         * modules/utimens-tests (configure.ac): Likewise.
44332         * modules/utimensat-tests (configure.ac): Likewise.
44334 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44336         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
44337         not hash_insert0.
44338         (hash_insert_if_absent): Doc fix.
44340 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44342         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
44344 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
44346         test-getcwd: disambiguate exit status
44347         * tests/test-getcwd.c (test_long_name): Return 0..7.
44348         (main): Exit with an unambiguous exit status.  The old
44349         code yielded a mysterious mixture of two failure codes.
44351         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
44352         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
44353         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
44354         rpl_fstatat or fstatat.  This should fix the other problem
44355         reported by Kai Habel in
44356         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44357         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
44358         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
44359         and I reproduced it on a Solaris 8 host we still have in production.
44361 2011-11-18  Jim Meyering  <meyering@redhat.com>
44363         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
44364         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
44365         Add a sentence to the comment.
44366         (hash_insert0): New function that simply calls hash_insert_if_absent.
44367         * lib/hash.h (hash_insert_if_absent): Declare it.
44368         (hash_insert0): Add deprecation attribute.
44369         (_GL_ATTRIBUTE_DEPRECATED): Define.
44370         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
44371         not hash_insert0.
44372         * NEWS: Mention it, even though it's not really an incompatible change.
44374 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
44376         openat: avoid compilation failure due to lack of <errno.h> inclusion
44377         * lib/openat.c: Include <errno.h>.
44379 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44381         * modules/getcwd (Depends-on): Add fdopendir.
44382         This fixes one of the two problems reported by Kai Habel in
44383         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44385         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
44386         stdalign problem reported by Ian Beckwith in
44387         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
44388         * modules/crypto/gc-arcfour (Depends-on):
44389         Depend conditionally on crypto/arcfour.
44390         * modules/crypto/gc-arctwo (Depends-on):
44391         Depend conditionally on crypto/arctwo.
44392         * modules/crypto/gc-des (Depends-on):
44393         Depend conditionally on crypto/des.
44394         * modules/crypto/gc-hmac-md5 (Depends-on):
44395         Depend conditionally on crypto/hmac-md5.
44396         * modules/crypto/gc-hmac-sha1 (Depends-on):
44397         Depend conditionally on crypto/hmac-sha1.
44398         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
44399         * modules/crypto/gc-md4 (Depends-on):
44400         Depend conditionally on crypto/md4.
44401         * modules/crypto/gc-md5 (Depends-on):
44402         Depend conditionally on crypto/md5.
44403         * modules/crypto/gc-rijndael (Depends-on):
44404         Depend conditionally on crypto/rijndael.
44405         * modules/crypto/gc-sha1 (Depends-on):
44406         Depend conditionally on crypto/sha1.
44407         * modules/crypto/gc-arcfour:
44408         * modules/crypto/gc-arctwo:
44409         * modules/crypto/gc-des:
44410         * modules/crypto/gc-hmac-md5:
44411         * modules/crypto/gc-hmac-sha1:
44412         * modules/crypto/gc-md2:
44413         * modules/crypto/gc-md4:
44414         * modules/crypto/gc-md5:
44415         * modules/crypto/gc-rijndael:
44416         * modules/crypto/gc-sha1:
44417         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
44418         now that the conditional dependencies do the work for us.
44420 2011-11-17  Jim Meyering  <meyering@redhat.com>
44422         tests: factor st_ctime-comparison out of two headers
44423         * tests/test-utimens-common.h (ctime_compare): Define.
44424         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
44425         * tests/test-lutimens.h (test_lutimens): Likewise.
44426         * tests/test-utimens.h (test_utimens): Likewise.
44428         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
44429         Invoke the test program via an init.sh-using wrapper.
44430         * tests/test-getcwd.sh: New file.
44431         * modules/getcwd-tests (Files): Add it.
44432         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
44434 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
44436         gitlog-to-changelog: support multi-author commits.
44437         The FSF cares about keeping track of all authors of patches to its
44438         projects, but Git doesn't provide obvious support for multi-author
44439         changesets. Consensus seems to be forming around the use of extra
44440         Signed-off-by inspired lines in the log message formatted as
44441         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
44442         multi-author commits between version control systems.
44443         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
44444         log message and output in standard ChangeLog multi-author format.
44445         Reported by Peter Rosin <peda@lysator.liu.se>
44447 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
44448             Bruno Haible  <bruno@clisp.org>
44450         Fix some modules' file list.
44451         * modules/fstatat (Files): Add m4/lstat.m4.
44452         * modules/openat (Files): Likewise.
44453         * modules/unlinkat (Files): Likewise.
44455 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
44457         maint.mk: fix tight-scope.mk generation in VPATH builds.
44458         * top/maint.mk (tight-scope.mk): Make sure to prefix file
44459         reference with $(srcdir) so that the file is found correctly even
44460         when running `make syntax-check' in a VPATH build.
44462 2011-11-13  Bruno Haible  <bruno@clisp.org>
44463             Jim Meyering  <meyering@redhat.com>
44465         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
44466         * tests/init.sh (compare): Remove "No differences encountered" or
44467         synonymous output from the 'diff' program.
44469 2011-11-13  Bruno Haible  <bruno@clisp.org>
44471         Makefile: Tweak indentation.
44472         * Makefile: Use tab as first character in every line that contains rule
44473         commands.
44475 2011-11-13  Bruno Haible  <bruno@clisp.org>
44477         Syntax check for copyright statements.
44478         * check-copyright: New file.
44479         * Makefile (sc_check_copyright): New rule.
44481 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44483         * build-aux/git-version-gen: Add --prefix to configure the tag
44484         match string.
44486 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44488         * build-aux/git-version-gen: Add --help and --version.
44490 2011-11-12  Jim Meyering  <meyering@redhat.com>
44492         revamp the other test-exclude?.sh scripts to use init.sh, too
44493         * tests/test-exclude1.sh: Use init.sh.
44494         * tests/test-exclude2.sh: Likewise.
44495         * tests/test-exclude3.sh: Likewise.
44496         * tests/test-exclude4.sh: Likewise.
44497         * tests/test-exclude5.sh: Likewise.
44498         * tests/test-exclude6.sh: Likewise.
44499         * tests/test-exclude7.sh: Likewise.
44500         * tests/test-exclude8.sh: Likewise.
44501         * modules/exclude-tests (Files): List init.sh.
44503         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
44504         These shell scripts ignored failure of the binary test-exclude,
44505         so making the latter return 77 didn't cause them to be skipped.
44506         * tests/test-exclude5.sh: Exit with test-exclude's error status
44507         when that program fails.  Revamp to use init.sh.
44508         * tests/test-exclude2.sh: Likewise.
44510         test-exclude: fix a typo
44511         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
44513 2011-11-11  Bruno Haible  <bruno@clisp.org>
44515         obstack: Fix compilation error on MSVC 9.
44516         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
44518 2011-11-11  Jim Meyering  <meyering@redhat.com>
44520         test-exclude: skip tests rather than failing on deficient systems
44521         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
44522         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
44523         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
44524         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
44526 2011-11-10  Bruno Haible  <bruno@clisp.org>
44528         ptsname_r test: Avoid gcc warning on glibc systems.
44529         * tests/test-ptsname_r.c (null_ptr): New function.
44530         (test_errors): Use it.
44532 2011-11-10  Bruno Haible  <bruno@clisp.org>
44534         ptsname_r: Avoid compilation error on OSF/1 5.1.
44535         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
44536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
44537         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
44538         function is not declared or incompatibly declared.
44539         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
44540         * modules/ptsname_r (Depends-on, configure.ac): Update.
44541         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
44543 2011-11-10  Bruno Haible  <bruno@clisp.org>
44545         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
44546         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
44547         When cross-compiling, guess yes on all platforms except AIX.
44548         Reported by Ludovic Courtès <ludo@gnu.org>.
44550 2011-11-09  Bruno Haible  <bruno@clisp.org>
44552         ptsname_r tests: Fix bugs.
44553         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
44554         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
44556 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44558         fstatat: work with cross-compilation
44559         Problem reported by Ludovic Courtès in
44560         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
44561         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
44562         "cross-compiling" and assume the bug is present.  Replace
44563         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
44564         an inverted sense, to be more conservative about our assumptions.
44565         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
44567 2011-11-09  Bruno Haible  <bruno@clisp.org>
44569         Improve MODULES.html output.
44570         * modules/mkfifoat (Description): Use the word "function".
44571         * modules/readlinkat (Description): Likewise.
44572         * modules/symlinkat (Description): Likewise.
44574 2011-11-09  Eric Blake  <eblake@redhat.com>
44576         ptsname_r-tests: new test module
44577         * modules/ptsname_r-tests: New module.
44578         * tests/test-ptsname_r.c: New file.
44580         ptsname_r: new module
44581         * modules/ptsname_r: New module.
44582         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
44583         * lib/ptsname.c (__ptsname_r): Split...
44584         * lib/ptsname_r.c: ...into new file.
44585         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
44586         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
44587         * modules/stdlib (Makefile.am): Substitute witnesses.
44588         * lib/stdlib.in.h (ptsname_r): Declare it.
44589         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
44590         * MODULES.html.sh (Misc): Likewise.
44591         * modules/ptsname (Depends-on): Alter dependency.
44592         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
44594 2011-11-09  Jim Meyering  <meyering@redhat.com>
44596         announce-gen: be more concise when there's only one URL+tarball
44597         * build-aux/announce-gen (get_tool_versions): When you distribute
44598         only one type of tarball, combine the first two "Here are..."
44599         sections and make the key-checking grammar independent of
44600         how many tarballs there are.
44602 2011-11-09  Eric Blake  <eblake@redhat.com>
44604         openpty: provide a stub on mingw
44605         * lib/pty.in.h (includes): Provide forward declarations.
44606         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
44608         raise: fix mingw handling of SIGPIPE
44609         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
44611 2011-11-08  Bruno Haible  <bruno@clisp.org>
44613         More conditional dependencies.
44614         * modules/faccessat (Depends-on): Add conditions.
44615         * modules/fchmodat (Depends-on): Likewise.
44616         * modules/fchownat (Depends-on): Likewise.
44617         * modules/fstatat (Depends-on): Likewise.
44618         * modules/mkfifoat (Depends-on): Likewise.
44619         * modules/readlinkat (Depends-on): Likewise.
44620         * modules/symlinkat (Depends-on): Likewise.
44621         * modules/unlinkat (Depends-on): Likewise.
44622         * modules/utimensat (Depends-on): Likewise.
44623         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
44624         * modules/linkat (Depends-on): Refine the conditions.
44625         * modules/renameat (Depends-on): Likewise.
44627 2011-11-08  Bruno Haible  <bruno@clisp.org>
44629         faccessat: Move AC_LIBOBJ invocation to module description.
44630         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
44631         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
44632         invocation from here...
44633         * modules/faccessat (configure.ac): ... to here. Invoke
44634         gl_PREREQ_FACCESSAT.
44636 2011-11-08  Bruno Haible  <bruno@clisp.org>
44638         faccessat: Simplify autoconf macro.
44639         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
44640         gl_FUNC_EUIDACCESS.
44642 2011-11-08  Bruno Haible  <bruno@clisp.org>
44644         renameat: Fix dependencies.
44645         * modules/renameat (Depends-on): Add stdbool.
44647 2011-11-08  Bruno Haible  <bruno@clisp.org>
44649         mkfifoat: Fix module description.
44650         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
44651         not gl_UNISTD_MODULE_INDICATOR.
44653 2011-11-08  Bruno Haible  <bruno@clisp.org>
44655         fstatat: Remove unused dependency.
44656         * modules/fstatat (Depends-on): Remove fstat.
44658 2011-11-08  Simon Josefsson  <simon@josefsson.org>
44660         GNUmakefile: behave when Makefile is missing.
44661         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
44663 2011-11-08  Bruno Haible  <bruno@clisp.org>
44665         openat: Conditionalize dependencies.
44666         * lib/openat.c: Reduce the scope of some #includes.
44667         * modules/openat (Depends-on): Add conditions.
44669 2011-11-07  Jim Meyering  <meyering@redhat.com>
44671         maint.mk: extract GPG key ID without using a temporary file
44672         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
44673         without using a temporary file.  Based on a suggestion from Werner Koch
44674         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
44676 2011-11-07  Eric Blake  <eblake@redhat.com>
44678         grantpt: fix typo
44679         * lib/stdlib.in.h (grantpt): Check correct function.
44681         maint.mk: silence new syntax check
44682         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
44684 2011-11-06  Bruno Haible  <bruno@clisp.org>
44686         Doc about floating-point and math API.
44687         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
44688         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
44690 2011-11-06  Bruno Haible  <bruno@clisp.org>
44692         stdalign tests: Skip the test when compiled by Sun C.
44693         * tests/test-stdalign.c (main): Skip the test on Sun C.
44695 2011-11-06  Bruno Haible  <bruno@clisp.org>
44697         ansi-c++-opt: Complete the 2011-06-05 change.
44698         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
44699         does not support namespaces, set the variable to "no", not to ":".
44701 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44703         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
44705 2011-11-06  Bruno Haible  <bruno@clisp.org>
44707         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
44708         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
44709         (minus_zerol) [HP-UX]: New macro.
44710         (unary_minus) [HP-UX]: New function.
44711         (copysignl) [HP-UX]: Use unary_minus function.
44713 2011-11-06  Bruno Haible  <bruno@clisp.org>
44715         ldexp, ldexpf, ldexpl: Enhance tests.
44716         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
44717         and tests/test-ldexpl.c.
44718         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
44719         LDEXP, MIN_EXP, MAX_EXP): New macros.
44720         Include test-ldexp.h.
44721         (main): Just call test_function.
44722         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
44723         infinity.h, nan.h.
44724         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
44725         MAX_EXP): New macros.
44726         Include test-ldexp.h.
44727         (x, y): Remove variables.
44728         (main): Just call test_function.
44729         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
44730         infinity.h, nan.h.
44731         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
44732         MAX_EXP): New macros.
44733         Include test-ldexp.h.
44734         (x, y): Remove variables.
44735         (main): Just call test_function.
44736         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
44737         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
44738         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44739         (Depends-on): Add isnand-nolibm, signbit, float.
44740         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
44741         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44742         (Depends-on): Add isnanf-nolibm, signbit, float.
44744 2011-11-06  Bruno Haible  <bruno@clisp.org>
44746         math tests: Cosmetics.
44747         * tests/test-math-c++.cc: Reorder declarations.
44749 2011-11-05  Bruno Haible  <bruno@clisp.org>
44751         fma*: Simplify test.
44752         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
44753         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
44755         Tests for module 'fmal'.
44756         * modules/fmal-tests: New file.
44757         * tests/test-fmal1.c: New file.
44758         * tests/test-fmal2.c: New file.
44760         New module 'fmal'.
44761         * lib/math.in.h (fmal): New declaration.
44762         * lib/fmal.c: New file.
44763         * m4/fmal.m4: New file.
44764         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
44765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
44766         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
44767         REPLACE_FMAL.
44768         * modules/fmal: New file.
44769         * doc/posix-functions/fmal.texi: Mention the new module and the various
44770         bugs.
44772         Tests for module 'fmaf'.
44773         * modules/fmaf-tests: New file.
44774         * tests/test-fmaf1.c: New file.
44775         * tests/test-fmaf2.c: New file.
44777         New module 'fmaf'.
44778         * lib/math.in.h (fmaf): New declaration.
44779         * lib/fmaf.c: New file.
44780         * m4/fmaf.m4: New file.
44781         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
44782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
44783         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
44784         REPLACE_FMAF.
44785         * modules/fmaf: New file.
44786         * doc/posix-functions/fmaf.texi: Mention the new module and the various
44787         bugs.
44789         Tests for module 'fma'.
44790         * modules/fma-tests: New file.
44791         * tests/test-fma1.c: New file.
44792         * tests/test-fma1.h: New file.
44793         * tests/test-fma2.c: New file.
44794         * tests/test-fma2.h: New file.
44796         New module 'fma'.
44797         * lib/math.in.h (fma): New declaration.
44798         * lib/fma.c: New file.
44799         * m4/fma.m4: New file.
44800         * m4/fegetround.m4: New file.
44801         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
44802         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
44803         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
44804         REPLACE_FMA.
44805         * modules/fma: New file.
44806         * doc/posix-functions/fma.texi: Mention the new module and the various
44807         bugs.
44809         Extend gl_MATHFUNC.
44810         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
44811         Support 'void' as argument type.
44812         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
44814 2011-11-05  Jim Meyering  <meyering@redhat.com>
44816         maint.mk: also prohibit inclusion of dirent.h without use
44817         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
44819 2011-11-05  Bruno Haible  <bruno@clisp.org>
44821         ldexpl tests: Avoid test failure on MSVC 9.
44822         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
44823         value. Needed in order to enforce the conversion from a value greater
44824         than LDBL_MAX to Infinity.
44826 2011-11-05  Bruno Haible  <bruno@clisp.org>
44828         New modules 'at-internal', 'openat-h', split off from module 'openat'.
44829         * modules/at-internal: New file, extracted from modules/openat.
44830         * modules/openat-h: New file.
44831         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
44832         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
44833         * modules/openat (Description): Add reference to POSIX function.
44834         (Files): Remove lib/openat.h, lib/openat-proc.c.
44835         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
44836         intprops, unistd.
44837         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
44838         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
44839         gl_FCNTL_MODULE_INDICATOR.
44840         (Include): Remove unistd.h, openat.h.
44841         * modules/areadlinkat (Files): Add lib/at-func.c.
44842         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44843         openat-die, openat-h, save-cwd.
44844         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
44845         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44846         openat-die, openat-h, save-cwd, unistd.
44847         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
44848         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44849         openat-h, save-cwd. Remove fcntl-h, openat.
44850         * modules/fchmodat (Files): Remove lib/openat.h.
44851         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44852         openat, stdbool, unistd.
44853         * modules/fchownat (Files): Remove lib/openat.h.
44854         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44855         openat, stdbool, sys_stat.
44856         * modules/fdopendir (Files): Remove lib/openat-priv.h,
44857         lib/openat-proc.c.
44858         (Depends-on): Add at-internal.
44859         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
44860         * modules/fstatat (Files): Remove lib/openat.h.
44861         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
44862         stdbool, unistd.
44863         * modules/fts (Depends-on): Add openat-h.
44864         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
44865         openat.
44866         * modules/mkdirat (Files): Remove lib/openat.h.
44867         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44868         openat, stdbool, sys_stat.
44869         * modules/mkfifoat (Files): Add lib/at-func.c.
44870         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44871         openat-h, save-cwd. Remove fcntl-h, openat.
44872         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
44873         * modules/readlinkat (Files): Add lib/at-func.c.
44874         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44875         openat-h, save-cwd. Remove fcntl-h, openat.
44876         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
44877         openat.
44878         * modules/selinux-at (Files): Add lib/at-func.c.
44879         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44880         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
44881         * modules/symlinkat (Files): Add lib/at-func.c.
44882         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44883         openat-h, save-cwd. Remove fcntl-h, openat.
44884         * modules/unlinkat (Files): Remove lib/openat.h.
44885         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
44886         stdbool.
44887         * modules/utimensat (Files): Add lib/at-func.c.
44888         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
44889         openat-die, openat-h, save-cwd.
44890         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
44891         * modules/fdutimensat-tests (Depends-on): Add openat.
44892         * modules/fstatat-tests (Depends-on): Add openat-h.
44893         * modules/readlinkat-tests (Depends-on): Add openat.
44894         * modules/symlinkat-tests (Depends-on): Add openat.
44896 2011-11-05  Bruno Haible  <bruno@clisp.org>
44898         openat: Include <stdbool.h>.
44899         * lib/openat.c: Include <stdbool.h>.
44901 2011-11-04  Bruno Haible  <bruno@clisp.org>
44903         fchownat, renameat, unlinkat: Fix dependencies.
44904         * modules/fchownat (Depends-on): Add fstatat.
44905         * modules/renameat (Depends-on): Likewise.
44906         * modules/unlinkat (Depends-on): Likewise.
44908 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
44910         openat: remove direct dependency on dirent
44911         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
44912         and hasn't been needed ever since fdopendir was split into its own
44913         module on 2009-08-31.
44914         * modules/openat (Depends-on): Remove dirent.
44916 2011-11-04  Bruno Haible  <bruno@clisp.org>
44918         renameat: Optimize code size.
44919         * modules/renameat (configure.ac): Don't compile at-func2.c if
44920         REPLACE_RENAMEAT is 1.
44922 2011-11-04  Bruno Haible  <bruno@clisp.org>
44924         openat tests: Fix file list.
44925         * modules/openat-tests (Files): Add tests/test-open.h.
44927 2011-11-04  Bruno Haible  <bruno@clisp.org>
44929         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
44930         * modules/fchmodat (Depends-on): Add openat-die.
44931         * modules/fchownat (Depends-on): Likewise.
44932         * modules/linkat (Depends-on): Likewise.
44933         * modules/renameat (Depends-on): Likewise.
44934         * modules/openat (Depends-on): Add dirent.
44936 2011-11-04  Jim Meyering  <meyering@redhat.com>
44938         at-func*.c: fix comments
44939         * lib/at-func2.c: Correct/improve first-line comment.
44940         * lib/at-func.c: Correct grammar in first-line comment.
44942 2011-11-04  Bruno Haible  <bruno@clisp.org>
44944         New module 'mkdirat', split off from module 'openat'.
44945         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
44946         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
44947         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
44948         * modules/mkdirat: New file, extracted from modules/openat.
44949         * modules/openat (Files): Remove lib/mkdirat.c.
44950         (Depends-on): Remove mkdir.
44951         (configure.ac): Remove AC_LIBOBJ of mkdirat.
44952         (Include): Remove <sys/stat.h>.
44953         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
44954         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
44955         tests/test-mkdir.h.
44956         (Depends-on): Remove ignore-value.
44957         (Makefile.am): Remove rules for test-mkdirat.
44958         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
44959         of module 'openat'.
44960         * NEWS: Mention the change.
44962 2011-11-04  Bruno Haible  <bruno@clisp.org>
44964         closedir: Avoid warning on mingw.
44965         * lib/closedir.c: Include <unistd.h>.
44967 2011-11-04  Bruno Haible  <bruno@clisp.org>
44969         New module 'fstatat', split off from module 'openat'.
44970         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
44971         defined.
44972         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
44973         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
44974         gl_FUNC_FSTATAT.
44975         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
44976         * modules/fstatat: New file, extracted from modules/openat.
44977         * modules/openat (Files): Remove lib/fstatat.c.
44978         (Depends-on): Remove lstat.
44979         (configure.ac): Remove AC_LIBOBJ of fstatat.
44980         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
44981         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
44982         tests/test-lstat.h, tests/test-stat.h.
44983         (Depends-on): Remove getcwd-lgpl.
44984         (Makefile.am): Remove rules for test-fstatat.
44985         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
44986         of module 'openat'.
44987         * NEWS: Mention the change.
44988         * modules/getcwd (Depends-on): Add fstatat.
44989         * modules/linkat (Depends-on): Likewise.
44990         * modules/mkfifoat-tests (Depends-on): Likewise.
44991         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
44993 2011-11-03  Bruno Haible  <bruno@clisp.org>
44995         New module 'unlinkat', split off from module 'openat'.
44996         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
44997         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
44998         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
44999         * modules/unlinkat: New file, extracted from modules/openat. Correct
45000         the dependency conditions.
45001         * modules/openat (Files): Remove lib/unlinkat.c.
45002         (Depends-on): Remove rmdir, unlink.
45003         (configure.ac): Remove AC_LIBOBJ of unlinkat.
45004         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
45005         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
45006         tests/test-rmdir.h, tests/test-unlink.h.
45007         (Depends-on): Remove unlinkdir.
45008         (Makefile.am): Remove rules for test-unlinkat.
45009         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
45010         of module 'openat'.
45011         * NEWS: Mention the change.
45012         * modules/linkat-tests (Depends-on): Add unlinkat.
45013         * modules/mkfifoat-tests (Depends-on): Likewise.
45014         * modules/readlinkat-tests (Depends-on): Likewise.
45016 2011-11-02  Bruno Haible  <bruno@clisp.org>
45018         New module 'fchmodat', split off from module 'openat'.
45019         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
45020         defined.
45021         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
45022         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
45023         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
45024         * modules/fchmodat: New file, extracted from modules/openat.
45025         * modules/openat (Files): Remove lib/fchmodat.c.
45026         (configure.ac): Remove AC_LIBOBJ of fchmodat.
45027         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
45028         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
45029         (Makefile.am): Remove rules for test-fchmodat.
45030         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
45031         of module 'openat'.
45032         * NEWS: Mention the change.
45034 2011-11-02  Jim Meyering  <meyering@redhat.com>
45036         putenv: indent #definition of "environ" to placate cppi
45037         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
45039         gitlog-to-changelog: provide a ChangeLog-repair mechanism
45040         Git logs are often treated as immutable, because editing them
45041         changes the SHA1 checksums of all descendants.  Thus, errors in
45042         git logs tend to stay there forever.  However, when we generate
45043         a ChangeLog file -- typically for distribution -- from that git log,
45044         we can actually make corrections in the generated file.  The key
45045         lies in recording in machine-readable/applicable form the desired
45046         corrections.  See --help for description and an example.
45047         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
45048         (usage): Describe it; alphabetize option descriptions.
45049         (main): Honor the new option, carefully.
45051 2011-11-01  Jim Meyering  <meyering@redhat.com>
45053         gitlog-to-changelog: avoid an infloop
45054         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
45055         that ends up being empty.
45057 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45059         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
45060         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
45061         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
45062         contains (possibly-quoted) backslashes.  This should avoid
45063         all-too-common shell bugs if COMPLICATED contains backslashes in
45064         the "wrong" places.  Reported by David Evans in
45065         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
45066         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
45067         because we want ASCII ranges.  Is there some reason we don't use
45068         the C locale everywhere in this script?
45069         (func_module, top level): Avoid unwanted pathname expansion when
45070         $repo_url_prefix or $repo_url_suffix_repl contain shell
45071         metacharacters like '?' and '*'.
45073 2011-11-01  Bruno Haible  <bruno@clisp.org>
45075         fchownat: Improve description.
45076         * modules/fchownat (Description): Add link to function.
45078 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45080         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
45081         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
45082         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
45083         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
45085 2011-11-01  Bruno Haible  <bruno@clisp.org>
45087         alignof: Avoid collision with stdalign module.
45088         * lib/alignof.h (alignof): Remove macro.
45089         * NEWS: Mention the change.
45090         Reported by Paul Eggert.
45092 2011-11-01  Bruno Haible  <bruno@clisp.org>
45094         New module 'fchownat', split off from module 'openat'.
45095         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
45096         defined.
45097         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
45098         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
45099         invoke gl_FUNC_FCHOWNAT.
45100         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
45101         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
45102         * modules/fchownat: New file, extracted from modules/openat.
45103         * modules/openat (Files): Remove lib/fchownat.c.
45104         (Depends-on): Remove lchown.
45105         (configure.ac): Remove AC_LIBOBJ of fchownat.
45106         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
45107         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
45108         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
45109         (Depends-on): Remove mgetgroups, usleep, stat-time.
45110         (configure.ac): Remove test for getegid.
45111         (Makefile.am): Remove rules for test-fchownat.
45112         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
45113         of module 'openat'.
45114         * NEWS: Mention the change.
45116 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
45118         stdalign: port better to MSVC and to Sun C 5.11
45119         This fixes some of the problems reported by Bruno Haible in
45120         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
45121         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
45122         shortcomings of MSVC and of Sun C 5.11.
45123         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
45124         around __declspec arg.
45125         * modules/stdalign-tests (Files): Add tests/macros.h.
45126         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
45127         Include macros.h, for ASSERT.
45128         (DECLARE_ALIGNED): Remove.
45129         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
45130         to catch bug), and to 1 if not (simplifies the rest of the code).
45131         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
45132         (CHECK_AUTO): Remove.
45133         (CHECK_ALIGNED): Check only the alignment of the static vars,
45134         since auto var alignment isn't supported by Sun C 5.11.
45135         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
45136         ASSERT failures are easier to diagnose.
45138 2011-10-31  Bruno Haible  <bruno@clisp.org>
45140         doc about some IRIX 5.3 problems.
45141         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
45142         on IRIX 5.3.
45143         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
45144         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
45145         5.3.
45146         * doc/posix-functions/grantpt.texi: Likewise.
45147         * doc/posix-functions/unlockpt.texi: Likewise.
45148         * doc/posix-functions/lgamma.texi: Likewise.
45149         * doc/posix-functions/nextafter.texi: Likewise.
45150         * doc/posix-functions/remainder.texi: Likewise.
45151         * doc/posix-functions/select.texi: Mention misplaced declaration on
45152         IRIX 5.3.
45153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45155 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
45157         gitlog-to-changelog: fix git-log invocation.
45158         git-log mishandles date strings before 1970-01-01 UTC, and there is
45159         no use to specify --since=1970-01-01 by default anyway.
45160         * build-aux/gitlog-to-changelog: By default, when no --since option
45161         was given, do not specify explicit --since option to git-log.
45163 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
45165         gitlog-to-changelog: new option --append-dot.
45166         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
45167         first non-blank line of each commit message terminated with a dot.
45169 2011-10-30  Bruno Haible  <bruno@clisp.org>
45171         ffsl, ffsll: Avoid compilation error due to 'restrict'.
45172         * lib/ffsl.h: Include <config.h>.
45173         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
45175 2011-10-30  Jim Meyering  <meyering@redhat.com>
45177         GNUmakefile: reenable "make syntax-check" for most projects
45178         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
45179         build-aux variable", "syntax-check" would do nothing but succeed with
45180         the "No version control files detected..." diagnostic (unless you
45181         happened to override _build-aux via cfg.mk).
45182         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
45183         to precede inclusion of maint.mk.  Otherwise, these variables would
45184         be used undefined in any project that does not override the default.
45186 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
45188         gitlog-to-changelog: treat a message with only blank lines as empty.
45189         * build-aux/gitlog-to-changelog: Move the code that removes leading and
45190         trailing blank lines before the code that issues a warning about an
45191         empty commit message.
45193 2011-10-30  Jim Meyering  <meyering@redhat.com>
45195         test-parse-datetime.c: avoid new DST-related false positive test failure
45196         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
45197         based on the time/date we'll convert, not the current time.
45198         Otherwise, the moment we cross a DST boundary like today's in
45199         Europe, (CEST to CET), that offset ends up being one hour off.
45201 2011-10-27  Bruno Haible  <bruno@clisp.org>
45203         fstat: Tweak documentation.
45204         * modules/fstat (Description): More precise description.
45206 2011-10-27  Bruno Haible  <bruno@clisp.org>
45208         Update documentation regarding 'largefile' module.
45209         * doc/posix-functions/fstat.texi: Tweak wording.
45210         * doc/posix-functions/opendir.texi: Mention that the module fixes the
45211         problems with huge directories and/or small ino_t types.
45212         * doc/posix-functions/readdir.texi: Likewise.
45213         * doc/posix-functions/rewinddir.texi: Likewise.
45215 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
45217         maint.mk: don't maintain a second build-aux variable.
45218         * maint.mk (build_aux): Removed.  The maintainer-makefile module
45219         depends on GNUmakefile, which already maintains a cfg.mk
45220         overridable $(_build-aux) for projects with a non-standard
45221         build-aux directory location, although without the $(srcdir)
45222         prefix.  Use that variable consistently instead of introducing a
45223         second one.  Adjust all call sites.
45225 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45227         Add stdalign module and use it in other modules.
45228         This is based on a previous proposal by Bruno Haible
45229         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
45231         stdalign: new module
45232         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
45233         * modules/stdalign: New files.
45234         * MODULES.html.sh (c1x_core_properties): Add stdalign.
45235         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
45237         stdalign-tests: new module
45238         * modules/stdalign-tests, tests/test-stdalign.c: New files.
45240         argp: use stdalign
45241         * lib/argp-parse.c: Include <stdalign.h>.
45242         (alignof): Remove.
45243         * modules/argp (Depends-on): Add stdalign.
45245         crypto libraries: use stdalign
45246         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
45247         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
45248         Do not include <stdlib.h> twice, in md4.c.
45249         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
45250         because we are accessing a pointer's bit-pattern, not a size.
45251         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
45252         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
45253         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
45254         * modules/crypto/sha512: Likewise.
45256         sys_socket: use stdalign, not alignof
45257         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
45258         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
45260 2011-10-27  Bruno Haible  <bruno@clisp.org>
45262         raise test: Avoid a test failure on Linux/MIPS.
45263         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
45264         because 99 is a valid signal on Linux/MIPS.
45266 2011-10-27  Bruno Haible  <bruno@clisp.org>
45268         nonblocking tests: Fix test failure on Linux/MIPS.
45269         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
45270         Set to 270000.
45272 2011-10-27  Bruno Haible  <bruno@clisp.org>
45274         utimensat: Work around problem on Linux/hppa.
45275         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
45276         values.
45277         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
45279 2011-10-25  Jim Meyering  <meyering@redhat.com>
45281         maint.mk: fix a bug in sc_prohibit_stddef_without_use
45282         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
45283         after symbols like NULL, size_t, etc.
45284         Reported by Alfred M. Szmidt.
45286         maint.mk: exempt ENODATA from a syntax-check rule
45287         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
45288         from the sc_prohibit_always-defined_macros syntax-check rule.
45289         Add a comment.  See this for more details:
45290         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
45292 2011-10-23  Jim Meyering  <meyering@redhat.com>
45294         fts: close parent dir FD before returning from post-traversal fts_read
45295         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
45296         unlink A, even though an FD open on A remained.  This is suboptimal
45297         (holding a file descriptor open longer than needed), but otherwise not
45298         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
45299         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
45300         that represents a real problem: it causes the removal of A to fail
45301         with e.g., "rm: cannot remove `A': Device or resource busy"
45303         fts visits each directory twice and keeps a cache (fts_fd_ring) of
45304         directory file descriptors.  After completing the final, FTS_DP,
45305         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
45306         cache, but then proceeded to add a new FD to it via the subsequent
45307         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
45308         final file descriptor would be closed only via fts_close's call to
45309         fd_ring_clear.  Now, it is usually closed earlier, via the final
45310         FTS_DP-returning fts_read call.
45311         * lib/fts.c (restore_initial_cwd): New function, converted from
45312         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
45313         Update callers.
45314         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
45315         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
45317 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
45318             Bruno Haible  <bruno@clisp.org>
45319             Jim Meyering  <jim@meyering.net>
45321         readme-release: improve safety of release prep instructions.
45322         * README-release: Don't git pull all branches when only master
45323         is needed for the release process.
45324         Run make maintainer-clean before changing trees and merging.
45325         Don't try to run ./configure right after git pull in case files
45326         that influence the bootstrap process have changed, move the
45327         ./configure step to after running ./bootstrap.
45328         Don't bootstrap "one last time"... it's the first time!
45330 2011-10-22  Bruno Haible  <bruno@clisp.org>
45332         errno, strerror-override: Support for MSVC 10.
45333         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
45334         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
45335         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
45336         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
45337         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
45338         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
45339         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
45340         Assign values compatible with MSVC 10.
45341         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
45342         New macros.
45343         (GNULIB_defined_EWINSOCK): New macro.
45344         * lib/strerror-override.c (strerror_override): Update accordingly.
45345         * lib/strerror-override.h: Likewise.
45346         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
45347         longer equal to the corresponding errno value.
45348         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45350 2011-10-22  Bruno Haible  <bruno@clisp.org>
45352         perror: Recognize when test program crashes.
45353         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
45354         strerror, set gl_cv_func_perror_works to no.
45355         Reported by Daniel Richard G. <skunk@iskunk.org>.
45357         perror: Fix indentation.
45358         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
45360 2011-10-22  Bruno Haible  <bruno@clisp.org>
45362         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
45363         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
45364         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
45365         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
45366         functions, not as a macro.
45367         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
45368         macros.
45369         (isfinite, isinf, isnan, signbit): Check overloaded functions and
45370         absence of macro.
45371         Suggested by Eric Blake.
45372         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45374 2011-10-21  Bruno Haible  <bruno@clisp.org>
45376         relocatable-prog-wrapper: Don't leave object files behind.
45377         * build-aux/install-reloc: Re-synchronize list of .o files to be
45378         removed with list of compilation units.
45380 2011-10-20  Bruno Haible  <bruno@clisp.org>
45382         openpty, posix_openpt: Remove code duplication.
45383         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
45384         * lib/openpty.c: Include <stdlib.h>.
45385         (openpty): Use posix_openpt on all platforms except IRIX.
45386         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
45388 2011-10-20  Bruno Haible  <bruno@clisp.org>
45390         unlockpt: Detect invalid argument.
45391         * lib/unlockpt.c: Include <fcntl.h>.
45392         (unlockpt): Check whether fd is valid, using fcntl().
45393         * modules/unlockpt (Depends-on): Add fcntl-h.
45395 2011-10-20  Bruno Haible  <bruno@clisp.org>
45397         openpty: Avoid compilation error on AIX 6.1.
45398         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
45400 2011-10-20  Bruno Haible  <bruno@clisp.org>
45402         posix_openpt: Support for OpenBSD.
45403         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
45404         (posix_openpt) [OpenBSD]: New code.
45405         * lib/grantpt.c: Include <fcntl.h>.
45406         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
45407         * modules/grantpt (Depends-on): Add fcntl-h.
45409 2011-10-20  Bruno Haible  <bruno@clisp.org>
45411         posix_openpt test: Coding style.
45412         * tests/test-posix_openpt.c: Use GNU coding style.
45414 2011-10-20  Bruno Haible  <bruno@clisp.org>
45416         grantpt: Support --avoid=pt_chown.
45417         * modules/grantpt (Files): Add lib/pty-private.h.
45419 2011-10-20  Bruno Haible  <bruno@clisp.org>
45421         posix_openpt: Fix autoconf macro.
45422         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
45423         unneeded check for _getpty.
45425 2011-10-20  Bruno Haible  <bruno@clisp.org>
45427         openpty: Update comments.
45428         * lib/openpty.c: Add comments about Minix.
45430 2011-10-19  Eric Blake  <eblake@redhat.com>
45432         openpty: relax license
45433         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
45435         pt_chown: use configmake to simplify build
45436         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
45438         ptsname and others: relax license
45439         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
45440         * modules/unlockpt (License): Likewise.
45441         * modules/pt_chown (License): Likewise.
45442         * modules/ptsname (License): Likewise.
45443         * modules/ttyname_r (License): Likewise.
45445 2011-10-19  Jim Meyering  <meyering@redhat.com>
45447         posix_openpt: remove spurious #endif
45448         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
45450 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
45452         maint.mk: Respect $(build_aux) in web-manual rule.
45453         * top/maint.mk (web-manual): Find gen-announce script in user's
45454         $(build_aux) directory instead of hard-coding 'build-aux'.
45456 2011-10-19  Bruno Haible  <bruno@clisp.org>
45458         posix_openpt: Fix compilation error.
45459         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
45460         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
45461         Mention the openpty module as an alternative.
45463 2011-10-19  Bruno Haible  <bruno@clisp.org>
45465         Support for old NeXTstep 3.3 frexp().
45466         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
45467         execution time of the test to 5 seconds.
45468         Reported by Daniel Richard G. <skunk@iskunk.org>.
45470 2011-10-19  Bruno Haible  <bruno@clisp.org>
45472         Support for old NeXTstep 3.3 sed.
45473         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
45474         part, use /.../, not \|...|. Escape periods in the header file name.
45475         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
45476         Reported by Daniel Richard G. <skunk@iskunk.org>.
45478 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45480         Support for old NeXTstep 3.3 gcc.
45481         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
45482         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
45483         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
45484         * lib/spawn.in.h (_Restrict_arr_): Likewise.
45485         * lib/regex.h (_Restrict_arr_): Likewise.
45486         * lib/regex_internal.h (re_token_t): Likewise.
45487         * lib/regexec.c (check_node_accept_bytes): Likewise.
45488         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
45490 2011-10-18  Eric Blake  <eblake@redhat.com>
45492         posix_openpt: new module
45493         * modules/posix_openpt: New module.
45494         * m4/posix_openpt.m4: New file.
45495         * lib/posix_openpt.c: Likewise.
45496         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
45497         (gl_STDLIB_H_DEFAULTS): Set defaults.
45498         * modules/stdlib (Makefile.am): Substitute macros.
45499         * lib/stdlib.in.h (posix_openpt): Declare.
45500         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
45501         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
45502         * modules/posix_openpt-tests: New test module.
45503         * tests/test-posix_openpt.c: New test.
45505 2011-10-15  Bruno Haible  <bruno@clisp.org>
45507         xstrtoll: Fix compilation failure.
45508         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
45509         from lib/strtol.c.
45510         * doc/posix-headers/limits.texi: Mention missing numerical limits on
45511         some platforms.
45512         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45514 2011-10-15  Bruno Haible  <bruno@clisp.org>
45516         vasnprintf: Optimize bit search operation.
45517         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
45518         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
45519         gl_DOUBLE_EXPONENT_LOCATION.
45520         * modules/vasnprintf (Files): Add m4/exponentd.m4.
45521         * modules/unistdio/u8-vasnprintf (Files): Likewise.
45522         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
45523         * modules/unistdio/u16-vasnprintf (Files): Likewise.
45524         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
45525         * modules/unistdio/u32-vasnprintf (Files): Likewise.
45526         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
45527         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
45528         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
45530 2011-10-15  Bruno Haible  <bruno@clisp.org>
45532         vasnprintf: Fix comments.
45533         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
45535 2011-10-14  Bruno Haible  <bruno@clisp.org>
45537         Tests for module 'integer_length_ll'.
45538         * modules/integer_length_ll-tests: New file.
45539         * tests/test-integer_length_ll.c: New file.
45541         New module 'integer_length_ll'.
45542         * lib/integer_length_ll.c: New file.
45543         * modules/integer_length_ll: New file.
45545 2011-10-14  Bruno Haible  <bruno@clisp.org>
45547         Tests for module 'integer_length_l'.
45548         * modules/integer_length_l-tests: New file.
45549         * tests/test-integer_length_l.c: New file.
45551         New module 'integer_length_l'.
45552         * lib/integer_length_l.c: New file.
45553         * modules/integer_length_l: New file.
45555 2011-10-14  Bruno Haible  <bruno@clisp.org>
45557         Tests for module 'integer_length'.
45558         * modules/integer_length-tests: New file.
45559         * tests/test-integer_length.c: New file.
45561         New module 'integer_length'.
45562         * lib/integer_length.h: New file.
45563         * lib/integer_length.c: New file.
45564         * modules/integer_length: New file.
45566 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45568         popen: Fix dependency conditions.
45569         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
45571 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45573         perror: Fix autoconf test.
45574         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
45575         <stdlib.h> and <string.h>.
45577 2011-10-14  Bruno Haible  <bruno@clisp.org>
45579         ffsl: Optimize on 64-bit platforms.
45580         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
45581         unrolling.
45583 2011-10-13  Bruno Haible  <bruno@clisp.org>
45585         ffsl: Optimize on 32-bit platforms.
45586         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
45587         use ffs() without a loop.
45589         ffsl, ffsll: Optimize for GCC.
45590         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
45591         * lib/ffsl.c (GCC_BUILTIN): New macro.
45592         * lib/ffsll.c (GCC_BUILTIN): Likewise.
45594 2011-10-13  Bruno Haible  <bruno@clisp.org>
45596         ffs, bcopy, memset: Support symbol renaming via config.h.
45597         * lib/ffs.c: Include <config.h>.
45598         * lib/bcopy.c: Likewise.
45599         * lib/memset.c: Likewise.
45601 2011-10-10  Bruno Haible  <bruno@clisp.org>
45603         atanl: Simplify for platforms where 'long double' == 'double'.
45604         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45605         alternative implementation.
45606         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45607         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45608         * modules/atanl (Depends-on): Add atan. Update conditions.
45610 2011-10-10  Bruno Haible  <bruno@clisp.org>
45612         acosl: Simplify for platforms where 'long double' == 'double'.
45613         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45614         alternative implementation.
45615         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45616         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45617         * modules/acosl (Depends-on): Add acos. Update conditions.
45619 2011-10-10  Bruno Haible  <bruno@clisp.org>
45621         asinl: Simplify for platforms where 'long double' == 'double'.
45622         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45623         alternative implementation.
45624         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45625         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45626         * modules/asinl (Depends-on): Add asin. Update conditions.
45628 2011-10-10  Bruno Haible  <bruno@clisp.org>
45630         tanl: Simplify for platforms where 'long double' == 'double'.
45631         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45632         implementation.
45633         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45634         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45635         * modules/tanl (Depends-on): Add tan. Update conditions.
45636         (configure.ac): Don't compile trigl.c if
45637         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45639 2011-10-10  Bruno Haible  <bruno@clisp.org>
45641         cosl: Simplify for platforms where 'long double' == 'double'.
45642         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45643         implementation.
45644         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45645         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45646         * modules/cosl (Depends-on): Add cos. Update conditions.
45647         (configure.ac): Don't compile sincosl.c and trigl.c if
45648         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45650 2011-10-10  Bruno Haible  <bruno@clisp.org>
45652         sinl: Simplify for platforms where 'long double' == 'double'.
45653         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45654         implementation.
45655         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45656         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45657         * modules/sinl (Depends-on): Add sin. Update conditions.
45658         (configure.ac): Don't compile sincosl.c and trigl.c if
45659         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45661 2011-10-10  Bruno Haible  <bruno@clisp.org>
45663         logl: Simplify for platforms where 'long double' == 'double'.
45664         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45665         implementation.
45666         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45667         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45668         * modules/logl (Depends-on): Add log. Update conditions.
45670 2011-10-10  Bruno Haible  <bruno@clisp.org>
45672         expl: Simplify for platforms where 'long double' == 'double'.
45673         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45674         implementation.
45675         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45676         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45677         * modules/expl (Depends-on): Add exp. Update conditions.
45679 2011-10-10  Bruno Haible  <bruno@clisp.org>
45681         sqrtl: Simplify for platforms where 'long double' == 'double'.
45682         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45683         alternative implementation.
45684         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45685         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45686         * modules/sqrtl (Depends-on): Update conditions.
45688 2011-10-10  Bruno Haible  <bruno@clisp.org>
45690         ldexpl: Simplify for platforms where 'long double' == 'double'.
45691         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45692         alternative implementation.
45693         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45694         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45695         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
45697 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
45699         ffsll: set correct witness
45700         * modules/ffsll (configure.ac): Fix typo.
45702 2011-10-10  Bruno Haible  <bruno@clisp.org>
45704         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
45705         * lib/printf-frexpl.c: Include <config.h>.
45706         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45707         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
45708         second time.
45709         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
45710         gl_LONG_DOUBLE_VS_DOUBLE.
45711         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
45712         conditions.
45714 2011-10-10  Bruno Haible  <bruno@clisp.org>
45716         frexpl: Simplify for platforms where 'long double' == 'double'.
45717         * lib/frexpl.c: Include <config.h>.
45718         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45719         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45720         time.
45721         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45722         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45723         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
45724         * modules/frexpl (Depends-on): Add frexp. Update conditions.
45725         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
45726         conditions.
45728 2011-10-10  Jim Meyering  <meyering@redhat.com>
45730         test-renameat: don't leave behind a temporary file
45731         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
45732           ERROR: files left in build directory after distclean:
45733           ./gltests/test-renameat.too
45734           make[1]: *** [distcleancheck] Error 1
45735         Reported by Tom G. Christensen.
45737 2011-10-09  Bruno Haible  <bruno@clisp.org>
45739         rint: Determine RINT_LIBM correctly on AIX 7.
45740         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
45741         directly, not only through a function pointer. Also accept an optional
45742         4th argument with extra code.
45743         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
45744         rintf() call by gcc when optimizing.
45746         mathfunc.m4: Refactor.
45747         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
45748         m4 variable.
45750 2011-10-09  Bruno Haible  <bruno@clisp.org>
45752         rintl: Simplify for platforms where 'long double' == 'double'.
45753         * lib/rintl.c: Include <config.h>.
45754         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45755         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45756         time.
45757         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45758         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45759         * modules/rintl (Depends-on): Add rint. Update conditions.
45761 2011-10-09  Bruno Haible  <bruno@clisp.org>
45763         roundl: Simplify for platforms where 'long double' == 'double'.
45764         * lib/roundl.c: Include <config.h>.
45765         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45766         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45767         time.
45768         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45769         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45770         * modules/roundl (Depends-on): Add round. Update conditions.
45772 2011-10-09  Bruno Haible  <bruno@clisp.org>
45774         truncl: Simplify for platforms where 'long double' == 'double'.
45775         * lib/truncl.c: Include <config.h>.
45776         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45777         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45778         time.
45779         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45780         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45781         * modules/truncl (Depends-on): Add trunc. Update conditions.
45783 2011-10-09  Bruno Haible  <bruno@clisp.org>
45785         ceill: Simplify for platforms where 'long double' == 'double'.
45786         * lib/ceill.c: Include <config.h>.
45787         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45788         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45789         time.
45790         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45791         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45792         * modules/ceill (Depends-on): Add ceil. Update conditions.
45794 2011-10-09  Bruno Haible  <bruno@clisp.org>
45796         floorl: Simplify for platforms where 'long double' == 'double'.
45797         * lib/floorl.c: Include <config.h>.
45798         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45799         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45800         time.
45801         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45802         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45803         * modules/floorl (Depends-on): Add floor. Update conditions.
45805 2011-10-09  Bruno Haible  <bruno@clisp.org>
45807         rint: Fix ordering constraints.
45808         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
45809         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
45810         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
45812 2011-10-09  Bruno Haible  <bruno@clisp.org>
45814         copysignl: Simplify for platforms where 'long double' == 'double'.
45815         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45816         alternative.
45817         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45818         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45819         * modules/copysignl (Depends-on): Add copysign. Update conditions.
45821 2011-10-09  Bruno Haible  <bruno@clisp.org>
45823         Tests for module 'rintl'.
45824         * modules/rintl-tests: New file.
45825         * tests/test-rintl.c: New file.
45827         New module 'rintl'.
45828         * lib/math.in.h (rintl): New declaration.
45829         * lib/rintl.c: New file.
45830         * m4/rintl.m4: New file.
45831         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
45832         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
45833         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
45834         * modules/rintl: New file.
45835         * tests/test-math-c++.cc: Check the declaration of rintl.
45836         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45837         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
45838         * doc/posix-functions/rintl.texi: Mention the new module.
45840 2011-10-09  Bruno Haible  <bruno@clisp.org>
45842         Tests for module 'rintf'.
45843         * modules/rintf-tests: New file.
45844         * tests/test-rintf.c: New file.
45846         New module 'rintf'.
45847         * lib/math.in.h (rintf): New declaration.
45848         * lib/rintf.c: New file.
45849         * m4/rintf.m4: New file.
45850         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
45851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
45852         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
45853         * modules/rintf: New file.
45854         * tests/test-math-c++.cc: Check the declaration of rintf.
45855         * doc/posix-functions/rintf.texi: Mention the new module.
45857 2011-10-09  Bruno Haible  <bruno@clisp.org>
45859         rint: Support for MSVC.
45860         * lib/math.in.h (rint): New declaration.
45861         * lib/rint.c: New file.
45862         * m4/rint.m4: New file.
45863         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
45864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
45865         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
45866         * modules/rint (Description): Fix.
45867         (Files): Add lib/rint.c, m4/rint.m4.
45868         (Depends-on): Add math.
45869         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
45870         gl_MATH_MODULE_INDICATOR.
45871         * tests/test-math-c++.cc: Check the declaration of rint.
45872         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45873         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
45874         * doc/posix-functions/rint.texi: Mention the replacement provided by
45875         the module.
45877         rint tests: More tests.
45878         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
45879         minus-zero.h, infinity.h, nan.h.
45880         (main): Skip the test if the current rounding mode is not standard. Add
45881         tests for negative numbers, minus zero, infinity, NaN.
45882         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
45883         tests/nan.h.
45884         (Depends-on): Add isnand-nolibm.
45886 2011-10-09  Bruno Haible  <bruno@clisp.org>
45888         Tests for module 'copysignl'.
45889         * modules/copysignl-tests: New file.
45890         * tests/test-copysignl.c: New file.
45892         New module 'copysignl'.
45893         * lib/math.in.h (copysignl): New declaration.
45894         * lib/copysignl.c: New file.
45895         * m4/copysignl.m4: New file.
45896         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
45897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
45898         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
45899         HAVE_COPYSIGNL.
45900         * modules/copysignl: New file.
45901         * tests/test-math-c++.cc: Check the declaration of copysignl.
45902         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45903         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
45904         * doc/posix-functions/copysignl.texi: Mention the new module.
45906 2011-10-09  Bruno Haible  <bruno@clisp.org>
45908         Tests for module 'copysignf'.
45909         * modules/copysignf-tests: New file.
45910         * tests/test-copysignf.c: New file.
45912         New module 'copysignf'.
45913         * lib/math.in.h (copysignf): New declaration.
45914         * lib/copysignf.c: New file.
45915         * m4/copysignf.m4: New file.
45916         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
45917         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
45918         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
45919         HAVE_COPYSIGNF.
45920         * modules/copysignf: New file.
45921         * tests/test-math-c++.cc: Check the declaration of copysignf.
45922         * doc/posix-functions/copysignf.texi: Mention the new module.
45924 2011-10-09  Bruno Haible  <bruno@clisp.org>
45926         Ensure that HAVE_* variables are set to 1 before they are set to 0.
45927         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
45928         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
45929         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45930         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
45931         gl_SIGNAL_H_DEFAULTS.
45933 2011-10-09  Bruno Haible  <bruno@clisp.org>
45935         poll: Make macro safer.
45936         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
45937         ac_cv_header_poll_h is not set.
45939 2011-10-09  Bruno Haible  <bruno@clisp.org>
45941         copysign: Provide replacement.
45942         * lib/math.in.h (copysign): New declaration.
45943         * lib/copysign.c: New file.
45944         * m4/copysign.m4: New file.
45945         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
45946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
45947         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
45948         HAVE_COPYSIGN.
45949         * modules/copysign (Description): Clarify.
45950         (Files): Add lib/copysign.c, m4/copysign.m4.
45951         (Depends-on): Add math, signbit.
45952         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
45953         gl_MATH_MODULE_INDICATOR.
45954         * tests/test-math-c++.cc: Check the declaration of copysign.
45955         * doc/posix-functions/copysign.texi: Mention the effects of the module
45956         on Minix and MSVC.
45958 2011-10-09  Bruno Haible  <bruno@clisp.org>
45960         isinf: Ensure macro on AIX 5.1.
45961         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
45962         macro.
45963         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
45965 2011-10-09  Bruno Haible  <bruno@clisp.org>
45967         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
45968         * modules/snprintf-posix-tests (configure.ac): Require
45969         gl_LONG_DOUBLE_VS_DOUBLE.
45970         * modules/sprintf-posix-tests (configure.ac): Likewise.
45971         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
45972         * modules/vasprintf-posix-tests (configure.ac): Likewise.
45973         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
45974         * modules/vsprintf-posix-tests (configure.ac): Likewise.
45975         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
45976         tests on platforms where 'long double' is the same as 'double'.
45977         * tests/test-sprintf-posix.h (test_function): Likewise.
45978         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45979         * tests/test-vasprintf-posix.c (test_function): Likewise.
45981         *printf: Fix for platforms where 'long double' == 'double'.
45982         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
45983         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
45984         * modules/dprintf-posix (Files): Add m4/math_h.m4.
45985         * modules/fprintf-posix (Files): Likewise.
45986         * modules/obstack-printf-posix (Files): Likewise.
45987         * modules/snprintf-posix (Files): Likewise.
45988         * modules/sprintf-posix (Files): Likewise.
45989         * modules/vasnprintf (Files): Likewise.
45990         * modules/vasnprintf-posix (Files): Likewise.
45991         * modules/vasprintf-posix (Files): Likewise.
45992         * modules/vdprintf-posix (Files): Likewise.
45993         * modules/vfprintf-posix (Files): Likewise.
45994         * modules/vsnprintf-posix (Files): Likewise.
45995         * modules/vsprintf-posix (Files): Likewise.
45996         * modules/unistdio/u8-vasnprintf (Files): Likewise.
45997         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
45998         * modules/unistdio/u16-vasnprintf (Files): Likewise.
45999         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46000         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46001         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46002         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
46004         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
46005         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
46006         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46007         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
46008         'long double'.
46009         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
46011         isinf: Fix for platforms where 'long double' == 'double'.
46012         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46013         Don't blindly assume 80-bit 'long double'.
46015         isfinite: Fix for platforms where 'long double' == 'double'.
46016         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46017         Don't blindly assume 80-bit 'long double'.
46019         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
46020         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
46021         * modules/isfinite-tests (configure.ac): Require
46022         gl_LONG_DOUBLE_VS_DOUBLE.
46023         * modules/isinf-tests (configure.ac): Likewise.
46024         * modules/isnan-tests (configure.ac): Likewise.
46025         * modules/isnanl-tests (configure.ac): Likewise.
46026         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
46027         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
46028         tests on platforms where 'long double' is the same as 'double'.
46029         * tests/test-isinf.c (test_isinfl): Likewise.
46030         * tests/test-isnan.c (test_long_double): Likewise.
46031         * tests/test-isnanl.h (main): Likewise.
46033 2011-10-08  Bruno Haible  <bruno@clisp.org>
46035         Tests for module 'tanhf'.
46036         * modules/tanhf-tests: New file.
46037         * tests/test-tanhf.c: New file.
46039         New module 'tanhf'.
46040         * lib/math.in.h (tanhf): New declaration.
46041         * lib/tanhf.c: New file.
46042         * m4/tanhf.m4: New file.
46043         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
46044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
46045         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
46046         * modules/tanhf: New file.
46047         * tests/test-math-c++.cc: Check the declaration of tanhf.
46048         * doc/posix-functions/tanhf.texi: Mention the new module.
46050         tanh: Use a .m4 file.
46051         * m4/tanh.m4: New file.
46052         * modules/tanh (Files): Add it.
46053         (configure.ac): Just invoke gl_FUNC_TANH.
46055 2011-10-08  Bruno Haible  <bruno@clisp.org>
46057         Tests for module 'coshf'.
46058         * modules/coshf-tests: New file.
46059         * tests/test-coshf.c: New file.
46061         New module 'coshf'.
46062         * lib/math.in.h (coshf): New declaration.
46063         * lib/coshf.c: New file.
46064         * m4/coshf.m4: New file.
46065         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
46066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
46067         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
46068         * modules/coshf: New file.
46069         * tests/test-math-c++.cc: Check the declaration of coshf.
46070         * doc/posix-functions/coshf.texi: Mention the new module.
46072         cosh: Use a .m4 file.
46073         * m4/cosh.m4: New file.
46074         * modules/cosh (Files): Add it.
46075         (configure.ac): Just invoke gl_FUNC_COSH.
46077 2011-10-08  Bruno Haible  <bruno@clisp.org>
46079         Tests for module 'sinhf'.
46080         * modules/sinhf-tests: New file.
46081         * tests/test-sinhf.c: New file.
46083         New module 'sinhf'.
46084         * lib/math.in.h (sinhf): New declaration.
46085         * lib/sinhf.c: New file.
46086         * m4/sinhf.m4: New file.
46087         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
46088         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
46089         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
46090         * modules/sinhf: New file.
46091         * tests/test-math-c++.cc: Check the declaration of sinhf.
46092         * doc/posix-functions/sinhf.texi: Mention the new module.
46094         sinh: Use a .m4 file.
46095         * m4/sinh.m4: New file.
46096         * modules/sinh (Files): Add it.
46097         (configure.ac): Just invoke gl_FUNC_SINH.
46099 2011-10-08  Bruno Haible  <bruno@clisp.org>
46101         Tests for module 'atan2f'.
46102         * modules/atan2f-tests: New file.
46103         * tests/test-atan2f.c: New file.
46105         New module 'atan2f'.
46106         * lib/math.in.h (atan2f): New declaration.
46107         * lib/atan2f.c: New file.
46108         * m4/atan2f.m4: New file.
46109         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
46110         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
46111         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
46112         * modules/atan2f: New file.
46113         * tests/test-math-c++.cc: Check the declaration of atan2f.
46114         * doc/posix-functions/atan2f.texi: Mention the new module.
46116         atan2: Use a .m4 file.
46117         * m4/atan2.m4: New file.
46118         * modules/atan2 (Files): Add it.
46119         (configure.ac): Just invoke gl_FUNC_ATAN2.
46121 2011-10-08  Bruno Haible  <bruno@clisp.org>
46123         Tests for module 'atanf'.
46124         * modules/atanf-tests: New file.
46125         * tests/test-atanf.c: New file.
46127         New module 'atanf'.
46128         * lib/math.in.h (atanf): New declaration.
46129         * lib/atanf.c: New file.
46130         * m4/atanf.m4: New file.
46131         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
46132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
46133         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
46134         * modules/atanf: New file.
46135         * tests/test-math-c++.cc: Check the declaration of atanf.
46136         * doc/posix-functions/atanf.texi: Mention the new module.
46138         atan: Use a .m4 file.
46139         * m4/atan.m4: New file.
46140         * modules/atan (Files): Add it.
46141         (configure.ac): Just invoke gl_FUNC_ATAN.
46143 2011-10-08  Bruno Haible  <bruno@clisp.org>
46145         Tests for module 'acosf'.
46146         * modules/acosf-tests: New file.
46147         * tests/test-acosf.c: New file.
46149         New module 'acosf'.
46150         * lib/math.in.h (acosf): New declaration.
46151         * lib/acosf.c: New file.
46152         * m4/acosf.m4: New file.
46153         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
46154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
46155         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
46156         * modules/acosf: New file.
46157         * tests/test-math-c++.cc: Check the declaration of acosf.
46158         * doc/posix-functions/acosf.texi: Mention the new module.
46160         acos: Use a .m4 file.
46161         * m4/acos.m4: New file.
46162         * modules/acos (Files): Add it.
46163         (configure.ac): Just invoke gl_FUNC_ACOS.
46165 2011-10-08  Bruno Haible  <bruno@clisp.org>
46167         Tests for module 'asinf'.
46168         * modules/asinf-tests: New file.
46169         * tests/test-asinf.c: New file.
46171         New module 'asinf'.
46172         * lib/math.in.h (asinf): New declaration.
46173         * lib/asinf.c: New file.
46174         * m4/asinf.m4: New file.
46175         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
46176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
46177         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
46178         * modules/asinf: New file.
46179         * tests/test-math-c++.cc: Check the declaration of asinf.
46180         * doc/posix-functions/asinf.texi: Mention the new module.
46182         asin: Use a .m4 file.
46183         * m4/asin.m4: New file.
46184         * modules/asin (Files): Add it.
46185         (configure.ac): Just invoke gl_FUNC_ASIN.
46187 2011-10-08  Bruno Haible  <bruno@clisp.org>
46189         Tests for module 'tanf'.
46190         * modules/tanf-tests: New file.
46191         * tests/test-tanf.c: New file.
46193         New module 'tanf'.
46194         * lib/math.in.h (tanf): New declaration.
46195         * lib/tanf.c: New file.
46196         * m4/tanf.m4: New file.
46197         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
46198         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
46199         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
46200         * modules/tanf: New file.
46201         * tests/test-math-c++.cc: Check the declaration of tanf.
46202         * doc/posix-functions/tanf.texi: Mention the new module.
46204         tan: Use a .m4 file.
46205         * m4/tan.m4: New file.
46206         * modules/tan (Files): Add it.
46207         (configure.ac): Just invoke gl_FUNC_TAN.
46209 2011-10-08  Bruno Haible  <bruno@clisp.org>
46211         Tests for module 'cosf'.
46212         * modules/cosf-tests: New file.
46213         * tests/test-cosf.c: New file.
46215         New module 'cosf'.
46216         * lib/math.in.h (cosf): New declaration.
46217         * lib/cosf.c: New file.
46218         * m4/cosf.m4: New file.
46219         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
46220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
46221         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
46222         * modules/cosf: New file.
46223         * tests/test-math-c++.cc: Check the declaration of cosf.
46224         * doc/posix-functions/cosf.texi: Mention the new module.
46226         cos: Use a .m4 file.
46227         * m4/cos.m4: New file.
46228         * modules/cos (Files): Add it.
46229         (configure.ac): Just invoke gl_FUNC_COS.
46231 2011-10-08  Bruno Haible  <bruno@clisp.org>
46233         Tests for module 'sinf'.
46234         * modules/sinf-tests: New file.
46235         * tests/test-sinf.c: New file.
46237         New module 'sinf'.
46238         * lib/math.in.h (sinf): New declaration.
46239         * lib/sinf.c: New file.
46240         * m4/sinf.m4: New file.
46241         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
46242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
46243         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
46244         * modules/sinf: New file.
46245         * tests/test-math-c++.cc: Check the declaration of sinf.
46246         * doc/posix-functions/sinf.texi: Mention the new module.
46248         sin: Use a .m4 file.
46249         * m4/sin.m4: New file.
46250         * modules/sin (Files): Add it.
46251         (configure.ac): Just invoke gl_FUNC_SIN.
46253 2011-10-08  Bruno Haible  <bruno@clisp.org>
46255         Tests for module 'powf'.
46256         * modules/powf-tests: New file.
46257         * tests/test-powf.c: New file.
46259         New module 'powf'.
46260         * lib/math.in.h (powf): New declaration.
46261         * lib/powf.c: New file.
46262         * m4/powf.m4: New file.
46263         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
46264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
46265         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
46266         * modules/powf: New file.
46267         * tests/test-math-c++.cc: Check the declaration of powf.
46268         * doc/posix-functions/powf.texi: Mention the new module.
46270         pow: Use a .m4 file.
46271         * m4/pow.m4: New file.
46272         * modules/pow (Files): Add it.
46273         (configure.ac): Just invoke gl_FUNC_POW.
46275 2011-10-08  Bruno Haible  <bruno@clisp.org>
46277         Tests for module 'log10f'.
46278         * modules/log10f-tests: New file.
46279         * tests/test-log10f.c: New file.
46281         New module 'log10f'.
46282         * lib/math.in.h (log10f): New declaration.
46283         * lib/log10f.c: New file.
46284         * m4/log10f.m4: New file.
46285         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
46286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
46287         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
46288         * modules/log10f: New file.
46289         * tests/test-math-c++.cc: Check the declaration of log10f.
46290         * doc/posix-functions/log10f.texi: Mention the new module.
46292         log10: Use a .m4 file.
46293         * m4/log10.m4: New file.
46294         * modules/log10 (Files): Add it.
46295         (configure.ac): Just invoke gl_FUNC_LOG10.
46297 2011-10-08  Bruno Haible  <bruno@clisp.org>
46299         Tests for module 'logf'.
46300         * modules/logf-tests: New file.
46301         * tests/test-logf.c: New file.
46303         New module 'logf'.
46304         * lib/math.in.h (logf): New declaration.
46305         * lib/logf.c: New file.
46306         * m4/logf.m4: New file.
46307         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
46308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
46309         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
46310         * modules/logf: New file.
46311         * tests/test-math-c++.cc: Check the declaration of logf.
46312         * doc/posix-functions/logf.texi: Mention the new module.
46314         log: Use a .m4 file.
46315         * m4/log.m4: New file.
46316         * modules/log (Files): Add it.
46317         (configure.ac): Just invoke gl_FUNC_LOG.
46319 2011-10-08  Bruno Haible  <bruno@clisp.org>
46321         Tests for module 'expf'.
46322         * modules/expf-tests: New file.
46323         * tests/test-expf.c: New file.
46325         New module 'expf'.
46326         * lib/math.in.h (expf): New declaration.
46327         * lib/expf.c: New file.
46328         * m4/expf.m4: New file.
46329         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
46330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
46331         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
46332         * modules/expf: New file.
46333         * tests/test-math-c++.cc: Check the declaration of expf.
46334         * doc/posix-functions/expf.texi: Mention the new module.
46336         exp: Use a .m4 file.
46337         * m4/exp.m4: New file.
46338         * modules/exp (Files): Add it.
46339         (configure.ac): Just invoke gl_FUNC_EXP.
46341 2011-10-08  Bruno Haible  <bruno@clisp.org>
46343         Tests for module 'sqrtf'.
46344         * modules/sqrtf-tests: New file.
46345         * tests/test-sqrtf.c: New file.
46347         New module 'sqrtf'.
46348         * lib/math.in.h (sqrtf): New declaration.
46349         * lib/sqrtf.c: New file.
46350         * m4/sqrtf.m4: New file.
46351         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
46352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
46353         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
46354         * modules/sqrtf: New file.
46355         * tests/test-math-c++.cc: Check the declaration of sqrtf.
46356         * doc/posix-functions/sqrtf.texi: Mention the new module.
46358 2011-10-08  Bruno Haible  <bruno@clisp.org>
46360         Tests: Avoid link failures w.r.t. libintl.
46361         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
46362         $(LIBINTL).
46363         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
46364         $(LIBINTL).
46365         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
46366         against $(LIBINTL).
46367         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
46368         $(LIBINTL).
46369         * modules/openat-tests (Makefile.am): Link test-fchmodat against
46370         $(LIBINTL).
46371         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
46373 2011-10-08  Bruno Haible  <bruno@clisp.org>
46375         pow tests: Defeat compiler optimizations.
46376         * tests/test-pow.c (main): Assign arguments to x and y before use.
46378 2011-10-08  Bruno Haible  <bruno@clisp.org>
46380         gnulib-tool: Improve last commit.
46381         * gnulib-tool (func_modules_transitive_closure): Simplify code.
46382         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
46383         ignore dependencies that are not among the modules list.
46385 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
46387         gnulib-tool: don't follow dependencies to avoided modules
46388         This fixes a bug that is related to the previous one.
46389         * gnulib-tool (func_modules_transitive_closure)
46390         (func_emit_autoconf_snippets):
46391         Check whether a dependency is acceptable before using it.
46392         (--extract-dependencies): Report an error if --avoid is also used,
46393         since this combination of options is not yet supported.
46395         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
46396         Problem reported by Peter Dyballa in
46397         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
46398         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
46399         when echoing "$condition".
46401 2011-10-07  Bruno Haible  <bruno@clisp.org>
46403         Fix documentation about math functions on MacOS X.
46404         * doc/posix-functions/exp2.texi: Don't say the function is missing on
46405         MacOS X 10.5.
46406         * doc/posix-functions/fdim.texi: Likewise.
46407         * doc/posix-functions/feclearexcept.texi: Likewise.
46408         * doc/posix-functions/fegetenv.texi: Likewise.
46409         * doc/posix-functions/fegetround.texi: Likewise.
46410         * doc/posix-functions/feholdexcept.texi: Likewise.
46411         * doc/posix-functions/feraiseexcept.texi: Likewise.
46412         * doc/posix-functions/fesetenv.texi: Likewise.
46413         * doc/posix-functions/fesetround.texi: Likewise.
46414         * doc/posix-functions/fetestexcept.texi: Likewise.
46415         * doc/posix-functions/feupdateenv.texi: Likewise.
46416         * doc/posix-functions/fmax.texi: Likewise.
46417         * doc/posix-functions/fmin.texi: Likewise.
46418         * doc/posix-functions/log2.texi: Likewise.
46419         * doc/posix-functions/modff.texi: Likewise.
46420         * doc/posix-functions/nan.texi: Likewise.
46421         * doc/posix-functions/nanf.texi: Likewise.
46422         * doc/posix-functions/nextafterf.texi: Likewise.
46423         * doc/posix-functions/remquo.texi: Likewise.
46425 2011-10-07  Bruno Haible  <bruno@clisp.org>
46427         modff: Drop assumption about library that defines modff.
46428         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
46429         AC_CHECK_FUNCS.
46430         * modules/modff (Files): Add m4/mathfunc.m4.
46432 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
46434         raise tests: Avoid a GCC warning.
46435         * tests/test-raise.c (handler): Use _Noreturn.
46437 2011-10-07  Bruno Haible  <bruno@clisp.org>
46439         Tests for module 'ldexpf'.
46440         * modules/ldexpf-tests: New file.
46441         * tests/test-ldexpf.c: New file.
46443         New module 'ldexpf'.
46444         * lib/math.in.h (ldexpf): New declaration.
46445         * lib/ldexpf.c: New file.
46446         * m4/ldexpf.m4: New file.
46447         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
46448         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
46449         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
46450         * modules/ldexpf: New file.
46451         * tests/test-math-c++.cc: Check the declaration of ldexpf.
46452         * doc/posix-functions/ldexpf.texi: Mention the new module.
46454 2011-10-06  Bruno Haible  <bruno@clisp.org>
46456         frexpf: Work around problems on IRIX and mingw.
46457         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
46458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
46459         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
46460         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
46461         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
46462         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
46463         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
46465 2011-10-06  Bruno Haible  <bruno@clisp.org>
46467         fabsf: Drop assumption about library that defines fabsf.
46468         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
46469         AC_CHECK_FUNCS.
46470         * modules/fabsf (Files): Add m4/mathfunc.m4.
46472 2011-10-06  Bruno Haible  <bruno@clisp.org>
46474         frexpf: Drop assumption about library that defines frexpf.
46475         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
46476         'int *', 'float *', 'long double *', 'float', 'long double'.
46477         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
46478         AC_CHECK_FUNCS.
46479         * modules/frexpf (Files): Add m4/mathfunc.m4.
46481         Tests for module 'frexpf'.
46482         * modules/frexpf-tests: New file.
46483         * tests/test-frexpf.c: New file.
46485         New module 'frexpf'.
46486         * lib/math.in.h (frexpf): New declaration.
46487         * lib/frexpf.c: New file.
46488         * m4/frexpf.m4: New file.
46489         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
46490         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
46491         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
46492         * modules/frexpf: New file.
46493         * tests/test-math-c++.cc: Check the declaration of frexpf.
46494         * doc/posix-functions/frexpf.texi: Mention the new module.
46496 2011-10-06  Bruno Haible  <bruno@clisp.org>
46498         math: Sort function declarations of math.in.h.
46499         * lib/math.in.h (frexp, logb): Move declarations.
46501 2011-10-05  Bruno Haible  <bruno@clisp.org>
46503         Tests for module 'modff'.
46504         * modules/modff-tests: New file.
46505         * tests/test-modff.c: New file.
46507         New module 'modff'.
46508         * lib/math.in.h (modff): New declaration.
46509         * lib/modff.c: New file.
46510         * m4/modff.m4: New file.
46511         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
46512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
46513         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
46514         * modules/modff: New file.
46515         * tests/test-math-c++.cc: Check the declaration of modff.
46516         * doc/posix-functions/modff.texi: Mention the new module.
46518         modf tests: Make test sharper.
46519         * tests/test-modf.c (main): Strengthen upper bound.
46521         modf: Use a .m4 file.
46522         * m4/modf.m4: New file.
46523         * modules/modf (Files): Add it.
46524         (configure.ac): Just invoke gl_FUNC_MODF.
46526 2011-10-05  Bruno Haible  <bruno@clisp.org>
46528         Tests for module 'fmodf'.
46529         * modules/fmodf-tests: New file.
46530         * tests/test-fmodf.c: New file.
46532         New module 'fmodf'.
46533         * lib/math.in.h (fmodf): New declaration.
46534         * lib/fmodf.c: New file.
46535         * m4/fmodf.m4: New file.
46536         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
46537         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
46538         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
46539         * modules/fmodf: New file.
46540         * tests/test-math-c++.cc: Check the declaration of fmodf.
46541         * doc/posix-functions/fmodf.texi: Mention the new module.
46543         fmod: Use a .m4 file.
46544         * m4/fmod.m4: New file.
46545         * modules/fmod (Files): Add it.
46546         (configure.ac): Just invoke gl_FUNC_FMOD.
46548 2011-10-05  Bruno Haible  <bruno@clisp.org>
46550         Tests for module 'fabsf'.
46551         * modules/fabsf-tests: New file.
46552         * tests/test-fabsf.c: New file.
46554         New module 'fabsf'.
46555         * lib/math.in.h (fabsf): New declaration.
46556         * lib/fabsf.c: New file.
46557         * m4/fabsf.m4: New file.
46558         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
46559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
46560         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
46561         * modules/fabsf: New file.
46562         * tests/test-math-c++.cc: Check the declaration of fabsf.
46563         * doc/posix-functions/fabsf.texi: Mention the new module.
46565         fabs: Use a .m4 file.
46566         * m4/fabs.m4: New file.
46567         * modules/fabs (Files): Add it.
46568         (configure.ac): Just invoke gl_FUNC_FABS.
46570 2011-10-05  Jim Meyering  <meyering@redhat.com>
46572         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
46573         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
46574         ls -lL regression introduced in coreutils-8.12, it does so at the
46575         cost of an additional stat call in the common case.  Besides, now
46576         that the kernel change that prompted commit 95f7c57f has been reverted
46577         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
46578         we have no use for commit 95f7c57f, "file-has-acl: use
46579         acl_extended_file_nofollow if available".
46581 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
46583         file-has-acl: revert unintended change in behavior of ls -L
46584         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
46585         derived from...
46586         (file_has_acl): ...code here.  Call it.
46587         This problem was introduced with 2011-07-22 commit 95f7c57f,
46588         "file-has-acl: use acl_extended_file_nofollow if available".
46589         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
46591 2011-10-03  Bruno Haible  <bruno@clisp.org>
46593         poll: Avoid link errors on MSVC.
46594         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
46595         * modules/poll (Depends-on): Add sockets.
46596         (Link): New section.
46597         * NEWS: Mention the change.
46598         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
46599         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
46600         $(LIB_POLL) instead of $(LIBSOCKET).
46602 2011-10-03  Bruno Haible  <bruno@clisp.org>
46604         sys_select tests: Fix link error on MSVC 9.
46605         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
46606         with $(LIB_SELECT) instead of $(LIBSOCKET).
46608 2011-10-03  Bruno Haible  <bruno@clisp.org>
46610         sys_select: Fix compilation error on mingw.
46611         * lib/sys_select.in.h: On native Windows, include <io.h>.
46613 2011-10-03  Bruno Haible  <bruno@clisp.org>
46615         wmemset: Support for MSVC.
46616         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
46617         whether wmemset() exists.
46619 2011-10-03  Bruno Haible  <bruno@clisp.org>
46621         wmemmove: Support for MSVC.
46622         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
46623         whether wmemmove() exists.
46625 2011-10-03  Bruno Haible  <bruno@clisp.org>
46627         wmemcpy: Support for MSVC.
46628         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
46629         whether wmemcpy() exists.
46631 2011-10-03  Bruno Haible  <bruno@clisp.org>
46633         wmemcmp: Support for MSVC.
46634         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
46635         whether wmemcmp() exists.
46637 2011-10-03  Bruno Haible  <bruno@clisp.org>
46639         wmemchr: Support for MSVC.
46640         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
46641         whether wmemchr() exists.
46643 2011-10-03  Bruno Haible  <bruno@clisp.org>
46645         glthread/*, strsignal: Support for MSVC.
46646         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
46647         including <winsock.h> on MSVC 9.
46648         * lib/glthread/lock.h: Likewise.
46649         * lib/glthread/thread.h: Likewise.
46650         * lib/glthread/tls.h: Likewise.
46651         * lib/glthread/yield.h: Likewise.
46652         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
46653         if HAVE_UNISTD_H is false.
46654         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
46656 2011-10-03  Bruno Haible  <bruno@clisp.org>
46658         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
46659         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
46660         Set to 100000.
46662 2011-10-03  Bruno Haible  <bruno@clisp.org>
46664         acl: Fix specification.
46665         * lib/file-has-acl.c (file_has_acl): Fix specification.
46667 2011-10-03  Bruno Haible  <bruno@clisp.org>
46669         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
46670         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
46671         (compute_curr_prefix, shared_library_fullname,
46672         find_shared_library_fullname, get_shared_library_fullname, relocate):
46673         Use it together with PIC && INSTALLDIR.
46674         Reported by <jojelino@gmail.com>
46675         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
46677 2011-10-01  Jim Meyering  <meyering@redhat.com>
46679         maint.mk: adjust a release-related rule not to require use of gzip
46680         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
46681         Instead, check each file in $(DIST_ARCHIVES).  This is better for
46682         projects that build only .tar.xz files.  Also fix an erroneous test.
46684         test-linkat: don't leave behind a temporary file
46685         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
46686         Otherwise, coreutils' "make distcheck" would fail with this:
46687           Only in /c/cu/tests/torture/coreutils/test/\
46688             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
46689           make[2]: *** [my-distcheck] Error 1
46691         float, math: add omitted file
46692         * lib/itold.c: Add file, required for yesterday's float change.
46694 2011-10-01  Bruno Haible  <bruno@clisp.org>
46696         isinf: Fix for OpenBSD/x86.
46697         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
46698         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
46699         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
46701 2011-10-01  Bruno Haible  <bruno@clisp.org>
46703         isfinite: Fix syntax error in configure test.
46704         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
46706         isfinite: Fix typo.
46707         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
46708         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
46710 2011-10-01  Bruno Haible  <bruno@clisp.org>
46712         nonblocking tests: Fix test failure on Linux/IA-64.
46713         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
46714         Set to 270000.
46716 2011-10-01  Bruno Haible  <bruno@clisp.org>
46718         mkfifoat tests: Fix a test failure on mingw.
46719         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
46720         with error ENOSYS.
46722 2011-09-30  Bruno Haible  <bruno@clisp.org>
46724         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
46725         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
46726         'long double'. Set REPLACE_ITOLD.
46727         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
46728         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
46729         * lib/itold.c: New file.
46730         * modules/float (Files): Add lib/itold.c.
46731         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
46732         (Makefile.am): Substitute REPLACE_ITOLD.
46733         * modules/math (Depends-on): Add float.
46734         (Makefile.am): Substitute REPLACE_ITOLD.
46735         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
46736         * doc/posix-headers/math.texi: Likewise.
46737         * doc/posix-functions/logl.texi: Likewise.
46739 2011-09-30  Bruno Haible  <bruno@clisp.org>
46741         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
46742         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
46743         Set to 140000.
46745 2011-09-30  Bruno Haible  <bruno@clisp.org>
46747         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
46748         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
46749         invocation, say "right after AC_PROG_CC_STDC", not "right after
46750         AC_PROG_CC".
46751         Reported by Gary V. Vaughan <gary@gnu.org>.
46753 2011-09-30  Bruno Haible  <bruno@clisp.org>
46755         Centralize C99 requirement.
46756         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
46757         * modules/stdarg (configure.ac-early): Invoke it instead of
46758         AC_PROG_CC_STDC.
46759         Reported by Gary V. Vaughan and Paul Eggert.
46761 2011-09-29  Bruno Haible  <bruno@clisp.org>
46763         float: Fix LDBL_MAX value on Linux/PowerPC.
46764         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
46765         on Linux/PowerPC.
46766         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
46767         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
46768         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
46769         platform.
46770         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
46772 2011-09-29  Bruno Haible  <bruno@clisp.org>
46774         doc: Improve doc about gl_EARLY.
46775         * doc/gnulib-tool.texi (Initial import): Mention where to place an
46776         AC_PROG_CC_STDC invocation.
46777         Reported by Gary V. Vaughan <gary@gnu.org>.
46779 2011-09-28  Bruno Haible  <bruno@clisp.org>
46781         fgetc, fputc, fread, fwrite tests: Fix link error.
46782         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
46783         on non-MSVC platforms.
46784         * tests/test-fputc.c (main): Likewise.
46785         * tests/test-fread.c (main): Likewise.
46786         * tests/test-fwrite.c (main): Likewise.
46787         Reported by Jim Meyering.
46789 2011-09-27  Bruno Haible  <bruno@clisp.org>
46791         fputc, fwrite tests: Avoid test failure on MSVC.
46792         * tests/test-fgetc.c: Include msvc-inval.h.
46793         (main): Invoke gl_msvc_inval_ensure_handler.
46794         * tests/test-fputc.c: Include msvc-inval.h.
46795         (main): Invoke gl_msvc_inval_ensure_handler.
46796         * tests/test-fread.c: Include msvc-inval.h.
46797         (main): Invoke gl_msvc_inval_ensure_handler.
46798         * tests/test-fwrite.c: Include msvc-inval.h.
46799         (main): Invoke gl_msvc_inval_ensure_handler.
46800         * modules/fgetc-tests (Depends-on): Add msvc-inval.
46801         * modules/fputc-tests (Depends-on): Likewise.
46802         * modules/fread-tests (Depends-on): Likewise.
46803         * modules/fwrite-tests (Depends-on): Likewise.
46805 2011-09-27  Bruno Haible  <bruno@clisp.org>
46807         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
46808         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
46809         (raise): Remove older, duplicated declaration.
46810         (_gl_raise_SIGPIPE): New declaration.
46811         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
46812         (rpl_raise): Remove function.
46813         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
46814         a gnulib-defined SIGPIPE here.
46815         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
46816         'sigprocmask' has detected missing signal-blocking and the module
46817         'sigpipe' is enabled.
46818         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46820 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
46822         base64-tests: avoid memory leak
46823         * tests/test-base64.c (main): Plug memory leak.
46825         base32: new module
46826         * modules/base32: New module.
46827         * lib/base32.c: New file.
46828         * lib/base32.h: Likewise.
46829         * m4/base32.m4: Likewise.
46830         * modules/base32-tests: New test.
46831         * tests/test-base32.c: Likewise.
46832         * MODULES.html.sh (Misc): Mention it.
46834 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46836         gnulib: use more-standard license notice wording
46837         * gnulib-tool (func_emit_copyright_notice): When emitting a
46838         license notice into a file, use the standard wording as suggested
46839         by the current information for GNU maintainers, except say "file"
46840         rather than "program".  The new wording gives a license version
46841         number, which addresses an issue raised by Glenn Morris in
46842         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
46843         * m4/onceonly.m4: Use that same wording here, too.
46845         dup2: minor simplification
46846         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
46847         as lib/dup2.c no longer uses 'inline'.
46849 2011-09-25  Bruno Haible  <bruno@clisp.org>
46851         strings: Fix compilation error on MSVC.
46852         * lib/strings.in.h: Include <stddef.h> for size_t.
46854 2011-09-25  Bruno Haible  <bruno@clisp.org>
46856         fflush et al.: Document limitation on MSVC.
46857         * doc/posix-functions/fflush.texi: Document possible crash in handling
46858         mode other than DEFAULT_HANDLING.
46859         * doc/posix-functions/fgetc.texi: Likewise.
46860         * doc/posix-functions/fputc.texi: Likewise.
46861         * doc/posix-functions/fread.texi: Likewise.
46862         * doc/posix-functions/fwrite.texi: Likewise.
46864 2011-09-25  Bruno Haible  <bruno@clisp.org>
46866         msvc-inval: Allow three invalid parameter handling modes.
46867         * lib/msvc-inval.h: Don't include <stdlib.h> here.
46868         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
46869         macros.
46870         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
46871         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
46872         SANE_LIBRARY_HANDLING as a no-op.
46873         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
46874         <stdlib.h>.
46875         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
46877 2011-09-25  Bruno Haible  <bruno@clisp.org>
46879         msvc-inval: Make handler multithread-safe.
46880         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
46881         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
46882         declarations.
46883         (gl_msvc_inval_current): New declaration.
46884         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
46885         Operate on the structure returned by gl_msvc_inval_current().
46886         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
46887         Remove varaiables.
46888         (tls_index, tls_initialized): New variables.
46889         (not_per_thread): New variable.
46890         (gl_msvc_inval_current): New function.
46891         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
46892         returned by gl_msvc_inval_current().
46894 2011-09-25  Bruno Haible  <bruno@clisp.org>
46896         msvc-inval: Install handler globally.
46897         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
46898         !_MSC_VER.
46899         (gl_msvc_invalid_parameter_handler): Remove declaration.
46900         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
46901         declarations.
46902         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
46903         Install the handler globally, don't uninstall it.
46904         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
46905         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
46906         currently valid, call RaiseException instead.
46907         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
46908         for !_MSC_VER.
46910 2011-09-25  Bruno Haible  <bruno@clisp.org>
46912         strerror_r-posix: Fix for MSVC 9.
46913         * lib/strerror_r.c (local_snprintf): New function.
46914         (snprintf): Define to local_snprintf, not to _snprintf.
46916 2011-09-25  Bruno Haible  <bruno@clisp.org>
46918         ftruncate: Support for MSVC 9.
46919         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
46920         (chsize_nothrow): New function.
46921         (chsize): Redefine as a macro.
46922         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
46923         * modules/ftruncate (Depends-on): Add msvc-inval.
46925 2011-09-25  Bruno Haible  <bruno@clisp.org>
46927         New module 'fstat'.
46928         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
46929         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
46930         * lib/fchdir.c (rpl_fstat): Remove function.
46931         * m4/fstat.m4: New file.
46932         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
46933         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
46934         declared.
46935         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
46936         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
46937         * modules/fstat: New file.
46938         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
46939         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
46940         is set.
46941         * doc/posix-functions/fstat.texi: Mention the new module and the
46942         problem on MSVC.
46943         * NEWS: Mention the change.
46944         * modules/acl (Depends-on): Add fstat.
46945         * modules/chdir-safer (Depends-on): Likewise.
46946         * modules/chown (Depends-on): Likewise.
46947         * modules/copy-file (Depends-on): Likewise.
46948         * modules/fchdir (Depends-on): Likewise.
46949         * modules/fdopendir (Depends-on): Likewise.
46950         * modules/fopen (Depends-on): Likewise.
46951         * modules/fts (Depends-on): Likewise.
46952         * modules/getcwd (Depends-on): Likewise.
46953         * modules/isapipe (Depends-on): Likewise.
46954         * modules/linkat (Depends-on): Likewise.
46955         * modules/lseek (Depends-on): Likewise.
46956         * modules/mkdir-p (Depends-on): Likewise.
46957         * modules/open (Depends-on): Likewise.
46958         * modules/openat (Depends-on): Likewise.
46959         * modules/read-file (Depends-on): Likewise.
46960         * modules/renameat (Depends-on): Likewise.
46961         * modules/utimens (Depends-on): Likewise.
46963 2011-09-25  Bruno Haible  <bruno@clisp.org>
46965         linkat: Fix compilation on MSVC 9.
46966         * lib/linkat.c: Don't include <stdint.h>.
46968 2011-09-25  Bruno Haible  <bruno@clisp.org>
46970         fclose: Support for MSVC 9.
46971         * lib/fclose.c: Include msvc-inval.h.
46972         (fclose_nothrow): New function.
46973         (rpl_fclose): Use it.
46974         * modules/fclose (Depends-on): Add msvc-inval.
46975         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
46977 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
46979         dup2: minor simplifications
46980         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
46981         that it's a performance win.
46982         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
46983         ! defined __CYGWIN__)" to "ifdef F_GETFL".
46985 2011-09-24  Jim Meyering  <meyering@redhat.com>
46987         test-futimens: avoid a warning from gcc -Wshadow
46988         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
46989         to avoid a shadowing warning.
46991 2011-09-24  Bruno Haible  <bruno@clisp.org>
46993         fdopen: Support for MSVC 9.
46994         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
46995         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
46996         * lib/fdopen.c: Include msvc-inval.h.
46997         (fdopen_nothrow): New function.
46998         (rpl_fdopen): Use it.
46999         * modules/fdopen (Depends-on): Add msvc-inval.
47000         * modules/fclose-tests (Depends-on): Add fdopen.
47001         * modules/fflush-tests (Depends-on): Likewise.
47002         * modules/fgetc-tests (Depends-on): Likewise.
47003         * modules/fputc-tests (Depends-on): Likewise.
47004         * modules/fread-tests (Depends-on): Likewise.
47005         * modules/freopen-tests (Depends-on): Likewise.
47006         * modules/fseeko-tests (Depends-on): Likewise.
47007         * modules/ftello-tests (Depends-on): Likewise.
47008         * modules/fwrite-tests  (Depends-on): Likewise.
47009         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
47011 2011-09-24  Bruno Haible  <bruno@clisp.org>
47013         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
47014         * modules/fgetc-tests (Depends-on): Add unistd.
47015         * modules/fputc-tests (Depends-on): Likewise.
47016         * modules/fread-tests (Depends-on): Likewise.
47017         * modules/fwrite-tests (Depends-on): Likewise.
47019 2011-09-24  Bruno Haible  <bruno@clisp.org>
47021         dup: Simplify autoconf test.
47022         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
47023         on gl_MSVC_INVAL's result.
47025 2011-09-24  Bruno Haible  <bruno@clisp.org>
47027         Tests for function fwrite().
47028         * modules/fwrite-tests: New file.
47029         * tests/test-fwrite.c: New file.
47030         * modules/stdio-tests (Depends-on): Add fwrite-tests.
47032         Tests for function fread().
47033         * modules/fread-tests: New file.
47034         * tests/test-fread.c: New file.
47035         * modules/stdio-tests (Depends-on): Add fread-tests.
47037         Activate fputc tests.
47038         * modules/stdio-tests (Depends-on): Add fputc-tests.
47040         Enhance fgetc, fputc tests.
47041         * tests/test-fgetc.c (main): Also test the stream's error indicator.
47042         * tests/test-fputc.c (main): Likewise.
47044 2011-09-24  Bruno Haible  <bruno@clisp.org>
47046         write: Support for MSVC 9.
47047         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
47048         is not 1.
47049         * lib/write.c (write_nothrow): New function.
47050         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
47051         not 1. Use write_nothrow.
47052         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
47053         invalid parameter handler.
47054         (gl_PREREQ_WRITE): New macro.
47055         * modules/write (Depends-on): Add msvc-inval.
47056         (configure.ac): Invoke gl_PREREQ_WRITE.
47057         * doc/posix-functions/write.texi: Mention the problem on MSVC.
47059 2011-09-24  Bruno Haible  <bruno@clisp.org>
47061         read: Fix last commit.
47062         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
47064 2011-09-24  Bruno Haible  <bruno@clisp.org>
47066         dup2: Fix last commit.
47067         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
47068         (rpl_dup2): Disable fcntl workaround on native Windows.
47070         sigprocmask: Make code safer.
47071         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
47072         section that changes macro definitions for this compilation unit.
47074 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47076         dup2: clarify by coalescing Windows-specific material
47077         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
47078         "msvc-nothrow.h"' to the Windows-specific section, so that the
47079         Emacs source need not contain these include files.
47080         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
47081         Windows-specific fixes into this function rather than just the
47082         nothrow fix, as this shortens and clarifies the code.  Always
47083         define as a function, as that's a bit cleaner than having it be
47084         sometimes a function and sometimes a macro.
47085         (rpl_dup2): Move the Windows-specific stuff out of here and into
47086         ms_windows_dup2.  Don't protect the Haiku-related fix with
47087         "#if !defined __linux__", as the same code also works around
47088         a Linux kernel bug, and it doesn't add any system calls on any
47089         platform.  Add comment about FreeBSD 6.1.
47091         sigprocmask: move #include directive
47092         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
47093         Windows-specific section, so that the Emacs source need not
47094         contain msvc-inval.h.
47096 2011-09-23  Bruno Haible  <bruno@clisp.org>
47098         read: Support for MSVC 9.
47099         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
47100         is not 1.
47101         * lib/read.c (read_nothrow): New function.
47102         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
47103         read_nothrow.
47104         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
47105         invalid parameter handler.
47106         (gl_PREREQ_READ): New macro.
47107         * modules/read (Depends-on): Add msvc-inval.
47108         (configure.ac): Invoke gl_PREREQ_READ.
47109         * doc/posix-functions/read.texi: Mention the problem on MSVC.
47111 2011-09-23  Bruno Haible  <bruno@clisp.org>
47113         close: Support for MSVC 9.
47114         * lib/close.c: Include <errno.h>, msvc-inval.h.
47115         (close_nothrow): New function.
47116         (rpl_close): Use it.
47117         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
47118         invalid parameter handler.
47119         * modules/close (Depends-on): Add msvc-inval.
47120         * modules/dup2-tests (Depends-on): Add close.
47121         * modules/dup3-tests (Depends-on): Likewise.
47122         * modules/fcntl-tests (Depends-on): Likewise.
47123         * modules/spawn-pipe-tests (Depends-on): Likewise.
47124         * modules/unistd-safer-tests (Depends-on): Likewise.
47125         * doc/posix-functions/close.texi: Mention the problem on MSVC.
47127 2011-09-23  Bruno Haible  <bruno@clisp.org>
47129         New module 'dup'.
47130         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
47131         Allow replacement.
47132         * lib/dup.c: New file.
47133         * lib/fchdir.c (rpl_dup): Remove function.
47134         * m4/dup.m4: New file.
47135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
47136         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
47137         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
47138         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
47139         * modules/dup: New file.
47140         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
47141         'dup' module is in use.
47142         * modules/fdopendir (Depends-on): Add dup.
47143         * modules/fdutimensat-tests (Depends-on): Likewise.
47144         * modules/fts (Depends-on): Likewise.
47145         * modules/futimens-tests (Depends-on): Likewise.
47146         * modules/posix_spawnp-tests (Depends-on): Likewise.
47147         * modules/unistd-safer-tests (Depends-on): Likewise.
47148         * modules/utimens-tests (Depends-on): Likewise.
47149         * doc/posix-functions/dup.texi: Mention the new module and the problem
47150         on MSVC.
47152 2011-09-23  Bruno Haible  <bruno@clisp.org>
47154         getdtablesize: Support for MSVC 9.
47155         * lib/getdtablesize.c: Include msvc-inval.h.
47156         (_setmaxstdio_nothrow): New function.
47157         (_setmaxstdio): Redefine it.
47158         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
47159         * modules/getdtablesize (Depends-on): Add msvc-inval.
47160         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
47162 2011-09-23  Bruno Haible  <bruno@clisp.org>
47164         signal-h: Rename from signal.
47165         * modules/signal-h: Renamed from modules/signal.
47166         * modules/pthread_sigmask (Depends-on): Update.
47167         * modules/raise (Depends-on): Likewise.
47168         * modules/sigaction (Depends-on): Likewise.
47169         * modules/sigpipe (Depends-on): Likewise.
47170         * modules/sigprocmask (Depends-on): Likewise.
47171         * modules/sys_select (Depends-on): Likewise.
47172         * modules/signal-h-tests: Renamed from modules/signal-tests.
47173         (Files, Depends-on, Makefile.am): Update.
47174         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
47175         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
47176         (Files, Makefile.am): Update.
47177         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
47178         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
47179         * modules/signal: New placeholder file.
47180         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
47181         * doc/posix-headers/signal.texi: Update.
47182         * NEWS: Mention the change.
47184 2011-09-23  Bruno Haible  <bruno@clisp.org>
47186         sigprocmask: Avoid crashes through signal() on MSVC 9.
47187         * lib/sigprocmask.c: Include msvc-inval.h.
47188         (signal_nothrow): New function.
47189         (signal): Redefine it.
47190         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
47191         * modules/sigprocmask (Depends-on): Add msvc-inval.
47192         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
47194 2011-09-23  Bruno Haible  <bruno@clisp.org>
47196         Tests for module 'raise'.
47197         * modules/raise-tests: New file.
47198         * tests/test-raise.c: New file.
47200         raise: Support for MSVC.
47201         * lib/signal.in.h (raise): New declaration.
47202         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
47203         for native Windows platforms.
47204         * m4/raise.m4: New file.
47205         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
47206         HAVE_RAISE, REPLACE_RAISE.
47207         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
47208         REPLACE_RAISE.
47209         * modules/raise (Status, Notice): Remove fields.
47210         (Files): Add m4/raise.m4.
47211         (Depends-on): Add signal, msvc-inval.
47212         (configure.ac): Use the common idioms.
47213         (Maintainer): Add me.
47214         * tests/test-signal-c++.cc: Check the signature of raise.
47215         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
47217 2011-09-23  Bruno Haible  <bruno@clisp.org>
47219         pipe2: Fix compilation on pre-C99 compilers.
47220         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
47222 2011-09-23  Bruno Haible  <bruno@clisp.org>
47224         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
47225         * lib/msvc-nothrow.h: New file.
47226         * lib/msvc-nothrow.c: New file.
47227         * m4/msvc-nothrow.m4: New file.
47228         * modules/msvc-nothrow: New file.
47229         * lib/dup2.c: Include msvc-nothrow.h.
47230         (rpl_dup2): No need to protect _get_osfhandle call here.
47231         * lib/accept4.c: Include msvc-nothrow.h.
47232         * lib/error.c: Likewise.
47233         * lib/fcntl.c: Likewise.
47234         * lib/lseek.c: Likewise.
47235         * lib/nonblocking.c: Likewise.
47236         * lib/poll.c: Likewise.
47237         * lib/read.c: Likewise.
47238         * lib/select.c: Likewise.
47239         * lib/sockets.h: Likewise.
47240         * lib/sockets.c: Likewise.
47241         * lib/stdio-read.c: Likewise.
47242         * lib/stdio-write.c: Likewise.
47243         * lib/write.c: Likewise.
47244         * lib/w32sock.h: Likewise.
47245         * lib/w32spawn.h: Likewise.
47246         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
47247         * lib/fsync.c: Likewise.
47248         * lib/isapipe.c: Likewise.
47249         * modules/dup2 (Depends-on): Add msvc-nothrow.
47250         * modules/accept4 (Depends-on): Likewise.
47251         * modules/error (Depends-on): Likewise.
47252         * modules/fcntl (Depends-on): Likewise.
47253         * modules/lseek (Depends-on): Likewise.
47254         * modules/nonblocking (Depends-on): Likewise.
47255         * modules/poll (Depends-on): Likewise.
47256         * modules/read (Depends-on): Likewise.
47257         * modules/select (Depends-on): Likewise.
47258         * modules/sockets (Depends-on): Likewise.
47259         * modules/sigpipe (Depends-on): Likewise.
47260         * modules/write (Depends-on): Likewise.
47261         * modules/accept (Depends-on): Likewise.
47262         * modules/bind (Depends-on): Likewise.
47263         * modules/connect (Depends-on): Likewise.
47264         * modules/gethostname (Depends-on): Likewise.
47265         * modules/getpeername (Depends-on): Likewise.
47266         * modules/getsockname (Depends-on): Likewise.
47267         * modules/getsockopt (Depends-on): Likewise.
47268         * modules/ioctl (Depends-on): Likewise.
47269         * modules/listen (Depends-on): Likewise.
47270         * modules/recv (Depends-on): Likewise.
47271         * modules/recvfrom (Depends-on): Likewise.
47272         * modules/send (Depends-on): Likewise.
47273         * modules/sendto (Depends-on): Likewise.
47274         * modules/setsockopt (Depends-on): Likewise.
47275         * modules/shutdown (Depends-on): Likewise.
47276         * modules/socket (Depends-on): Likewise.
47277         * modules/execute (Depends-on): Likewise.
47278         * modules/spawn-pipe (Depends-on): Likewise.
47279         * modules/flock (Depends-on): Likewise.
47280         * modules/fsync (Depends-on): Likewise.
47281         * modules/isapipe (Depends-on): Likewise.
47282         * tests/test-cloexec.c: Include msvc-nothrow.h.
47283         * tests/test-dup-safer.c: Likewise.
47284         * tests/test-dup2.c: Likewise.
47285         * tests/test-dup3.c: Likewise.
47286         * tests/test-fcntl.c: Likewise.
47287         * tests/test-pipe.c: Likewise.
47288         * tests/test-pipe2.c: Likewise.
47289         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
47290         * modules/unistd-safer-tests (Depends-on): Likewise.
47291         * modules/dup2-tests (Depends-on): Likewise.
47292         * modules/dup3-tests (Depends-on): Likewise.
47293         * modules/fcntl-tests (Depends-on): Likewise.
47294         * modules/pipe-posix-tests (Depends-on): Likewise.
47295         * modules/pipe2-tests (Depends-on): Likewise.
47297 2011-09-23  Bruno Haible  <bruno@clisp.org>
47299         dup2: Make code more maintainable.
47300         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
47301         (rpl_dup2): Use it.
47302         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
47303         * modules/dup2 (configure.ac): Invoke it.
47304         Reported by Paul Eggert.
47306 2011-09-23  Bruno Haible  <bruno@clisp.org>
47308         msvc-inval: Fix compilation error.
47309         * lib/msvc-inval.h: Include <excpt.h>.
47311 2011-09-23  Bruno Haible  <bruno@clisp.org>
47313         mkdir: Tweak for MSVC 9.
47314         * lib/sys_stat.in.h: Update comments.
47315         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
47317         Tests for module 'chdir'.
47318         * modules/chdir-tests: New file.
47319         * tests/test-chdir.c: New file.
47321         New module 'chdir'.
47322         * modules/chdir: New file.
47323         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
47324         (chdir): New declaration.
47325         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
47326         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
47327         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
47328         * tests/test-unistd-c++.cc: Check signature of chdir.
47329         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
47330         * modules/chdir-long (Depends-on): Add chdir.
47331         * modules/fchdir (Depends-on): Likewise.
47332         * modules/rename (Depends-on): Likewise.
47333         * modules/savewd (Depends-on): Likewise.
47335         rmdir: Support for mingw, MSVC 9.
47336         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
47337         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
47339         getcwd: Tweak for MSVC 9.
47340         * lib/unistd.in.h: Update comments.
47341         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
47343 2011-09-22  Bruno Haible  <bruno@clisp.org>
47345         strerror_r-posix: Avoid a link error on MSVC.
47346         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
47347         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
47349 2011-09-22  Bruno Haible  <bruno@clisp.org>
47351         select: Avoid link errors on MSVC.
47352         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
47353         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
47354         * modules/pselect (Link): Likewise.
47355         * NEWS: Mention the change.
47356         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
47357         test-select-stdin against $(LIB_SELECT).
47358         * modules/pselect-tests (Makefile.am): Link test-pselect against
47359         $(LIB_SELECT).
47361 2011-09-22  Bruno Haible  <bruno@clisp.org>
47363         select: Avoid compilation error on MSVC.
47364         * lib/select.c: Don't include <stdbool.h>.
47366 2011-09-21  Bruno Haible  <bruno@clisp.org>
47368         Consolidate all uses of PATH_MAX in *.m4 files.
47369         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
47370         macros.
47371         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
47372         and gl_PATHMAX_SNIPPET.
47373         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
47374         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47375         * modules/chdir-long (Files): Add m4/pathmax.m4.
47376         * modules/getcwd (Files): Likewise.
47378 2011-09-21  Bruno Haible  <bruno@clisp.org>
47380         ftruncate: Un-deprecate, concentrate on Win32 support.
47381         * modules/ftruncate (Status, Notice): Remove sections.
47382         (Depends-on): Add largefile.
47383         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
47384         non-mingw platforms.
47385         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
47386         include <io.h>.
47387         * modules/perror-tests (Depends-on): Add ftruncate.
47388         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
47389         'ftruncate' module.
47391 2011-09-21  Bruno Haible  <bruno@clisp.org>
47393         Add dependencies to new dirent related modules.
47394         * modules/opendir (Depends-on): Add closedir.
47395         * modules/getcwd (Depends-on): Add opendir, closedir.
47396         * modules/dirent-safer-tests (Depends-on): Likewise.
47397         * modules/fdopendir-tests (Depends-on): Likewise.
47398         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
47399         * modules/renameat-tests (Depends-on): Likewise.
47401 2011-09-21  Bruno Haible  <bruno@clisp.org>
47403         opendir: Avoid compilation error on mingw.
47404         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
47405         * modules/opendir (Depends-on): Add unistd.
47407 2011-09-21  Bruno Haible  <bruno@clisp.org>
47409         ftruncate tests: Avoid a test failure on mingw.
47410         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
47412 2011-09-21  Bruno Haible  <bruno@clisp.org>
47414         select tests: Avoid test failures on OSF/1 5.1 and mingw.
47415         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
47416         native Windows.
47418 2011-09-21  Bruno Haible  <bruno@clisp.org>
47420         New module 'fdopen'.
47421         * lib/stdio.in.h (fdopen): New declaration.
47422         * lib/fdopen.c: New file.
47423         * m4/fdopen.m4: New file.
47424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
47425         REPLACE_FDOPEN.
47426         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
47427         REPLACE_FDOPEN.
47428         * modules/fdopen: New file.
47429         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
47430         * tests/test-stdio-c++.cc: Check signature of fdopen.
47431         * doc/posix-functions/fdopen.texi: Mention the new module.
47433 2011-09-21  Bruno Haible  <bruno@clisp.org>
47435         unlockpt tests: Avoid test failure on NetBSD 5.1.
47436         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
47437         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
47439 2011-09-21  Bruno Haible  <bruno@clisp.org>
47441         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
47442         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
47443         * tests/test-getlogin_r.c (main): Likewise.
47445 2011-09-20  Bruno Haible  <bruno@clisp.org>
47447         time tests: Don't require pid_t.
47448         * doc/posix-headers/time.texi: Revert last change.
47449         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
47450         * tests/test-time.c: Comment out the check for pid_t.
47452 2011-09-20  Bruno Haible  <bruno@clisp.org>
47454         fsync tests: Avoid a test failure on mingw.
47455         * tests/test-fsync.c (main): Allow a failure with EIO.
47457 2011-09-20  Bruno Haible  <bruno@clisp.org>
47459         euidaccess: Update comments.
47460         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
47462 2011-09-20  Bruno Haible  <bruno@clisp.org>
47464         Ensure EBADF returns for socket functions on mingw.
47465         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
47466         descriptor is invalid.
47467         * lib/bind.c (rpl_bind): Likewise.
47468         * lib/connect.c (rpl_connect): Likewise.
47469         * lib/getpeername.c (rpl_getpeername): Likewise.
47470         * lib/getsockname.c (rpl_getsockname): Likewise.
47471         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47472         * lib/listen.c (rpl_listen): Likewise.
47473         * lib/recv.c (rpl_recv): Likewise.
47474         * lib/recvfrom.c (rpl_recvfrom): Likewise.
47475         * lib/send.c (rpl_send): Likewise.
47476         * lib/sendto.c (rpl_sendto): Likewise.
47477         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47478         * lib/shutdown.c (rpl_shutdown): Likewise.
47480 2011-09-20  Bruno Haible  <bruno@clisp.org>
47482         select tests: EBADF tests.
47483         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
47484         test_bad_fd): New functions.
47485         (test_function): Invoke also test_bad_fd.
47487 2011-09-20  Bruno Haible  <bruno@clisp.org>
47489         Tests for module 'posix_spawn_file_actions_addopen.
47490         * modules/posix_spawn_file_actions_addopen-tests: New file.
47491         * tests/test-posix_spawn_file_actions_addopen.c: New file.
47493         Tests for module 'posix_spawn_file_actions_adddup2'.
47494         * modules/posix_spawn_file_actions_adddup2-tests: New file.
47495         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
47497         Tests for module 'posix_spawn_file_actions_addclose'.
47498         * modules/posix_spawn_file_actions_addclose-tests: New file.
47499         * tests/test-posix_spawn_file_actions_addclose.c: New file.
47501 2011-09-20  Bruno Haible  <bruno@clisp.org>
47503         Tests for module 'unlockpt'.
47504         * modules/unlockpt-tests: New file.
47505         * tests/test-unlockpt.c: New file.
47506         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
47508         Tests for module 'grantpt'.
47509         * modules/grantpt-tests: New file.
47510         * tests/test-grantpt.c: New file.
47511         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
47513 2011-09-20  Bruno Haible  <bruno@clisp.org>
47515         freopen tests: EBADF tests.
47516         * tests/test-freopen.c: Include errno.h, unistd.h.
47517         (main): Add tests for EBADF, commented out for the moment.
47519         fclose tests: EBADF tests.
47520         * tests/test-fclose.c (main): Add tests for EBADF.
47522         fflush tests: EBADF tests.
47523         * tests/test-fflush.c: Include errno.h, macros.h.
47524         (main): Add tests for EBADF.
47526         ftello tests: EBADF tests.
47527         * tests/test-ftello4.sh: New file.
47528         * tests/test-ftello4.c: New file.
47529         * modules/ftello-tests (Files): Add them.
47530         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
47532         fseeko tests: EBADF tests.
47533         * tests/test-fseeko4.sh: New file.
47534         * tests/test-fseeko4.c: New file.
47535         * modules/fseeko-tests (Files): Add them.
47536         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
47538         Tests for function fputc().
47539         * modules/fputc-tests: New file.
47540         * tests/test-fputc.c: New file.
47541         * modules/stdio-tests (Depends-on): Add fputc-tests.
47543         Tests for function fgetc().
47544         * modules/fgetc-tests: New file.
47545         * tests/test-fgetc.c: New file.
47546         * modules/stdio-tests (Depends-on): Add fgetc-tests.
47548         Tests for function fdopen().
47549         * modules/fdopen-tests: New file.
47550         * tests/test-fdopen.c: New file.
47551         * modules/stdio-tests (Depends-on): Add fdopen-tests.
47553         Tests for module 'vdprintf'.
47554         * modules/vdprintf-tests: New file.
47555         * tests/test-vdprintf.c: New file.
47557         Tests for module 'dprintf'.
47558         * modules/dprintf-tests: New file.
47559         * tests/test-dprintf.c: New file.
47561 2011-09-20  Bruno Haible  <bruno@clisp.org>
47563         Tests for module 'ioctl'.
47564         * modules/ioctl-tests: New file.
47565         * tests/test-ioctl.c: New file.
47567 2011-09-20  Bruno Haible  <bruno@clisp.org>
47569         fcntl tests: EBADF tests.
47570         * tests/test-fcntl.c (main): Add more tests for EBADF.
47572 2011-09-20  Bruno Haible  <bruno@clisp.org>
47574         utimensat tests: EBADF tests.
47575         * tests/test-utimensat.c (main): Add tests for EBADF.
47577         renameat tests: EBADF tests.
47578         * tests/test-renameat.c (main): Add tests for EBADF.
47580         mkfifoat tests: EBADF tests.
47581         * tests/test-mkfifoat.c (main): Add tests for EBADF.
47583         readlinkat tests: EBADF tests.
47584         * tests/test-readlinkat.c (main): Add tests for EBADF.
47586         symlinkat tests: EBADF tests.
47587         * tests/test-symlinkat.c (main): Add tests for EBADF.
47589         linkat tests: EBADF tests.
47590         * tests/test-linkat.c (main): Add tests for EBADF.
47592         Tests for module 'faccessat'.
47593         * modules/faccessat-tests: New file.
47594         * tests/test-faccessat.c: New file.
47596         fdopendir tests: EBADF tests.
47597         * tests/test-fdopendir.c (main): Add more tests for EBADF.
47599         openat tests: EBADF tests.
47600         * tests/test-fchownat.c (main): Add tests for EBADF.
47601         * tests/test-fstatat.c (main): Likewise.
47602         * tests/test-mkdirat.c (main): Likewise.
47603         * tests/test-openat.c (main): Likewise.
47604         * tests/test-unlinkat.c (main): Likewise.
47605         * tests/test-fchmodat.c: New file.
47606         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
47607         (Makefile.am): Also run 'test-fchmodat'.
47609 2011-09-20  Bruno Haible  <bruno@clisp.org>
47611         utimens, futimens, fdutimensat tests: EBADF tests.
47612         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
47614         Tests for function fstat().
47615         * modules/fstat-tests: New file.
47616         * tests/test-fstat.c: New file.
47617         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
47619 2011-09-20  Bruno Haible  <bruno@clisp.org>
47621         test-ttyname_r tests: EBADF tests.
47622         * tests/test-ttyname_r.c (main): Add tests for EBADF.
47624         Tests for module 'isatty'.
47625         * modules/isatty-tests: New file.
47626         * tests/test-isatty.c: New file.
47628         Tests for module 'write'.
47629         * modules/write-tests: New file.
47630         * tests/test-write.c: New file.
47632         Tests for module 'read'.
47633         * modules/read-tests: New file.
47634         * tests/test-read.c: New file.
47636         pwrite tests: EBADF tests.
47637         * tests/test-pwrite.c (main): Add tests for EBADF.
47639         pread tests: EBADF tests.
47640         * tests/test-pread.c (main): Add tests for EBADF.
47642         lseek tests: EBADF tests.
47643         * tests/test-lseek.c (main): Add more tests for EBADF.
47645         Tests for module 'ftruncate'.
47646         * modules/ftruncate-tests: New file.
47647         * tests/test-ftruncate.sh: New file.
47648         * tests/test-ftruncate.c: New file.
47650         fsync tests: EBADF tests.
47651         * tests/test-fsync.c (main): Add more tests for EBADF.
47653         fdatasync tests: EBADF tests.
47654         * tests/test-fdatasync.c (main): Add more tests for EBADF.
47656         Tests for module 'fchown'.
47657         * modules/fchown-tests: New file.
47658         * tests/test-fchown.c: New file.
47660         Tests for module 'fchmod'.
47661         * modules/fchmod-tests: New file.
47662         * tests/test-fchmod.c: New file.
47664         fchdir tests: EBADF tests.
47665         * tests/test-fchdir.c (main): Add more tests for EBADF.
47667         dup2 tests: EBADF tests.
47668         * tests/test-dup2.c (main): Add more tests for EBADF.
47670         Tests for module 'dup'.
47671         * modules/dup-tests: New file.
47672         * tests/test-dup.c: New file.
47674         Tests for module 'close'.
47675         * modules/close-tests: New file.
47676         * tests/test-close.c: New file.
47678 2011-09-20  Bruno Haible  <bruno@clisp.org>
47680         Tests for module 'shutdown'.
47681         * modules/shutdown-tests: New file.
47682         * tests/test-shutdown.c: New file.
47684         Tests for module 'setsockopt'.
47685         * modules/setsockopt-tests: New file.
47686         * tests/test-setsockopt.c: New file.
47688         Tests for module 'sendto'.
47689         * modules/sendto-tests: New file.
47690         * tests/test-sendto.c: New file.
47692         Tests for module 'send'.
47693         * modules/send-tests: New file.
47694         * tests/test-send.c: New file.
47696         Tests for module 'recvfrom'.
47697         * modules/recvfrom-tests: New file.
47698         * tests/test-recvfrom.c: New file.
47700         Tests for module 'recv'.
47701         * modules/recv-tests: New file.
47702         * tests/test-recv.c: New file.
47704         Tests for module 'listen'.
47705         * modules/listen-tests: New file.
47706         * tests/test-listen.c: New file.
47708         Tests for module 'getsockopt'.
47709         * modules/getsockopt-tests: New file.
47710         * tests/test-getsockopt.c: New file.
47712         Tests for module 'getsockname'.
47713         * modules/getsockname-tests: New file.
47714         * tests/test-getsockname.c: New file.
47716         Tests for module 'getpeername'.
47717         * modules/getpeername-tests: New file.
47718         * tests/test-getpeername.c: New file.
47720         Tests for module 'connect'.
47721         * modules/connect-tests: New file.
47722         * tests/test-connect.c: New file.
47724         Tests for module 'bind'.
47725         * modules/bind-tests: New file.
47726         * tests/test-bind.c: New file.
47728         accept4 tests: Fix for native Windows.
47729         * tests/test-accept4.c: Include sockets.h.
47730         (main): Invoke gl_sockets_startup.
47731         * modules/accept4-tests (Depends-on): Add sockets.
47733         accept tests: Fix for native Windows.
47734         * tests/test-accept.c: Include sockets.h.
47735         (main): Invoke gl_sockets_startup.
47736         * modules/accept-tests (Depends-on): Add sockets.
47738 2011-09-19  Bruno Haible  <bruno@clisp.org>
47740         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
47741         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
47742         do...while(0).
47743         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
47744         Suggested by Paul Eggert.
47746 2011-09-19  Bruno Haible  <bruno@clisp.org>
47748         sched: Ensure pid_t is defined.
47749         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
47750         not define pid_t.
47751         * lib/sched.in.h: Include <sys/types.h>.
47752         * doc/posix-headers/sched.texi: Mention the pid_t problem.
47753         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47755 2011-09-19  Bruno Haible  <bruno@clisp.org>
47757         msvc-inval: Ensure the entire expansion is a single statement.
47758         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
47759         of braces.
47761 2011-09-19  Jim Meyering  <meyering@redhat.com>
47763         tests: use printf, not echo in init.sh's warn_ function
47764         * tests/init.sh (warn_): Use printf, not echo.  The latter would
47765         misbehave when given strings containing a backslash or starting
47766         with e.g., -n.  James Youngman suggested setting IFS.
47768 2011-09-19  Eric Blake  <eblake@redhat.com>
47770         futimens: enhance test
47771         * tests/test-futimens.h (test_futimens): Also check for EBADF on
47772         closed non-negative fd.
47774         date: accept 'hence' as opposite of 'ago'
47775         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
47776         * tests/test-parse-datetime.c (main): Enhance test.
47777         Suggested by Jesse Wilson.
47779 2011-09-19  Jim Meyering  <meyering@redhat.com>
47781         getcwd: don't fail in a deep directory on a system without openat
47782         Before this change, getcwd would fail when called from a directory
47783         of depth PATH_MAX / 3 or greater.  That was due to the fact that
47784         the non-openat implementation used "..", "../..", "../../..", etc.
47785         to access ancestor directories.  With too many, that string would
47786         be longer than PATH_MAX.
47787         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
47788         using gnulib's openat replacement.
47789         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
47790         we're using the replacement function.
47792 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
47794         maint.mk: avoid warnings from perl about missing files
47795         * top/maint.mk (def_sym_regex): Ignore files listed in
47796         $(gl_other_headers_) that do not exist, say because a project
47797         does not use a corresponding module.
47799 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
47801         stat: use pathmax.h only if needed
47802         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
47803         This is better for Emacs, which does not have a mingw port and
47804         therefore can avoid the pathmax module.
47806         utimens: remove dependency on dup2
47807         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
47808         to work around the Linux kernel bug.
47809         * modules/utimens (Depends-on): Remove dup2.
47811 2011-09-18  Bruno Haible  <bruno@clisp.org>
47813         inet_ntop, inet_pton: Look for it also in libresolv.
47814         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
47815         libnsl, search for it in libresolv.
47816         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47817         Needed on Solaris 7.
47819 2011-09-18  Bruno Haible  <bruno@clisp.org>
47821         accept, accept4 tests: Avoid link error on Solaris.
47822         * modules/accept-tests (Makefile.am): Link test-accept against
47823         $(LIBSOCKET).
47824         * modules/accept4-tests (Makefile.am): Link test-accept4 against
47825         $(LIBSOCKET).
47827         accept4: Avoid link error on Solaris.
47828         * modules/accept4 (Link): New section.
47830         socket functions: Avoid link errors on Solaris.
47831         * modules/accept (Depends-on): Add socketlib.
47832         (Link): New section.
47833         * modules/bind (Depends-on): Add socketlib.
47834         (Link): New section.
47835         * modules/connect (Depends-on): Add socketlib.
47836         (Link): New section.
47837         * modules/getpeername (Depends-on): Add socketlib.
47838         (Link): New section.
47839         * modules/getsockname (Depends-on): Add socketlib.
47840         (Link): New section.
47841         * modules/getsockopt (Depends-on): Add socketlib.
47842         (Link): New section.
47843         * modules/listen (Depends-on): Add socketlib.
47844         (Link): New section.
47845         * modules/recv (Depends-on): Add socketlib.
47846         (Link): New section.
47847         * modules/recvfrom (Depends-on): Add socketlib.
47848         (Link): New section.
47849         * modules/send (Depends-on): Add socketlib.
47850         (Link): New section.
47851         * modules/sendto (Depends-on): Add socketlib.
47852         (Link): New section.
47853         * modules/setsockopt (Depends-on): Add socketlib.
47854         (Link): New section.
47855         * modules/shutdown (Depends-on): Add socketlib.
47856         (Link): New section.
47857         * modules/socket (Depends-on): Add socketlib.
47858         (Link): New section.
47860 2011-09-18  Bruno Haible  <bruno@clisp.org>
47862         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
47863         * tests/test-ptsname.c (main): Terminate the test if it takes longer
47864         than 5 seconds.
47865         * modules/ptsname-tests (configure.ac): Test for alarm.
47867 2011-09-18  Bruno Haible  <bruno@clisp.org>
47869         posix_spawn_file_actions_add*: Fix module dependencies.
47870         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
47871         posix_spawn_file_actions_init.
47872         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
47873         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
47875 2011-09-18  Bruno Haible  <bruno@clisp.org>
47877         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
47878         * tests/test-rename.h (test_rename): Allow error code EEXIST.
47879         * tests/test-renameat.c (main): Likewise.
47881 2011-09-18  Bruno Haible  <bruno@clisp.org>
47883         Tests for module 'accept4'.
47884         * modules/accept4-tests: New file.
47885         * tests/test-accept4.c: New file.
47887 2011-09-18  Bruno Haible  <bruno@clisp.org>
47889         Tests for module 'accept'.
47890         * modules/accept-tests: New file.
47891         * tests/test-accept.c: New file.
47893 2011-09-18  Bruno Haible  <bruno@clisp.org>
47895         dup2: Support for MSVC.
47896         * lib/dup2.c: Include msvc-inval.h.
47897         (rpl_dup2): Handle invalid parameter notifications during dup2 and
47898         _get_osfhandle calls.
47899         * modules/dup2 (Depends-on): Add msvc-inval.
47900         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
47902         New module 'msvc-inval'.
47903         * lib/msvc-inval.h: New file.
47904         * lib/msvc-inval.c: New file.
47905         * m4/msvc-inval.m4: New file.
47906         * modules/msvc-inval: New file.
47908 2011-09-17  Bruno Haible  <bruno@clisp.org>
47910         Tests for module 'pclose'.
47911         * modules/pclose-tests: New file.
47913         New module 'pclose'.
47914         * lib/stdio.in.h (pclose): New declaration.
47915         * lib/pclose.c: New file.
47916         * m4/pclose.m4: New file.
47917         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
47918         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
47919         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
47920         * modules/pclose: New file.
47921         * modules/popen-tests (Depends-on): Add pclose.
47922         * modules/popen-safer-tests (Depends-on): Likewise.
47923         * doc/posix-functions/pclose.texi: Mention the new module.
47925 2011-09-17  Bruno Haible  <bruno@clisp.org>
47927         popen: Support for MSVC.
47928         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
47929         * lib/popen.c (popen): Provide alternate definition for native Windows.
47930         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
47931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
47932         * modules/popen (Depends-on, configure.ac): Update condition.
47933         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
47934         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
47935         fixed.
47937 2011-09-17  Bruno Haible  <bruno@clisp.org>
47939         isnanl, isnand, isnanf: Work around MSVC bug.
47940         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
47942 2011-09-17  Bruno Haible  <bruno@clisp.org>
47944         sys_socket tests: Fix recent mistake.
47945         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
47947 2011-09-17  Bruno Haible  <bruno@clisp.org>
47949         putenv: Support for MSVC.
47950         * modules/putenv (Depends-on): Add environ.
47951         * lib/putenv.c (environ): Disable declaration.
47952         * lib/unistd.in.h: Update comment.
47954 2011-09-17  Bruno Haible  <bruno@clisp.org>
47956         math: Avoid macro redefinition warnings on MSVC.
47957         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
47958         Undefine before redefining.
47960 2011-09-17  Bruno Haible  <bruno@clisp.org>
47962         doc: Mention functions which are declared as macros.
47963         * doc/posix-functions/*[fl].texi: Mention that some functions are
47964         defined as macros with arguments only.
47966 2011-09-17  Bruno Haible  <bruno@clisp.org>
47968         Add dependencies to new dirent related modules.
47969         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
47970         * modules/fts (Depends-on): Likewise.
47971         * modules/glob (Depends-on): Likewise.
47972         * modules/savedir (Depends-on): Likewise.
47973         * modules/scandir (Depends-on): Likewise.
47974         * modules/dirent-safer (Depends-on): Add opendir, closedir.
47975         * modules/fdopendir (Depends-on): Add opendir.
47977 2011-09-17  Bruno Haible  <bruno@clisp.org>
47979         inet_pton: Support for MSVC on Windows Vista or newer.
47980         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
47981         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
47982         HAVE_DECL_INET_PTON is defined.
47983         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
47984         On platforms with <winsock2.h>, test whether inet_pton is declared in
47985         <ws2tcpip.h>. If so, arrange to replace it.
47986         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
47987         REPLACE_INET_PTON.
47988         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
47989         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
47990         (Depends-on, configure.ac): Update condition.
47991         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
47993 2011-09-17  Bruno Haible  <bruno@clisp.org>
47995         inet_ntop: Support for MSVC on Windows Vista or newer.
47996         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
47997         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
47998         HAVE_DECL_INET_NTOP is defined.
47999         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48000         On platforms with <winsock2.h>, test whether inet_ntop is declared in
48001         <ws2tcpip.h>. If so, arrange to replace it.
48002         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48003         REPLACE_INET_NTOP.
48004         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
48005         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
48006         (Depends-on, configure.ac): Update condition.
48007         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
48009 2011-09-16  Eric Blake  <eblake@redhat.com>
48011         test-fsync: yet another enhancement
48012         * tests/test-fsync.c (main): Also test behavior on read-only text
48013         file.
48015 2011-09-16  Bruno Haible  <bruno@clisp.org>
48017         Enhance fsync, fdatasync tests.
48018         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
48019         * tests/test-fdatasync.c (main): Likewise.
48021 2011-09-16  Bruno Haible  <bruno@clisp.org>
48023         Support for MSVC compiler: Ensure mode_t gets defined.
48024         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
48025         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48026         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48027         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
48028         * tests/test-fcntl-h.c: Check that mode_t is defined.
48029         * tests/test-sys_stat.c: Likewise.
48030         * tests/test-sys_types.c: Likewise.
48031         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
48032         * doc/posix-headers/sys_stat.texi: Likewise.
48033         * doc/posix-headers/sys_types.texi: Likewise.
48035 2011-09-16  Bruno Haible  <bruno@clisp.org>
48037         sys_stat: Support for MSVC.
48038         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
48039         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
48040         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
48041         MSVC.
48043 2011-09-16  Bruno Haible  <bruno@clisp.org>
48045         Support for MSVC compiler: Ensure off_t gets defined.
48046         * lib/unistd.in.h: Include <sys/types.h>.
48047         * tests/test-fcntl-h.c: Check that off_t is defined.
48048         * tests/test-sys_stat.c: Likewise.
48049         * tests/test-sys_types.c: Likewise.
48051 2011-09-16  Eric Blake  <eblake@redhat.com>
48053         fdatasync: port to Solaris
48054         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
48055         * modules/fdatasync (Link): Document it.
48056         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
48058         fdatasync: port to MacOS X 10.7
48059         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
48060         declared.
48061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
48062         * modules/unistd (Makefile.am): Substitute it.
48063         * lib/unistd.in.h (fdatasync): Declare on MacOS.
48064         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
48066         fdatasync: minor improvements
48067         * modules/fdatasync (Depends-on): Add condition for fsync.
48068         * lib/fdatasync.c (fdatasync): Add comment.
48069         * tests/test-unistd-c++.cc: Test fdatasync.
48071         unistd: update refs to newer POSIX
48072         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
48073         Suggested by Bruno Haible.
48075         fdatasync: new module
48076         * modules/fsync (Description): Document difference to fdatasync.
48077         * modules/fdatasync: New module.
48078         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
48079         * lib/fdatasync.c (fdatasync): Likewise.
48080         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
48081         defaults.
48082         * modules/unistd (Makefile.am): Set witnesses.
48083         * lib/unistd.in.h (fdatasync): Declare.
48084         * MODULES.html.sh: Document it.
48085         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
48086         * modules/fdatasync-tests: New test.
48087         * tests/test-fdatasync.c: Likewise.
48089 2011-09-16  Eric Blake  <eblake@redhat.com>
48091         test-fsync: enhance tests
48092         * modules/fsync-tests (Depends-on): Add errno, for mingw.
48093         * tests/test-fsync.c (main): Enhance test.
48095 2011-09-15  Bruno Haible  <bruno@clisp.org>
48097         Support for MSVC compiler: Ensure ssize_t gets defined.
48098         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
48099         * doc/posix-headers/stdio.texi: Likewise.
48100         * modules/stdio (Depends-on): Add ssize_t.
48101         * modules/sys_socket (Depends-on): Likewise.
48102         * modules/sys_types (Depends-on): Likewise.
48103         * modules/sys_uio (Depends-on): Likewise.
48104         * modules/unistd (Depends-on): Likewise.
48105         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
48106         * tests/test-sys_types.c: Check that ssize_t is defined.
48108 2011-09-14  Bruno Haible  <bruno@clisp.org>
48110         Avoid using #, the m4 comment starter character, near brackets.
48111         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
48112         delimiter character in sed expressions.
48113         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
48114         Suggested by Eric Blake.
48116         Properly quote AC_CHECK_DECLS' 4th argument.
48117         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
48118         argument.
48119         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48120         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
48121         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
48122         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
48123         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48124         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
48125         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
48126         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
48127         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
48128         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
48129         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
48130         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
48131         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48132         * m4/isinf.m4 (gl_ISINF): Likewise.
48133         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
48134         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48135         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48136         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
48137         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
48138         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
48139         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
48140         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
48141         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
48142         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
48143         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48144         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48145         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
48146         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48147         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48148         Reported by Eric Blake.
48150         Properly quote AC_CHECK_DECL's 4th argument.
48151         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
48152         argument.
48153         * m4/argp.m4 (gl_ARGP): Likewise.
48154         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
48155         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
48156         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
48157         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
48158         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
48159         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
48160         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
48161         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
48162         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48163         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
48164         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
48165         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
48166         Reported by Eric Blake.
48168 2011-09-14  Eric Blake  <eblake@redhat.com>
48170         opendir: avoid compile warning
48171         * lib/opendir.c (includes): Always include errno.h.
48172         Reported by Tatsuro MATSUOKA.
48174 2011-09-14  Jim Meyering  <meyering@redhat.com>
48176         maint.mk: sc_tight_scope: propagate failure from sub-make
48177         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
48178         Reported by Martin von Gagern.
48180 2011-09-13  Bruno Haible  <bruno@clisp.org>
48182         tempname: Support for MSVC.
48183         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
48184         MSVC.
48185         * modules/tempname (Depends-on): Add fcntl-h.
48187 2011-09-13  Bruno Haible  <bruno@clisp.org>
48189         sys_time: Support for MSVC.
48190         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
48191         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
48192         include <winsock2.h>.
48193         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
48194         function declarations that collide with POSIX.
48195         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
48196         (Makefile.am): Substitute HAVE_WINSOCK2_H.
48198 2011-09-13  Bruno Haible  <bruno@clisp.org>
48200         stat: Support for MSVC.
48201         * lib/stat.c: Include pathmax.h.
48202         * modules/stat (Depends-on): Add pathmax.
48204         pathmax: Support for native Windows.
48205         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
48207 2011-09-12  Bruno Haible  <bruno@clisp.org>
48209         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
48210         * lib/dirent.in.h (struct dirent): New type.
48211         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
48212         DT_WHT): New macros.
48213         (DIR): New type.
48214         (opendir, closedir): Declare only if the module 'opendir' is enabled.
48215         (readdir, rewinddir): New declarations.
48216         * lib/dirent-private.h: New file.
48217         * lib/opendir.c: New file.
48218         * lib/readdir.c: New file.
48219         * lib/rewinddir.c: New file.
48220         * lib/closedir.c: New file.
48221         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
48222         * m4/opendir.m4: New file.
48223         * m4/readdir.m4: New file.
48224         * m4/rewinddir.m4: New file.
48225         * m4/closedir.m4: New file.
48226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
48227         REPLACE_CLOSEDIR here.
48228         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
48229         readdir, rewinddir are declared.
48230         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
48231         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
48232         HAVE_REWINDDIR, HAVE_CLOSEDIR.
48233         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
48234         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
48235         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
48236         * modules/opendir: New file.
48237         * modules/readdir: New file.
48238         * modules/rewinddir: New file.
48239         * modules/closedir: New file.
48240         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
48241         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
48242         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
48243         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
48244         * NEWS: Mention the 'fchdir' change.
48246 2011-09-11  Bruno Haible  <bruno@clisp.org>
48248         asm-underscore.m4: Support for MSVC.
48249         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
48250         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
48252 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
48254         Doc about crypt functions.
48255         * doc/posix-functions/crypt.texi: Expand range of glibc versions
48256         needing for _GNU_SOURCE to get crypt.
48257         * doc/posix-functions/encrypt.texi: Likewise.
48258         * doc/posix-functions/setkey.texi: Likewise.
48260 2011-09-11  Bruno Haible  <bruno@clisp.org>
48262         doc: Update regarding MSVC 9.
48263         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
48264         tested".
48265         * doc/posix-functions/*.texi: Update with info about MSVC 9.
48266         * doc/posix-headers/*.texi: Likewise.
48267         * doc/pastposix-functions/*.texi: Likewise.
48268         * doc/glibc-functions/*.texi: Likewise.
48269         * doc/glibc-headers/*.texi: Likewise.
48271 2011-09-11  Bruno Haible  <bruno@clisp.org>
48273         unistd et al.: Don't assume <unistd.h> exists.
48274         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
48275         does not exist.
48276         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
48277         exist. But include <stdlib.h>.
48278         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
48279         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
48280         symlink() does not exist.
48281         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
48282         include <io.h> instead.
48283         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
48284         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
48285         include <direct.h> instead.
48286         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
48287         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48288         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
48289         <io.h> instead.
48290         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
48291         correctly if the system does not have hard links.
48292         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
48293         <direct.h> instead.
48294         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
48295         it when looking for function declarations.
48296         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
48297         <direct.h> and <io.h> instead.
48298         * doc/posix-headers/unistd.texi: More details about MSVC problem.
48300 2011-09-11  Bruno Haible  <bruno@clisp.org>
48302         strcase: Support for MSVC.
48303         * modules/strcase (Status, Notice): Remove obsoletion mark.
48304         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
48305         * doc/posix-functions/strncasecmp.texi: Likewise.
48307         strings: Don't assume <strings.h> exists.
48308         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
48309         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
48310         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
48311         * doc/posix-headers/strings.texi: Mention the MSVC problem.
48313 2011-09-11  Bruno Haible  <bruno@clisp.org>
48315         dirent: Don't assume <dirent.h> exists.
48316         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
48317         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
48318         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
48319         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
48321 2011-09-11  Bruno Haible  <bruno@clisp.org>
48323         Fix wint_t on MSVC.
48324         * lib/wchar.in.h (wint_t): On MSVC, override it.
48325         * lib/wctype.in.h (wint_t): Likewise.
48326         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
48327         MSVC.
48328         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
48329         * doc/posix-headers/wctype.texi: Likewise.
48331 2011-09-11  Bruno Haible  <bruno@clisp.org>
48333         sys_types: Fix typo.
48334         * lib/sys_types.in.h: Fix typo in comment.
48335         Reported by Paul Eggert.
48337         Support for MSVC compiler: Ensure size_t gets defined.
48338         * modules/strings (Depends-on): Add 'sys_types'.
48339         * modules/sys_uio (Depends-on): Likewise.
48340         * lib/sys_uio.in.h: Update comment.
48342         C++ tests for module 'sys_types'.
48343         * modules/sys_types-c++-tests: New file.
48344         * tests/test-sys_types-c++.cc: New file.
48346         Tests for module 'sys_types'.
48347         * modules/sys_types-tests: New file.
48348         * tests/test-sys_types.c: New file.
48350         New module 'sys_types'.
48351         * lib/sys_types.in.h: New file.
48352         * m4/sys_types_h.m4: New file.
48353         * modules/sys_types: New file.
48354         * doc/posix-headers/sys_types.texi: Mention the new module and the
48355         size_t problem on MSVC 9.
48357 2011-09-11  Bruno Haible  <bruno@clisp.org>
48359         Support for MSVC compiler: Avoid division by a literal 0.
48360         * lib/math.in.h (NAN): Define through a function call also on MSVC.
48361         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
48362         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
48363         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
48364         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
48365         * tests/infinity.h: New file.
48366         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
48367         on MSVC.
48368         * tests/test-ceilf1.c: Include infinity.h.
48369         (main): Use Infinityf.
48370         * tests/test-ceil1.c: Include infinity.h.
48371         (main): Use Infinityd.
48372         * tests/test-ceill.c: Include infinity.h.
48373         (main): Use Infinityl.
48374         * tests/test-dprintf-posix.c: Include infinity.h.
48375         (test_function): Use Infinityd.
48376         * tests/test-floorf1.c: Include infinity.h.
48377         (main): Use Infinityf.
48378         * tests/test-floor1.c: Include infinity.h.
48379         (main): Use Infinityd.
48380         * tests/test-floorl.c: Include infinity.h.
48381         (main): Use Infinityl.
48382         * tests/test-fprintf-posix.c: Include infinity.h.
48383         (test_function): Use Infinityd.
48384         * tests/test-frexp.c: Include infinity.h.
48385         (main): Use Infinityd.
48386         * tests/test-frexpl.c: Include infinity.h.
48387         (main): Use Infinityl.
48388         * tests/test-isfinite.c: Include infinity.h.
48389         (test_isfinitef): Use Infinityf.
48390         (test_isfinited): Use Infinityd.
48391         (test_isfinitel): Use Infinityl.
48392         * tests/test-isinf.c: Include infinity.h.
48393         (test_isinff): Use Infinityf.
48394         (test_isinfd): Use Infinityd.
48395         (test_isinfl): Use Infinityl.
48396         * tests/test-isnan.c: Include infinity.h.
48397         (test_float): Use Infinityf.
48398         (test_double): Use Infinityd.
48399         (test_long_double): Use Infinityl.
48400         * tests/test-isnanf.h: Include infinity.h.
48401         (main): Use Infinityf.
48402         * tests/test-isnand.h: Include infinity.h.
48403         (main): Use Infinityd.
48404         * tests/test-isnanl.h: Include infinity.h.
48405         (main): Use Infinityl.
48406         * tests/test-ldexpl.c: Include infinity.h.
48407         (main): Use Infinityl.
48408         * tests/test-printf-posix.h: Include infinity.h.
48409         (test_function): Use Infinityd.
48410         * tests/test-roundf1.c: Include infinity.h.
48411         (main): Use Infinityf.
48412         * tests/test-round1.c: Include infinity.h.
48413         (main): Use Infinityd.
48414         * tests/test-roundl.c: Include infinity.h.
48415         (main): Use Infinityl.
48416         * tests/test-signbit.c: Include infinity.h.
48417         (test_signbitf): Use Infinityf.
48418         (test_signbitd): Use Infinityd.
48419         (test_signbitl): Use Infinityl.
48420         * tests/test-snprintf-posix.h: Include infinity.h.
48421         (test_function): Use Infinityd, Infinityl.
48422         * tests/test-sprintf-posix.h: Include infinity.h.
48423         (test_function): Use Infinityd, Infinityl.
48424         * tests/test-truncf1.c: Include infinity.h.
48425         (main): Use Infinityf.
48426         * tests/test-trunc1.c: Include infinity.h.
48427         (main): Use Infinityd.
48428         * tests/test-truncl.c: Include infinity.h.
48429         (main): Use Infinityl.
48430         * tests/test-vasnprintf-posix.c: Include infinity.h.
48431         (test_function): Use Infinityd, Infinityl.
48432         * tests/test-vasprintf-posix.c: Include infinity.h.
48433         (test_function): Use Infinityd, Infinityl.
48434         * modules/ceilf-tests (Files): Add tests/infinity.h.
48435         * modules/ceil-tests (Files): Likewise.
48436         * modules/ceill-tests (Files): Likewise.
48437         * modules/dprintf-posix-tests (Files): Likewise.
48438         * modules/floorf-tests (Files): Likewise.
48439         * modules/floor-tests (Files): Likewise.
48440         * modules/floorl-tests (Files): Likewise.
48441         * modules/fprintf-posix-tests (Files): Likewise.
48442         * modules/frexp-tests (Files): Likewise.
48443         * modules/frexp-nolibm-tests (Files): Likewise.
48444         * modules/frexpl-tests (Files): Likewise.
48445         * modules/frexpl-nolibm-tests (Files): Likewise.
48446         * modules/isfinite-tests (Files): Likewise.
48447         * modules/isinf-tests (Files): Likewise.
48448         * modules/isnan-tests (Files): Likewise.
48449         * modules/isnanf-tests (Files): Likewise.
48450         * modules/isnanf-nolibm-tests (Files): Likewise.
48451         * modules/isnand-tests (Files): Likewise.
48452         * modules/isnand-nolibm-tests (Files): Likewise.
48453         * modules/isnanl-tests (Files): Likewise.
48454         * modules/isnanl-nolibm-tests (Files): Likewise.
48455         * modules/ldexpl-tests (Files): Likewise.
48456         * modules/printf-posix-tests (Files): Likewise.
48457         * modules/roundf-tests (Files): Likewise.
48458         * modules/round-tests (Files): Likewise.
48459         * modules/roundl-tests (Files): Likewise.
48460         * modules/signbit-tests (Files): Likewise.
48461         * modules/snprintf-posix-tests (Files): Likewise.
48462         * modules/sprintf-posix-tests (Files): Likewise.
48463         * modules/truncf-tests (Files): Likewise.
48464         * modules/trunc-tests (Files): Likewise.
48465         * modules/truncl-tests (Files): Likewise.
48466         * modules/vasnprintf-posix-tests (Files): Likewise.
48467         * modules/vasprintf-posix-tests (Files): Likewise.
48468         * modules/vdprintf-posix-tests (Files): Likewise.
48469         * modules/vfprintf-posix-tests (Files): Likewise.
48470         * modules/vprintf-posix-tests (Files): Likewise.
48471         * modules/vsnprintf-posix-tests (Files): Likewise.
48472         * modules/vsprintf-posix-tests (Files): Likewise.
48473         * modules/xprintf-posix-tests (Files): Likewise.
48475 2011-09-11  Bruno Haible  <bruno@clisp.org>
48477         Ensure pid_t gets defined.
48478         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
48479         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
48480         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48481         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48482         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
48483         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
48484         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48485         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48486         * tests/test-fcntl-h.c: Check that pid_t is defined.
48487         * tests/test-sched.c: Likewise.
48488         * tests/test-termios.c: Likewise.
48489         * tests/test-time.c: Likewise.
48490         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
48491         * doc/posix-headers/signal.texi: Likewise.
48492         * doc/posix-headers/sys_types.texi: Likewise.
48493         * doc/posix-headers/time.texi: Likewise.
48495 2011-09-11  Bruno Haible  <bruno@clisp.org>
48497         acl: Fix compilation on Solaris 10 (older version).
48498         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
48499         of ACE_EVERYONE.
48500         * lib/set-mode-acl.c (qset_acl): Likewise.
48501         Reported by Christian Jullien <eligis@orange.fr>.
48503 2011-09-10  Bruno Haible  <bruno@clisp.org>
48505         iconv, unsetenv: Add support for MSVC compiler.
48506         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
48507         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
48509 2011-09-10  Bruno Haible  <bruno@clisp.org>
48511         *printf: Add support for MSVC compiler.
48512         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
48513         handles the exception caused by the %n directive. When cross-compiling,
48514         guess no on native Windows.
48515         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
48516         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
48517         emulate it through vsnprintf.
48518         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
48519         * doc/posix-functions/dprintf.texi: Update documentation regarding
48520         MSVC 9.
48521         * doc/posix-functions/fprintf.texi: Likewise.
48522         * doc/posix-functions/printf.texi: Likewise.
48523         * doc/posix-functions/snprintf.texi: Likewise.
48524         * doc/posix-functions/sprintf.texi: Likewise.
48525         * doc/posix-functions/swprintf.texi: Likewise.
48526         * doc/posix-functions/vdprintf.texi: Likewise.
48527         * doc/posix-functions/vfprintf.texi: Likewise.
48528         * doc/posix-functions/vprintf.texi: Likewise.
48529         * doc/posix-functions/vsnprintf.texi: Likewise.
48530         * doc/posix-functions/vsprintf.texi: Likewise.
48531         * doc/glibc-functions/asprintf.texi: Likewise.
48532         * doc/glibc-functions/obstack_printf.texi: Likewise.
48533         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48534         * doc/glibc-functions/vasprintf.texi: Likewise.
48536 2011-09-10  Bruno Haible  <bruno@clisp.org>
48538         nocrash: Add support for native Windows.
48539         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
48541 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
48542             Bruno Haible  <bruno@clisp.org>
48544         absolute-header, include-next: Add support for MSVC compiler.
48545         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
48546         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
48547         directory separator in #line directives.
48548         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
48549         recognize also backslash as directory separator in #line directives.
48551 2011-09-08  Jim Meyering  <meyering@redhat.com>
48553         maint.mk: mark the post-release commit log with "maint: " prefix
48554         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
48555         one-line commit-log summary.
48557 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
48558             Bruno Haible  <bruno@clisp.org>
48560         Doc about crypt functions.
48561         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
48562         systems.
48563         * doc/posix-functions/encrypt.texi: Likewise.
48564         * doc/posix-functions/setkey.texi: Likewise.
48566 2011-09-08  Simon Josefsson  <simon@josefsson.org>
48568         * lib/gc.h: Fix copyright header.
48570 2011-09-07  Bruno Haible  <bruno@clisp.org>
48572         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
48573         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
48574         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
48576 2011-09-07  Bruno Haible  <bruno@clisp.org>
48578         openat: Work around compilation error with OSF/1 5.1 DTK cc.
48579         * lib/fopen.c: Use different syntax for include of <stdio.h>.
48580         * lib/freopen.c: Likewise.
48581         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
48582         * lib/lstat.c: Likewise.
48583         * lib/stat.c: Likewise.
48584         * lib/open.c: Use different syntax for include of <fcntl.h>.
48585         * lib/openat.c: Include fcntl.h again, explicitly.
48587 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
48589         parse-datetime: document the newly accepted format
48590         * doc/parse-datetime.texi (Combined date and time of day items):
48591         New section.
48593 2011-09-06  Bruno Haible  <bruno@clisp.org>
48595         acl: Fix a test failure on newer Solaris 10 with ZFS.
48596         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
48597         ENOSYS as no ACL.
48598         Reported by Jim Meyering.
48600 2011-09-06  Bruno Haible  <bruno@clisp.org>
48602         acl: Update for AIX >= 5.3 with NFS.
48603         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
48604         ENOSYS as no ACL.
48606         acl: Fix a test failure on AIX >= 5.3 with NFS.
48607         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
48608         as no ACL.
48610 2011-09-06  Bruno Haible  <bruno@clisp.org>
48612         acl: Fix a test failure on IRIX 6.5 with NFS.
48613         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
48614         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
48615         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
48616         * lib/copy-acl.c (qcopy_acl): Likewise.
48618 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48620         openat: port to AIX 7.1 with large files
48621         AIX 7.1 does a "#define openat open64at" if large files are in use,
48622         so we can't simply #undef openat.  Use the orig_openat trick (similar
48623         to orig_open in lib/open.c) to work around the problem.  Problem
48624         reported by Kevin Brott for GNU tar, in the thread containing
48625         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
48626         * lib/openat.c (__need_system_fcntl_h): Define first.
48627         Include <fcntl.h> and <sys/types.h> before undefining.
48628         (orig_openat) [HAVE_OPENAT]: New inline function.
48629         (openat) [HAVE_OPENAT]: Do not undef.
48630         (rpl_openat): Use orig_openat, not openat.
48632 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48633             Bruno Haible  <bruno@clisp.org>
48635         acl: Avoid errors on NonStop Kernel.
48636         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
48637         ENOTSUP errors.
48639 2011-09-05  Bruno Haible  <bruno@clisp.org>
48641         acl: Clean up Solaris code.
48642         * lib/acl-internal.h: Remove no-op #if.
48643         * lib/file-has-acl.c: Likewise.
48644         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
48645         * lib/copy-acl.c (qcopy_acl): Likewise.
48647 2011-09-05  Bruno Haible  <bruno@clisp.org>
48649         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
48650         binaries built on the original Solaris 10.
48651         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
48652         trivial.
48654 2011-09-05  Bruno Haible  <bruno@clisp.org>
48656         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
48657         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
48658         10.
48659         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
48660         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
48661         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
48662         instead of acl_get, facl_get, acl_set, facl_set.
48664 2011-09-05  Bruno Haible  <bruno@clisp.org>
48666         copy-file: Try unit tests on more file systems.
48667         * tests/test-copy-file-1.sh: New file.
48668         * tests/test-copy-file-2.sh: New file.
48669         * modules/copy-file-tests (Files): Add them.
48670         (Makefile.am): Add them to TESTS.
48672         acl: Try unit tests on more file systems.
48673         * tests/test-file-has-acl-1.sh: New file.
48674         * tests/test-file-has-acl-2.sh: New file.
48675         * tests/test-set-mode-acl-1.sh: New file.
48676         * tests/test-set-mode-acl-2.sh: New file.
48677         * tests/test-copy-acl-1.sh: New file.
48678         * tests/test-copy-acl-2.sh: New file.
48679         * modules/acl-tests (Files): Add them.
48680         (Makefile.am): Add them to TESTS.
48682 2011-09-04  Bruno Haible  <bruno@clisp.org>
48684         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
48685         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
48686         10.
48687         (OLD_ALLOW, OLD_DENY): New macros.
48688         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
48689         ACE_ACCESS_ALLOWED_ACE_TYPE.
48690         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
48691         ACE_ACCESS_DENIED_ACE_TYPE.
48692         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
48693         (NEW_ACE_EXECUTE): Fix value.
48694         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
48695         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
48696         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
48697         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
48698         NEW_ACE_SYNCHRONIZE): New macros.
48699         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
48700         instead of acl_fromtext, acl_set, facl_set.
48701         Fixes a coreutils/tests/cp/perm failure.
48703 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
48705         openat: test for fstatat (..., 0) bug
48706         Further testing with tar suggests that fstatat (..., 0)
48707         does not work in general, on AIX 7.1; see
48708         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
48709         So, give up entirely on AIX 7.1's fstatat, and fall back on our
48710         replacement fstatat (which is what older AIX releases were using
48711         anyway).
48712         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
48713         use is now changed to orig_fstatat.  This was probably the right
48714         thing to do anyway.
48715         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
48716         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
48717         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
48718         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
48719         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
48720         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
48721         if the bug is found.
48723         openat: test for fstatat (AT_FDCWD, ..., 0) bug
48724         This tests for another fstatat bug on AIX 7.1:
48725         fstatat (AT_FDCWD, ..., 0) does not work.  See
48726         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
48727         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
48728         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
48729         (rpl_fstatat): Adjust so that it works around either (or both)
48730         bugs if present.
48731         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
48733 2011-09-03  Karl Berry  <karl@gnu.org>
48735         * doc/regex.texi (Character Class Operators): Avoid literal ":"
48736         in index entries.
48738 2011-09-02  Bruno Haible  <bruno@clisp.org>
48740         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
48741         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
48742         values of AR, ARFLAGS, RANLIB.
48743         Reported by John W. Eaton <jwe@gnu.org> for Octave.
48745 2011-09-02  Bruno Haible  <bruno@clisp.org>
48747         Find 'ar' program that fits with --host argument.
48748         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
48750 2011-09-02  Bruno Haible  <bruno@clisp.org>
48752         tests: init.sh: Support any non-GNU diff.
48753         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
48754         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
48755         Solaris 8.
48757 2011-09-02  Bruno Haible  <bruno@clisp.org>
48759         tests: init.sh: work also with any non-GNU diff that supports -u
48760         * tests/init.sh: Relax check for diff -u support.
48761         Rather than checking for GNU diff via --version, simply check
48762         for support for -u itself.  Useful at least on OpenBSD 4.9,
48763         AIX 7.1, IRIX 6.5, and Solaris 10.
48765 2011-09-01  Bruno Haible  <bruno@clisp.org>
48767         strtoimax, strtoumax: Document problem on HP-UX 11.
48768         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
48769         * doc/posix-functions/strtoumax.texi: Likewise.
48771 2011-09-01  Bruno Haible  <bruno@clisp.org>
48773         strtoumax: Avoid link error on OSF/1 with DTK cc.
48774         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
48775         defined as a function.
48776         * modules/strtoumax (Depends-on, configure.ac): Test only whether
48777         strtoumax is defined, not whether it is declared.
48779 2011-09-01  Bruno Haible  <bruno@clisp.org>
48781         strtoimax: Avoid link error on OSF/1 with DTK cc.
48782         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
48783         defined as a function.
48784         * modules/strtoimax (Depends-on, configure.ac): Test only whether
48785         strtoimax is defined, not whether it is declared.
48787 2011-09-01  Bruno Haible  <bruno@clisp.org>
48789         imaxdiv: Avoid link error on OSF/1 with DTK cc.
48790         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
48791         as a function.
48792         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
48793         whether it is declared.
48795 2011-09-01  Bruno Haible  <bruno@clisp.org>
48797         imaxabs: Avoid link error on OSF/1 with DTK cc.
48798         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
48799         as a function.
48800         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
48801         whether it is declared.
48803 2011-09-01  Bruno Haible  <bruno@clisp.org>
48805         Tests for module 'strtoumax'.
48806         * modules/strtoumax-tests: New file.
48807         * tests/test-strtoumax.c: New file.
48809         Tests for module 'strtoimax'.
48810         * modules/strtoimax-tests: New file.
48811         * tests/test-strtoimax.c: New file.
48813         Tests for module 'imaxdiv'.
48814         * modules/imaxdiv-tests: New file.
48815         * tests/test-imaxdiv.c: New file.
48817         Tests for module 'imaxabs'.
48818         * modules/imaxabs-tests: New file.
48819         * tests/test-imaxabs.c: New file.
48821 2011-09-01  Bruno Haible  <bruno@clisp.org>
48823         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
48824         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
48825         pthread_create.
48827 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48829         openat: work around AIX 7.1 fstatat issue
48830         This should fix the problem that was not properly fixed
48831         in the previous change, dated 2011-08-30.
48832         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
48833         __need_system_stat_h defined.
48834         (orig_fstatat) [HAVE_FSTATAT]: New function.
48835         (rpl_fstatat): Go back to the old way of doing things,
48836         except call orig_fstatat instead of fstatat.
48837         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
48838         Remove unnecessary check whether fstatat fills in st_size etc.
48840 2011-09-01  Bruno Haible  <bruno@clisp.org>
48842         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
48843         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
48844         just include the system's header.
48846 2011-08-31  Jim Meyering  <meyering@redhat.com>
48848         tests: avoid spurious assertion failure in test-float.c on ppc64
48849         * tests/test-float.c (test_long_double): Comment out an assertion,
48850         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
48851         with gcc-4.4.4.
48853         maint: indent with spaces, not TABs
48854         I need to get in the habit of running gnulib's "make check".
48855         Both of these would have been caught.
48856         * m4/largefile.m4: Indent with spaces, not TABs.
48857         * lib/parse-datetime.y (iso_8601_time): Likewise.
48858         Spotted by Pádraig Brady.
48860         test-parse-datetime.c: accommodate a relatively strict gcc warning
48861         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
48862         to avoid a warning from gcc's -Werror=missing-declarations.
48863         Insert a few spaces-before-funcall-parenthesis.
48865 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
48867         parse-datetime: accept ISO 8601 date and time rep with "T" separator
48868         The parser now accepts ISO 8601 date-time strings with "T" as the
48869         separator.  It has long parsed dates like "2004-02-29 16:21:42"
48870         with a space between the date and time strings.  Now it also parses
48871         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
48872         variants like "2004-02-29T16:21:42.333-07:00"
48873         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
48874         of day representation using the 'T' separator character.
48875         * doc/parse-datetime.texi (General date syntax): replace use of
48876         deprecated --iso-8601 option with --rfc-3339 in example of date
48877         command output formats that can be parsed.
48878         * tests/test-parse-datetime.c (tm_diff): New function, taken from
48879         lib/parse-datetime.y.
48880         (gmt_offset): New function.
48881         (main): Add additional test cases to validate ISO8601 extended
48882         date and time of day parsing.
48884 2011-08-31  Bruno Haible  <bruno@clisp.org>
48886         freopen: Documentation.
48887         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
48888         name.
48889         Reported by Claudio Bley <claudio.bley@gmail.com>.
48891 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
48893         freopen: Don't crash if the filename argument is NULL.
48894         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
48895         NULL.
48897 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48899         openat: work around AIX 7.1 fstatat bug
48900         Problem reported by Kevin Brott for GNU tar, in the thread containing
48901         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
48902         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
48903         FSTATAT_ST_SIZE_ETC_BROKEN.
48904         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
48905         rpl_fstatat.
48906         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
48907         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
48908         AC_CHECK_FUNCS_ONCE for fstatat.
48909         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
48910         fchmodat, mkdirat, openat and unlinkat.
48912 2011-08-30  Bruno Haible  <bruno@clisp.org>
48914         Avoid endless recursions if config.h includes some header files.
48915         * lib/fopen.c (__need_FILE): Define already before including config.h.
48916         * lib/freopen.c (__need_FILE): Likewise.
48917         * lib/open.c (__need_system_fcntl_h): Likewise.
48918         * lib/stat.c (__need_system_sys_stat_h): Likewise.
48919         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
48920         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
48922 2011-08-25  Karl Berry  <karl@gnu.org>
48924         * config/srclist.txt (ylwrap): new try.
48925         * build-aux/ylwrap: new file.
48927 2011-08-23  Bruno Haible  <bruno@clisp.org>
48929         tmpdir: Use a good default directory on native Windows.
48930         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
48931         (P_tmpdir): Default to _P_tmpdir on native Windows.
48932         (path_search): On native Windows, try the value returned by GetTempPath
48933         before trying P_tmpdir.
48934         * modules/tmpdir (Depends-on): Add pathmax.
48935         Suggested by John Darrington <john@darrington.wattle.id.au>.
48937 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
48939         doc: fix typo in README-release
48940         * top/README-release: Capitalize first word of a sentence.
48942 2011-08-19  Jim Meyering  <meyering@redhat.com>
48944         fts: do not exhaust memory when processing million-entry directories
48945         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
48946         directory would require about 256*N bytes of memory.  Thus, it was
48947         easy to construct a directory too large to be processed by any of
48948         those tools.  With this change, fts' maximum memory utilization is
48949         now limited to around 30MB.
48950         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
48951         (fts_read): When we've processed the final entry (i.e., when
48952         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
48953         using the parent entry to read any remaining entries.  Dispatch
48954         depending on what fts_build returns:
48955         - NULL+stop, aka failure: stop
48956         - NULL otherwise: move up in the dir hierarchy
48957         - non-NULL: handle this new entry
48958         (fts_build): Declare and use new local, continue_readdir.
48959         Prepare to be called from fts_read, when the entries
48960         from a partially-read directory have just been exhausted.
48961         In that case, we'll skip the opendir and instead use the parent's
48962         fts_dirp and derive dir_fd from that.
48963         Finally, in the readdir loop, if we read max_entries entries,
48964         exit the loop ensuring *not* to call closedir.  This is required
48965         so that fts_dirp can be reused on a subsequent call.
48966         Prompted by Ben England's report of memory exhaustion in find
48967         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
48969         maint: fts: move decl of `dp' down into while loop; split a long line
48970         * lib/fts.c (fts_build): No semantic change.
48972         fts: add/use new struct member, fts_dirp
48973         We are about to use this to manage any directory with
48974         too many entries to read all of them into memory at once.
48975         To do that, we'll need to save the DIR* pointer in each
48976         affected FTSENT struct.
48977         * lib/fts_.h: Include <dirent.h>.
48978         (struct FTSENT) [fts_dirp]: New member.
48979         * lib/fts.c (closedir_and_clear): Define.
48980         Use it in place of closedir so that we are sure to
48981         clear the new fts_dirp member when done with it.
48982         (fts_alloc): Initialize the new member.
48983         (fts_lfree): Free, if needed.
48985         maint: fts: give __opendir2 a new parameter and rename
48986         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
48987         than surreptitiously using sole caller's "dir_fd".
48988         (fts_opendir): Rename from __opendir2.
48990         maint: fts.c: remove __opendir2's now-unused parameter, oflag
48991         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
48993         maint: fts.c: correct off-by-one indentation
48994         * lib/fts.c (fts_build): Correct indentation, change style
48995         of a couple of block comments, and bracing style.
48997         maint: fts.c: move __opendir2 #define "up" out of function body
48998         * lib/fts.c (__opendir2): Move "up".  No semantic change.
49000         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
49001         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
49002         out for a long time and besides was useful only on BSD systems.
49004 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49006         regex: port to Stratus OpenVOS
49007         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
49008         define to empty, rather than attempting nonportable optimizations.
49009         Problem reported by Paul Green in:
49010         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
49011         and fix suggested by Eric Blake in:
49012         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
49014 2011-08-17  Eric Blake  <eblake@redhat.com>
49016         getcwd: fix test failures on mingw
49017         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
49018         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
49019         test if long directory cannot be created, and allow mingw errno.
49021         getcwd-lgpl: fix m4 to match relaxed test for BSD
49022         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
49023         (gl_FUNC_GETCWD_SIGNATURE): New macro.
49024         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
49025         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
49026         signature problem.
49028         getcwd: fix compilation on mingw64
49029         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
49030         getcwd.
49031         Reported by Marc-André Lureau.
49033         pipe2: silence compiler warning
49034         * lib/pipe2.c (pipe2): Hide label if it is not used.
49036 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
49038         relocatable-prog: fix link error
49039         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
49040         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
49041         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
49042         into modules/relocatable-lib without noticing that
49043         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
49044         also needs to build relocatable.c.
49046 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
49048         getaddrinfo: fix sh typo in gai_strerrorA decl checking
49049         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
49050         shell code: it contained a 'break' that was not in a loop.
49051         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
49052         via a shell-language loop; this may have been true in old Autoconf
49053         versions, but it's not true in Autoconf 2.68.  I found this bug
49054         when testing coreutils git on Solaris 8, whose shell complains
49055         about the syntax error.
49057 2011-08-12  Simon Josefsson  <simon@josefsson.org>
49059         * lib/base64.c: Fix comment to reference RFC 4648.
49060         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
49061         <gvtulder@gmail.com>.
49063 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49065         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
49067         po/Makefile.in.in: fix make -q problem
49068         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
49069         rule, since there's no file named 'check-macro-version' and its
49070         use as a file breaks make -q.
49071         (all): Don't depend on check-macro-version.
49072         (CHECK_MACRO_VERSION): New macro.
49073         (stamp-po): Use it.
49075         configmake: fix make -q problem
49076         * modules/configmake (configmake.h): Update configmake.h's time stamp
49077         even if the file does not change.  Otherwise, 'make -q' fails.
49078         Problem reported by Simon Josefsson in
49079         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
49081 2011-08-11  Jim Meyering  <meyering@redhat.com>
49083         git-version-gen: correct the advice in a comment
49084         * build-aux/git-version-gen: Correct comment.
49085         Don't recommend to list .tarball-version in .gitignore.
49087 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49089         base64: fix off-by-one buffer size bug
49090         Problem and (trivial) fix reported by Gijs van Tulder in
49091         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
49092         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
49093         * tests/test-base64.c (main): Catch the bug.
49095 2011-08-10  Eric Blake  <eblake@redhat.com>
49097         closein: correct comments
49098         * lib/closein.c (close_stdin): Improve comments.
49100 2011-08-09  Bruno Haible  <bruno@clisp.org>
49102         More tests for 'fseeko'.
49103         * tests/test-fseeko3.c: New file, from Eric Blake.
49104         * tests/test-fseeko3.sh: New file.
49105         * modules/fseeko-tests (Files): Add them.
49106         (TESTS): Add test-fseeko3.sh.
49107         (check_PROGRAMS): Add test-fseeko3.
49109 2011-08-09  Eric Blake  <eblake@redhat.com>
49111         fseeko: remove unneeded hack
49112         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
49114         fseeko: fix bug on glibc
49115         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
49116         Reported by John W. Eaton.
49118 2011-08-08  Bruno Haible  <bruno@clisp.org>
49120         unictype/base: Fix interoperability with preinstalled libunistring.
49121         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
49122         Reported by Simon Josefsson.
49124 2011-08-08  Bruno Haible  <bruno@clisp.org>
49126         iswblank: Detect declaration correctly.
49127         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
49128         AC_CHECK_DECLS invocation.
49130 2011-08-08  Bruno Haible  <bruno@clisp.org>
49132         tcgetsid: Detect declaration correctly.
49133         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
49134         AC_CHECK_DECLS invocation.
49135         Reported by Simon Josefsson.
49137 2011-08-08  Eric Blake  <eblake@redhat.com>
49139         largefile: fix typo that regressed large file support
49140         * modules/largefile (configure.ac-early): Fix section name.
49142 2011-08-06  Karl Berry  <karl@gnu.org>
49144         * MODULES.html.sh (func_all_files): _Noreturn is no longer
49145         a separate module.
49147 2011-08-05  Simon Josefsson  <simon@josefsson.org>
49149         openat: Fix warnings and commens when building unlinkat.c on Hurd.
49150         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
49151         get prototype for free.
49153 2011-08-04  Bruno Haible  <bruno@clisp.org>
49155         Tests for module 'pathmax'.
49156         * modules/pathmax-tests: New file.
49157         * tests/test-pathmax.c: New file.
49159         canonicalize-lgpl: Support larger filenames on the Hurd.
49160         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
49161         Reported by Paul Eggert.
49163         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
49164         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
49165         * lib/chdir-long.h: Include pathmax.h.
49166         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
49167         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
49168         (PATH_MAX): Remove code that is done by pathmax.h.
49169         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
49170         * lib/tmpfile.c: Add a comment.
49171         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
49172         * modules/chdir-long (Depends-on): Add pathmax.
49173         * modules/getcwd (Depends-on): Add pathmax.
49174         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
49175         is not defined.
49176         * doc/posix-headers/limits.texi: Mention the pathmax module.
49177         * NEWS: Mention the change.
49179 2011-08-02  Bruno Haible  <bruno@clisp.org>
49181         pthread_sigmask: Actually use results of gl_THREADLIB.
49182         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
49183         gl_THREADLIB, not gl_[]THREADLIB.
49184         Reported by Eric Blake.
49186 2011-08-02  Jim Meyering  <meyering@redhat.com>
49188         maint.mk: relax the default _gl_TS_function_match regexp
49189         * top/maint.mk (_gl_TS_function_match): Don't require at least one
49190         space between function name and "(" in an "extern" declaration.
49191         That would fail to match a decl with no space there: extern void foo();
49193 2011-07-31  Iain Nicol  <iain@thenicols.net>
49195         git-version-gen: document that EXTRA_DIST must include .version
49196         * build-aux/git-version-gen: In the how-to-use comment, document
49197         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
49198         will fail when run from an unpacked distribution tarball.
49200 2011-08-01  Bruno Haible  <bruno@clisp.org>
49202         wctype-h: Fix last change.
49203         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
49204         REPLACE_TOWLOWER to 0.
49205         Reported by Sam Steingold <sds@gnu.org>.
49207 2011-07-31  Bruno Haible  <bruno@clisp.org>
49209         frexpl: Update autoconf test.
49210         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
49211         according to changes of 2011-06-20.
49213 2011-07-31  Bruno Haible  <bruno@clisp.org>
49215         sys_utsname: Add support for Minix.
49216         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
49217         <sys/utsname.h>.
49218         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
49219         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
49221 2011-07-31  Bruno Haible  <bruno@clisp.org>
49223         strings: Add support for Minix.
49224         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
49225         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
49226         * doc/posix-headers/strings.texi: Document the Minix problem.
49228 2011-07-31  Bruno Haible  <bruno@clisp.org>
49230         wctype-h: Add support for Minix.
49231         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
49232         REPLACE_TOWLOWER.
49233         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
49234         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
49235         REPLACE_ISWCNTRL.
49237 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
49239         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
49240         This is a performance improvement for 64-bit hosts: it causes the
49241         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
49243 2011-07-31  Bruno Haible  <bruno@clisp.org>
49245         stdioext: Add support for Minix.
49246         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
49247         * lib/fpurge.c (fpurge): Likewise.
49248         * lib/freadahead.c (freadahead): Likewise.
49249         * lib/freadable.c (freadable): Likewise.
49250         * lib/freading.c (freading): Likewise.
49251         * lib/freadptr.c (freadptr): Likewise.
49252         * lib/freadseek.c (freadptrinc): Likewise.
49253         * lib/fseeko.c (rpl_fseeko): Likewise.
49254         * lib/fseterr.c (fseterr): Likewise.
49255         * lib/fwritable.c (fwritable): Likewise.
49256         * lib/fwriting.c (fwriting): Likewise.
49257         * lib/fflush.c (clear_ungetc_buffer): Update comment.
49258         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
49260 2011-07-31  Bruno Haible  <bruno@clisp.org>
49262         errno: Port to Minix.
49263         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
49264         ECONNABORTED are defined.
49265         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
49266         GNULIB_defined_ECONNABORTED): New macros.
49267         * lib/strerror-override.h (strerror_override): Test also
49268         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
49269         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
49270         ECONNABORTED.
49271         * doc/posix-headers/errno.texi: Mention the Minix problem.
49273 2011-07-31  Bruno Haible  <bruno@clisp.org>
49275         Work around declaration collisions on Minix.
49276         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
49277         defined, set REPLACE_MBSINIT.
49278         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
49279         defined, set REPLACE_MBRTOWC.
49280         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
49281         set REPLACE_MBRLEN.
49282         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
49283         defined, set REPLACE_MBSRTOWCS.
49284         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
49285         defined, set REPLACE_WCRTOMB.
49286         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
49287         defined, set REPLACE_WCSRTOMBS.
49289 2011-07-31  Bruno Haible  <bruno@clisp.org>
49291         Add support for Minix with ACK compiler.
49292         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
49293         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
49294         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
49296 2011-07-31  Bruno Haible  <bruno@clisp.org>
49298         Documentation about Minix.
49299         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
49300         * doc/glibc-headers/*.texi: Likewise.
49301         * doc/posix-functions/*.texi: Likewise.
49302         * doc/glibc-functions/*.texi: Likewise.
49304 2011-07-31  Bruno Haible  <bruno@clisp.org>
49306         snippet/warn-on-use: Fix indentation.
49307         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
49309 2011-07-25  Jim Meyering  <meyering@redhat.com>
49311         tests: test-update-copyright.sh: remove unnecessary "rm" commands
49312         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
49313         commands.
49315 2011-07-27  Jim Meyering  <meyering@redhat.com>
49317         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
49318         * top/maint.mk (gl_extract_significant_defines_): Now that
49319         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
49320         gnulib/lib/signal.in.h, and now that we recommend to
49321         define-if-undefined those two symbols in application code,
49322         we must filter them out of the "significant" list.
49323         This avoids a "make syntax-check" failure in coreutils.
49325 2011-07-26  Eric Blake  <eblake@redhat.com>
49327         warnings: add comments about previous patch
49328         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
49329         * m4/include_next.m4: Likewise.
49330         * m4/warn-on-use.m4: Likewise.
49331         * m4/warnings.m4: Likewise, and simplify use.
49332         Suggested by Stefano Lattarini.
49334         include-next, warnings: support older autoconf
49335         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
49336         AS_VAR_PUSHDEF in a way that works with older autoconf.
49337         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
49338         Reported by Daniel P. Berrange.
49340 2011-07-25  Bruno Haible  <bruno@clisp.org>
49342         fseek, ftell: Fix doc.
49343         * doc/posix-functions/fseek.texi: Reword statement about
49344         AC_SYS_LARGEFILE.
49345         * doc/posix-functions/ftell.texi: Likewise.
49347 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49348             Bruno Haible  <bruno@clisp.org>
49350         Add dependencies to the 'largefile' module.
49351         * modules/fopen (Depends-on): Add 'largefile'.
49352         * modules/freopen (Depends-on): Likewise.
49353         * modules/fseeko (Depends-on): Likewise.
49354         * modules/ftello (Depends-on): Likewise.
49355         * modules/glob (Depends-on): Likewise.
49356         * modules/lseek (Depends-on): Likewise.
49357         * modules/lstat (Depends-on): Likewise.
49358         * modules/mkostemp (Depends-on): Likewise.
49359         * modules/mkostemps (Depends-on): Likewise.
49360         * modules/mkstemp (Depends-on): Likewise.
49361         * modules/mkstemps (Depends-on): Likewise.
49362         * modules/open (Depends-on): Likewise.
49363         * modules/openat (Depends-on): Likewise.
49364         * modules/pread (Depends-on): Likewise.
49365         * modules/pwrite (Depends-on): Likewise.
49366         * modules/scandir (Depends-on): Likewise.
49367         * modules/stat (Depends-on): Likewise.
49368         * modules/tmpfile (Depends-on): Likewise.
49369         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
49370         since the containing module now depends on the largefile module.
49371         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
49372         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
49373         off_t is fixed by gnulib.
49374         * doc/posix-functions/freopen.texi: Likewise.
49375         * doc/posix-functions/fseeko.texi: Likewise.
49376         * doc/posix-functions/fstatat.texi: Likewise.
49377         * doc/posix-functions/ftello.texi: Likewise.
49378         * doc/posix-functions/glob.texi: Likewise.
49379         * doc/posix-functions/lseek.texi: Likewise.
49380         * doc/posix-functions/lstat.texi: Likewise.
49381         * doc/posix-functions/mkstemp.texi: Likewise.
49382         * doc/posix-functions/open.texi: Likewise.
49383         * doc/posix-functions/openat.texi: Likewise.
49384         * doc/posix-functions/pread.texi: Likewise.
49385         * doc/posix-functions/pwrite.texi: Likewise.
49386         * doc/posix-functions/scandir.texi: Likewise.
49387         * doc/posix-functions/stat.texi: Likewise.
49388         * doc/posix-functions/tmpfile.texi: Likewise.
49389         * doc/glibc-functions/mkostemp.texi: Likewise.
49390         * doc/glibc-functions/mkostemps.texi: Likewise.
49391         * doc/glibc-functions/mkstemps.texi: Likewise.
49393 2011-07-25  Bruno Haible  <bruno@clisp.org>
49395         fcntl: Move AC_LIBOBJ invocation to module description.
49396         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
49397         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
49399         fcntl: Remove call-in from fchdir.m4.
49400         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
49401         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
49403         dup3: Remove potential call-in from fchdir.m4.
49404         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
49405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
49407         dup2: Move AC_LIBOBJ invocation to module description.
49408         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
49409         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
49410         Don't invoke AC_LIBOBJ.
49411         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
49413         dup2: Remove call-in from fchdir.m4.
49414         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
49415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
49417         fclose: Move AC_LIBOBJ invocation to module description.
49418         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
49419         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
49420         to 1.
49421         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
49423         fclose: Remove call-in from close.m4.
49424         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
49425         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
49427         close: Move AC_LIBOBJ invocation to module description.
49428         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
49429         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
49430         1.
49431         * modules/close (configure.ac): Invoke AC_LIBOBJ.
49433         close: Remove call-in from fchdir.m4.
49434         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
49435         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
49437         open: Move AC_LIBOBJ invocation to module description.
49438         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
49439         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
49440         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
49442         open: Remove call-in from fchdir.m4.
49443         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
49444         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
49446         fchdir: Start to remove gl_REPLACE_* idiom.
49447         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
49448         (gl_FUNC_FCHDIR): Invoke it.
49450 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49452         * lib/ftell.c (ftell): Comment out cast.
49454         close: use gl_REPLACE_FCLOSE only if defined
49455         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
49456         is defined.  The close module doesn't depend on the fclose module
49457         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
49458         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
49459         I reproduced the problem with "./gnulib-tool --test close sys_socket".
49461 2011-07-24  Jim Meyering  <meyering@redhat.com>
49463         test-select.h: avoid warning when using gcc's -Wmissing-declarations
49464         * tests/test-select.h (test_function): Declare as "static".
49466 2011-07-24  Bruno Haible  <bruno@clisp.org>
49468         doc: Mention the effects of AC_SYS_LARGEFILE.
49469         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
49470         on this function.
49471         * doc/posix-functions/aio_error.texi: Likewise.
49472         * doc/posix-functions/aio_fsync.texi: Likewise.
49473         * doc/posix-functions/aio_read.texi: Likewise.
49474         * doc/posix-functions/aio_return.texi: Likewise.
49475         * doc/posix-functions/aio_suspend.texi: Likewise.
49476         * doc/posix-functions/aio_write.texi: Likewise.
49477         * doc/posix-functions/fgetpos.texi: Likewise.
49478         * doc/posix-functions/fopen.texi: Likewise.
49479         * doc/posix-functions/freopen.texi: Likewise.
49480         * doc/posix-functions/fsetpos.texi: Likewise.
49481         * doc/posix-functions/fstatvfs.texi: Likewise.
49482         * doc/posix-functions/ftruncate.texi: Likewise.
49483         * doc/posix-functions/ftw.texi: Likewise.
49484         * doc/posix-functions/getrlimit.texi: Likewise.
49485         * doc/posix-functions/glob.texi: Likewise.
49486         * doc/posix-functions/lio_listio.texi: Likewise.
49487         * doc/posix-functions/lockf.texi: Likewise.
49488         * doc/posix-functions/mkstemp.texi: Likewise.
49489         * doc/posix-functions/mmap.texi: Likewise.
49490         * doc/posix-functions/nftw.texi: Likewise.
49491         * doc/posix-functions/openat.texi: Likewise.
49492         * doc/posix-functions/opendir.texi: Likewise.
49493         * doc/posix-functions/posix_fadvise.texi: Likewise.
49494         * doc/posix-functions/posix_fallocate.texi: Likewise.
49495         * doc/posix-functions/pread.texi: Likewise.
49496         * doc/posix-functions/pwrite.texi: Likewise.
49497         * doc/posix-functions/readdir.texi: Likewise.
49498         * doc/posix-functions/readdir_r.texi: Likewise.
49499         * doc/posix-functions/rewinddir.texi: Likewise.
49500         * doc/posix-functions/scandir.texi: Likewise.
49501         * doc/posix-functions/seekdir.texi: Likewise.
49502         * doc/posix-functions/setrlimit.texi: Likewise.
49503         * doc/posix-functions/statvfs.texi: Likewise.
49504         * doc/posix-functions/telldir.texi: Likewise.
49505         * doc/posix-functions/tmpfile.texi: Likewise.
49506         * doc/posix-functions/truncate.texi: Likewise.
49507         * doc/glibc-functions/fallocate.texi: Likewise.
49508         * doc/glibc-functions/fstatfs.texi: Likewise.
49509         * doc/glibc-functions/fts_children.texi: Likewise.
49510         * doc/glibc-functions/fts_read.texi: Likewise.
49511         * doc/glibc-functions/getdirentries.texi: Likewise.
49512         * doc/glibc-functions/mkostemp.texi: Likewise.
49513         * doc/glibc-functions/mkostemps.texi: Likewise.
49514         * doc/glibc-functions/mkstemps.texi: Likewise.
49515         * doc/glibc-functions/preadv.texi: Likewise.
49516         * doc/glibc-functions/pwritev.texi: Likewise.
49517         * doc/glibc-functions/sendfile.texi: Likewise.
49518         * doc/glibc-functions/statfs.texi: Likewise.
49520 2011-07-24  Bruno Haible  <bruno@clisp.org>
49522         doc: Fix typo.
49523         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
49525 2011-07-24  Bruno Haible  <bruno@clisp.org>
49527         doc: Mention fsusage.
49528         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
49530 2011-07-24  Bruno Haible  <bruno@clisp.org>
49532         doc: Mention new glibc headers and functions.
49533         * doc/glibc-headers/gshadow.texi: New file.
49534         * doc/glibc-functions/endsgent.texi: New file.
49535         * doc/glibc-functions/fgetsgent.texi: New file.
49536         * doc/glibc-functions/fgetsgent_r.texi: New file.
49537         * doc/glibc-functions/getsgent.texi: New file.
49538         * doc/glibc-functions/getsgent_r.texi: New file.
49539         * doc/glibc-functions/getsgnam.texi: New file.
49540         * doc/glibc-functions/getsgnam_r.texi: New file.
49541         * doc/glibc-functions/putsgent.texi: New file.
49542         * doc/glibc-functions/setsgent.texi: New file.
49543         * doc/glibc-functions/sgetsgent.texi: New file.
49544         * doc/glibc-functions/sgetsgent_r.texi: New file.
49545         * doc/glibc-functions/malloc_info.texi: New file.
49546         * doc/glibc-functions/preadv.texi: New file.
49547         * doc/glibc-functions/pwritev.texi: New file.
49548         * doc/glibc-functions/register_printf_modifier.texi: New file.
49549         * doc/glibc-functions/register_printf_specifier.texi: New file.
49550         * doc/glibc-functions/register_printf_type.texi: New file.
49551         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
49552         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
49553         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
49554         * doc/glibc-functions/pthread_getname_np.texi: New file.
49555         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
49556         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
49557         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
49558         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
49559         * doc/glibc-functions/pthread_setname_np.texi: New file.
49560         * doc/glibc-functions/pthread_sigqueue.texi: New file.
49561         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
49562         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
49563         * doc/glibc-functions/qsort_r.texi: New file.
49564         * doc/glibc-functions/quick_exit.texi: New file.
49565         * doc/glibc-functions/syncfs.texi: New file.
49566         * doc/gnulib.texi: Include them.
49567         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
49568         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
49569         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
49570         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
49571         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
49572         * doc/glibc-functions/execvpe.texi: Likewise.
49574 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49576         ftell: don't include <unistd.h>
49577         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
49578         guaranteed to define off_t, and the ftell module depends on the
49579         stdio module.
49581         ftell: do not assume wraparound signed arithmetic
49582         * lib/ftell.c: Include <limits.h>.
49583         (ftell): Don't assume wraparound signed arithmetic.
49585 2011-07-24  Bruno Haible  <bruno@clisp.org>
49587         close: No longer depend on module 'fclose'.
49588         * modules/close (Depends-on): Remove fclose.
49589         * NEWS: Mention the change.
49590         Suggested by Sam Steingold <sds@gnu.org>.
49592 2011-07-24  Bruno Haible  <bruno@clisp.org>
49594         fsusage: Enable large volume support on AIX >= 5.2.
49595         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
49596         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
49597         instead of STAT_STATVFS.
49598         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
49600         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
49601         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
49602         f_blocks field only on MacOS X.
49604         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
49605         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
49606         * modules/fsusage (Depends-on): Add largefile.
49608 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49610         * README: Modernize discussion of signed integers.
49611         Assuming overflow wraparound is no longer safe.
49612         Mention ones' complement and signed magnitude.
49614 2011-07-22  Bruno Haible  <bruno@clisp.org>
49616         select tests, pselect tests: Refactor.
49617         * tests/test-select.h: New file, extracted from tests/test-select.c.
49618         (select_fn): New type.
49619         (test, do_select, do_select_nowait, do_select_wait, test_tty,
49620         test_connect_first, test_accept_first, test_pair, test_socket_pair,
49621         test_pipe): Add my_select argument.
49622         (test_function): Renamed from main. Add my_select argument.
49623         * tests/test-select.c: Move most code to tests/test-select.h. Include
49624         test-select.h.
49625         * modules/select-tests (Files): Add tests/test-select.h.
49626         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
49627         (my_select, main): New functions.
49628         * modules/pselect-tests (Files): Add tests/test-select.h,
49629         tests/macros.h, tests/signature.h.
49630         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
49631         (configure.ac): Check for <sys/wait.h>.
49633 2011-07-22  Bruno Haible  <bruno@clisp.org>
49635         sys_select tests: Check the signature of FD_*.
49636         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
49637         signature tests from here...
49638         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
49639         here.
49640         * modules/sys_select-tests (Files): Add tests/signature.h.
49642 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49644         largefile: new module, replacing large-inode
49645         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
49646         * MODULES.html.sh: Add largefile, remove large-inode.
49647         * modules/largefile, m4/largefile.m4: New files.
49648         * modules/large-inode, m4/large-inode.m4: Remove.
49650         fsusage: port to MacOS X 10.7 with 4 TiB file systems
49651         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
49652         implementations that use only 32 bits to count blocks.
49653         On typical hosts with 1024-byte blocks, this fails with file
49654         systems as small as 4 TiB.  Problem reported by Herb Wartens
49655         <http://debbugs.gnu.org/9140> and this should also fix a similar
49656         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
49658         large-inode: New module
49659         * MODULES.html.sh: Add it.
49660         * modules/large-inode, m4/large-inode.m4: New files.
49662         extensions: Enable extensions on MacOS X 10.5 and later.
49663         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
49665 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
49667         file-has-acl: use acl_extended_file_nofollow if available
49668         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
49669         (acl_extended_file): New macro.
49670         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
49671         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
49673 2011-07-21  Bruno Haible  <bruno@clisp.org>
49675         Declare system functions in a way that works with C++.
49676         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
49677         declare fdopendir as extern "C".
49678         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
49679         declare frexpl as extern "C".
49680         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
49681         declare gai_strerror as extern "C".
49682         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
49683         programs, declare gai_strerror as extern "C".
49684         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
49685         declare getlogin_r as extern "C".
49686         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
49687         as extern "C".
49688         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
49689         declare ldexpl as extern "C".
49690         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
49691         as extern "C".
49692         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
49693         program, declare getmntinfo as extern "C".
49694         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
49695         stpncpy as extern "C".
49696         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
49697         program, declare __xpg_strerror_r as extern "C".
49698         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
49699         strndup as extern "C".
49700         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
49701         declare memset and bzero as extern "C".
49702         Reported by Sam Steingold <sds@gnu.org>.
49704 2011-07-12  Jim Meyering  <meyering@redhat.com>
49706         maint.mk: prohibit inclusion of "verify.h" without use
49707         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
49709 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49711         timer-time: A new module to check for timer_settime()
49712         * m4/timer_time.m4: Check for the posix function.
49713         * modules/timer-time: Add the new module.
49714         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
49715         Mention it.
49717 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
49718             Bruno Haible  <bruno@clisp.org>
49720         pthread_sigmask: assume POSIX threads if --avoid=threadlib
49721         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
49722         not defined, assume POSIX threads and look for pthread_sigmask in
49723         $LIBS, without changing $CPPFLAGS.
49725 2011-07-19  Bruno Haible  <bruno@clisp.org>
49727         strstr: Update cross-compilation guess.
49728         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
49729         CPUs, guess no, in view of glibc
49730         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
49731         Suggested by Eric Blake. Reported by Reuben Thomas.
49733 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49735         getopt-gnu: suppress core dumps from detection code
49736         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
49737         to suppress core dumps that may well occur on glibc systems.
49738         * modules/getopt-gnu: Depend on nocrash.
49740 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49742         pthread_sigmask: ensure usleep is declared
49743         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
49744         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
49746 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49748         doc: Document NonStop portability issues.
49749         * doc/posix-functions/sigaction.texi (sigaction):
49750         * doc/posix-headers/signal.texi (signal.h):
49751         Document NonStop.  See Joachim Schmitz in
49752         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
49754 2011-07-15  Bruno Haible  <bruno@clisp.org>
49756         ffsl, ffsll: Avoid unportable behaviour.
49757         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
49759 2011-07-15  Bruno Haible  <bruno@clisp.org>
49761         ffs: More tests.
49762         * tests/test-ffs.c (NBITS): New macro.
49763         (main): Add more tests.
49764         * tests/test-ffsl.c (NBITS): New macro.
49765         (main): Add more tests.
49766         * tests/test-ffsll.c (NBITS): New macro.
49767         (main): Add more tests.
49769 2011-07-15  Eric Blake  <eblake@redhat.com>
49771         ffsl, ffsll: new modules
49772         * modules/ffsl: New file.
49773         * modules/ffsll: Likewise.
49774         * m4/ffsl.m4: Likewise.
49775         * m4/ffsll.m4: Likewise.
49776         * lib/ffsl.c: Likewise.
49777         * lib/ffsl.h: Likewise.
49778         * lib/ffsll.c: Likewise.
49779         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
49780         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
49781         * modules/string (Makefile.am): Substitute witnesses.
49782         * lib/strings.in.h (ffsl, ffsll): Declare.
49783         * modules/ffsl-tests: New test file.
49784         * modules/ffsll-tests: Likewise.
49785         * tests/test-ffsl.c: Likewise.
49786         * tests/test-ffsll.c: Likewise.
49787         * MODULES.html.sh (Integer arithmetic functions): Mention it.
49788         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
49789         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
49791         ffs: fix m4 prerequisite
49792         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
49794         ffs: avoid undefined behavior
49795         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
49796         * tests/test-ffs.c (naive, main): Avoid signed shifts.
49797         Reported by Bruno Haible.
49799 2011-07-12  Bruno Haible  <bruno@clisp.org>
49801         pthread_sigmask: Rely on module 'threadlib'.
49802         * modules/pthread_sigmask (Depends-on): Add threadlib.
49803         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
49804         is defined.
49806 2011-07-12  Bruno Haible  <bruno@clisp.org>
49808         regex: Depend on module 'strcase'.
49809         * modules/regex (Depends-on): Add strcase, for strcasecmp().
49811 2011-07-12  Jim Meyering  <meyering@redhat.com>
49813         warn-on-use: fix typo in file name
49814         * modules/snippet/warn-on-use (Files): Correct file name:
49815         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
49817 2011-07-12  Bruno Haible  <bruno@clisp.org>
49819         strings: Document module.
49820         * doc/posix-headers/strings.texi: Mention module 'strings'.
49822 2011-07-12  Bruno Haible  <bruno@clisp.org>
49824         Rename module '_Noreturn' to 'snippet/_Noreturn'.
49825         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
49826         (Files, Makefile.am): Update.
49827         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
49828         * modules/stdlib (Depends-on): Update.
49830 2011-07-12  Bruno Haible  <bruno@clisp.org>
49832         * NEWS: Mention the changes.
49834         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
49835         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
49836         (Files, Makefile.am): Update.
49837         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
49838         * modules/arpa_inet (Depends-on): Update.
49839         * modules/ctype (Depends-on): Update.
49840         * modules/dirent (Depends-on): Update.
49841         * modules/fcntl-h (Depends-on): Update.
49842         * modules/glob (Depends-on): Update.
49843         * modules/iconv-h (Depends-on): Update.
49844         * modules/inttypes-incomplete (Depends-on): Update.
49845         * modules/langinfo (Depends-on): Update.
49846         * modules/locale (Depends-on): Update.
49847         * modules/math (Depends-on): Update.
49848         * modules/netdb (Depends-on): Update.
49849         * modules/poll-h (Depends-on): Update.
49850         * modules/pty (Depends-on): Update.
49851         * modules/search (Depends-on): Update.
49852         * modules/signal (Depends-on): Update.
49853         * modules/spawn (Depends-on): Update.
49854         * modules/stdio (Depends-on): Update.
49855         * modules/stdlib (Depends-on): Update.
49856         * modules/string (Depends-on): Update.
49857         * modules/strings (Depends-on): Update.
49858         * modules/sys_file (Depends-on): Update.
49859         * modules/sys_ioctl (Depends-on): Update.
49860         * modules/sys_select (Depends-on): Update.
49861         * modules/sys_socket (Depends-on): Update.
49862         * modules/sys_stat (Depends-on): Update.
49863         * modules/sys_time (Depends-on): Update.
49864         * modules/sys_times (Depends-on): Update.
49865         * modules/sys_utsname (Depends-on): Update.
49866         * modules/sys_wait (Depends-on): Update.
49867         * modules/termios (Depends-on): Update.
49868         * modules/time (Depends-on): Update.
49869         * modules/unistd (Depends-on): Update.
49870         * modules/wchar (Depends-on): Update.
49871         * modules/wctype-h (Depends-on): Update.
49872         * MODULES.html.sh (Support for building libraries and executables):
49873         Update.
49875         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
49876         * modules/snippet/unused-parameter: Renamed from
49877         modules/unused-parameter.
49878         (Files, Makefile.am): Update.
49879         * build-aux/snippet/unused-parameter.h: Renamed from
49880         build-aux/unused-parameter.h.
49881         * modules/selinux-h (Depends-on): Update.
49882         * modules/unistr/base (Depends-on): Update.
49883         * MODULES.html.sh (Core language properties): Update.
49885         Rename module 'link-warning' to 'snippet/link-warning'.
49886         * modules/snippet/link-warning: Renamed from modules/link-warning.
49887         (Files, Makefile.am): Update.
49888         * build-aux/snippet/link-warning.h: Renamed from
49889         build-aux/link-warning.h.
49890         * MODULES.html.sh (Support for building libraries and executables):
49891         Update.
49893         Rename module 'c++defs' to 'snippet/c++defs'.
49894         * modules/snippet/c++defs: Renamed from modules/c++defs.
49895         (Files, Makefile.am): Update.
49896         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
49897         * modules/arpa_inet (Depends-on): Update.
49898         * modules/ctype (Depends-on): Update.
49899         * modules/dirent (Depends-on): Update.
49900         * modules/fcntl-h (Depends-on): Update.
49901         * modules/glob (Depends-on): Update.
49902         * modules/iconv-h (Depends-on): Update.
49903         * modules/langinfo (Depends-on): Update.
49904         * modules/locale (Depends-on): Update.
49905         * modules/math (Depends-on): Update.
49906         * modules/netdb (Depends-on): Update.
49907         * modules/poll-h (Depends-on): Update.
49908         * modules/pty (Depends-on): Update.
49909         * modules/search (Depends-on): Update.
49910         * modules/signal (Depends-on): Update.
49911         * modules/spawn (Depends-on): Update.
49912         * modules/stdio (Depends-on): Update.
49913         * modules/stdlib (Depends-on): Update.
49914         * modules/string (Depends-on): Update.
49915         * modules/strings (Depends-on): Update.
49916         * modules/sys_ioctl (Depends-on): Update.
49917         * modules/sys_select (Depends-on): Update.
49918         * modules/sys_socket (Depends-on): Update.
49919         * modules/sys_stat (Depends-on): Update.
49920         * modules/sys_time (Depends-on): Update.
49921         * modules/sys_wait (Depends-on): Update.
49922         * modules/termios (Depends-on): Update.
49923         * modules/time (Depends-on): Update.
49924         * modules/unistd (Depends-on): Update.
49925         * modules/wchar (Depends-on): Update.
49926         * modules/wctype-h (Depends-on): Update.
49928         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
49929         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
49930         (Files, Makefile.am): Update.
49931         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
49932         * modules/argv-iter (Depends-on): Update.
49933         * modules/arpa_inet (Depends-on): Update.
49934         * modules/dirent (Depends-on): Update.
49935         * modules/fcntl-h (Depends-on): Update.
49936         * modules/fnmatch (Depends-on): Update.
49937         * modules/getopt-posix (Depends-on): Update.
49938         * modules/glob (Depends-on): Update.
49939         * modules/iconv-h (Depends-on): Update.
49940         * modules/inttypes-incomplete (Depends-on): Update.
49941         * modules/locale (Depends-on): Update.
49942         * modules/math (Depends-on): Update.
49943         * modules/netdb (Depends-on): Update.
49944         * modules/search (Depends-on): Update.
49945         * modules/signal (Depends-on): Update.
49946         * modules/spawn (Depends-on): Update.
49947         * modules/stdio (Depends-on): Update.
49948         * modules/stdlib (Depends-on): Update.
49949         * modules/string (Depends-on): Update.
49950         * modules/strings (Depends-on): Update.
49951         * modules/sys_socket (Depends-on): Update.
49952         * modules/sys_stat (Depends-on): Update.
49953         * modules/sys_time (Depends-on): Update.
49954         * modules/sys_times (Depends-on): Update.
49955         * modules/sys_utsname (Depends-on): Update.
49956         * modules/time (Depends-on): Update.
49957         * modules/unistd (Depends-on): Update.
49958         * modules/wchar (Depends-on): Update.
49959         * MODULES.html.sh (Support for building libraries and executables):
49960         Update.
49962 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
49964         Improvements on _Noreturn and related modules.
49966         modules/_Exit-tests: test _Noreturn too
49967         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
49968         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
49969         (main): Use them.
49971         stdnoreturn, stdnoreturn-tests: remove modules
49972         They're not needed here and a bit premature for use elsewhere.  See
49973         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
49974         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
49975         * tests/test-stdnoreturn.c: Remove files.
49976         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
49977         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
49978         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
49979         and using noreturn.
49980         * modules/openat, modules/sigpipe-die, modules/xalloc:
49981         * modules/xmemdup0, modules/xstrtol:
49982         Remove dependency on stdnoreturn.
49984         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
49985         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
49986         Reparenthesize to avoid GCC warning.
49987         Support Microsoft's syntax.
49988         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
49990         _Noreturn-tests: remove module
49991         * modules/_Noreturn-tests: Remove.
49992         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
49993         * tests/test-_Noreturn.c: Remove.
49994         * tests/test-stdnoreturn.c: Merge from the old
49995         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
49997 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
49999         _Noreturn, stdnoreturn, and related modules.
50001         * top/maint.mk: Adjust to new noreturn support.
50002         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
50003         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
50005         xalloc: use stdnoreturn.h
50006         * lib/xalloc.h: Include <stdnoreturn.h>.
50007         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50008         * modules/xalloc (Depends-on): Add stdnoreturn.
50010         xstrtol: use stdnoreturn.h
50011         * lib/xstrtol.h: Include <stdnoreturn.h>.
50012         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50013         * modules/xstrtol (Depends-on): Add stdnoreturn.
50015         xmemdup0: use stdnoreturn.h
50016         * lib/xmemdup0.h: Include <stdnoreturn.h>.
50017         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50018         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
50020         sigpipe-die: use stdnoreturn.h
50021         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
50022         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50023         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
50025         openat: use stdnoreturn.h
50026         * lib/openat.h: Include <stdnoreturn.h>.
50027         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50028         * modules/openat (Depends-on): Add stdnoreturn.
50030         * lib/openat-die.c (openat_save_fail): Modernize comment.
50032         * lib/xalloc-die.c (xalloc_die): Modernize comment.
50034         * lib/glthread/thread.h: Modernize comment.
50036         obstack: use _Noreturn
50037         * lib/obstack.c (__attribute__): Remove macro.
50038         (print_and_abort): Use _Noreturn.
50040         c-stack: use _Noreturn
50041         * lib/c-stack.c (die, overflow_handler, segv_handler):
50042         Use _Noreturn rather than __attribute__((noreturn)).
50044         argmatch-tests, exclude_tests: use _Noreturn
50045         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
50046         Remove.
50047         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
50049         stdlib: use _Noreturn
50050         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
50051         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
50052         * modules/stdlib (Depends-on): Add _Noreturn.
50053         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
50055         stdnoreturn-tests: new module
50056         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
50058         stdnoreturn: new module
50059         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
50060         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
50062         _Noreturn-tests: new module
50063         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
50065         _Noreturn: new module
50066         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
50067         New section, mentioning it.
50068         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
50070         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
50072 2011-07-11  Eric Blake  <eblake@redhat.com>
50074         ffs: new module
50075         * modules/ffs: New file.
50076         * m4/ffs.m4: Likewise.
50077         * lib/ffs.c: Likewise.
50078         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
50079         * modules/strings (Makefile.am): Substitute witness.
50080         (Depends-on): Add c++defs.
50081         * lib/strings.in.h (ffs): Declare.
50082         * modules/ffs-tests: New test file.
50083         * tests/test-ffs.c: Test new module.
50084         * MODULES.html.sh (Integer arithmetic functions): Mention it.
50085         * doc/posix-functions/ffs.texi (ffs): Likewise.
50087         regex: avoid compiler warning
50088         * lib/regex.c (includes): Include <strings.h>, for use of
50089         strcasecmp in regcomp.c.
50090         Reported by Joachim Schmitz.
50092 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50094         stdint: respect system's intmax_t if INTMAX_MAX
50095         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
50096         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
50097         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
50098         long but int64_t is long long, and where we will clash with the
50099         system intmax_t if we override it.  See
50100         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
50101         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
50102         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
50103         similarly for UINTMAX_C.
50105 2011-07-08  Bruno Haible  <bruno@clisp.org>
50107         pthread_sigmask tests: Avoid a compiler warning.
50108         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
50109         non-zero.
50111         sigprocmask tests: A better way to avoid a compiler warning.
50112         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
50113         (main): Complain if system() returns non-zero.
50114         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
50116 2011-07-08  Bruno Haible  <bruno@clisp.org>
50118         pthread_sigmask: Work around IRIX bug.
50119         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
50120         bug.
50121         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
50122         there may be unblocked pending signals.
50123         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
50125 2011-07-08  Bruno Haible  <bruno@clisp.org>
50127         pthread_sigmask: Work around Cygwin bug.
50128         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
50129         bug.
50130         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
50131         the system's pthread_sigmask function.
50132         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
50134 2011-07-08  Bruno Haible  <bruno@clisp.org>
50136         pthread_sigmask: Work around bug in single-threaded implementation.
50137         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
50138         FreeBSD, HP-UX, Solaris bug.
50139         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
50140         * lib/pthread_sigmask.c: Include <stddef.h>.
50141         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
50142         the system's pthread_sigmask function.
50143         * modules/pthread_sigmask (configure.ac): Invoke
50144         gl_PREREQ_PTHREAD_SIGMASK.
50145         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
50146         HP-UX, Solaris.
50148 2011-07-08  Eric Blake  <eblake@redhat.com>
50150         test-sigprocmask: avoid compiler warning
50151         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
50152         * tests/test-sigprocmask.c (main): Use it to silence warning.
50153         Reported by Jim Meyering.
50155         test-snprintf: avoid compiler warning
50156         * tests/test-snprintf.c (main): Avoid shadowed declaration.
50157         * tests/test-vsnprintf.c (main): Likewise.
50158         Reported by Jim Meyering.
50160 2011-07-08  Bruno Haible  <bruno@clisp.org>
50162         Tests for module 'pthread_sigmask'.
50163         * modules/pthread_sigmask-tests: New file.
50164         * tests/test-pthread_sigmask1.c: New file, based on
50165         tests/test-sigprocmask.c.
50166         * tests/test-pthread_sigmask2.c: New file.
50168 2011-07-08  Jim Meyering  <meyering@redhat.com>
50170         test-getopt.h: avoid warning about an unused variable
50171         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
50173 2011-07-07  Jim Meyering  <meyering@redhat.com>
50175         maint: reduce list of files exempt from sc_prohibit_leading_TABs
50176         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
50177         now that it no longer contains leading TABs.
50178         Remove unused "url=FIXME" statement.
50180 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50182         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
50183         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
50184         When gl_THREADLIB is not in use, assume that the POSIX sematics
50185         are desired.  This is better for Emacs, which uses POSIX semantics
50186         on GNUish and/or POSIXish platforms, and does not use threads at
50187         all otherwise.
50189         pthread_sigmask: fix typo when testing for libraries
50190         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
50191         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
50193 2011-07-08  Eric Blake  <eblake@redhat.com>
50195         fts: introduce FTS_NOATIME
50196         * lib/fts_.h (FTS_NOATIME): New bit flag.
50197         (FTS_OPTIONMASK): Adjust.
50198         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
50199         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
50201 2011-07-08  Bruno Haible  <bruno@clisp.org>
50203         Tests for module 'thread'.
50204         * modules/thread-tests: New file.
50205         * tests/test-thread_self.c: New file.
50206         * tests/test-thread_create.cc: New file.
50208 2011-07-08  Bruno Haible  <bruno@clisp.org>
50210         thread: Avoid gcc warnings when using gl_thread_self().
50211         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
50212         'void *'.
50213         (gl_thread_self_pointer): Update.
50215 2011-07-07  Bruno Haible  <bruno@clisp.org>
50217         signal-c++-tests: Check declaration of pthread_sigmask.
50218         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
50219         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
50220         $(LIB_PTHREAD_SIGMASK).
50222 2011-07-07  Bruno Haible  <bruno@clisp.org>
50224         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
50225         * lib/signal.in.h (pthread_sigmask): Override if
50226         REPLACE_PTHREAD_SIGMASK is 1.
50227         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50228         REPLACE_PTHREAD_SIGMASK.
50229         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
50230         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
50231         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
50232         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
50233         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
50235 2011-07-07  Bruno Haible  <bruno@clisp.org>
50237         pthread_sigmask: Ensure declaration in <signal.h>.
50238         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
50239         include <pthread.h>.
50240         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
50241         problem.
50243 2011-07-07  Bruno Haible  <bruno@clisp.org>
50245         pthread_sigmask: Document the module.
50246         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
50248 2011-07-07  Bruno Haible  <bruno@clisp.org>
50250         pthread_sigmask: Follow gnulib conventions.
50251         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
50252         gl_PTHREAD_SIGMASK.
50253         * modules/pthread_sigmask (configure.ac): Update.
50255 2011-07-07  Bruno Haible  <bruno@clisp.org>
50257         pthread_sigmask: Make declaration C++ safe.
50258         * lib/signal.in.h: In two special conditions, just do an #include_next.
50259         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
50260         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
50261         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50262         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
50263         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
50264         not REPLACE_PTHREAD_MASK.
50265         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
50266         not REPLACE_PTHREAD_MASK.
50267         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
50269 2011-07-07  Bruno Haible  <bruno@clisp.org>
50271         pthread_sigmask: Fix return value.
50272         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
50273         * lib/pthread_sigmask.c: New file.
50274         * modules/pthread_sigmask (Files): Add it.
50275         (configure.ac): Invoke AC_LIBOBJ.
50277 2011-07-07  Eric Blake  <eblake@redhat.com>
50279         getopt: more portable argv creation
50280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
50281         const, use char arrays rather than strings.
50282         Suggested by Paul Eggert.
50284 2011-07-07  Bruno Haible  <bruno@clisp.org>
50286         Tests for module 'sigprocmask'.
50287         * modules/sigprocmask-tests: New file.
50288         * tests/test-sigprocmask.c: New file.
50290 2011-07-07  Bruno Haible  <bruno@clisp.org>
50292         float tests: Tweak.
50293         * tests/test-float.c (main): Tweak skip message.
50295 2011-07-07  Eric Blake  <eblake@redhat.com>
50297         getopt: avoid compiler warning during configure
50298         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
50299         assigning string literals to non-const pointer.
50301         getopt-gnu: avoid crash in glibc getopt
50302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
50303         * tests/test-getopt.h (test_getopt): Enhance test.
50304         * tests/test-getopt_long.h (test_getopt_long): Likewise.
50305         * doc/posix-functions/getopt.texi (getopt): Document it.
50306         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50307         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50308         Likewise.
50310 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
50312         getopt: handle W; without long options in getopt [BZ #12922]
50313         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
50314         but no long options are defined, just return 'W'.
50316 2011-07-07  Bruno Haible  <bruno@clisp.org>
50318         Avoid literal tabs.
50319         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
50320         variable containing a tab instead of a literal tab.
50321         Reported by Jim Meyering.
50323 2011-07-07  Bruno Haible  <bruno@clisp.org>
50325         Comments.
50326         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
50328 2011-07-06  Bruno Haible  <bruno@clisp.org>
50330         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
50331         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
50332         <winsock2.h>.
50333         (rpl_fd_isset, FD_ISSET): New definitions, copied from
50334         lib/sys_socket.in.h.
50335         (close, gethostname): Hide declarations from <winsock2.h>.
50336         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50337         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
50338         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
50339         (select): Don't override if gnulib's <sys/select.h> was already
50340         included.
50341         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
50342         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
50343         setsockopt, shutdown, select): Tweak indentation.
50345 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50347         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
50348         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
50349         in an application that does not use the sys_select module.
50351 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
50353         poll: do not return 0 on timeout=-1
50354         * lib/poll.c: Loop with yield if no events occurred.
50356 2011-07-06  Eric Blake  <eblake@redhat.com>
50358         pthread_sigmask: always replace when not using pthread
50359         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
50360         replacement when using some threading other than pthread.  Fix
50361         logic bug.
50363 2011-07-06  Bruno Haible  <bruno@clisp.org>
50365         Comments.
50366         * m4/printf.m4: Update comments about mingw.
50368 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50370         sys_select: define sigset_t more portably
50371         * lib/sys_select.in.h: Always include <sys/types.h>, since
50372         we now need sigset_t and mingw defines it there.
50373         Include <signal.h> before split inclusion guard, to avoid
50374         mishaps on Solaris, whose <signal.h> eventually includes us.
50375         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
50376         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
50377         which come from ...
50378         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50379         gl_CHECK_TYPE_SIGSET_T.
50380         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
50381         does the real work.
50382         * modules/sys_select (Depends-on): Add 'signal'.
50384         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
50385         Suggested by Bruno Haible.
50387         pselect: Use pthread_sigmask, not sigprocmask.
50388         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
50389         multithreaded apps better than sigprocmask does.
50390         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
50391         sigprocmask directly.
50393 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50395         * lib/pselect.c (pselect): Use plain name, without "rpl_".
50396         Don't #undef,  since we don't need any underlying pselect.
50397         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
50398         (Depends-on): Add select.
50399         (Link): Add $(LIBSOCKET).
50400         These changes suggested by Bruno Haible.
50402         pselect: document better
50403         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50404         * doc/posix-functions/pselect.texi (pselect): Document new module.
50406         pthread_sigmask: new module
50407         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50408         * doc/posix-functions/pthread_sigmask.texi: Document new module.
50409         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
50410         This is done only as a macro; I don't know how well that'll
50411         work for C++.  Move <sys/types.h> include before the include_next,
50412         to avoid mishap on Solaris.
50413         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
50414         * modules/signal (Makefile.am): Substitute the check's results.
50415         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
50417         test-pselect: new module
50418         * modules/pselect-tests, tests/test-pselect.c: New files.
50419         * tests/test-select.c, tests/test-sys_select-c++.cc:
50420         If TEST_PSELECT is defined, test pselect instead of testing select.
50422         * tests/test-sys_select.c (sigset_t): Test for it, too.
50423         Suggested by Bruno Haible.
50425 2011-07-05  Eric Blake  <eblake@redhat.com>
50427         snprintf: guarantee %1$d, for libintl
50428         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
50429         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50430         * doc/posix-functions/snprintf.texi (snprintf): Update.
50431         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50432         * tests/test-snprintf.c (main): Enhance test.
50433         * tests/test-vsnprintf.c (main): Likewise.
50435 2011-07-05  Jim Meyering  <meyering@redhat.com>
50437         maint: exempt stdio-read.c and stdio-write.c from the cppi check
50438         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
50439         per Bruno's request, to accommodate this idiom (no space after "#")
50440         even when the function is inside an #if block:
50441         char *
50442         gets (char *s)
50443         #undef gets
50444         {
50445           ...
50446         }
50448 2011-07-04  Jim Meyering  <meyering@redhat.com>
50450         maint: indent with spaces, not TABs, and add a rule to check this
50451         * tests/test-userspec.c: Indent with spaces, not TABs.
50452         * tests/test-argp.c: Likewise.
50453         * tests/test-c-stack2.sh: Likewise.
50454         * tests/test-parse-duration.sh: Likewise
50455         * m4/strtod.m4: Likewise.
50456         * m4/alloca.m4: Likewise.
50457         * m4/pselect.m4: Likewise.
50458         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
50460 2011-07-03  Jim Meyering  <meyering@redhat.com>
50462         maint.mk: correct omissions in prohibit_argmatch_without_use check
50463         This rule would mistakenly report that argmatch.h is included without
50464         use even when both the argmatch and invalid_arg macro were used.
50465         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
50466         of argmatch and invalid_arg.
50468 2011-07-03  Bruno Haible  <bruno@clisp.org>
50470         Comments about EINTR.
50471         * lib/safe-read.h: Explain the purpose of this module.
50472         * lib/safe-write.h: Likewise.
50473         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
50474         module.
50475         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
50476         module.
50477         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50479 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50481         xnanosleep: Rewrite to use new dtotimespec module.
50482         It has the conversion code that used to be in xnanosleep.
50483         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
50484         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
50485         (TIME_T_MAX): Remove.
50486         (xnanosleep): Rewrite in terms of dtotimespec.
50487         * modules/xnanosleep (Depends-on): Add dtotimespec.
50488         Remove intprops, stdbool.
50490         timespec-add, timespec-sub: new modules
50491         * lib/timespec.h (timespec_add, timespec_sub): New decls.
50492         * lib/timespec-add.c, lib/timespec-sub.c:
50493         * modules/timespec-add, modules/timespec-sub: New files.
50495         dtotimespec: new module
50496         * lib/timespec.h (dtotimespec): New decl.
50497         * lib/dtotimespec.c, modules/dtotimespec: New files.
50499         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
50501         pselect: new module
50502         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
50503         (pselect): New decls.
50504         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
50505         since the standard pselect decl uses 'restrict'.
50506         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
50507         HAVE_PSELECT, REPLACE_PSELECT.
50508         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
50509         HAVE_PSELECT, REPLACE_PSELECT.
50510         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
50512         sys_select: don't depend on sys_socket
50513         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
50514         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
50515         This fix works on GNU and GNU-like platforms, but has not been tested
50516         on native Windows.
50517         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
50518         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
50519         gl_HEADER_SYS_SOCKET.
50520         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
50521         gl_PREREQ_SYS_H_WINSOCK2.
50523 2011-06-29  Eric Blake  <eblake@redhat.com>
50525         pipe2: fix C89 compile problem
50526         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
50527         Reported by Bruno Haible.
50529         pipe, pipe2: don't corrupt fd on error
50530         * lib/pipe.c (pipe): Leave fd unchanged on error.
50531         * lib/pipe2.c (pipe2): Likewise.
50532         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
50533         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
50535 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
50537         mmap-anon: do not use regular expressions inadvertently
50538         * m4/mmap-anon.m4: Remove trailing period from strings sought
50539         in the output.
50541 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
50543         nanosleep: fix integer overflow problem
50544         * lib/nanosleep.c (my_usleep): Don't assume signed integer
50545         arithmetic wraps around on overflow.
50547         nanosleep: simplify carrying
50548         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
50549         first call to the underyling nanosleep, not for the last one.
50550         This doesn't fix any bugs, but it simplifies the computation of
50551         the remaining delay.  Found while auditing integer overflow issues.
50553         dup2: remove test for existence of fcntl
50554         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
50555         "#if HAVE_FCNTL", in the configure-time test program.
50556         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
50557         and therefore speeds up "configure" a bit.  Found while
50558         adding the dup2 module to Emacs.
50560 2011-06-24  Eric Blake  <eblake@redhat.com>
50562         maint.mk: enhance useless header checks
50563         * top/maint.mk (_sc_header_without_use): Check both include
50564         styles.
50565         (sc_prohibit_assert_without_use)
50566         (sc_prohibit_close_stream_without_use)
50567         (sc_prohibit_getopt_without_use)
50568         (sc_prohibit_quotearg_without_use)
50569         (sc_prohibit_quote_without_use)
50570         (sc_prohibit_long_options_without_use)
50571         (sc_prohibit_inttostr_without_use)
50572         (sc_prohibit_ignore_value_without_use)
50573         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
50574         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
50575         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
50576         (sc_prohibit_hash_pjw_without_use)
50577         (sc_prohibit_safe_read_without_use)
50578         (sc_prohibit_argmatch_without_use)
50579         (sc_prohibit_canonicalize_without_use)
50580         (sc_prohibit_root_dev_ino_without_use)
50581         (sc_prohibit_openat_without_use)
50582         (sc_prohibit_c_ctype_without_use)
50583         (sc_prohibit_signal_without_use)
50584         (sc_prohibit_stdio--_without_use)
50585         (sc_prohibit_stdio-safer_without_use)
50586         (sc_prohibit_strings_without_use)
50587         (sc_prohibit_intprops_without_use)
50588         (sc_prohibit_stddef_without_use)
50589         (sc_prohibit_xfreopen_without_use): Update clients.
50591 2011-06-24  Jim Meyering  <meyering@redhat.com>
50593         syntax-check: keep one maint.mk rule in sync with its header
50594         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
50595         of the bug Eric has just fixed, with today's commit 25e4c2ec.
50596         I prefer to avoid temporary files here, so use <(...), but that
50597         is not supported by /bin/sh, so...
50598         (SHELL): Define to /bin/bash.
50600 2011-06-24  Eric Blake  <eblake@redhat.com>
50602         maint.mk: update sc_prohibit_intprops_without_use
50603         * top/maint.mk (_intprops_names): Match recent changes.
50605 2011-06-24  Bruno Haible  <bruno@clisp.org>
50607         strerror-override: No-op tweak.
50608         * lib/strerror-override.h (strerror_override): Reorder conditions,
50609         for consistency with lib/strerror-override.c.
50611 2011-06-23  Eric Blake  <eblake@redhat.com>
50613         maint.mk: test further PATH_MAX issues
50614         * top/maint.mk (sc_prohibit_path_max_array): Rename...
50615         (sc_prohibit_path_max_allocation): ...and also test alloca.
50616         Suggested by Jim Meyering.
50618 2011-06-22  Eric Blake  <eblake@redhat.com>
50620         maint.mk: add syntax-check to avoid char[PATH_MAX]
50621         * top/maint.mk (sc_prohibit_path_max_array): New rule.
50623         stat: be robust to PATH_MAX definition
50624         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
50625         * modules/stat (Depends-on): Add verify.
50627         link: work around IRIX bug
50628         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
50629         * lib/link.c (rpl_link): Work around it.
50630         * tests/test-link.h (test_link): Enhance test.
50631         * doc/posix-functions/link.texi (link): Document the bug.
50633         getopt: silence clang warning
50634         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
50635         dereference.
50636         Reported by Gustavo Martin Domato.
50638 2011-06-22  Jim Meyering  <meyering@redhat.com>
50640         bootstrap: do not insert a blank line into each .gitignore file
50641         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
50643 2011-06-21  Eric Blake  <eblake@redhat.com>
50645         perror: test for output mismatch
50646         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
50647         perror on IRIX.
50649         strerror_r: fix OpenBSD behavior on out-of-range
50650         * lib/strerror_r.c (strerror_r): Always use maximal string.
50651         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
50653         strerror_r: fix OpenBSD behavior on 0
50654         * lib/strerror-override.c (strerror_override): Also override 0
50655         when needed.
50656         * lib/strerror-override.h (strerror_override): Likewise.
50657         * lib/strerror.c (strerror): Simplify, now that 0 override is done
50658         earlier.
50659         * lib/strerror_r.c (strerror_r): Likewise.
50660         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
50661         behavior...
50662         (gl_FUNC_STRERROR_0): ...into new macro.
50663         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
50664         is overridden.
50665         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
50666         * modules/strerror-override (Files): Add strerror.m4.
50667         (configure.ac): Also provide override for 0 when needed.
50668         * doc/posix-functions/strerror.texi (strerror): Document this.
50669         * doc/posix-functions/perror.texi (perror): Likewise.
50671         perror: adjust array size
50672         * modules/perror (Depends-on): Add strerror-override.
50673         * lib/perror.c (perror): Use it to avoid magic number.
50675         strerror-override: reduce size
50676         * lib/strerror-override.c (strerror_override): Use fewer lines.
50678 2011-06-20  Bruno Haible  <bruno@clisp.org>
50680         pathmax: Ensure correct value for PATH_MAX on HP-UX.
50681         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
50683 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50685         alloca: port to compilers that can optimize like GCC 4.6.0
50686         * lib/alloca.c (find_stack_direction): New signature, taken from
50687         Autoconf git.  This works with GCC 4.6.0.  This code should never
50688         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
50689         be used with other compilers that optimize as well as GCC 4.6.0 does.
50690         (alloca): Adjust to new signature.
50691         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
50692         New macro, which patches Autoconf in a similar way.
50694         c-stack: stop worrying about stack direction
50695         * lib/c-stack.c (find_stack_direction): Remove.
50696         (segv_handler): Don't worry about stack direction growth, as it's
50697         too much of a pain to configure this correctly, given how compilers
50698         are optimizing-away our stack-growth detection code.  Instead, assume
50699         that any access to just before or just after the stack is OK.
50700         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50701         Don't require AC_FUNC_ALLOCA; no longer needed.
50703 2011-06-20  Eric Blake  <eblake@redhat.com>
50705         test-stat: don't allocate PATH_MAX bytes
50706         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
50707         PATH_MAX-sized buffer.
50708         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
50709         * modules/stat-tests (Depends-on): Likewise.
50710         * tests/test-fstatat.c (includes): Drop pathmax.h.
50711         * tests/test-stat.c (includes): Likewise.
50712         Reported by Bruno Haible.
50714 2011-06-20  Bruno Haible  <bruno@clisp.org>
50716         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
50717         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
50718         * lib/float.c: New file.
50719         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
50720         REPLACE_FLOAT_LDBL.
50721         * modules/float (Files): Add lib/float.c.
50722         (configure.ac): Invoke AC_LIBOBJ.
50723         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
50725 2011-06-20  Bruno Haible  <bruno@clisp.org>
50727         Tests for module 'float'.
50728         * modules/float-tests: New file.
50729         * tests/test-float.c: New file.
50731 2011-06-19  Bruno Haible  <bruno@clisp.org>
50733         isinf: Coding style.
50734         * lib/isinf.c: Use GNU coding style.
50736 2011-06-19  Bruno Haible  <bruno@clisp.org>
50738         linkat test: Avoid test failure on AIX 7.1.
50739         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
50740         * tests/test-link.h (test_link): Likewise.
50742 2011-06-19  Bruno Haible  <bruno@clisp.org>
50744         pread test: Avoid test failure on OpenBSD 4.9.
50745         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
50747 2011-06-19  Bruno Haible  <bruno@clisp.org>
50749         sprintf-posix: Fix test failure on AIX 7.1.
50750         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
50751         * doc/posix-functions/dprintf.texi: Mention limited precision problem
50752         on AIX.
50753         * doc/posix-functions/fprintf.texi: Likewise.
50754         * doc/posix-functions/printf.texi: Likewise.
50755         * doc/posix-functions/snprintf.texi: Likewise.
50756         * doc/posix-functions/sprintf.texi: Likewise.
50757         * doc/posix-functions/vdprintf.texi: Likewise.
50758         * doc/posix-functions/vfprintf.texi: Likewise.
50759         * doc/posix-functions/vprintf.texi: Likewise.
50760         * doc/posix-functions/vsnprintf.texi: Likewise.
50761         * doc/posix-functions/vsprintf.texi: Likewise.
50763 2011-06-19  Bruno Haible  <bruno@clisp.org>
50765         roundl-ieee: Fix test failure on AIX 7.1.
50766         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
50767         * doc/posix-functions/roundl.texi: Mention problem with negative
50768         arguments.
50770 2011-06-19  Bruno Haible  <bruno@clisp.org>
50772         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50773         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
50774         * doc/posix-functions/round.texi: Mention problem with negative
50775         arguments.
50776         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
50778 2011-06-19  Bruno Haible  <bruno@clisp.org>
50780         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50781         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
50782         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
50783         * doc/posix-functions/roundf.texi: Mention problem with negative
50784         arguments.
50785         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
50787 2011-06-19  Bruno Haible  <bruno@clisp.org>
50789         ceilf-ieee: Work around bug on MacOS X 10.5.
50790         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
50792         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
50793         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
50794         IEEE compliant, avoid compiler optimizations.
50795         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
50796         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50797         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
50798         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
50799         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
50800         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
50801         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
50802         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
50803         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
50804         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
50806 2011-06-19  Bruno Haible  <bruno@clisp.org>
50808         ceilf-ieee: Work around bug on AIX 7.1.
50809         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
50810         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
50812 2011-06-19  Bruno Haible  <bruno@clisp.org>
50814         ceil-ieee: Work around bug on AIX 7.1.
50815         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
50816         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
50818 2011-06-18  Bruno Haible  <bruno@clisp.org>
50820         fsync test: Avoid test failure on MacOS X and AIX.
50821         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
50822         EINVAL.
50824 2011-06-18  Bruno Haible  <bruno@clisp.org>
50826         openat, fdopendir tests: Fix link errors.
50827         * modules/openat-tests (Depends-on): Add progname.
50828         * modules/fdopendir-tests (Depends-on): Likewise.
50829         * tests/test-fchownat.c: Include progname.h.
50830         (main): Call set_program_name.
50831         * tests/test-fstatat.c: Include progname.h.
50832         (main): Call set_program_name.
50833         * tests/test-mkdirat.c: Include progname.h.
50834         (main): Call set_program_name.
50835         * tests/test-openat.c: Include progname.h.
50836         (main): Call set_program_name.
50837         * tests/test-unlinkat.c: Include progname.h.
50838         (main): Call set_program_name.
50839         * tests/test-fdopendir.c: Include progname.h.
50840         (main): Call set_program_name.
50842 2011-06-18  Bruno Haible  <bruno@clisp.org>
50844         Doc update.
50845         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
50846         HP-UX.
50847         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
50849 2011-06-18  Bruno Haible  <bruno@clisp.org>
50851         getcwd tests: Avoid compilation error on HP-UX 11.31.
50852         * modules/getcwd-tests (Depends-on): Add pathmax.
50853         * tests/test-getcwd.c: Include pathmax.h.
50855 2011-06-18  Bruno Haible  <bruno@clisp.org>
50857         isfinite, isinf: Fix link error on AIX 6 and 7.
50858         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
50859         needed, also test the macro with a 'float' argument.
50860         * m4/isinf.m4 (gl_ISINF): Likewise.
50862 2011-06-18  Bruno Haible  <bruno@clisp.org>
50864         getloadavg: Don't clobber LIBS. Regression from previous commit.
50865         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
50866         AC_CHECK_LIB from here...
50867         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
50868         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
50869         gl_func_getloadavg_done.
50870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50872 2011-06-18  Bruno Haible  <bruno@clisp.org>
50874         clean-temp: Improve documentation.
50875         * lib/clean-temp.h: Explain better how to use this module.
50876         Reported by John Darrington <john@darrington.wattle.id.au>.
50878 2011-06-17  Bruno Haible  <bruno@clisp.org>
50880         pread, pwrite: Avoid cc warning on AIX.
50881         * lib/unistd.in.h (pread): Undefine before defining as a macro.
50882         (pwrite): Likewise.
50884 2011-06-17  Bruno Haible  <bruno@clisp.org>
50886         spawn-pipe tests: Fix link error.
50887         * tests/test-spawn-pipe-child.c: Undefine fprintf.
50888         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50890 2011-06-17  Bruno Haible  <bruno@clisp.org>
50892         Tests: Remove unnecessary dependency.
50893         * modules/canonicalize-tests (Depends-on): Remove progname.
50894         * modules/chown-tests (Depends-on): Likewise.
50895         * modules/dirname-tests (Depends-on): Likewise.
50896         * modules/fdopendir-tests (Depends-on): Likewise.
50897         * modules/fdutimensat-tests (Depends-on): Likewise.
50898         * modules/hash-tests (Depends-on): Likewise.
50899         * modules/lchown-tests (Depends-on): Likewise.
50900         * modules/linkat-tests (Depends-on): Likewise.
50901         * modules/renameat-tests (Depends-on): Likewise.
50902         * modules/spawn-pipe-tests (Depends-on): Likewise.
50903         * modules/utimensat-tests (Depends-on): Likewise.
50905 2011-06-17  Bruno Haible  <bruno@clisp.org>
50907         spawn-pipe tests: Fix link error.
50908         * tests/test-spawn-pipe-child.c: Undefine fflush.
50910 2011-06-17  Bruno Haible  <bruno@clisp.org>
50912         Fix tests link errors.
50913         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
50914         * modules/chown-tests (Makefile.am): Don't link test-chown with
50915         LIBINTL.
50916         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
50917         LIBINTL.
50918         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
50919         LIBINTL.
50920         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
50921         LIBINTL.
50923 2011-06-16  Bruno Haible  <bruno@clisp.org>
50925         crypto/gc-sha1: Fix recent regression.
50926         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
50927         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
50929         crypto/gc-md5: Fix recent regression.
50930         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
50932         crypto/gc-md4: Fix recent regression.
50933         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
50934         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
50936         crypto/gc-arctwo: Fix recent regression.
50937         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
50938         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
50940         crypto/gc-rijndael: Fix recent regression.
50941         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
50942         (configure.ac): Invoke AC_LIBOBJ here.
50943         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
50944         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50946         crypto/gc-hmac-sha1: Fix recent regression.
50947         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
50948         (configure.ac): Invoke AC_LIBOBJ here.
50949         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
50950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50952         crypto/gc-hmac-md5: Fix recent regression.
50953         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
50954         (configure.ac): Invoke AC_LIBOBJ here.
50955         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
50956         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50958         crypto/gc-des: Fix recent regression.
50959         * modules/crypto/gc-des (Files): Remove m4/des.m4.
50960         (configure.ac): Invoke AC_LIBOBJ here.
50961         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
50962         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50964         crypto/gc-arcfour: Fix recent regression.
50965         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
50966         (configure.ac): Invoke AC_LIBOBJ here.
50967         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
50968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50970 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
50972         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
50973         After the 2011-05-21 change, this macro requires
50974         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
50975         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50977 2011-06-16  Bruno Haible  <bruno@clisp.org>
50979         fprintftime: Move AC_LIBOBJ invocations to module description.
50980         * m4/fprintftime.m4: Remove file.
50981         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
50982         (configure.ac): Remove gl_FPRINTFTIME call.
50983         (Makefile.am): Augment lib_SOURCES.
50984         Reported by Jim Meyering.
50986 2011-06-16  Bruno Haible  <bruno@clisp.org>
50988         tmpfile-safer: Finish 2011-05-23 commit.
50989         * m4/stdio-safer.m4: Really remove file.
50990         Reported by Jim Meyering.
50992 2011-06-16  Bruno Haible  <bruno@clisp.org>
50994         syntax-check: Fix typo.
50995         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
50996         printf-posix.m4.
50997         Reported by Jim Meyering.
50999 2011-06-13  Jim Meyering  <meyering@redhat.com>
51001         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
51002         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
51004 2011-05-23  Bruno Haible  <bruno@clisp.org>
51006         yesno: Move AC_LIBOBJ invocations to module description.
51007         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
51008         * modules/yesno (Makefile.am): Augment lib_SOURCES.
51010 2011-05-23  Bruno Haible  <bruno@clisp.org>
51012         xstrtol: Move AC_LIBOBJ invocations to module description.
51013         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
51014         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
51016 2011-05-23  Bruno Haible  <bruno@clisp.org>
51018         xstrtold: Move AC_LIBOBJ invocations to module description.
51019         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
51020         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
51022 2011-05-23  Bruno Haible  <bruno@clisp.org>
51024         xstrtod: Move AC_LIBOBJ invocations to module description.
51025         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
51026         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
51028 2011-05-23  Bruno Haible  <bruno@clisp.org>
51030         xnanosleep: Move AC_LIBOBJ invocations to module description.
51031         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
51032         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
51034 2011-05-23  Bruno Haible  <bruno@clisp.org>
51036         xgetcwd: Move AC_LIBOBJ invocations to module description.
51037         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
51038         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
51040 2011-05-23  Bruno Haible  <bruno@clisp.org>
51042         xalloc: Move AC_LIBOBJ invocations to module description.
51043         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
51044         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
51046 2011-05-23  Bruno Haible  <bruno@clisp.org>
51048         write-any-file: Move AC_LIBOBJ invocations to module description.
51049         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
51050         invocation.
51051         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
51053 2011-05-23  Bruno Haible  <bruno@clisp.org>
51055         utimens: Move AC_LIBOBJ invocations to module description.
51056         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
51057         * modules/utimens (Makefile.am): Augment lib_SOURCES.
51059 2011-05-23  Bruno Haible  <bruno@clisp.org>
51061         utimecmp: Move AC_LIBOBJ invocations to module description.
51062         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
51063         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
51065 2011-05-23  Bruno Haible  <bruno@clisp.org>
51067         userspec: Move AC_LIBOBJ invocations to module description.
51068         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
51069         * modules/userspec (Makefile.am): Augment lib_SOURCES.
51071 2011-05-23  Bruno Haible  <bruno@clisp.org>
51073         unlinkdir: Move AC_LIBOBJ invocations to module description.
51074         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
51075         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
51077 2011-05-23  Bruno Haible  <bruno@clisp.org>
51079         unistd-safer: Move AC_LIBOBJ invocations to module description.
51080         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
51081         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
51083 2011-05-23  Bruno Haible  <bruno@clisp.org>
51085         tempname: Move AC_LIBOBJ invocations to module description.
51086         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
51087         * modules/tempname (Makefile.am): Augment lib_SOURCES.
51089 2011-05-23  Bruno Haible  <bruno@clisp.org>
51091         strftime: Move AC_LIBOBJ invocations to module description.
51092         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
51093         * modules/strftime (Makefile.am): Augment lib_SOURCES.
51095 2011-05-23  Bruno Haible  <bruno@clisp.org>
51097         stdlib-safer: Move AC_LIBOBJ invocations to module description.
51098         * m4/stdlib-safer.m4: Remove file.
51099         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
51100         (configure.ac): Remove gl_STDLIB_SAFER call.
51101         (Makefile.am): Augment lib_SOURCES.
51103 2011-05-23  Bruno Haible  <bruno@clisp.org>
51105         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
51106         * m4/stdio-safer.m4: Remove file.
51107         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
51108         (configure.ac): Remove gl_TMPFILE_SAFER call.
51109         (Makefile.am): Augment lib_SOURCES.
51111 2011-05-23  Bruno Haible  <bruno@clisp.org>
51113         popen-safer: Move AC_LIBOBJ invocations to module description.
51114         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
51115         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
51116         (configure.ac): Remove gl_POPEN_SAFER call.
51117         (Makefile.am): Augment lib_SOURCES.
51119 2011-05-23  Bruno Haible  <bruno@clisp.org>
51121         freopen-safer: Move AC_LIBOBJ invocations to module description.
51122         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
51123         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
51124         (configure.ac): Remove gl_FREOPEN_SAFER call.
51125         (Makefile.am): Augment lib_SOURCES.
51127 2011-05-23  Bruno Haible  <bruno@clisp.org>
51129         fopen-safer: Move AC_LIBOBJ invocations to module description.
51130         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
51131         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
51132         (configure.ac): Remove gl_FOPEN_SAFER call.
51133         (Makefile.am): Augment lib_SOURCES.
51135 2011-05-23  Bruno Haible  <bruno@clisp.org>
51137         crypto/sha512: Move AC_LIBOBJ invocations to module description.
51138         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
51139         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
51141 2011-05-23  Bruno Haible  <bruno@clisp.org>
51143         crypto/sha256: Move AC_LIBOBJ invocations to module description.
51144         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
51145         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
51147 2011-05-23  Bruno Haible  <bruno@clisp.org>
51149         crypto/sha1: Move AC_LIBOBJ invocations to module description.
51150         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
51151         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
51153 2011-05-23  Bruno Haible  <bruno@clisp.org>
51155         settime: Move AC_LIBOBJ invocations to module description.
51156         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
51157         * modules/settime (Makefile.am): Augment lib_SOURCES.
51159 2011-05-23  Bruno Haible  <bruno@clisp.org>
51161         savedir: Move AC_LIBOBJ invocations to module description.
51162         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
51163         * modules/savedir (Makefile.am): Augment lib_SOURCES.
51165 2011-05-23  Bruno Haible  <bruno@clisp.org>
51167         save-cwd: Move AC_LIBOBJ invocations to module description.
51168         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
51169         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
51171 2011-05-23  Bruno Haible  <bruno@clisp.org>
51173         same: Move AC_LIBOBJ invocations to module description.
51174         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
51175         * modules/same (Makefile.am): Augment lib_SOURCES.
51177 2011-05-23  Bruno Haible  <bruno@clisp.org>
51179         safe-write: Move AC_LIBOBJ invocations to module description.
51180         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
51181         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
51182         instead of gl_SAFE_WRITE.
51183         (Makefile.am): Augment lib_SOURCES.
51185 2011-05-23  Bruno Haible  <bruno@clisp.org>
51187         safe-read: Move AC_LIBOBJ invocations to module description.
51188         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
51189         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
51190         of gl_SAFE_READ.
51191         (Makefile.am): Augment lib_SOURCES.
51193 2011-05-23  Bruno Haible  <bruno@clisp.org>
51195         safe-alloc: Move AC_LIBOBJ invocations to module description.
51196         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
51197         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
51199 2011-05-23  Bruno Haible  <bruno@clisp.org>
51201         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
51202         * m4/rijndael.m4: Remove file.
51203         * modules/crypto/rijndael (Files): Remove it.
51204         (configure.ac): Remove gl_RIJNDAEL call.
51205         (Makefile.am): Augment lib_SOURCES.
51207 2011-05-23  Bruno Haible  <bruno@clisp.org>
51209         readtokens: Move AC_LIBOBJ invocations to module description.
51210         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
51211         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
51213 2011-05-23  Bruno Haible  <bruno@clisp.org>
51215         read-file: Move AC_LIBOBJ invocations to module description.
51216         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
51217         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
51218         of gl_FUNC_READ_FILE.
51219         (Makefile.am): Augment lib_SOURCES.
51221 2011-05-23  Bruno Haible  <bruno@clisp.org>
51223         quotearg: Move AC_LIBOBJ invocations to module description.
51224         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
51225         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
51227 2011-05-23  Bruno Haible  <bruno@clisp.org>
51229         quote: Move AC_LIBOBJ invocations to module description.
51230         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
51231         * modules/quote (Makefile.am): Augment lib_SOURCES.
51233 2011-05-23  Bruno Haible  <bruno@clisp.org>
51235         posixver: Move AC_LIBOBJ invocations to module description.
51236         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
51237         * modules/posixver (Makefile.am): Augment lib_SOURCES.
51239 2011-05-23  Bruno Haible  <bruno@clisp.org>
51241         posixtm: Move AC_LIBOBJ invocations to module description.
51242         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
51243         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
51245 2011-05-23  Bruno Haible  <bruno@clisp.org>
51247         physmem: Move AC_LIBOBJ invocations to module description.
51248         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
51249         * modules/physmem (Makefile.am): Augment lib_SOURCES.
51251 2011-05-23  Bruno Haible  <bruno@clisp.org>
51253         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
51254         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
51255         invocation.
51256         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
51258 2011-05-23  Bruno Haible  <bruno@clisp.org>
51260         mpsort: Move AC_LIBOBJ invocations to module description.
51261         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
51262         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
51264 2011-05-23  Bruno Haible  <bruno@clisp.org>
51266         modechange: Move AC_LIBOBJ invocations to module description.
51267         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
51268         * modules/modechange (Makefile.am): Augment lib_SOURCES.
51270 2011-05-23  Bruno Haible  <bruno@clisp.org>
51272         mkdir-p: Move AC_LIBOBJ invocations to module description.
51273         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
51274         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
51276 2011-05-23  Bruno Haible  <bruno@clisp.org>
51278         mkancesdirs: Move AC_LIBOBJ invocations to module description.
51279         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
51280         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
51282 2011-05-23  Bruno Haible  <bruno@clisp.org>
51284         mgetgroups: Move AC_LIBOBJ invocations to module description.
51285         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
51286         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
51288 2011-05-23  Bruno Haible  <bruno@clisp.org>
51290         memxor: Move AC_LIBOBJ invocations to module description.
51291         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
51292         * modules/memxor (Makefile.am): Augment lib_SOURCES.
51294 2011-05-23  Bruno Haible  <bruno@clisp.org>
51296         memcoll: Move AC_LIBOBJ invocations to module description.
51297         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
51298         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
51300 2011-05-23  Bruno Haible  <bruno@clisp.org>
51302         memcasecmp: Move AC_LIBOBJ invocations to module description.
51303         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
51304         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
51306 2011-05-23  Bruno Haible  <bruno@clisp.org>
51308         crypto/md5: Move AC_LIBOBJ invocations to module description.
51309         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
51310         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
51312 2011-05-23  Bruno Haible  <bruno@clisp.org>
51314         crypto/md4: Move AC_LIBOBJ invocations to module description.
51315         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
51316         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
51318 2011-05-23  Bruno Haible  <bruno@clisp.org>
51320         crypto/md2: Move AC_LIBOBJ invocations to module description.
51321         * m4/md2.m4: Remove file.
51322         * modules/crypto/md2 (Files): Remove it.
51323         (configure.ac): Remove gl_MD2 call.
51324         (Makefile.am): Augment lib_SOURCES.
51326 2011-05-23  Bruno Haible  <bruno@clisp.org>
51328         long-options: Move AC_LIBOBJ invocations to module description.
51329         * m4/long-options.m4: Remove file.
51330         * modules/long-options (Files): Remove it.
51331         (configure.ac): Remove gl_LONG_OPTIONS call.
51332         (Makefile.am): Augment lib_SOURCES.
51334 2011-05-23  Bruno Haible  <bruno@clisp.org>
51336         i-ring: Move AC_LIBOBJ invocations to module description.
51337         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
51338         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
51340 2011-05-23  Bruno Haible  <bruno@clisp.org>
51342         idcache: Move AC_LIBOBJ invocations to module description.
51343         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
51344         * modules/idcache (Makefile.am): Augment lib_SOURCES.
51346 2011-05-23  Bruno Haible  <bruno@clisp.org>
51348         human: Move AC_LIBOBJ invocations to module description.
51349         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
51350         * modules/human (Makefile.am): Augment lib_SOURCES.
51352 2011-05-23  Bruno Haible  <bruno@clisp.org>
51354         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
51355         * m4/hmac-sha1.m4: Remove file.
51356         * modules/crypto/hmac-sha1 (Files): Remove it.
51357         (configure.ac): Remove gl_HMAC_SHA1 call.
51358         (Makefile.am): Augment lib_SOURCES.
51360 2011-05-23  Bruno Haible  <bruno@clisp.org>
51362         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
51363         * m4/hmac-md5.m4: Remove file.
51364         * modules/crypto/hmac-md5 (Files): Remove it.
51365         (configure.ac): Remove gl_HMAC_MD5 call.
51366         (Makefile.am): Augment lib_SOURCES.
51368 2011-05-23  Bruno Haible  <bruno@clisp.org>
51370         hash: Move AC_LIBOBJ invocations to module description.
51371         * m4/hash.m4: Remove file.
51372         * modules/hash (Files): Remove it.
51373         (configure.ac): Remove gl_HASH call.
51374         (Makefile.am): Augment lib_SOURCES.
51376 2011-05-23  Bruno Haible  <bruno@clisp.org>
51378         hard-locale: Move AC_LIBOBJ invocations to module description.
51379         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
51380         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
51382 2011-05-23  Bruno Haible  <bruno@clisp.org>
51384         getugroups: Move AC_LIBOBJ invocations to module description.
51385         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
51386         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
51388 2011-05-23  Bruno Haible  <bruno@clisp.org>
51390         gettime: Move AC_LIBOBJ invocations to module description.
51391         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
51392         * modules/gettime (Makefile.am): Augment lib_SOURCES.
51394 2011-05-23  Bruno Haible  <bruno@clisp.org>
51396         getndelim2: Move AC_LIBOBJ invocations to module description.
51397         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
51398         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
51400 2011-05-23  Bruno Haible  <bruno@clisp.org>
51402         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
51403         * m4/gc-pbkdf2-sha1.m4: Remove file.
51404         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
51405         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
51406         (Makefile.am): Augment lib_SOURCES.
51408 2011-05-23  Bruno Haible  <bruno@clisp.org>
51410         fts: Move AC_LIBOBJ invocations to module description.
51411         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
51412         * modules/fts (configure.ac): ... to here.
51414 2011-05-23  Bruno Haible  <bruno@clisp.org>
51416         file-type: Move AC_LIBOBJ invocations to module description.
51417         * m4/file-type.m4: Remove file.
51418         * modules/file-type (Files): Remove it.
51419         (configure.ac): Remove gl_FILE_TYPE call.
51420         (Makefile.am): Augment lib_SOURCES.
51422 2011-05-23  Bruno Haible  <bruno@clisp.org>
51424         filenamecat*: Respect rules for use of AC_LIBOBJ.
51425         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
51426         Remove AC_LIBOBJ invocation.
51427         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
51428         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
51430 2011-05-23  Bruno Haible  <bruno@clisp.org>
51432         filemode: Move AC_LIBOBJ invocations to module description.
51433         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
51434         * modules/filemode (Makefile.am): Augment lib_SOURCES.
51436 2011-05-23  Bruno Haible  <bruno@clisp.org>
51438         openat-safer: Move AC_LIBOBJ invocations to module description.
51439         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
51440         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
51442 2011-05-23  Bruno Haible  <bruno@clisp.org>
51444         fcntl-safer: Move AC_LIBOBJ invocations to module description.
51445         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
51446         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
51448 2011-05-23  Bruno Haible  <bruno@clisp.org>
51450         exclude: Move AC_LIBOBJ invocations to module description.
51451         * m4/exclude.m4: Remove file.
51452         * modules/exclude (Files): Remove it.
51453         (configure.ac): Remove gl_EXCLUDE call.
51454         (Makefile.am): Augment lib_SOURCES.
51456 2011-05-23  Bruno Haible  <bruno@clisp.org>
51458         dirname*: Respect rules for use of AC_LIBOBJ.
51459         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
51460         invocations.
51461         * modules/dirname (Makefile.am): Augment lib_SOURCES.
51462         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
51464 2011-05-23  Bruno Haible  <bruno@clisp.org>
51466         dirent-safer: Move AC_LIBOBJ invocations to module description.
51467         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
51468         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
51470 2011-05-23  Bruno Haible  <bruno@clisp.org>
51472         crypto/des: Move AC_LIBOBJ invocations to module description.
51473         * m4/des.m4: Remove file.
51474         * modules/crypto/des (Files): Remove it.
51475         (configure.ac): Remove gl_DES call.
51476         (Makefile.am): Augment lib_SOURCES.
51478 2011-05-23  Bruno Haible  <bruno@clisp.org>
51480         cycle-check: Move AC_LIBOBJ invocations to module description.
51481         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
51482         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
51484 2011-05-23  Bruno Haible  <bruno@clisp.org>
51486         c-strtold: Move AC_LIBOBJ invocations to module description.
51487         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
51488         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
51490 2011-05-23  Bruno Haible  <bruno@clisp.org>
51492         c-strtod: Move AC_LIBOBJ invocations to module description.
51493         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
51494         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
51496 2011-05-23  Bruno Haible  <bruno@clisp.org>
51498         crc: Move AC_LIBOBJ invocations to module description.
51499         * m4/crc.m4: Remove file.
51500         * modules/crc (Files): Remove it.
51501         (configure.ac): Remove gl_CRC call.
51502         (Makefile.am): Augment lib_SOURCES.
51504 2011-05-23  Bruno Haible  <bruno@clisp.org>
51506         close-stream: Move AC_LIBOBJ invocations to module description.
51507         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
51508         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
51510 2011-05-23  Bruno Haible  <bruno@clisp.org>
51512         closeout: Move AC_LIBOBJ invocations to module description.
51513         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
51514         * modules/closeout (Makefile.am): Augment lib_SOURCES.
51516 2011-05-23  Bruno Haible  <bruno@clisp.org>
51518         closein: Move AC_LIBOBJ invocations to module description.
51519         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
51520         * modules/closein (Makefile.am): Augment lib_SOURCES.
51522 2011-05-23  Bruno Haible  <bruno@clisp.org>
51524         cloexec: Move AC_LIBOBJ invocations to module description.
51525         * m4/cloexec.m4: Remove file.
51526         * modules/cloexec (Files): Remove it.
51527         (configure.ac): Remove gl_CLOEXEC call.
51528         (Makefile.am): Augment lib_SOURCES.
51530 2011-05-23  Bruno Haible  <bruno@clisp.org>
51532         check-version: Move AC_LIBOBJ invocations to module description.
51533         * m4/check-version.m4: Remove file.
51534         * modules/check-version (Files): Remove it.
51535         (configure.ac): Remove gl_CHECK_VERSION call.
51536         (Makefile.am): Augment lib_SOURCES.
51538 2011-05-23  Bruno Haible  <bruno@clisp.org>
51540         chdir-safer: Move AC_LIBOBJ invocations to module description.
51541         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
51542         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
51544 2011-05-23  Bruno Haible  <bruno@clisp.org>
51546         canonicalize: Move AC_LIBOBJ invocations to module description.
51547         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
51548         AC_LIBOBJ invocation.
51549         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
51551 2011-05-23  Bruno Haible  <bruno@clisp.org>
51553         canon-host: Move AC_LIBOBJ invocations to module description.
51554         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
51555         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
51556         instead of gl_CANON_HOST.
51557         (Makefile.am): Augment lib_SOURCES.
51559 2011-05-23  Bruno Haible  <bruno@clisp.org>
51561         backupfile: Move AC_LIBOBJ invocations to module description.
51562         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
51563         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
51565 2011-05-23  Bruno Haible  <bruno@clisp.org>
51567         argmatch: Move AC_LIBOBJ invocations to module description.
51568         * m4/argmatch.m4: Remove file.
51569         * modules/argmatch (Files): Remove it.
51570         (configure.ac): Remove gl_ARGMATCH call.
51571         (Makefile.am): Augment lib_SOURCES.
51573 2011-05-23  Bruno Haible  <bruno@clisp.org>
51575         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
51576         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
51577         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
51579 2011-05-23  Bruno Haible  <bruno@clisp.org>
51581         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
51582         * m4/arcfour.m4: Remove file.
51583         * modules/crypto/arcfour (Files): Remove it.
51584         (configure.ac): Remove gl_ARCFOUR call.
51585         (Makefile.am): Augment lib_SOURCES.
51587 2011-05-22  Bruno Haible  <bruno@clisp.org>
51589         write: Move AC_LIBOBJ invocations to module description.
51590         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
51591         * modules/write (configure.ac): ... to here.
51593 2011-05-22  Bruno Haible  <bruno@clisp.org>
51595         wmemset: Move AC_LIBOBJ invocations to module description.
51596         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
51597         here...
51598         * modules/wmemset (configure.ac): ... to here.
51600 2011-05-22  Bruno Haible  <bruno@clisp.org>
51602         wmemmove: Move AC_LIBOBJ invocations to module description.
51603         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
51604         here...
51605         * modules/wmemmove (configure.ac): ... to here.
51607 2011-05-22  Bruno Haible  <bruno@clisp.org>
51609         wmemcpy: Move AC_LIBOBJ invocations to module description.
51610         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
51611         here...
51612         * modules/wmemcpy (configure.ac): ... to here.
51614 2011-05-22  Bruno Haible  <bruno@clisp.org>
51616         wmemcmp: Move AC_LIBOBJ invocations to module description.
51617         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
51618         here...
51619         * modules/wmemcmp (configure.ac): ... to here.
51621 2011-05-22  Bruno Haible  <bruno@clisp.org>
51623         wmemchr: Move AC_LIBOBJ invocations to module description.
51624         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
51625         here...
51626         * modules/wmemchr (configure.ac): ... to here.
51628 2011-05-22  Bruno Haible  <bruno@clisp.org>
51630         wcswidth: Move AC_LIBOBJ invocations to module description.
51631         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
51632         here...
51633         * modules/wcswidth (configure.ac): ... to here.
51635 2011-05-22  Bruno Haible  <bruno@clisp.org>
51637         wcwidth: Respect rules for use of AC_LIBOBJ.
51638         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
51639         invocation from here...
51640         * modules/wcwidth (configure.ac): ... to here.
51641         (Depends-on): Update conditions.
51643 2011-05-22  Bruno Haible  <bruno@clisp.org>
51645         wctype: Move AC_LIBOBJ invocations to module description.
51646         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
51647         invocation from here...
51648         * modules/wctype (configure.ac): ... to here.
51649         (Depends-on): Update conditions.
51651 2011-05-22  Bruno Haible  <bruno@clisp.org>
51653         wctrans: Move AC_LIBOBJ invocations to module description.
51654         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
51655         invocation from here...
51656         * modules/wctrans (configure.ac): ... to here.
51658 2011-05-22  Bruno Haible  <bruno@clisp.org>
51660         wctomb: Move AC_LIBOBJ invocations to module description.
51661         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
51662         invocations from here...
51663         * modules/wctomb (configure.ac): ... to here.
51665 2011-05-22  Bruno Haible  <bruno@clisp.org>
51667         wctob: Move AC_LIBOBJ invocations to module description.
51668         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
51669         gl_PREREQ_WCTOB invocations from here...
51670         * modules/wctob (configure.ac): ... to here.
51671         (Depends-on): Update conditions.
51673 2011-05-22  Bruno Haible  <bruno@clisp.org>
51675         wcsxfrm: Move AC_LIBOBJ invocations to module description.
51676         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
51677         here...
51678         * modules/wcsxfrm (configure.ac): ... to here.
51680 2011-05-22  Bruno Haible  <bruno@clisp.org>
51682         wcstok: Move AC_LIBOBJ invocations to module description.
51683         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
51684         * modules/wcstok (configure.ac): ... to here.
51686 2011-05-22  Bruno Haible  <bruno@clisp.org>
51688         wcsstr: Move AC_LIBOBJ invocations to module description.
51689         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
51690         * modules/wcsstr (configure.ac): ... to here.
51692 2011-05-22  Bruno Haible  <bruno@clisp.org>
51694         wcsspn: Move AC_LIBOBJ invocations to module description.
51695         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
51696         * modules/wcsspn (configure.ac): ... to here.
51698 2011-05-22  Bruno Haible  <bruno@clisp.org>
51700         wcsrtombs: Move AC_LIBOBJ invocations to module description.
51701         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
51702         gl_PREREQ_WCSRTOMBS invocations from here...
51703         * modules/wcsrtombs (configure.ac): ... to here.
51705 2011-05-22  Bruno Haible  <bruno@clisp.org>
51707         wcsrchr: Move AC_LIBOBJ invocations to module description.
51708         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
51709         here...
51710         * modules/wcsrchr (configure.ac): ... to here.
51712 2011-05-22  Bruno Haible  <bruno@clisp.org>
51714         wcspbrk: Move AC_LIBOBJ invocations to module description.
51715         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
51716         here...
51717         * modules/wcspbrk (configure.ac): ... to here.
51719 2011-05-22  Bruno Haible  <bruno@clisp.org>
51721         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
51722         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
51723         gl_PREREQ_WCSNRTOMBS invocations from here...
51724         * modules/wcsnrtombs (configure.ac): ... to here.
51726 2011-05-22  Bruno Haible  <bruno@clisp.org>
51728         wcsnlen: Move AC_LIBOBJ invocations to module description.
51729         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
51730         here...
51731         * modules/wcsnlen (configure.ac): ... to here.
51733 2011-05-22  Bruno Haible  <bruno@clisp.org>
51735         wcsncpy: Move AC_LIBOBJ invocations to module description.
51736         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
51737         here...
51738         * modules/wcsncpy (configure.ac): ... to here.
51740 2011-05-22  Bruno Haible  <bruno@clisp.org>
51742         wcsncmp: Move AC_LIBOBJ invocations to module description.
51743         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
51744         here...
51745         * modules/wcsncmp (configure.ac): ... to here.
51747 2011-05-22  Bruno Haible  <bruno@clisp.org>
51749         wcsncat: Move AC_LIBOBJ invocations to module description.
51750         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
51751         here...
51752         * modules/wcsncat (configure.ac): ... to here.
51754 2011-05-22  Bruno Haible  <bruno@clisp.org>
51756         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
51757         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
51758         from here...
51759         * modules/wcsncasecmp (configure.ac): ... to here.
51761 2011-05-22  Bruno Haible  <bruno@clisp.org>
51763         wcslen: Move AC_LIBOBJ invocations to module description.
51764         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
51765         * modules/wcslen (configure.ac): ... to here.
51767 2011-05-22  Bruno Haible  <bruno@clisp.org>
51769         wcsdup: Move AC_LIBOBJ invocations to module description.
51770         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
51771         * modules/wcsdup (configure.ac): ... to here.
51773 2011-05-22  Bruno Haible  <bruno@clisp.org>
51775         wcscspn: Move AC_LIBOBJ invocations to module description.
51776         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
51777         here...
51778         * modules/wcscspn (configure.ac): ... to here.
51780 2011-05-22  Bruno Haible  <bruno@clisp.org>
51782         wcscpy: Move AC_LIBOBJ invocations to module description.
51783         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
51784         * modules/wcscpy (configure.ac): ... to here.
51786 2011-05-22  Bruno Haible  <bruno@clisp.org>
51788         wcscoll: Move AC_LIBOBJ invocations to module description.
51789         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
51790         here...
51791         * modules/wcscoll (configure.ac): ... to here.
51793 2011-05-22  Bruno Haible  <bruno@clisp.org>
51795         wcscmp: Move AC_LIBOBJ invocations to module description.
51796         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
51797         * modules/wcscmp (configure.ac): ... to here.
51799 2011-05-22  Bruno Haible  <bruno@clisp.org>
51801         wcschr: Move AC_LIBOBJ invocations to module description.
51802         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
51803         * modules/wcschr (configure.ac): ... to here.
51805 2011-05-22  Bruno Haible  <bruno@clisp.org>
51807         wcscat: Move AC_LIBOBJ invocations to module description.
51808         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
51809         * modules/wcscat (configure.ac): ... to here.
51811 2011-05-22  Bruno Haible  <bruno@clisp.org>
51813         wcscasecmp: Move AC_LIBOBJ invocations to module description.
51814         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
51815         here...
51816         * modules/wcscasecmp (configure.ac): ... to here.
51818 2011-05-22  Bruno Haible  <bruno@clisp.org>
51820         wcrtomb: Move AC_LIBOBJ invocations to module description.
51821         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
51822         invocations from here...
51823         * modules/wcrtomb (configure.ac): ... to here.
51825 2011-05-22  Bruno Haible  <bruno@clisp.org>
51827         wcpncpy: Move AC_LIBOBJ invocations to module description.
51828         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
51829         here...
51830         * modules/wcpncpy (configure.ac): ... to here.
51832 2011-05-22  Bruno Haible  <bruno@clisp.org>
51834         wcpcpy: Move AC_LIBOBJ invocations to module description.
51835         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
51836         * modules/wcpcpy (configure.ac): ... to here.
51838 2011-05-22  Bruno Haible  <bruno@clisp.org>
51840         waitpid: Move AC_LIBOBJ invocations to module description.
51841         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
51842         invocation from here...
51843         * modules/waitpid (configure.ac): ... to here.
51845 2011-05-22  Bruno Haible  <bruno@clisp.org>
51847         utimensat: Move AC_LIBOBJ invocations to module description.
51848         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
51849         here...
51850         * modules/utimensat (configure.ac): ... to here.
51852 2011-05-22  Bruno Haible  <bruno@clisp.org>
51854         usleep: Move AC_LIBOBJ invocations to module description.
51855         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
51856         here...
51857         * modules/usleep (configure.ac): ... to here.
51859 2011-05-22  Bruno Haible  <bruno@clisp.org>
51861         unlockpt: Move AC_LIBOBJ invocations to module description.
51862         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
51863         gl_PREREQ_UNLOCKPT invocations from here...
51864         * modules/unlockpt (configure.ac): ... to here.
51866 2011-05-22  Bruno Haible  <bruno@clisp.org>
51868         unlink: Respect rules for use of AC_LIBOBJ.
51869         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
51870         * modules/unlink (configure.ac): ... to here.
51872 2011-05-22  Bruno Haible  <bruno@clisp.org>
51874         uname: Move AC_LIBOBJ invocations to module description.
51875         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
51876         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
51877         here...
51878         * modules/uname (configure.ac): ... to here.
51880 2011-05-22  Bruno Haible  <bruno@clisp.org>
51882         ttyname_r: Move AC_LIBOBJ invocations to module description.
51883         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
51884         gl_PREREQ_TTYNAME_R invocations from here...
51885         * modules/ttyname_r (configure.ac): ... to here.
51887 2011-05-22  Bruno Haible  <bruno@clisp.org>
51889         tsearch: Move AC_LIBOBJ invocations to module description.
51890         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
51891         invocations from here...
51892         * modules/tsearch (configure.ac): ... to here.
51894 2011-05-22  Bruno Haible  <bruno@clisp.org>
51896         towctrans: Move AC_LIBOBJ invocations to module description.
51897         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
51898         AC_LIBOBJ invocation from here...
51899         * modules/towctrans (configure.ac): ... to here.
51901 2011-05-22  Bruno Haible  <bruno@clisp.org>
51903         tmpfile: Move AC_LIBOBJ invocations to module description.
51904         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
51905         invocations from here...
51906         * modules/tmpfile (configure.ac): ... to here.
51908 2011-05-22  Bruno Haible  <bruno@clisp.org>
51910         times: Move AC_LIBOBJ invocations to module description.
51911         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
51912         * modules/times (configure.ac): ... to here.
51914 2011-05-22  Bruno Haible  <bruno@clisp.org>
51916         time_r: Move AC_LIBOBJ invocations to module description.
51917         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
51918         invocations from here...
51919         * modules/time_r (configure.ac): ... to here.
51921 2011-05-22  Bruno Haible  <bruno@clisp.org>
51923         timegm: Move AC_LIBOBJ invocations to module description.
51924         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
51925         invocations from here...
51926         * modules/timegm (configure.ac): ... to here.
51928 2011-05-22  Bruno Haible  <bruno@clisp.org>
51930         tcgetsid: Move AC_LIBOBJ invocations to module description.
51931         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
51932         and gl_PREREQ_TCGETSID invocations from here...
51933         * modules/tcgetsid (configure.ac): ... to here.
51934         (Depends-on): Update conditions.
51936 2011-05-22  Bruno Haible  <bruno@clisp.org>
51938         symlinkat: Move AC_LIBOBJ invocations to module description.
51939         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
51940         here...
51941         * modules/symlinkat (configure.ac): ... to here.
51943 2011-05-22  Bruno Haible  <bruno@clisp.org>
51945         symlink: Move AC_LIBOBJ invocations to module description.
51946         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
51947         here...
51948         * modules/symlink (configure.ac): ... to here.
51950 2011-05-22  Bruno Haible  <bruno@clisp.org>
51952         strverscmp: Move AC_LIBOBJ invocations to module description.
51953         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
51954         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
51955         from here...
51956         * modules/strverscmp (configure.ac): ... to here.
51958 2011-05-22  Bruno Haible  <bruno@clisp.org>
51960         strtok_r: Move AC_LIBOBJ invocations to module description.
51961         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
51962         and gl_PREREQ_STRTOK_R invocations from here...
51963         * modules/strtok_r (configure.ac): ... to here.
51964         (Depends-on): Update conditions.
51966 2011-05-22  Bruno Haible  <bruno@clisp.org>
51968         strtoumax: Move AC_LIBOBJ invocations to module description.
51969         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
51970         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
51971         from here...
51972         * modules/strtoumax (configure.ac): ... to here.
51974 2011-05-22  Bruno Haible  <bruno@clisp.org>
51976         strtoimax: Move AC_LIBOBJ invocations to module description.
51977         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
51978         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
51979         from here...
51980         * modules/strtoimax (configure.ac): ... to here.
51982 2011-05-22  Bruno Haible  <bruno@clisp.org>
51984         strtoull: Move AC_LIBOBJ invocations to module description.
51985         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
51986         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
51987         from here...
51988         * modules/strtoull (configure.ac): ... to here.
51990 2011-05-22  Bruno Haible  <bruno@clisp.org>
51992         strtoll: Move AC_LIBOBJ invocations to module description.
51993         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
51994         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
51995         here...
51996         * modules/strtoll (configure.ac): ... to here.
51998 2011-05-22  Bruno Haible  <bruno@clisp.org>
52000         strtoul: Move AC_LIBOBJ invocations to module description.
52001         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
52002         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52003         * modules/strtoul (configure.ac): ... to here.
52005 2011-05-22  Bruno Haible  <bruno@clisp.org>
52007         strtol: Move AC_LIBOBJ invocations to module description.
52008         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
52009         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52010         * modules/strtol (configure.ac): ... to here.
52012 2011-05-22  Bruno Haible  <bruno@clisp.org>
52014         strtod: Move AC_LIBOBJ invocations to module description.
52015         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
52016         invocations from here...
52017         * modules/strtod (configure.ac): ... to here.
52019 2011-05-22  Bruno Haible  <bruno@clisp.org>
52021         strstr*: Move AC_LIBOBJ invocations to module description.
52022         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
52023         invocations from here...
52024         * modules/strstr-simple (configure.ac): ... to here.
52025         * modules/strstr (configure.ac): ... and here.
52027 2011-05-22  Bruno Haible  <bruno@clisp.org>
52029         strsignal: Move AC_LIBOBJ invocations to module description.
52030         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
52031         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
52032         * modules/strsignal (configure.ac): ... to here.
52033         (Depends-on): Update conditions.
52035 2011-05-22  Bruno Haible  <bruno@clisp.org>
52037         strsep: Move AC_LIBOBJ invocations to module description.
52038         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
52039         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
52040         here...
52041         * modules/strsep (configure.ac): ... to here.
52043 2011-05-22  Bruno Haible  <bruno@clisp.org>
52045         strptime: Move AC_LIBOBJ invocations to module description.
52046         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
52047         gl_PREREQ_STRPTIME invocations from here...
52048         * modules/strptime (configure.ac): ... to here.
52050 2011-05-22  Bruno Haible  <bruno@clisp.org>
52052         strpbrk: Move AC_LIBOBJ invocations to module description.
52053         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
52054         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
52055         here...
52056         * modules/strpbrk (configure.ac): ... to here.
52058 2011-05-22  Bruno Haible  <bruno@clisp.org>
52060         strnlen: Move AC_LIBOBJ invocations to module description.
52061         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
52062         invocations from here...
52063         * modules/strnlen (configure.ac): ... to here.
52065 2011-05-22  Bruno Haible  <bruno@clisp.org>
52067         strndup: Move AC_LIBOBJ invocations to module description.
52068         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
52069         invocations from here...
52070         * modules/strndup (configure.ac): ... to here.
52071         (Depends-on): Update conditions.
52073 2011-05-22  Bruno Haible  <bruno@clisp.org>
52075         strncat: Move AC_LIBOBJ invocations to module description.
52076         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
52077         invocations from here...
52078         * modules/strncat (configure.ac): ... to here.
52080 2011-05-22  Bruno Haible  <bruno@clisp.org>
52082         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
52083         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
52084         invocations from here...
52085         * modules/strdup (configure.ac): ... to here.
52086         * modules/strdup-posix (configure.ac): ... and here.
52088 2011-05-22  Bruno Haible  <bruno@clisp.org>
52090         strcspn: Move AC_LIBOBJ invocations to module description.
52091         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
52092         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
52093         here...
52094         * modules/strcspn (configure.ac): ... to here.
52096 2011-05-22  Bruno Haible  <bruno@clisp.org>
52098         strchrnul: Move AC_LIBOBJ invocations to module description.
52099         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
52100         gl_PREREQ_STRCHRNUL invocations from here...
52101         * modules/strchrnul (configure.ac): ... to here.
52103 2011-05-22  Bruno Haible  <bruno@clisp.org>
52105         strcasestr*: Move AC_LIBOBJ invocations to module description.
52106         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
52107         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
52108         * modules/strcasestr-simple (configure.ac): ... to here.
52109         * modules/strcasestr (configure.ac): ... and here.
52111 2011-05-22  Bruno Haible  <bruno@clisp.org>
52113         strcase: Move AC_LIBOBJ invocations to module description.
52114         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
52115         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
52116         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
52117         gl_PREREQ_STRNCASECMP invocations from here...
52118         * modules/strcase (configure.ac): ... to here.
52120 2011-05-22  Bruno Haible  <bruno@clisp.org>
52122         stpncpy: Move AC_LIBOBJ invocations to module description.
52123         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
52124         here...
52125         * modules/stpncpy (configure.ac): ... to here.
52127 2011-05-22  Bruno Haible  <bruno@clisp.org>
52129         stpcpy: Move AC_LIBOBJ invocations to module description.
52130         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
52131         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
52132         here...
52133         * modules/stpcpy (configure.ac): ... to here.
52135 2011-05-21  Bruno Haible  <bruno@clisp.org>
52137         stat: Move AC_LIBOBJ invocations to module description.
52138         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
52139         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
52140         here...
52141         * modules/stat (configure.ac): ... to here.
52143 2011-05-21  Bruno Haible  <bruno@clisp.org>
52145         sleep: Move AC_LIBOBJ invocations to module description.
52146         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
52147         * modules/sleep (configure.ac): ... to here.
52149 2011-05-21  Bruno Haible  <bruno@clisp.org>
52151         signbit: Move AC_LIBOBJ invocations to module description.
52152         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
52153         * modules/signbit (configure.ac): ... to here.
52155 2011-05-21  Bruno Haible  <bruno@clisp.org>
52157         sigprocmask: Move AC_LIBOBJ invocations to module description.
52158         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
52159         gl_PREREQ_SIGPROMASK invocations from here...
52160         * modules/sigprocmask (configure.ac): ... to here.
52162 2011-05-21  Bruno Haible  <bruno@clisp.org>
52164         sigaction: Move AC_LIBOBJ invocations to module description.
52165         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
52166         gl_PREREQ_SIGACTION invocations from here...
52167         * modules/sigaction (configure.ac): ... to here.
52169 2011-05-21  Bruno Haible  <bruno@clisp.org>
52171         sig2str: Move AC_LIBOBJ invocations to module description.
52172         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
52173         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
52174         here...
52175         * modules/sig2str (configure.ac): ... to here.
52177 2011-05-21  Bruno Haible  <bruno@clisp.org>
52179         setlocale: Move AC_LIBOBJ invocations to module description.
52180         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
52181         gl_PREREQ_SETLOCALE invocations from here...
52182         * modules/setlocale (configure.ac): ... to here.
52184 2011-05-21  Bruno Haible  <bruno@clisp.org>
52186         unsetenv: Move AC_LIBOBJ invocations to module description.
52187         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
52188         and gl_PREREQ_UNSETENV invocations from here...
52189         * modules/unsetenv (configure.ac): ... to here.
52190         (Depends-on): Update.
52192 2011-05-21  Bruno Haible  <bruno@clisp.org>
52194         setenv: Move AC_LIBOBJ invocations to module description.
52195         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
52196         here...
52197         * modules/setenv (configure.ac): ... to here.
52199 2011-05-21  Bruno Haible  <bruno@clisp.org>
52201         selinux-h: Move AC_LIBOBJ invocations to module description.
52202         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
52203         AC_LIBOBJ invocation from here...
52204         * modules/selinux-h (configure.ac): ... to here.
52206 2011-05-21  Bruno Haible  <bruno@clisp.org>
52208         select: Respect rules for use of AC_LIBOBJ.
52209         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
52210         here...
52211         * modules/select (configure.ac): ... to here.
52213 2011-05-21  Bruno Haible  <bruno@clisp.org>
52215         scandir: Move AC_LIBOBJ invocations to module description.
52216         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
52217         invocations from here...
52218         * modules/scandir (configure.ac): ... to here.
52220 2011-05-21  Bruno Haible  <bruno@clisp.org>
52222         rpmatch: Move AC_LIBOBJ invocations to module description.
52223         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
52224         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
52225         here...
52226         * modules/rpmatch (configure.ac): ... to here.
52228 2011-05-21  Bruno Haible  <bruno@clisp.org>
52230         rmdir: Respect rules for use of AC_LIBOBJ.
52231         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
52232         * modules/rmdir (configure.ac): ... to here.
52234 2011-05-21  Bruno Haible  <bruno@clisp.org>
52236         renameat: Move AC_LIBOBJ invocations to module description.
52237         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
52238         here...
52239         * modules/renameat (configure.ac): ... to here.
52241 2011-05-21  Bruno Haible  <bruno@clisp.org>
52243         rename: Respect rules for use of AC_LIBOBJ.
52244         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
52245         here...
52246         * modules/rename (configure.ac): ... to here.
52248 2011-05-21  Bruno Haible  <bruno@clisp.org>
52250         remove: Move AC_LIBOBJ invocations to module description.
52251         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
52252         here...
52253         * modules/remove (configure.ac): ... to here.
52255 2011-05-21  Bruno Haible  <bruno@clisp.org>
52257         relocatable-lib: Move AC_LIBOBJ invocations to module description.
52258         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
52259         macro.
52260         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
52261         * modules/relocatable-lib (configure.ac): ... to here.
52262         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52263         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
52265 2011-05-21  Bruno Haible  <bruno@clisp.org>
52267         relocatable-prog: Move AC_LIBOBJ invocations to module description.
52268         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
52269         here...
52270         * modules/relocatable-prog (configure.ac): ... to here.
52272 2011-05-21  Bruno Haible  <bruno@clisp.org>
52274         regex: Move AC_LIBOBJ invocations to module description.
52275         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
52276         invocations from here...
52277         * modules/regex (configure.ac): ... to here.
52279 2011-05-21  Bruno Haible  <bruno@clisp.org>
52281         realloc-*: Move AC_LIBOBJ invocations to module description.
52282         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
52283         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
52284         AC_LIBOBJ invocations from here...
52285         * modules/realloc-gnu (configure.ac): ... to here.
52286         * modules/realloc-posix (configure.ac): ... and here.
52288 2011-05-21  Bruno Haible  <bruno@clisp.org>
52290         readutmp: Move AC_LIBOBJ invocations to module description.
52291         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
52292         * modules/readutmp (configure.ac): ... to here.
52294 2011-05-21  Bruno Haible  <bruno@clisp.org>
52296         readlinkat: Move AC_LIBOBJ invocations to module description.
52297         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
52298         here...
52299         * modules/readlinkat (configure.ac): ... to here.
52301 2011-05-21  Bruno Haible  <bruno@clisp.org>
52303         readlink: Move AC_LIBOBJ invocations to module description.
52304         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
52305         gl_PREREQ_READLINK invocations from here...
52306         * modules/readlink (configure.ac): ... to here.
52308 2011-05-21  Bruno Haible  <bruno@clisp.org>
52310         readline: Move AC_LIBOBJ invocations to module description.
52311         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
52312         gl_PREREQ_READLINE invocations from here...
52313         * modules/readline (configure.ac): ... to here.
52315 2011-05-21  Bruno Haible  <bruno@clisp.org>
52317         read: Move AC_LIBOBJ invocations to module description.
52318         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
52319         * modules/read (configure.ac): ... to here.
52321 2011-05-21  Bruno Haible  <bruno@clisp.org>
52323         rawmemchr: Move AC_LIBOBJ invocations to module description.
52324         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
52325         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
52326         from here...
52327         * modules/rawmemchr (configure.ac): ... to here.
52329 2011-05-21  Bruno Haible  <bruno@clisp.org>
52331         random_r: Move AC_LIBOBJ invocations to module description.
52332         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
52333         gl_PREREQ_RANDOM_R invocations from here...
52334         * modules/random_r (configure.ac): ... to here.
52336 2011-05-21  Bruno Haible  <bruno@clisp.org>
52338         pwrite: Move AC_LIBOBJ invocations to module description.
52339         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
52340         * modules/pwrite (configure.ac): ... to here.
52342 2011-05-21  Bruno Haible  <bruno@clisp.org>
52344         putenv: Move AC_LIBOBJ invocations to module description.
52345         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
52346         * modules/putenv (configure.ac): ... to here.
52348 2011-05-21  Bruno Haible  <bruno@clisp.org>
52350         login_tty: Move AC_LIBOBJ invocations to module description.
52351         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
52352         * modules/login_tty (configure.ac): ... to here.
52354 2011-05-21  Bruno Haible  <bruno@clisp.org>
52356         openpty: Move AC_LIBOBJ invocations to module description.
52357         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
52358         * modules/openpty (configure.ac): ... to here.
52360 2011-05-21  Bruno Haible  <bruno@clisp.org>
52362         forkpty: Move AC_LIBOBJ invocations to module description.
52363         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
52364         * modules/forkpty (configure.ac): ... to here.
52366 2011-05-21  Bruno Haible  <bruno@clisp.org>
52368         ptsname: Move AC_LIBOBJ invocations to module description.
52369         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
52370         invocations from here...
52371         * modules/ptsname (configure.ac): ... to here.
52373 2011-05-21  Bruno Haible  <bruno@clisp.org>
52375         pread: Move AC_LIBOBJ invocations to module description.
52376         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
52377         * modules/pread (configure.ac): ... to here.
52379 2011-05-21  Bruno Haible  <bruno@clisp.org>
52381         posix_spawn*: Move AC_LIBOBJ invocations to module description.
52382         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
52383         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
52384         * modules/posix_spawn (configure.ac): ... to here.
52385         * modules/posix_spawnp (configure.ac): ... and here.
52387 2011-05-21  Bruno Haible  <bruno@clisp.org>
52389         popen: Move AC_LIBOBJ invocations to module description.
52390         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
52391         invocations from here...
52392         * modules/popen (configure.ac): ... to here.
52394 2011-05-21  Bruno Haible  <bruno@clisp.org>
52396         poll: Move AC_LIBOBJ invocations to module description.
52397         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
52398         invocations from here...
52399         * modules/poll (configure.ac): ... to here.
52401 2011-05-21  Bruno Haible  <bruno@clisp.org>
52403         pipe-posix: Move AC_LIBOBJ invocations to module description.
52404         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
52405         * modules/pipe-posix (configure.ac): ... to here.
52407 2011-05-21  Bruno Haible  <bruno@clisp.org>
52409         openat: Respect rules for use of AC_LIBOBJ.
52410         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
52411         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52412         * modules/openat (configure.ac): ... to here.
52414 2011-05-21  Bruno Haible  <bruno@clisp.org>
52416         obstack-printf*: Move AC_LIBOBJ invocations to module description.
52417         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
52418         invocation from here...
52419         * modules/obstack-printf (configure.ac): ... to here.
52420         * modules/obstack-printf-posix (configure.ac): ... and here.
52422 2011-05-21  Bruno Haible  <bruno@clisp.org>
52424         nl_langinfo: Move AC_LIBOBJ invocations to module description.
52425         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
52426         from here...
52427         * modules/nl_langinfo (configure.ac): ... to here.
52429 2011-05-21  Bruno Haible  <bruno@clisp.org>
52431         nanosleep: Move AC_LIBOBJ invocations to module description.
52432         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
52433         gl_PREREQ_NANOSLEEP invocations from here...
52434         * modules/nanosleep (configure.ac): ... to here.
52436 2011-05-21  Bruno Haible  <bruno@clisp.org>
52438         mountlist: Move AC_LIBOBJ invocations to module description.
52439         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
52440         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
52441         * modules/mountlist (configure.ac): ... to here.
52443 2011-05-21  Bruno Haible  <bruno@clisp.org>
52445         mktime: Respect rules for use of AC_LIBOBJ.
52446         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
52447         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
52448         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
52449         (gl_FUNC_MKTIME_INTERNAL): ... and here...
52450         * modules/mktime (configure.ac): ... to here.
52451         * modules/mktime-internal (configure.ac): ... and here.
52452         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
52454 2011-05-21  Bruno Haible  <bruno@clisp.org>
52456         mkstemps: Move AC_LIBOBJ invocations to module description.
52457         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
52458         here...
52459         * modules/mkstemps (configure.ac): ... to here.
52461 2011-05-21  Bruno Haible  <bruno@clisp.org>
52463         mkstemp: Move AC_LIBOBJ invocations to module description.
52464         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
52465         gl_PREREQ_MKSTEMP invocations from here...
52466         * modules/mkstemp (configure.ac): ... to here.
52468 2011-05-21  Bruno Haible  <bruno@clisp.org>
52470         mkostemps: Move AC_LIBOBJ invocations to module description.
52471         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
52472         here...
52473         * modules/mkostemps (configure.ac): ... to here.
52475 2011-05-21  Bruno Haible  <bruno@clisp.org>
52477         mkostemp: Move AC_LIBOBJ invocations to module description.
52478         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
52479         gl_PREREQ_MKOSTEMP invocations from here...
52480         * modules/mkostemp (configure.ac): ... to here.
52482 2011-05-21  Bruno Haible  <bruno@clisp.org>
52484         mknod: Move AC_LIBOBJ invocations to module description.
52485         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
52486         * modules/mknod (configure.ac): ... to here.
52488 2011-05-21  Bruno Haible  <bruno@clisp.org>
52490         mkfifoat: Move AC_LIBOBJ invocations to module description.
52491         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
52492         here...
52493         * modules/mkfifoat (configure.ac): ... to here.
52495 2011-05-21  Bruno Haible  <bruno@clisp.org>
52497         mkfifo: Respect rules for use of AC_LIBOBJ.
52498         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
52499         here...
52500         * modules/mkfifo (configure.ac): ... to here.
52502 2011-05-21  Bruno Haible  <bruno@clisp.org>
52504         mkdtemp: Move AC_LIBOBJ invocations to module description.
52505         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
52506         invocations from here...
52507         * modules/mkdtemp (configure.ac): ... to here.
52509 2011-05-21  Bruno Haible  <bruno@clisp.org>
52511         mkdir: Move AC_LIBOBJ invocations to module description.
52512         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
52513         * modules/mkdir (configure.ac): ... to here.
52515 2011-05-21  Bruno Haible  <bruno@clisp.org>
52517         memset: Move AC_LIBOBJ invocations to module description.
52518         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
52519         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
52520         here...
52521         * modules/memset (configure.ac): ... to here.
52523 2011-05-21  Bruno Haible  <bruno@clisp.org>
52525         memrchr: Move AC_LIBOBJ invocations to module description.
52526         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
52527         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
52528         here...
52529         * modules/memrchr (configure.ac): ... to here.
52531 2011-05-21  Bruno Haible  <bruno@clisp.org>
52533         mempcpy: Move AC_LIBOBJ invocations to module description.
52534         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
52535         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
52536         here...
52537         * modules/mempcpy (configure.ac): ... to here.
52539 2011-05-21  Bruno Haible  <bruno@clisp.org>
52541         memmove: Move AC_LIBOBJ invocations to module description.
52542         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
52543         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
52544         here...
52545         * modules/memmove (configure.ac): ... to here.
52547 2011-05-21  Bruno Haible  <bruno@clisp.org>
52549         memmem*: Move AC_LIBOBJ invocations to module description.
52550         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
52551         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
52552         here...
52553         (gl_FUNC_MEMMEM): ... and here...
52554         * modules/memmem-simple (configure.ac): ... to here.
52555         * modules/memmem (configure.ac): ... and here.
52557 2011-05-21  Bruno Haible  <bruno@clisp.org>
52559         memcpy: Move AC_LIBOBJ invocations to module description.
52560         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
52561         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
52562         here...
52563         * modules/memcpy (configure.ac): ... to here.
52565 2011-05-21  Bruno Haible  <bruno@clisp.org>
52567         memcmp: Simplify autoconf macro.
52568         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
52569         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
52570         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
52572 2011-05-21  Bruno Haible  <bruno@clisp.org>
52574         memcmp: Move AC_LIBOBJ invocations to module description.
52575         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
52576         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
52577         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
52578         * modules/memcmp (configure.ac): ... to here.
52579         (Depends-on): Update conditions.
52581 2011-05-21  Bruno Haible  <bruno@clisp.org>
52583         memchr: Respect rules for use of AC_LIBOBJ.
52584         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
52585         invocations from here...
52586         * modules/memchr (configure.ac): ... to here.
52588 2011-05-21  Bruno Haible  <bruno@clisp.org>
52590         mbtowc: Move AC_LIBOBJ invocations to module description.
52591         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
52592         invocations from here...
52593         * modules/mbtowc (configure.ac): ... to here.
52595 2011-05-21  Bruno Haible  <bruno@clisp.org>
52597         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
52598         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
52599         gl_PREREQ_MBSRTOWCS invocations from here...
52600         * modules/mbsrtowcs (configure.ac): ... to here.
52602 2011-05-21  Bruno Haible  <bruno@clisp.org>
52604         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
52605         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
52606         gl_PREREQ_MBSNRTOWCS invocations from here...
52607         * modules/mbsnrtowcs (configure.ac): ... to here.
52609 2011-05-21  Bruno Haible  <bruno@clisp.org>
52611         mbsinit: Move AC_LIBOBJ invocations to module description.
52612         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
52613         invocations from here...
52614         * modules/mbsinit (configure.ac): ... to here.
52616 2011-05-21  Bruno Haible  <bruno@clisp.org>
52618         mbrlen: Move AC_LIBOBJ invocations to module description.
52619         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
52620         invocations from here...
52621         * modules/mbrlen (configure.ac): ... to here.
52623 2011-05-21  Bruno Haible  <bruno@clisp.org>
52625         mbrtowc: Respect rules for use of AC_LIBOBJ.
52626         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
52627         invocations from here...
52628         * modules/mbrtowc (configure.ac): ... to here.
52630 2011-05-21  Bruno Haible  <bruno@clisp.org>
52632         malloc-*: Move AC_LIBOBJ invocations to module description.
52633         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
52634         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
52635         AC_LIBOBJ invocations from here...
52636         * modules/malloc-gnu (configure.ac): ... to here.
52637         * modules/malloc-posix (configure.ac): ... and here.
52639 2011-05-21  Bruno Haible  <bruno@clisp.org>
52641         lstat, openat: Respect rules for use of AC_LIBOBJ.
52642         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
52643         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
52644         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
52645         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
52646         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
52647         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
52648         here.
52649         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
52651 2011-05-21  Bruno Haible  <bruno@clisp.org>
52653         lseek: Move AC_LIBOBJ invocations to module description.
52654         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
52655         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
52656         * modules/lseek (configure.ac): ... to here.
52658 2011-05-21  Bruno Haible  <bruno@clisp.org>
52660         linkat: Move AC_LIBOBJ invocations to module description.
52661         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
52662         here...
52663         * modules/linkat (configure.ac): ... to here.
52665 2011-05-21  Bruno Haible  <bruno@clisp.org>
52667         link: Respect rules for use of AC_LIBOBJ.
52668         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
52669         * modules/link (configure.ac): ... to here.
52671 2011-05-21  Bruno Haible  <bruno@clisp.org>
52673         lchown: Move AC_LIBOBJ invocations to module description.
52674         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
52675         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52676         * modules/lchown (configure.ac): ... to here.
52678 2011-05-21  Bruno Haible  <bruno@clisp.org>
52680         iswctype: Move AC_LIBOBJ invocations to module description.
52681         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
52682         here...
52683         * modules/iswctype (configure.ac): ... to here.
52685 2011-05-21  Bruno Haible  <bruno@clisp.org>
52687         iswblank: Move AC_LIBOBJ invocations to module description.
52688         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
52689         here...
52690         * modules/iswblank (configure.ac): ... to here.
52692 2011-05-21  Bruno Haible  <bruno@clisp.org>
52694         atanl: Move AC_LIBOBJ invocations to module description.
52695         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
52696         * modules/atanl (configure.ac): ... to here.
52698 2011-05-21  Bruno Haible  <bruno@clisp.org>
52700         acosl: Move AC_LIBOBJ invocations to module description.
52701         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
52702         * modules/acosl (configure.ac): ... to here.
52704 2011-05-21  Bruno Haible  <bruno@clisp.org>
52706         asinl: Respect rules for use of AC_LIBOBJ.
52707         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
52708         * modules/asinl (configure.ac): ... to here.
52710 2011-05-21  Bruno Haible  <bruno@clisp.org>
52712         tanl: Move AC_LIBOBJ invocations to module description.
52713         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
52714         * modules/tanl (configure.ac): ... to here.
52716 2011-05-21  Bruno Haible  <bruno@clisp.org>
52718         cosl: Move AC_LIBOBJ invocations to module description.
52719         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
52720         * modules/cosl (configure.ac): ... to here.
52722 2011-05-21  Bruno Haible  <bruno@clisp.org>
52724         sinl: Move AC_LIBOBJ invocations to module description.
52725         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
52726         * modules/sinl (configure.ac): ... to here.
52728 2011-05-21  Bruno Haible  <bruno@clisp.org>
52730         logl: Move AC_LIBOBJ invocations to module description.
52731         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
52732         * modules/logl (configure.ac): ... to here.
52734 2011-05-21  Bruno Haible  <bruno@clisp.org>
52736         expl: Move AC_LIBOBJ invocations to module description.
52737         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
52738         * modules/expl (configure.ac): ... to here.
52740 2011-05-21  Bruno Haible  <bruno@clisp.org>
52742         roundl: Move AC_LIBOBJ invocations to module description.
52743         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
52744         * modules/roundl (configure.ac): ... to here.
52746 2011-05-21  Bruno Haible  <bruno@clisp.org>
52748         round: Move AC_LIBOBJ invocations to module description.
52749         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
52750         * modules/round (configure.ac): ... to here.
52752 2011-05-21  Bruno Haible  <bruno@clisp.org>
52754         roundf: Move AC_LIBOBJ invocations to module description.
52755         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
52756         * modules/roundf (configure.ac): ... to here.
52758 2011-05-21  Bruno Haible  <bruno@clisp.org>
52760         truncl: Move AC_LIBOBJ invocations to module description.
52761         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
52762         * modules/truncl (configure.ac): ... to here.
52764 2011-05-21  Bruno Haible  <bruno@clisp.org>
52766         trunc: Move AC_LIBOBJ invocations to module description.
52767         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
52768         * modules/trunc (configure.ac): ... to here.
52770 2011-05-21  Bruno Haible  <bruno@clisp.org>
52772         truncf: Move AC_LIBOBJ invocations to module description.
52773         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
52774         * modules/truncf (configure.ac): ... to here.
52776 2011-05-21  Bruno Haible  <bruno@clisp.org>
52778         ceill: Move AC_LIBOBJ invocations to module description.
52779         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
52780         * modules/ceill (configure.ac): ... to here.
52782 2011-05-21  Bruno Haible  <bruno@clisp.org>
52784         ceil: Move AC_LIBOBJ invocations to module description.
52785         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
52786         * modules/ceil (configure.ac): ... to here.
52788 2011-05-21  Bruno Haible  <bruno@clisp.org>
52790         ceilf: Move AC_LIBOBJ invocations to module description.
52791         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
52792         * modules/ceilf (configure.ac): ... to here.
52794 2011-05-21  Bruno Haible  <bruno@clisp.org>
52796         floorl: Respect rules for use of AC_LIBOBJ.
52797         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
52798         * modules/floorl (configure.ac): ... to here.
52800 2011-05-21  Bruno Haible  <bruno@clisp.org>
52802         floor: Respect rules for use of AC_LIBOBJ.
52803         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
52804         * modules/floor (configure.ac): ... to here.
52806 2011-05-21  Bruno Haible  <bruno@clisp.org>
52808         floorf: Move AC_LIBOBJ invocations to module description.
52809         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
52810         * modules/floorf (configure.ac): ... to here.
52812 2011-05-20  Bruno Haible  <bruno@clisp.org>
52814         sqrtl: Respect rules for use of AC_LIBOBJ.
52815         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
52816         * modules/sqrtl (configure.ac): ... to here.
52818 2011-05-20  Bruno Haible  <bruno@clisp.org>
52820         ldexpl: Respect rules for use of AC_LIBOBJ.
52821         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
52822         * modules/ldexpl (configure.ac): ... to here.
52824 2011-05-20  Bruno Haible  <bruno@clisp.org>
52826         frexpl*: Respect rules for use of AC_LIBOBJ.
52827         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
52828         invocation from here...
52829         * modules/frexpl (configure.ac): ... to here.
52830         * modules/frexpl-nolibm (configure.ac): ... and here.
52832 2011-05-20  Bruno Haible  <bruno@clisp.org>
52834         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
52835         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
52836         invocation from here...
52837         * modules/frexp (configure.ac): ... to here.
52838         * modules/frexp-nolibm (configure.ac): ... and here.
52840 2011-05-20  Bruno Haible  <bruno@clisp.org>
52842         isnan: Respect rules for use of AC_LIBOBJ.
52843         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
52844         invocations here.
52845         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
52846         REPLACE_ISNAN.
52847         * modules/isnand (configure.ac): Likewise.
52848         * modules/isnanl (configure.ac): Likewise.
52850 2011-05-20  Bruno Haible  <bruno@clisp.org>
52852         isnanl*: Respect rules for use of AC_LIBOBJ.
52853         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
52854         invocation from here...
52855         * modules/isnanl (configure.ac): ... to here.
52856         * modules/isnanl-nolibm (configure.ac): ... and here.
52858 2011-05-20  Bruno Haible  <bruno@clisp.org>
52860         isnand*: Move AC_LIBOBJ invocations to module description.
52861         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
52862         invocation from here...
52863         * modules/isnand (configure.ac): ... to here.
52864         * modules/isnand-nolibm (configure.ac): ... and here.
52866 2011-05-20  Bruno Haible  <bruno@clisp.org>
52868         isnanf*: Move AC_LIBOBJ invocations to module description.
52869         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
52870         invocation from here...
52871         * modules/isnanf (configure.ac): ... to here.
52872         * modules/isnanf-nolibm (configure.ac): ... and here.
52874 2011-05-20  Bruno Haible  <bruno@clisp.org>
52876         isnan*: Separate the AC_LIBOBJ invocations.
52877         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
52878         AC_LIBOBJ invocation.
52879         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
52880         here.
52881         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
52882         AC_LIBOBJ invocation.
52883         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
52884         here.
52885         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
52886         AC_LIBOBJ invocation.
52887         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
52888         here.
52889         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
52891 2011-05-08  Bruno Haible  <bruno@clisp.org>
52893         isinf: Move AC_LIBOBJ invocations to module description.
52894         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
52895         * modules/isinf (configure.ac): ... to here.
52897 2011-05-08  Bruno Haible  <bruno@clisp.org>
52899         isfinite: Move AC_LIBOBJ invocations to module description.
52900         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
52901         * modules/isfinite (configure.ac): ... to here.
52903 2011-05-08  Bruno Haible  <bruno@clisp.org>
52905         isblank: Move AC_LIBOBJ invocations to module description.
52906         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
52907         here...
52908         * modules/isblank (configure.ac): ... to here.
52910 2011-05-08  Bruno Haible  <bruno@clisp.org>
52912         isapipe: Move AC_LIBOBJ invocations to module description.
52913         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
52914         gl_PREREQ_ISAPIPE invocations from here...
52915         * modules/isapipe (configure.ac): ... to here.
52916         (Depends-on): Update condition.
52918 2011-05-08  Bruno Haible  <bruno@clisp.org>
52920         ioctl: Move AC_LIBOBJ invocations to module description.
52921         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
52922         invocations from here...
52923         * modules/ioctl (configure.ac): ... to here.
52924         (Depends-on): Update condition.
52926 2011-05-08  Bruno Haible  <bruno@clisp.org>
52928         imaxdiv: Move AC_LIBOBJ invocations to module description.
52929         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
52930         invocations from here...
52931         * modules/imaxdiv (configure.ac): ... to here.
52933 2011-05-08  Bruno Haible  <bruno@clisp.org>
52935         imaxabs: Move AC_LIBOBJ invocations to module description.
52936         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
52937         invocations from here...
52938         * modules/imaxabs (configure.ac): ... to here.
52940 2011-05-08  Bruno Haible  <bruno@clisp.org>
52942         getaddrinfo: Move AC_LIBOBJ invocations to module description.
52943         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
52944         AC_LIBOBJ invocations from here...
52945         * modules/getaddrinfo (configure.ac): ... to here.
52946         (Depends-on): Add conditions.
52948 2011-05-08  Bruno Haible  <bruno@clisp.org>
52950         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
52951         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
52952         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
52953         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
52954         (gl_PREREQ_INET_PTON): ... from here.
52955         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
52956         gl_PREREQ_INET_PTON here.
52957         (Depends-on): Update condition.
52959 2011-05-08  Bruno Haible  <bruno@clisp.org>
52961         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
52962         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
52963         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
52964         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
52965         (gl_PREREQ_INET_NTOP): ... from here.
52966         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
52967         gl_PREREQ_INET_NTOP here.
52968         (Depends-on): Update condition.
52970 2011-05-08  Bruno Haible  <bruno@clisp.org>
52972         iconv_open: Move AC_LIBOBJ invocations to module description.
52973         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
52974         AC_LIBOBJ invocations from here...
52975         * modules/iconv_open (configure.ac): ... to here.
52977 2011-05-08  Bruno Haible  <bruno@clisp.org>
52979         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
52980         If module 'iconv_open' is among the main modules and module
52981         'iconv_open-utf' is among the tests dependencies, then
52982         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
52983         return the special iconv_t values. Therefore iconv() and iconv_close()
52984         must support these special iconv_t values, already in lib, not only in
52985         tests.
52986         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
52987         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
52988         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
52989         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
52990         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
52991         (Depends-on): Add the dependencies of iconv_open-utf.
52992         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
52993         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
52994         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
52996 2011-05-08  Bruno Haible  <bruno@clisp.org>
52998         group-member: Move AC_LIBOBJ invocations to module description.
52999         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
53000         gl_PREREQ_GROUP_MEMBER invocations from here...
53001         * modules/group-member (configure.ac): ... to here.
53003 2011-05-08  Bruno Haible  <bruno@clisp.org>
53005         grantpt: Move AC_LIBOBJ invocations to module description.
53006         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
53007         invocations from here...
53008         * modules/grantpt (configure.ac): ... to here.
53010 2011-05-08  Bruno Haible  <bruno@clisp.org>
53012         glob: Move AC_LIBOBJ invocations to module description.
53013         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
53014         from here...
53015         * modules/glob (configure.ac): ... to here.
53017 2011-05-08  Bruno Haible  <bruno@clisp.org>
53019         getusershell: Move AC_LIBOBJ invocations to module description.
53020         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
53021         Move AC_LIBOBJ invocation from here...
53022         * modules/getusershell (configure.ac): ... to here.
53023         (Depends-on): Update condition.
53025 2011-05-08  Bruno Haible  <bruno@clisp.org>
53027         gettimeofday: Move AC_LIBOBJ invocations to module description.
53028         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53029         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
53030         gl_PREREQ_GETTIMEOFDAY invocations from here...
53031         * modules/gettimeofday (configure.ac): ... to here.
53033 2011-05-08  Bruno Haible  <bruno@clisp.org>
53035         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
53036         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
53037         just gl_FUNC_TZSET.
53038         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
53039         (gl_FUNC_TZSET_CLOBBER): Remove actions.
53040         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
53041         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
53043 2011-05-08  Bruno Haible  <bruno@clisp.org>
53045         getsubopt: Move AC_LIBOBJ invocations to module description.
53046         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
53047         gl_PREREQ_GETSUBOPT invocations from here...
53048         * modules/getsubopt (configure.ac): ... to here.
53050 2011-05-08  Bruno Haible  <bruno@clisp.org>
53052         getpass-gnu: Move AC_LIBOBJ invocations to module description.
53053         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
53054         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
53055         * modules/getpass-gnu (configure.ac): ... to here.
53057 2011-05-08  Bruno Haible  <bruno@clisp.org>
53059         getpass: Move AC_LIBOBJ invocations to module description.
53060         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
53061         gl_PREREQ_GETPASS invocations from here...
53062         * modules/getpass (configure.ac): ... to here.
53064 2011-05-08  Bruno Haible  <bruno@clisp.org>
53066         getpagesize: Move AC_LIBOBJ invocations to module description.
53067         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
53068         from here...
53069         * modules/getpagesize (configure.ac): ... to here.
53071 2011-05-08  Bruno Haible  <bruno@clisp.org>
53073         getopt: Move AC_LIBOBJ invocations to module description.
53074         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
53075         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
53076         invocations from here...
53077         * modules/getopt-gnu (configure.ac): ... to here.
53078         * modules/getopt-posix (configure.ac): ... and here.
53079         (Depends-on): Update condition.
53081 2011-05-08  Bruno Haible  <bruno@clisp.org>
53083         getopt, argp: Respect rules for use of AC_LIBOBJ.
53084         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
53085         (gl_REPLACE_GETOPT_ALWAYS): New macro.
53086         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
53087         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
53089 2011-05-08  Bruno Haible  <bruno@clisp.org>
53091         getlogin_r: Move AC_LIBOBJ invocations to module description.
53092         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
53093         gl_PREREQ_GETLOGIN_R invocations from here...
53094         * modules/getlogin_r (configure.ac): ... to here.
53096 2011-05-08  Bruno Haible  <bruno@clisp.org>
53098         getlogin: Move AC_LIBOBJ invocations to module description.
53099         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
53100         here...
53101         * modules/getlogin (configure.ac): ... to here.
53103 2011-05-08  Bruno Haible  <bruno@clisp.org>
53105         getloadavg: Move AC_LIBOBJ invocations to module description.
53106         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
53107         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
53108         * modules/getloadavg (configure.ac): ... to here.
53110 2011-05-08  Bruno Haible  <bruno@clisp.org>
53112         gethrxtime: Move AC_LIBOBJ invocations to module description.
53113         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
53114         LIB_GETHRXTIME from here...
53115         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
53116         invocations from here...
53117         * modules/gethrxtime (configure.ac): ... to here.
53119 2011-05-08  Bruno Haible  <bruno@clisp.org>
53121         gethostname: Move AC_LIBOBJ invocations to module description.
53122         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
53123         gl_PREREQ_GETHOSTNAME invocations from here...
53124         * modules/gethostname (configure.ac): ... to here.
53126 2011-05-08  Bruno Haible  <bruno@clisp.org>
53128         getgroups: Move AC_LIBOBJ invocations to module description.
53129         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
53130         here...
53131         * modules/getgroups (configure.ac): ... to here.
53133 2011-05-08  Bruno Haible  <bruno@clisp.org>
53135         getdtablesize: Move AC_LIBOBJ invocations to module description.
53136         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
53137         invocation from here...
53138         * modules/getdtablesize (configure.ac): ... to here.
53140 2011-05-08  Bruno Haible  <bruno@clisp.org>
53142         getdomainname: Move AC_LIBOBJ invocations to module description.
53143         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
53144         gl_PREREQ_GETDOMAINNAME invocations from here...
53145         * modules/getdomainname (configure.ac): ... to here.
53147 2011-05-08  Bruno Haible  <bruno@clisp.org>
53149         getline: Move AC_LIBOBJ invocations to module description.
53150         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
53151         invocations from here...
53152         * modules/getline (configure.ac): ... to here.
53154 2011-05-08  Bruno Haible  <bruno@clisp.org>
53156         getline: Simplify.
53157         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
53158         It's already handled through the module dependency.
53160 2011-05-08  Bruno Haible  <bruno@clisp.org>
53162         getdelim: Move AC_LIBOBJ invocations to module description.
53163         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
53164         and gl_PREREQ_GETDELIM invocations from here...
53165         * modules/getdelim (configure.ac): ... to here.
53166         (Depends-on): Fix condition.
53168 2011-05-08  Bruno Haible  <bruno@clisp.org>
53170         getcwd: Move AC_LIBOBJ invocations to module description.
53171         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
53172         invocations from here...
53173         * modules/getcwd (configure.ac): ... to here.
53175 2011-05-08  Bruno Haible  <bruno@clisp.org>
53177         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
53178         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
53179         here...
53180         * modules/getcwd-lgpl (configure.ac): ... to here.
53182 2011-05-07  Bruno Haible  <bruno@clisp.org>
53184         crypto/gc: Move AC_LIBOBJ invocations to module description.
53185         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
53186         * modules/crypto/gc (configure.ac): ... to here.
53188 2011-05-07  Bruno Haible  <bruno@clisp.org>
53190         fwriting: Move AC_LIBOBJ invocations to module description.
53191         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
53192         here...
53193         * modules/fwriting (configure.ac): ... to here.
53195 2011-05-07  Bruno Haible  <bruno@clisp.org>
53197         fwritable: Move AC_LIBOBJ invocations to module description.
53198         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
53199         here...
53200         * modules/fwritable (configure.ac): ... to here.
53202 2011-05-07  Bruno Haible  <bruno@clisp.org>
53204         futimens: Move AC_LIBOBJ invocations to module description.
53205         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
53206         here...
53207         * modules/futimens (configure.ac): ... to here.
53209 2011-05-07  Bruno Haible  <bruno@clisp.org>
53211         ftruncate: Move AC_LIBOBJ invocations to module description.
53212         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
53213         gl_PREREQ_FTRUNCATE invocations from here...
53214         * modules/ftruncate (configure.ac): ... to here.
53216 2011-05-07  Bruno Haible  <bruno@clisp.org>
53218         fsync: Move AC_LIBOBJ invocations to module description.
53219         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
53220         invocations from here...
53221         * modules/fsync (configure.ac): ... to here.
53223 2011-05-07  Bruno Haible  <bruno@clisp.org>
53225         fsusage: Move AC_LIBOBJ invocations to module description.
53226         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
53227         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
53228         * modules/fsusage (configure.ac): ... to here.
53230 2011-05-07  Bruno Haible  <bruno@clisp.org>
53232         freopen: Move AC_LIBOBJ invocations to module description.
53233         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
53234         invocations from here...
53235         * modules/freopen (configure.ac): ... to here.
53237 2011-05-07  Bruno Haible  <bruno@clisp.org>
53239         free: Move AC_LIBOBJ invocations to module description.
53240         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
53241         invocations from here...
53242         * modules/free (configure.ac): ... to here.
53244 2011-05-07  Bruno Haible  <bruno@clisp.org>
53246         freadable: Move AC_LIBOBJ invocations to module description.
53247         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
53248         here...
53249         * modules/freadable (configure.ac): ... to here.
53251 2011-05-07  Bruno Haible  <bruno@clisp.org>
53253         fpurge: Move AC_LIBOBJ invocations to module description.
53254         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
53255         invocations from here...
53256         * modules/fpurge (configure.ac): ... to here.
53258 2011-05-07  Bruno Haible  <bruno@clisp.org>
53260         fpending: Move AC_LIBOBJ invocations to module description.
53261         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
53262         gl_FUNC_FPENDING.
53263         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
53264         invocations from here...
53265         * modules/fpending (configure.ac): ... to here.
53267 2011-05-07  Bruno Haible  <bruno@clisp.org>
53269         fopen: Move AC_LIBOBJ invocations to module description.
53270         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
53271         invocations from here...
53272         * modules/fopen (configure.ac): ... to here.
53274 2011-05-07  Bruno Haible  <bruno@clisp.org>
53276         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
53277         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
53278         gl_FUNC_FNMATCH_POSIX.
53279         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
53280         invocations from here...
53281         * modules/fnmatch (configure.ac): ... to here.
53282         * modules/fnmatch-gnu (configure.ac): ... and here.
53284 2011-05-07  Bruno Haible  <bruno@clisp.org>
53286         flock: Move AC_LIBOBJ invocations to module description.
53287         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
53288         invocations from here...
53289         * modules/flock (configure.ac): ... to here.
53291 2011-05-07  Bruno Haible  <bruno@clisp.org>
53293         fileblocks: Move AC_LIBOBJ invocations to module description.
53294         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
53295         gl_PREREQ_FILEBLOCKS invocations from here...
53296         * modules/fileblocks (configure.ac): ... to here.
53298 2011-05-06  Bruno Haible  <bruno@clisp.org>
53300         fflush: Move AC_LIBOBJ invocations to module description.
53301         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
53302         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
53303         invocations from here...
53304         * modules/fflush (configure.ac): ... to here.
53306 2011-05-06  Bruno Haible  <bruno@clisp.org>
53308         fdopendir: Move AC_LIBOBJ invocations to module description.
53309         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
53310         here...
53311         * modules/fdopendir (configure.ac): ... to here.
53312         (Depends-on): Improve conditions.
53314 2011-05-06  Bruno Haible  <bruno@clisp.org>
53316         _Exit: Move AC_LIBOBJ invocations to module description.
53317         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
53318         invocations from here...
53319         * modules/_Exit (configure.ac): ... to here.
53321 2011-05-21  Bruno Haible  <bruno@clisp.org>
53323         euidaccess: Respect rules for use of AC_LIBOBJ.
53324         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
53325         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
53326         from here...
53327         * modules/euidaccess (configure.ac): ... to here.
53329 2011-05-06  Bruno Haible  <bruno@clisp.org>
53331         error: Move AC_LIBOBJ invocations to module description.
53332         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
53333         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
53334         invocations from here...
53335         * modules/error (configure.ac): ... to here.
53337 2011-05-06  Bruno Haible  <bruno@clisp.org>
53339         duplocale: Move AC_LIBOBJ invocations to module description.
53340         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
53341         gl_PREREQ_DUPLOCALE invocations from here...
53342         * modules/duplocale (configure.ac): ... to here.
53344 2011-05-05  Bruno Haible  <bruno@clisp.org>
53346         dirfd: Move AC_LIBOBJ invocations to module description.
53347         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
53348         gl_FUNC_DIRFD.
53349         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
53350         here...
53351         * modules/dirfd (configure.ac): ... to here.
53352         (Depends-on): Fix condition.
53354 2011-05-05  Bruno Haible  <bruno@clisp.org>
53356         chown: Respect rules for use of AC_LIBOBJ.
53357         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
53358         * modules/chown (configure.ac): ... to here.
53360 2011-05-05  Bruno Haible  <bruno@clisp.org>
53362         chdir-long: Move AC_LIBOBJ invocations to module description.
53363         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
53364         gl_PREREQ_CHDIR_LONG invocations from here...
53365         * modules/chdir-long (configure.ac): ... to here.
53367 2011-05-05  Bruno Haible  <bruno@clisp.org>
53369         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
53370         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
53371         from here...
53372         * modules/canonicalize-lgpl (configure.ac): ... to here.
53374 2011-05-05  Bruno Haible  <bruno@clisp.org>
53376         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
53377         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
53378         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
53379         REPLACE_CALLOC.
53380         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
53381         * modules/calloc-gnu (configure.ac): Likewise.
53383 2011-05-05  Bruno Haible  <bruno@clisp.org>
53385         btowc: Move AC_LIBOBJ invocations to module description.
53386         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
53387         invocations from here...
53388         * modules/btowc (configure.ac): ... to here.
53390 2011-05-21  Bruno Haible  <bruno@clisp.org>
53392         atexit: Move AC_LIBOBJ invocations to module description.
53393         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
53394         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
53395         here...
53396         * modules/atexit (configure.ac): ... to here.
53398 2011-05-05  Bruno Haible  <bruno@clisp.org>
53400         atoll: Move AC_LIBOBJ invocations to module description.
53401         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
53402         invocations from here...
53403         * modules/atoll (configure.ac): ... to here.
53405 2011-05-05  Bruno Haible  <bruno@clisp.org>
53407         argz: Move AC_LIBOBJ invocations to module description.
53408         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
53409         * modules/argz (configure.ac): ... to here.
53411 2011-05-05  Bruno Haible  <bruno@clisp.org>
53413         alphasort: Move AC_LIBOBJ invocations to module description.
53414         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
53415         gl_PREREQ_ALPHASORT invocations from here...
53416         * modules/alphasort (configure.ac): ... to here.
53418 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53420         verify: new macro verify_expr; verify_true deprecated
53421         * NEWS: Mention this.
53422         * doc/verify.texi (Compile-time Assertions): Document this.
53423         * lib/verify.h (verify_true): Deprecate.
53424         (verify_expr): New macro.
53425         * tests/test-verify.c (function): Test verify_expr.
53427 2011-06-14  Jim Meyering  <meyering@redhat.com>
53429         init.sh: give more portable redirection-related advice in a comment
53430         * tests/init.sh (stderr_fileno_): Update the advice in comments.
53431         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
53432         for lots of discussion.  Stefano Lattarini suggested the solution
53433         of putting "9>&2" after the command.  Reported by Bruno Haible.
53435 2011-06-13  Bruno Haible  <bruno@clisp.org>
53437         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
53438         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
53439         'none'.
53441 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
53443         ftoastr: use strtof only if HAVE_STRTOF
53444         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
53445         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
53446         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
53447         * modules/ftoastr (configure.ac): Check for strtof.
53449 2011-06-13  Bruno Haible  <bruno@clisp.org>
53451         gnulib-tool: Addendum to 2011-06-08 commit.
53452         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
53453         and --witness-c-macro have been given, augment AM_CPPFLAGS.
53455 2011-06-13  Bruno Haible  <bruno@clisp.org>
53457         fseeko: Provide a non-inline replacement of fseek().
53458         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
53459         * modules/fseeko (Depends-on): Add fseek.
53460         * modules/fseek (License): Change to LGPLv2+.
53462 2011-06-13  Bruno Haible  <bruno@clisp.org>
53464         ftello: Provide a non-inline replacement of ftell().
53465         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
53466         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
53467         not have ftello() (such as on mingw).
53468         * modules/ftello (Depends-on): Add ftell.
53469         * modules/ftell (License): Change to LGPLv2+.
53471 2011-05-07  Bruno Haible  <bruno@clisp.org>
53473         ftell: Move AC_LIBOBJ invocations to module description.
53474         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
53475         * modules/ftell (configure.ac): ... to here.
53477 2011-05-07  Bruno Haible  <bruno@clisp.org>
53479         ftello: Respect rules for use of AC_LIBOBJ.
53480         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
53481         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
53482         here...
53483         * modules/ftello (configure.ac): ... to here.
53485 2011-05-07  Bruno Haible  <bruno@clisp.org>
53487         fseeko: Simplify.
53488         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
53489         (gl_FUNC_FSEEKO): Inline it here.
53491 2011-05-07  Bruno Haible  <bruno@clisp.org>
53493         fseek: Move AC_LIBOBJ invocations to module description.
53494         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
53495         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53496         * modules/fseek (configure.ac): ... to here.
53498 2011-05-07  Bruno Haible  <bruno@clisp.org>
53500         fseek: Respect rules for use of AC_LIBOBJ.
53501         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
53502         here...
53503         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
53505 2011-05-07  Bruno Haible  <bruno@clisp.org>
53507         fseeko: Respect rules for use of AC_LIBOBJ.
53508         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
53509         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
53510         here...
53511         * modules/fseeko (configure.ac): ... to here.
53513 2011-06-13  Bruno Haible  <bruno@clisp.org>
53515         gnulib-tool: Allow comments in the 'Depends-on' section.
53516         * doc/gnulib.texi (Module description): Mention comment syntax in the
53517         Depends-on section.
53518         * gnulib-tool (func_get_dependencies): Filter out comment lines.
53520 2011-06-13  Bruno Haible  <bruno@clisp.org>
53522         file-set.h: guard __attibute__ use, now that it's not always defined
53523         * lib/file-set.h (record_file): Use __attribute__ only with compiler
53524         versions that support it.  This fixes a coreutils build failure with
53525         the vendor cc on HP-UX 11.31.
53527 2011-06-12  Bruno Haible  <bruno@clisp.org>
53529         acl: Add support for HP-UX >= 11.11 JFS ACLs.
53530         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
53531         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
53532         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
53533         (acl, aclsort): New declarations.
53534         (aclv_nontrivial): New declaration.
53535         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
53536         (file_has_acl): Read also the second kind of HP-UX ACLs.
53537         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
53538         kind of HP-UX ACLs if the first kind fails.
53539         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
53540         second kind of HP-UX ACLs.
53541         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
53542         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
53543         agree.
53544         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53545         hpuxjfs.
53546         Handle hpuxjfs.
53547         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53548         hpuxjfs.
53549         Handle hpuxjfs.
53550         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53551         (func_test_same_acls): Use both lsacl and getacl.
53552         Handle hpuxjfs.
53553         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53554         (func_test_same_acls): Use both lsacl and getacl.
53555         Handle hpuxjfs.
53557 2011-06-12  Bruno Haible  <bruno@clisp.org>
53559         acl: Complete the 2010-08-10 fix.
53560         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
53561         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
53562         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
53563         explicitly.
53564         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
53565         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
53567 2011-06-12  Bruno Haible  <bruno@clisp.org>
53569         spawn-pipe tests: Comments.
53570         * tests/test-spawn-pipe-child.c (main): Update comment.
53571         Reported by James Youngman <jay@gnu.org>.
53573 2011-06-11  James Youngman  <jay@gnu.org>
53575         New module 'stat-size'.
53576         * modules/stat-size: New module.  Provides macros for accessing
53577         file size information in instances of struct stat.  Depends on the
53578         fileblocks module because it calls st_blocks.
53579         * lib/stat-size.h: New file, adapted from coreutils' system.h.
53580         * doc/gnulib.texi: Include stat-size.texi.
53581         * doc/stat-size.texi: Documentation for this module.
53582         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
53583         * m4/fileblocks.m4: Mention that stat-size depends on the call to
53584         AC_STRUCT_ST_BLOCKS.
53586 2011-06-09  Bruno Haible  <bruno@clisp.org>
53588         thread: Support pthreads-win32.
53589         * lib/glthread/thread.h (gl_thread_self): Define differently on
53590         pthreads-win32.
53591         (gl_null_thread): New declaration.
53592         (gl_thread_self_pointer): New macro.
53593         * lib/glthread/thread.c (gl_null_thread): New constant.
53594         * tests/test-lock.c: Use gl_thread_self_pointer instead of
53595         gl_thread_self.
53596         * tests/test-tls.c: Likewise.
53597         Suggested by Paul Eggert. Reported by Eric Blake.
53599 2011-06-09  Bruno Haible  <bruno@clisp.org>
53601         thread: Fix confusion between NULL and 0.
53602         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
53603         Reported by Paul Eggert.
53605 2011-06-09  Bruno Haible  <bruno@clisp.org>
53607         spawn-pipe tests: Avoid test failure on HP-UX 11.
53608         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
53609         is closed.
53611 2011-06-09  Bruno Haible  <bruno@clisp.org>
53613         acl tests: Fix compilation error on HP-UX 11.
53614         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
53616 2011-06-09  Bruno Haible  <bruno@clisp.org>
53618         rmdir: Avoid test failure on HP-UX 10.20.
53619         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
53620         EEXIST.
53622 2011-06-08  Eric Blake  <eblake@redhat.com>
53624         perror: fix test on mingw
53625         * modules/perror-tests (Depends-on): Add dup2.
53627         strerror_r-posix: fix on MacOS
53628         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
53629         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
53630         logic bug.
53631         * lib/strerror_r.c (strerror_r): Fix the bug.
53632         * lib/strerror.c (strerror): Likewise.
53633         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
53634         problem.
53635         * doc/posix-functions/strerror.texi (strerror): Likewise.
53636         * doc/posix-functions/perror.texi (perror): Likewise.
53637         * tests/test-strerror.c (main): Enhance test.
53638         * tests/test-strerror_r.c (main): Likewise.
53640 2011-06-08  Bruno Haible  <bruno@clisp.org>
53642         gnulib-tool: Better isolation between different gnulib-tool invocations.
53643         * gnulib-tool: New option --witness-c-macro.
53644         (witness_c_macro): New variable.
53645         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
53646         AM_CPPFLAGS define it as a C macro.
53647         (func_emit_tests_Makefile_am): Likewise.
53648         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
53649         read it from there.
53650         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
53651         m4_define, not AC_DEFUN.
53652         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
53653         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
53654         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
53655         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
53656         s|...|...|, to substitute the values of the GNULIB_* module indicator
53657         variables.
53658         * modules/dirent (Makefile.am): Likewise.
53659         * modules/fcntl-h (Makefile.am): Likewise.
53660         * modules/iconv-h (Makefile.am): Likewise.
53661         * modules/langinfo (Makefile.am): Likewise.
53662         * modules/locale (Makefile.am): Likewise.
53663         * modules/math (Makefile.am): Likewise.
53664         * modules/netdb (Makefile.am): Likewise.
53665         * modules/poll-h (Makefile.am): Likewise.
53666         * modules/pty (Makefile.am): Likewise.
53667         * modules/search (Makefile.am): Likewise.
53668         * modules/signal (Makefile.am): Likewise.
53669         * modules/spawn (Makefile.am): Likewise.
53670         * modules/stdio (Makefile.am): Likewise.
53671         * modules/stdlib (Makefile.am): Likewise.
53672         * modules/string (Makefile.am): Likewise.
53673         * modules/sys_ioctl (Makefile.am): Likewise.
53674         * modules/sys_select (Makefile.am): Likewise.
53675         * modules/sys_socket (Makefile.am): Likewise.
53676         * modules/sys_stat (Makefile.am): Likewise.
53677         * modules/sys_times (Makefile.am): Likewise.
53678         * modules/sys_utsname (Makefile.am): Likewise.
53679         * modules/sys_wait (Makefile.am): Likewise.
53680         * modules/termios (Makefile.am): Likewise.
53681         * modules/time (Makefile.am): Likewise.
53682         * modules/unistd (Makefile.am): Likewise.
53683         * modules/wchar (Makefile.am): Likewise.
53685 2011-06-08  Eric Blake  <eblake@redhat.com>
53687         strerror: simplify replacement
53688         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
53689         * modules/strerror (configure.ac): No prereqs needed here...
53690         * modules/strerror-override (configure.ac): ...but this needs it.
53691         (Files): Add file for needed prereq macro.
53693 2011-06-08  Bruno Haible  <bruno@clisp.org>
53695         strerror_r-posix: Tweaks.
53696         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
53697         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
53698         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
53699         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
53700         (gl_FUNC_STRERROR_R): ... to here.
53701         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
53703 2011-06-07  Eric Blake  <eblake@redhat.com>
53705         perror: document fixed bugs
53706         * doc/posix-functions/perror.texi (perror): Document recent
53707         patches.
53709 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
53711         stat-time: get_stat_birthtime failure is better-defined
53712         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
53713         return a timestamp whose tv_sec and tv_nsec values are both -1.
53714         Previously, the spec said only that the tv_nsec value was negative.
53715         This upward-compatible change simplifies GNU tar a bit.
53717 2011-06-07  Eric Blake  <eblake@redhat.com>
53719         strerror_r-posix: work around cygwin 1.7.9
53720         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
53721         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
53722         bug without replacing strerror_r.
53723         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
53724         strerror_r is buggy, but without requiring strerror_r compilation.
53725         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
53727         test-perror: relax test to ignore cygwin bug
53728         * tests/test-perror2.c (main): Relax test on requiring detection
53729         of stream errors, and use unbuffered stream.
53730         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
53731         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
53732         * doc/posix-functions/fputc.texi (fputc): Likewise.
53733         * doc/posix-functions/fputs.texi (fputs): Likewise.
53734         * doc/posix-functions/fputws.texi (fputws): Likewise.
53735         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
53736         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
53737         * doc/posix-functions/getopt.texi (getopt): Likewise.
53738         * doc/posix-functions/perror.texi (perror): Likewise.
53739         * doc/posix-functions/printf.texi (printf): Likewise.
53740         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
53741         * doc/posix-functions/psignal.texi (psignal): Likewise.
53742         * doc/posix-functions/putc.texi (putc): Likewise.
53743         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
53744         Likewise.
53745         * doc/posix-functions/putchar.texi (putchar): Likewise.
53746         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
53747         Likewise.
53748         * doc/posix-functions/puts.texi (puts): Likewise.
53749         * doc/posix-functions/putwc.texi (putwc): Likewise.
53750         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53751         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53752         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53753         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
53754         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53755         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53756         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
53757         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
53759 2011-05-22  Bruno Haible  <bruno@clisp.org>
53761         strerror: Move AC_LIBOBJ invocations to module description.
53762         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
53763         gl_PREREQ_STRERROR invocations from here...
53764         * modules/strerror (configure.ac): ... to here.
53766 2011-05-21  Bruno Haible  <bruno@clisp.org>
53768         perror: Use common idiom.
53769         * modules/perror (configure.ac): Reorder statements.
53771 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53773         tests: fix usage message in 'mktempd_'
53774         * tests/init.sh (mktempd_): In the usage message, use literal
53775         'mktempd_', not '$ME' (which is even undefined), as the name of
53776         the subroutine.
53778 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53780         tests init: new function 'fatal_', for hard errors
53781         Before this patch, the only way offered by tests/init.sh to
53782         properly signal a hard error was the `framework_failure_'
53783         function.  But the error message issued by that function,
53784         as its name would suggest, refers to a set-up failure in the
53785         testsuite, while hard errors can obviously also be due to
53786         other reasons.  The best way to fix this inconsistency is to
53787         introduce a new function with a more general error message.
53788         * tests/init.sh (fatal_): New function.
53790 2011-06-06  Eric Blake  <eblake@redhat.com>
53792         canonicalize-lgpl: use common idiom
53793         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
53794         over newer POSIX -Rf.
53795         Reported by Bruno Haible.
53797         canonicalize-lgpl: work around AIX realpath bug
53798         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
53799         * doc/posix-functions/realpath.texi (realpath): Document it.
53800         Reported by Bruno Haible.
53802         strerror: work around FreeBSD bug
53803         * lib/strerror.c (strerror): Special case 0.
53804         Reported by Bruno Haible.
53806         strerror-override: avoid bloating errno module
53807         * modules/errno (Files, configure.ac): Move replacement strings...
53808         * modules/strerror-override: ...to new module.
53809         * modules/strerror (Depends-on): Add strerror-override.
53810         * modules/strerror_r-posix (Depends-on): Likewise.
53811         * MODULES.html.sh: Document new module.
53812         Reported by Bruno Haible.
53814 2011-06-06  Bruno Haible  <bruno@clisp.org>
53816         spawn-pipe tests: Rename program.
53817         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
53818         * tests/test-spawn-pipe-child.c: Update comment.
53819         * tests/test-spawn-pipe.sh: Update.
53820         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
53822         spawn-pipe tests: Link the child program only against libc.
53823         * tests/test-spawn-pipe-child.c: New file, extracted from
53824         tests/test-spawn-pipe.c.
53825         (main): Expect only one argument.
53826         (is_open): New function, copied from tests/test-pipe.c.
53827         * tests/test-spawn-pipe.c: Don't include <errno.h>.
53828         (child_main): Remove function.
53829         (test_pipe): Pass only one argument to the child program.
53830         (main): Remove child process code. Expect the child program's name as
53831         first argument.
53832         * tests/test-spawn-pipe.sh: Pass the child program's name as first
53833         argument.
53834         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
53835         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
53836         test-spawn-pipe-child against no libraries.
53838 2011-06-06  Bruno Haible  <bruno@clisp.org>
53840         careadlinkat: Avoid mismatch between ssize_t and int.
53841         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
53842         * lib/careadlinkat.c (careadlinkatcwd): Define always.
53844 2011-06-06  Jim Meyering  <meyering@redhat.com>
53846         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
53847         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
53848         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
53850 2011-06-05  Bruno Haible  <bruno@clisp.org>
53852         ansi-c++-opt: Interoperability with libtool.
53853         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
53854         set the variable to "no", not to ":".
53855         * NEWS: Mention the change.
53857 2011-06-05  Bruno Haible  <bruno@clisp.org>
53859         acl: Fix test failure on AIX 7.
53860         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
53861         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
53863 2011-06-05  Bruno Haible  <bruno@clisp.org>
53865         pipe-filter-ii: Fix test failure on AIX and IRIX.
53866         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
53867         with EAGAIN, retry with a smaller buffer size.
53869 2011-06-05  Bruno Haible  <bruno@clisp.org>
53871         localename: Fix link dependencies.
53872         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
53873         * modules/localename-tests (Makefile.am): Link test-localename with
53874         $(LIBTHREAD).
53876 2011-06-05  Bruno Haible  <bruno@clisp.org>
53878         error: Avoid gcc warning.
53879         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
53881 2011-06-05  Bruno Haible  <bruno@clisp.org>
53883         unsetenv: Avoid gcc warning.
53884         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
53886 2011-06-05  Bruno Haible  <bruno@clisp.org>
53888         setenv: Avoid gcc warning.
53889         * lib/setenv.c (setenv): Provide declaration if system lacks it.
53891 2011-06-05  Bruno Haible  <bruno@clisp.org>
53893         sys_select: Ensure memset is declared also on AIX 7.
53894         * lib/sys_select.in.h: Include <string.h> also on AIX.
53895         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
53896         self-contained also on AIX 7.1.
53898 2011-06-04  Jim Meyering  <meyering@redhat.com>
53900         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
53901         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
53902         function name, "error".
53903         (_gl_translatable_diag_func_re): New configurable variable.
53905 2011-06-04  Bruno Haible  <bruno@clisp.org>
53907         getopt: Avoid gcc warning.
53908         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
53910 2011-06-04  Bruno Haible  <bruno@clisp.org>
53912         strerror_r: Fix comments.
53913         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
53914         commit.
53916 2011-06-04  Bruno Haible  <bruno@clisp.org>
53918         perror: Fix compilation error.
53919         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
53920         Undefine fprintf, not sprintf.
53921         * modules/perror (Depends-on): Remove intprops, verify.
53923 2011-06-04  Bruno Haible  <bruno@clisp.org>
53925         setlocale: Enable replacement on Cygwin 1.5.
53926         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
53927         Cygwin 1.5.x.
53928         * doc/posix-functions/setlocale.texi: Mention that the problem with the
53929         LC_CTYPE category also exists on Cygwin 1.5.x.
53931 2011-06-04  Bruno Haible  <bruno@clisp.org>
53933         strerror-override: Don't disable symbol renamings.
53934         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
53935         * lib/strerror-override.c: Include config.h.
53936         (strerror_override): Don't undefine.
53938 2011-06-03  Bruno Haible  <bruno@clisp.org>
53940         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
53941         * lib/localename.h: Update copyright header.
53942         * lib/localename.c: Likewise.
53943         * lib/relocatable.h: Likewise.
53944         * lib/relocatable.c: Likewise.
53946 2011-06-02  Bruno Haible  <bruno@clisp.org>
53948         doc: Fix a module name.
53949         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
53951 2011-06-02  Bruno Haible  <bruno@clisp.org>
53953         pipe2: Remove dependency on 'nonblocking' module.
53954         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
53955         O_NONBLOCK is defined by gnulib.
53956         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
53957         is zero.
53958         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
53959         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
53960         defined by gnulib.
53961         (get_nonblocking_flag): New function.
53962         (main): Test O_NONBLOCK flag only if it is nonzero.
53963         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
53965 2011-06-03  Jim Meyering  <meyering@redhat.com>
53967         maint: three new prohibit-header-without-use rules
53968         Prohibit use of cloexec.h, posixver.h, same.h without use.
53969         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
53970         (sc_prohibit_posixver_without_use): Likewise.
53971         (sc_prohibit_same_without_use): Likewise.
53973 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
53975         allocator: 'die' routine is now given requested size
53976         * lib/allocator.h (struct allocator.die): New size arg.
53977         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
53978         If the actual problem is an ssize_t limitation, not a size_t or
53979         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
53981 2011-06-01  Eric Blake  <eblake@redhat.com>
53983         strerror: drop strerror_r dependency
53984         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
53985         * lib/strerror-override.c (strerror_override): ...to new file.
53986         * lib/strerror-override.h: Add prototype.
53987         * lib/strerror-impl.h: Delete.
53988         * lib/strerror.c (strerror): New implementation.
53989         * modules/errno (Files): Add new files.
53990         (configure.ac): Compile new file as appropriate.
53991         * modules/strerror (Files): Drop unused file.
53992         (Depends-on): Drop strerror_r-posix.
53993         * MODULES.html.sh: Document strerror_r-posix.
53994         Requested by Sam Steingold.
53996         perror: call strerror_r directly
53997         * modules/perror (Files): Drop strerror-impl.h.
53998         * lib/perror.c (perror): Use our own stack buffer, rather than
53999         calling a wrapper that uses static storage.
54000         * doc/posix-functions/perror.texi (perror): Document a limitation
54001         of our replacement.
54003         strerror_r: fix includes for FreeBSD
54004         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
54005         since we use abort on some platforms.
54006         Reported by Matthias Bolte.
54008 2011-05-31  Bruno Haible  <bruno@clisp.org>
54010         Fix link errors in tests: openat-die uses gettext-h.
54011         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
54012         against $(LIBINTL).
54013         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
54014         against $(LIBINTL).
54015         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
54016         $(LIBINTL).
54017         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
54018         against $(LIBINTL).
54019         * modules/linkat-tests (Makefile.am): Link test-linkat against
54020         $(LIBINTL).
54021         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
54022         $(LIBINTL).
54023         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
54024         against $(LIBINTL).
54025         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
54026         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
54027         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
54028         $(LIBINTL).
54029         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
54030         $(LIBINTL).
54031         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
54032         $(LIBINTL).
54033         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54035 2011-05-31  Bruno Haible  <bruno@clisp.org>
54037         Fix link errors in tests: wait-process uses gettext-h.
54038         * modules/nonblocking-pipe-tests (Makefile.am): Set
54039         test_nonblocking_pipe_main_LDADD.
54040         * modules/nonblocking-socket-tests (Makefile.am): Link
54041         test-nonblocking-socket-main against $(LIBINTL).
54042         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54044 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
54046         assert-h: work around 'verify' incompatibility
54047         * lib/verify.h: Use @...@ directives, not ifdef.
54048         * modules/assert-h (assert.h): Implement the directives.
54049         (assert.h): Substitute the symbol-prefix more consistently.
54051 2011-05-29  Jim Meyering  <meyering@redhat.com>
54053         trim: remove three superfluous assignments
54054         * lib/trim.c (trim2): Remove three superfluous assignments
54055         and correct brace positioning.
54057 2011-05-29  Bruno Haible  <bruno@clisp.org>
54059         wctype-h: Avoid namespace pollution on Solaris 2.6.
54060         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
54061         identifiers.
54062         * doc/posix-headers/wctype.texi: Mention the problem.
54063         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54065 2011-05-28  Jim Meyering  <meyering@redhat.com>
54067         parse-datetime.y: accommodate -Wstrict-overflow
54068         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
54069         placate -Wstrict-overflow.
54071         trim: avoid a warning from -O2 -Wstrict-overflow
54072         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
54074 2011-05-29  Bruno Haible  <bruno@clisp.org>
54076         gnulib-tool: Fix bug in yesterday's commit.
54077         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
54078         twice.
54080 2011-05-29  Bruno Haible  <bruno@clisp.org>
54082         Allow multiple gnulib generated include files to be combined.
54083         * gnulib-tool (func_compute_include_guard_prefix): New function.
54084         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
54085         ${gl_include_guard_prefix} references.
54086         (func_import, func_create_testdir): Invoke
54087         func_compute_include_guard_prefix.
54088         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
54089         * lib/ctype.in.h: Likewise.
54090         * lib/dirent.in.h: Likewise.
54091         * lib/errno.in.h: Likewise.
54092         * lib/fcntl.in.h: Likewise.
54093         * lib/float.in.h: Likewise.
54094         * lib/getopt.in.h: Likewise.
54095         * lib/iconv.in.h: Likewise.
54096         * lib/langinfo.in.h: Likewise.
54097         * lib/locale.in.h: Likewise.
54098         * lib/math.in.h: Likewise.
54099         * lib/netdb.in.h: Likewise.
54100         * lib/netinet_in.in.h: Likewise.
54101         * lib/poll.in.h: Likewise.
54102         * lib/pthread.in.h: Likewise.
54103         * lib/pty.in.h: Likewise.
54104         * lib/sched.in.h: Likewise.
54105         * lib/se-selinux.in.h: Likewise.
54106         * lib/search.in.h: Likewise.
54107         * lib/signal.in.h: Likewise.
54108         * lib/spawn.in.h: Likewise.
54109         * lib/stdarg.in.h: Likewise.
54110         * lib/stddef.in.h: Likewise.
54111         * lib/stdint.in.h: Likewise.
54112         * lib/stdio.in.h: Likewise.
54113         * lib/stdlib.in.h: Likewise.
54114         * lib/string.in.h: Likewise.
54115         * lib/strings.in.h: Likewise.
54116         * lib/sys_file.in.h: Likewise.
54117         * lib/sys_ioctl.in.h: Likewise.
54118         * lib/sys_select.in.h: Likewise.
54119         * lib/sys_socket.in.h: Likewise.
54120         * lib/sys_stat.in.h: Likewise.
54121         * lib/sys_time.in.h: Likewise.
54122         * lib/sys_times.in.h: Likewise.
54123         * lib/sys_uio.in.h: Likewise.
54124         * lib/sys_utsname.in.h: Likewise.
54125         * lib/sys_wait.in.h: Likewise.
54126         * lib/sysexits.in.h: Likewise.
54127         * lib/termios.in.h: Likewise.
54128         * lib/time.in.h: Likewise.
54129         * lib/unistd.in.h: Likewise.
54130         * lib/wchar.in.h: Likewise.
54131         * lib/wctype.in.h: Likewise.
54132         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
54133         * modules/ctype (Makefile.am): Likewise.
54134         * modules/dirent (Makefile.am): Likewise.
54135         * modules/errno (Makefile.am): Likewise.
54136         * modules/fcntl-h (Makefile.am): Likewise.
54137         * modules/float (Makefile.am): Likewise.
54138         * modules/getopt-posix (Makefile.am): Likewise.
54139         * modules/iconv-h (Makefile.am): Likewise.
54140         * modules/langinfo (Makefile.am): Likewise.
54141         * modules/locale (Makefile.am): Likewise.
54142         * modules/math (Makefile.am): Likewise.
54143         * modules/netdb (Makefile.am): Likewise.
54144         * modules/netinet_in (Makefile.am): Likewise.
54145         * modules/poll-h (Makefile.am): Likewise.
54146         * modules/pthread (Makefile.am): Likewise.
54147         * modules/pty (Makefile.am): Likewise.
54148         * modules/sched (Makefile.am): Likewise.
54149         * modules/search (Makefile.am): Likewise.
54150         * modules/selinux-h (Makefile.am): Likewise.
54151         * modules/signal (Makefile.am): Likewise.
54152         * modules/spawn (Makefile.am): Likewise.
54153         * modules/stdarg (Makefile.am): Likewise.
54154         * modules/stddef (Makefile.am): Likewise.
54155         * modules/stdint (Makefile.am): Likewise.
54156         * modules/stdio (Makefile.am): Likewise.
54157         * modules/stdlib (Makefile.am): Likewise.
54158         * modules/string (Makefile.am): Likewise.
54159         * modules/strings (Makefile.am): Likewise.
54160         * modules/sys_file (Makefile.am): Likewise.
54161         * modules/sys_ioctl (Makefile.am): Likewise.
54162         * modules/sys_select (Makefile.am): Likewise.
54163         * modules/sys_socket (Makefile.am): Likewise.
54164         * modules/sys_stat (Makefile.am): Likewise.
54165         * modules/sys_time (Makefile.am): Likewise.
54166         * modules/sys_times (Makefile.am): Likewise.
54167         * modules/sys_uio (Makefile.am): Likewise.
54168         * modules/sys_utsname (Makefile.am): Likewise.
54169         * modules/sys_wait (Makefile.am): Likewise.
54170         * modules/sysexits (Makefile.am): Likewise.
54171         * modules/termios (Makefile.am): Likewise.
54172         * modules/time (Makefile.am): Likewise.
54173         * modules/unistd (Makefile.am): Likewise.
54174         * modules/wchar (Makefile.am): Likewise.
54175         * modules/wctype-h (Makefile.am): Likewise.
54176         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
54178 2011-05-29  Bruno Haible  <bruno@clisp.org>
54180         assert-h: Allow multiple gnulib generated replacements to coexist.
54181         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
54183 2011-05-29  Bruno Haible  <bruno@clisp.org>
54185         argp: Allow coexistence with strerror_r-posix module.
54186         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
54187         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
54188         by gnulib's <string.h> replacement), assume it has the POSIX signature,
54189         not the glibc signature.
54191 2011-05-28  Bruno Haible  <bruno@clisp.org>
54193         gnulib-tool: Alternative structure of testdirs, similar to --import.
54194         * gnulib-tool: New option --single-configure.
54195         (func_usage): Document it.
54196         (single_configure): New variable.
54197         (func_modules_transitive_closure_separately,
54198         func_modules_transitive_closure_separately,
54199         func_determine_use_libtests, func_modules_add_dummy_separately,
54200         func_modules_to_filelist_separately): New functions, extracted from
54201         func_import.
54202         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
54203         (func_import): Use the new functions.
54204         (func_create_testdir): Set final_modules. Handle $single_configure =
54205         true case.
54207 2011-05-28  Bruno Haible  <bruno@clisp.org>
54209         getloadavg: Remove an unreliable safety check.
54210         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
54211         getloadavg.c is in place.
54212         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
54213         Reported by Sam Steingold <sds@gnu.org>.
54215 2011-05-28  Bruno Haible  <bruno@clisp.org>
54217         doc: Cleanup yet another file produced by texinfo.tex.
54218         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
54220 2011-05-28  Bruno Haible  <bruno@clisp.org>
54222         Finish the conditional dependencies mechanism.
54223         * gnulib-tool: New option --no-conditional-dependencies.
54224         (func_usage): Document it. Don't mark --conditional-dependencies as
54225         experimental.
54226         (cond_dependencies): The possible values can now be true, false, empty.
54227         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
54228         (func_import): Store setting in gnulib-cache.m4 and read it from there.
54229         * doc/gnulib-tool.texi (Conditional dependencies): New section.
54231 2011-05-28  Bruno Haible  <bruno@clisp.org>
54233         doc: Use a recent texinfo.tex.
54234         * doc/Makefile (tex_opts): New variable.
54235         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
54237 2011-05-28  Jim Meyering  <meyering@redhat.com>
54239         intprops.h: adjust comment to match code change
54240         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
54241         only once, it *may* have side effects.  Also fix an unrelated typo.
54242         (_GL_INT_SIGNED): Likewise.
54244 2011-05-26  Simon Josefsson  <simon@josefsson.org>
54246         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
54248 2011-05-26  Bruno Haible  <bruno@clisp.org>
54250         mbsrchr: Avoid collision with system function on Interix.
54251         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
54252         Reported by Markus Duft <mduft@gentoo.org>.
54254 2011-05-15  James Youngman  <jay@gnu.org>
54256         getopt: for ambiguous options, enumerate the possibilities.
54257         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
54258         the ambiguous options when an ambiguous prefix is given. This was
54259         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
54260         glibc change was
54261         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
54263 2011-05-25  Eric Blake  <eblake@redhat.com>
54265         getcwd: work around mingw bug
54266         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
54267         * doc/posix-functions/getcwd.texi (getcwd): Document it.
54268         Reported by Matthias Bolte.
54270 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
54272         test-intprops: disable -Wtype-limits diagnostics
54273         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
54274         diagnostics.  Otherwise, the integer overflow macros generate many
54275         diagnostics.  Reported by Jim Meyering in
54276         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
54278         intprops: shorten, to pacify gcc -Woverlength-strings
54279         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
54280         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
54281         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
54282         likely to run afoul of C compiler limits for string constant lengths.
54283         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
54285 2011-05-24  Eric Blake  <eblake@redhat.com>
54287         docs: document recently fixed glibc printf bug
54288         * doc/posix-functions/fprintf.texi (fprintf): Document it.
54289         * doc/posix-functions/printf.texi (printf): Likewise.
54290         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
54291         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
54293         closein-tests: convert to init.sh
54294         * modules/closein-tests (Files): Add init.sh
54295         * tests/test-closein.sh Use it.
54297         yesno-tests: convert to init.sh
54298         * modules/yesno-tests (Files): Add init.sh.
54299         * tests/test-yesno.sh: Use it.
54301         atexit-tests: ensure reliable exit status
54302         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
54303         Reported by Bruno Haible.
54305 2011-05-24  Bruno Haible  <bruno@clisp.org>
54307         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
54308         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
54309         gl_PREREQ_STRERROR_R invocations from here...
54310         * modules/strerror_r-posix (configure.ac): ... to here.
54312 2011-05-24  Eric Blake  <eblake@redhat.com>
54314         strerror_r: fix missing header
54315         * lib/strerror_r.c: Avoid compiler warning about snprintf.
54317         strerror_r: fix AIX test failures
54318         * lib/strerror_r.c (strerror_r): Convert silent truncation to
54319         ERANGE failure.
54321         strerror_r: fix Solaris test failures
54322         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
54323         failures.
54324         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54326         strerror_r: enforce POSIX recommendations
54327         * lib/strerror_r.c (safe_copy): New helper method.
54328         (strerror_r): Guarantee a non-empty string.
54329         * tests/test-strerror_r.c (main): Enhance tests to incorporate
54330         recent POSIX rulings and to match our strerror guarantees.
54331         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54333 2011-05-24  Jim Meyering  <meyering@redhat.com>
54335         test-perror2.c: avoid warning about unused variable
54336         * tests/test-perror2.c (main): Remove declaration of unused "fp".
54338 2011-05-24  Eric Blake  <eblake@redhat.com>
54340         perror: avoid spurious test failure on HP-UX
54341         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
54343         tests: fix logic bug in init.sh
54344         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
54345         shell.
54347 2011-05-24  Jim Meyering  <meyering@redhat.com>
54349         utimensat: do not reference an out-of-scope buffer
54350         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
54351         declared in an inner scope, yet "times" would be dereferenced outside
54352         the scope in which "ts" was valid.
54353         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
54354         of ts[2] "out/up", so that the use of aliased "times" (via
54355         "times = ts;") does not end up referencing an out-of-scope "ts"
54357         opendir-safer.c: don't clobber errno; don't close negative FD
54358         * lib/opendir-safer.c (opendir_safer):
54359         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
54360         file descriptor, and more importantly, don't clobber the
54361         offending errno value with EINVAL.  Before, upon failure
54362         of dup_safer, we would pass the negative file descriptor to
54363         fdopendir, which would clobber errno.
54365 2011-05-23  Bruno Haible  <bruno@clisp.org>
54367         idcache: Fix module description.
54368         * modules/idcache (Include): Set to "idcache.h".
54370 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
54372         gnulib-tool: fix portability problem with MacOS sed
54373         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
54374         before the "}".  Problem reported by Leo in
54375         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
54376         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
54377         sed_extract_condition1, sed_extract_condition2.
54379 2011-05-23  Bruno Haible  <bruno@clisp.org>
54381         hash: Simplify autoconf macro.
54382         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
54384 2011-05-23  Bruno Haible  <bruno@clisp.org>
54386         getugroups: Fix module description.
54387         * modules/getugroups (Include): Set to "getugroups.h".
54389 2011-05-23  Bruno Haible  <bruno@clisp.org>
54391         linkat: Simplify autoconf macro.
54392         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
54394 2011-05-23  Bruno Haible  <bruno@clisp.org>
54395             Eric Blake  <eblake@redhat.com>
54397         linkat, renameat: Update dependencies.
54398         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
54399         * modules/linkat (Depends-on): Likewise. Remove also readlink,
54400         symlinkat.
54402 2011-05-23  Jim Meyering  <meyering@redhat.com>
54404         maint.mk: more tight_scope improvements
54405         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
54406         (_gl_TS_headers): Define only in if-0'd block.
54407         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
54408         sometimes we must *not* use it.  Adjust uses accordingly.
54409         (sc_tight_scope): Use much simpler grep-based test to determine
54410         whether we skip this rule.
54412         maint.mk: generalize/improve the tight-scope rule
54413         * top/maint.mk: Emit a warning when the test is skipped.
54414         (_gl_TS_dir): Add $(srcdir)/ prefix.
54415         (_gl_TS_function_match): Simplify, rather than trying
54416         to enumerate common types.  Otherwise, it would fail to match an
54417         "extern unsigned char const *" declaration in idutils.
54418         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
54419         a way to support use of that type of macro.
54420         (_gl_TS_var_match): Simplify regexp.
54421         (_gl_TS_obj_files): New configurable variable.
54422         (_gl_TS_headers): Likewise.
54424 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
54426         verify: fix bug when gnulib <assert.h> is also included
54427         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
54428         is defined, not if _GL_STATIC_ASSERT_H is not defined.
54429         Perhaps there's a better way, but this fixes the immediate problem.
54430         Problem reported by Bruno Haible in
54431         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
54433 2011-05-22  Bruno Haible  <bruno@clisp.org>
54435         xgetcwd: Simplify autoconf macro.
54436         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
54438 2011-05-22  Bruno Haible  <bruno@clisp.org>
54440         New module 'mktime-internal'.
54441         * modules/mktime-internal: New file.
54442         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
54443         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
54444         mktime_internal as a C macro if libc has __mktime_internal.
54445         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
54446         conditions.
54447         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
54449 2011-05-22  Bruno Haible  <bruno@clisp.org>
54451         timegm: Correct mktime replacement statements.
54452         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
54453         defining mktime as a C macro. This completes a 2009-07-28 commit.
54455 2011-05-22  Bruno Haible  <bruno@clisp.org>
54457         timegm: Simplify autoconf macro.
54458         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
54460 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
54462         clock-time: change to LGPLv2+.
54463         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
54464         BSD-like but we have no mark for that; this is good enough for now.
54466 2011-05-21  Bruno Haible  <bruno@clisp.org>
54468         strerror_r: Fix comments.
54469         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
54471 2011-05-21  Bruno Haible  <bruno@clisp.org>
54473         relocatable-prog-wrapper: Fix possible link error.
54474         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
54475         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
54476         (gl_FUNC_SETENV): ... to here.
54477         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
54478         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
54480 2011-05-21  Bruno Haible  <bruno@clisp.org>
54482         relocatable-prog-wrapper: Assume strerror() exists.
54483         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
54484         m4/strerror.m4.
54485         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
54486         * lib/relocwrapper.c: Remove mention of strerror module.
54487         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
54488         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
54489         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
54490         C macro.
54492 2011-05-21  Bruno Haible  <bruno@clisp.org>
54494         select: Simplify replacement idiom.
54495         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
54496         Win32 platforms.
54497         * lib/sys_select.in.h (select): Simplify accordingly.
54498         * modules/select (Depends-on): Likewise.
54500 2011-05-21  Bruno Haible  <bruno@clisp.org>
54502         mkdir-p: Simplify autoconf macro.
54503         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
54504         gl_FUNC_LCHOWN.
54506 2011-05-21  Eric Blake  <eblake@redhat.com>
54508         strerror_r: avoid clobbering strerror on cygwin
54509         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
54510         fall back instead to sys_errlist.
54511         * modules/strerror (configure.ac): Add witness.
54512         * tests/test-strerror_r.c (main): Enhance test.
54513         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54514         * tests/test-perror2.c (main): Free memory before exit.
54516 2011-05-21  Bruno Haible  <bruno@clisp.org>
54518         mkdtemp: Use gnulib naming conventions.
54519         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
54520         * modules/mkdtemp (configure.ac): Update.
54522 2011-05-20  Eric Blake  <eblake@redhat.com>
54524         strerror_r: avoid corrupting errno on Solaris
54525         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
54526         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54528         strerror_r: avoid compiler warning
54529         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
54531         strerror_r: simplify AIX code
54532         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
54534         test-perror: avoid spurious failure on FreeBSD
54535         * modules/perror-tests (Depends-on): Add strerror, now that
54536         strerror_r no longer pulls it in.
54538 2011-05-20  Bruno Haible  <bruno@clisp.org>
54540         strerror_r-posix: Remove unused dependencies.
54541         * modules/strerror_r-posix (Depends-on): Remove strerror.
54542         Reported by Eric Blake.
54544 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54546         intprops: remove assumption about A|B representation
54547         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
54548         is a valid integer if both A and B are.  Although this is true for
54549         all known practical hosts, the C standard doesn't guarantee it,
54550         and the code need not assume it.  Also, this change may work around
54551         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
54552         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
54554 2011-05-20  Eric Blake  <eblake@redhat.com>
54556         perror: work around FreeBSD bug
54557         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
54558         is broken.  Move AC_LIBOBJ...
54559         * modules/perror (configure.ac): Here.
54560         * doc/posix-functions/perror.texi (perror): Document this.
54561         * tests/test-perror2.c (main): Enhance test.
54563         test-perror: check for strerror interactions
54564         * tests/macros.h (STREQ): Add macro.
54565         * modules/perror-tests (Files): Add second test.
54566         * tests/test-perror2.c (main): New file.
54567         * doc/posix-functions/perror.texi (perror): Document glibc bug.
54569         test-perror: rewrite to use init script
54570         * modules/perror-tests (Files): Add init.sh.
54571         * tests/test-perror.sh: Use temporary directory.
54573 2011-05-20  Jim Meyering  <meyering@redhat.com>
54575         maint: replace misused "a" with "an"
54576         * doc/intprops.texi: "a integer"
54577         * doc/regex.texi: "a explanation"
54578         * lib/alignof.h: "a object"
54579         * lib/argmatch.h: "a explanation"
54580         * lib/argp-help.c: "a option" and "a OPTION_DOC"
54581         * lib/stdint.in.h: "a integer"
54582         * lib/userspec.c: "a owner"
54583         * doc/gnulib.texi: Fix "a idea", and reword.
54585 2011-05-19  Jim Meyering  <meyering@redhat.com>
54587         maint: correct misuse of "a" and "an"
54588         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
54589         * lib/argp-help.c: "an docum...": s/an/a/
54590         * lib/argp-parse.c: "An vector": s/An/A/
54591         * lib/execute.c: "an native": s/an/a/
54592         * lib/spawn-pipe.c: Likewise.
54593         * lib/gc.h: "an Gc_rc": s/an/a/
54594         * lib/unigbrk.in.h: "an grapheme": s/an/a/
54595         * lib/fts.c: "an stat.st_dev": s/an/a/
54597 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54599         intprops-tests: work around HP-UX 11.23 cc bug with constants
54600         * tests/test-intprops.c (VERIFY): New macro.
54601         (main): Use it, instead of verify, to work around the compiler bug; see
54602         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54604         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
54605         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
54606         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
54607         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
54608         (_GL_REMAINDER_OVERFLOW): Use it.
54610         intprops-tests: revert unsigned part of previous change
54611         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
54612         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
54613         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
54614         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
54616 2011-05-19  Bruno Haible  <bruno@clisp.org>
54618         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
54619         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
54620         strerror_r() returned without filling the buffer.
54621         Reported by Eric Blake.
54623 2011-05-19  Eric Blake  <eblake@redhat.com>
54625         strerror_r: guarantee unchanged errno
54626         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
54627         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
54628         failure.
54629         * tests/test-strerror_r.c (main): Enhance test.
54631 2011-05-19  Bruno Haible  <bruno@clisp.org>
54633         strerror_r: Reorder #if blocks.
54634         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
54635         for consistency with the previous commit.
54637 2011-05-19  Bruno Haible  <bruno@clisp.org>
54639         perror: Avoid clobbering the strerror buffer when possible.
54640         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
54641         * lib/strerror.c: Include it.
54642         * modules/strerror (Files): Add lib/strerror-impl.h.
54643         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
54644         (my_strerror): New function, defined through lib/strerror-impl.h.
54645         (perror): Use it instead of strerror.
54646         * modules/perror (Files): Add lib/strerror-impl.h.
54647         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
54649 2011-05-19  Eric Blake  <eblake@redhat.com>
54651         strerror_r: fix on newer cygwin
54652         * lib/strerror_r.c (strerror_r): Cygwin now has
54653         __xpg_strerror_r, use it.
54655 2011-05-19  Bruno Haible  <bruno@clisp.org>
54657         strerror_r: Avoid clobbering the strerror buffer when possible.
54658         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
54659         (sys_nerr, sys_errlist): New declarations.
54660         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
54661         HP-UX, native Win32, IRIX, and 32-bit Solaris.
54662         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
54664 2011-05-19  Bruno Haible  <bruno@clisp.org>
54666         strerror_r: Fix test failure on mingw.
54667         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
54668         EXTEND_STRERROR_R.
54669         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
54670         macros from errno.in.h instead.
54672 2011-05-19  Eric Blake  <eblake@redhat.com>
54674         strerror: relax test for Solaris
54675         * tests/test-strerror.c (main): Permit Solaris behavior.
54676         * tests/test-strerror_r.c (main): Likewise.
54678         strerror: enforce POSIX ruling on strerror(0)
54679         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
54680         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
54681         * lib/strerror_r.c (rpl_strerror_r): Work around it.
54682         * doc/posix-functions/strerror.texi (strerror): Document it.
54683         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
54684         * tests/test-strerror.c (main): Strengthen test.
54685         * tests/test-strerror_r.c (main): Likewise.
54687 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54689         intprop-tests: port to older and more-pedantic compilers
54690         * modules/intprops-tests (Files): Add tests/macros.h.
54691         * tests/test-intprops.c: Include macros.h.
54692         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
54693         it's no longer documented to expand to an integer constant expression.
54694         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
54695         argument is floating point, as it's no longer documented to expand
54696         to an integer constant expression in that case.
54697         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
54698         compiler bugs reported by Bruno Haible.  See
54699         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54700         (U0, U1): New constants, to work around the same bugs.  Also,
54701         in tests, use e.g., "(unsigned int) 39" rather than "39u".
54703         intprops: work around C compiler bugs
54704         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
54705         bug in Sun C 5.11 2010/08/13 and other compilers; see
54706         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54708         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
54709         * doc/intprops.texi (Integer Type Determination): Fix
54710         documentation for TYPE_IS_INTEGER: it returns an constant
54711         expression, not an integer constant expression.  Fix doc for
54712         TYPE_SIGNED: it returns an integer constant expression only if its
54713         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
54714         hardly worth documented that way....)
54716 2011-05-18  Bruno Haible  <bruno@clisp.org>
54718         strerror_r: Avoid clobbering the strerror buffer when possible.
54719         * lib/strerror_r.c (strerror_r): Merge the three implementations.
54720         Handle gnulib defined errno values here. When strerror() returns NULL
54721         or an empty string, return EINVAL.
54722         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
54723         gnulib defined errno values here.
54724         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
54726 2011-05-18  Eric Blake  <eblake@redhat.com>
54728         fnmatch: avoid compiler warning
54729         * lib/fnmatch_loop.c (FCT): Use correct type.
54730         Reported by Matthias Bolte.
54732 2011-05-13  Jim Meyering  <meyering@redhat.com>
54734         maint.mk: three new prohibit_<HDR>_without_use rules
54735         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
54736         (sc_prohibit_stdio-safer_without_use): Likewise.
54737         (sc_prohibit_xfreopen_without_use): Likewise.
54739 2011-05-17  Jim Meyering  <meyering@redhat.com>
54741         announce-gen: fail if the NEWS delta is empty
54742         If there's nothing noteworthy in NEWS, then either you forgot
54743         or you shouldn't be releasing.
54744         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
54746 2011-05-17  Pádraig Brady  <P@draigBrady.com>
54748         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
54749         reserved symbols starting with double underscore from the check.
54751 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54753         intprops: add doc
54754         * doc/intprops.texi: New file, documenting intprops.
54755         * doc/gnulib.texi (Particular Modules): Include it.
54757         verify: add doc to gnulib manual and fix example
54758         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
54759         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
54760         (Compile-time Assertions): Fix example so it can't overflow.
54762 2011-05-17  Jim Meyering  <meyering@redhat.com>
54764         warnings.m4: don't usurp save_CPPFLAGS variable name
54765         * m4/warnings.m4: Prefix local temporary variable name with gl_.
54767         doc: fix typo
54768         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
54770 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54771             Bruno Haible  <bruno@clisp.org>
54773         doc: Tweak recent change.
54774         * README (Portability guidelines): Tweak new text.
54775         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
54776         Interix 6.1.
54778 2011-05-16  Eric Blake  <eblake@redhat.com>
54780         inttypes: avoid autoconf warning
54781         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
54782         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54784 2011-05-16  Sam Steingold  <sds@gnu.org>
54785         and Eric Blake  <eblake@redhat.com>
54787         vc-list-files: accept multiple directory operands
54788         * build-aux/vc-list-files: Iterate over all remaining operands.
54790 2011-05-16  Bruno Haible  <bruno@clisp.org>
54792         Fix confusion regarding deprecated modules.
54793         * modules/calloc (Status, Notice): Mark module as deprecated, not
54794         obsolete.
54795         * modules/fnmatch-posix (Status, Notice): Likewise.
54796         * modules/getdate (Status, Notice): Likewise.
54797         * modules/getopt (Status, Notice): Likewise.
54798         * modules/malloc (Status, Notice): Likewise.
54799         * modules/pipe (Status, Notice): Likewise.
54800         * modules/realloc (Status, Notice): Likewise.
54801         * modules/rename-dest-slash (Status, Notice): Likewise.
54802         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
54803         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
54804         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
54805         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
54806         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
54808 2011-05-16  Bruno Haible  <bruno@clisp.org>
54810         doc: List the target platforms.
54811         * doc/gnulib-intro.texi (Target Platforms): New section.
54812         * doc/gnulib.texi (Introduction): Update menu.
54813         * README (Portability guidelines): Refer to the new section. Update
54814         statement about oldest supported environment. Remove rationale why
54815         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
54816         unportable C89 function.
54817         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
54818         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
54820 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54822         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
54824 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54826         intprops-tests: new module
54827         * modules/intprops-tests, tests/test-intprops.c: New files.
54829         intprops: add safe, portable integer overflow checking
54830         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
54831         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
54832         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
54833         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
54834         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
54835         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
54836         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
54837         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
54838         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
54839         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
54840         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
54842 2011-05-12  James Youngman  <jay@gnu.org>
54844         Add a test for glibc's Bugzilla bug #12378.
54845         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
54846         doesn't allow the literal matching of a lone "[" (which is
54847         required by POSIX).
54848         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
54850 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
54852         Sync glibc change fixing Bugzilla bug #12378.
54853         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
54854         beginning and fall back to matching as normal character if the
54855         string ends before the matching ']' is found.  This is what POSIX
54856         requires.
54858 2011-05-13  Eric Blake  <eblake@redhat.com>
54860         getcwd-lgpl: relax test for FreeBSD
54861         * doc/posix-functions/getcwd.texi (getcwd): Document portability
54862         issue.
54863         * tests/test-getcwd-lgpl.c (main): Relax test.
54864         Reported by Matthias Bolte.
54866 2011-05-11  Eric Blake  <eblake@redhat.com>
54868         test-fflush: silence compiler warning
54869         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
54871 2011-05-11  Bruno Haible  <bruno@clisp.org>
54873         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
54874         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
54875         * modules/canonicalize (Depends-on): Add 'nocrash'.
54876         * modules/canonicalize-lgpl (Depends-on): Likewise.
54877         * doc/posix-functions/realpath.texi: Update platforms list.
54878         Reported by Ryan Schmidt <ryandesign@macports.org>.
54880 2011-05-11  Bruno Haible  <bruno@clisp.org>
54882         group-member: Declare function in <unistd.h>.
54883         * lib/unistd.in.h (group_member): New declaration.
54884         * lib/group-member.h: Remove file.
54885         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
54886         * tests/test-unistd-c++.cc: Check signature of group_member.
54887         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
54888         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
54889         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
54890         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
54891         HAVE_GROUP_MEMBER.
54892         * modules/group-member (Files): Remove lib/group-member.h.
54893         (Depends-on): Add unistd. Specify conditions.
54894         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54895         (Include): Change to <unistd.h>.
54896         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
54897         HAVE_GROUP_MEMBER.
54898         * NEWS: Mention the change.
54899         * lib/euidaccess.c: Don't include group-member.h.
54901 2011-05-11  Bruno Haible  <bruno@clisp.org>
54903         group-member: Document module.
54904         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
54905         module.
54907 2011-05-11  Bruno Haible  <bruno@clisp.org>
54909         fclose: Fix mistake earlier today.
54910         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
54912 2011-05-11  Eric Blake  <eblake@redhat.com>
54914         fclose: preserve fflush errors
54915         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
54916         Reported by Jim Meyering.
54918         bootstrap: support a prereq of 'rpcgen -' on RHEL5
54919         * build-aux/bootstrap (check_versions): When no specific version
54920         is required, merely check that the app produces an exit status
54921         that indicates its existence.
54923         maint.mk: drop redundant check
54924         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
54925         the same but better.
54927 2011-05-11  Bruno Haible  <bruno@clisp.org>
54929         fclose: Fix possible link error.
54930         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
54931         unregister_shadow_fd. Improve comments.
54932         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
54933         Eric Blake.
54935 2011-05-11  Jim Meyering  <meyering@redhat.com>
54937         maint.mk: improve "can not" detection and generalize rule name
54938         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
54939         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
54940         Use the same technique as in sc_prohibit_doubled_word, so that
54941         we recognize "can not" also when the words are separated by a newline.
54942         Suggested by Eric Blake.
54943         (perl_filename_lineno_text_): Define.  Factored out of...
54944         (prohibit_doubled_word_): ...here.  Use the new definition.
54945         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
54946         (prohibit_undesirable_word_seq_RE_): New overridable variable.
54947         (ignore_undesirable_word_sequence_RE_): New overridable variable.
54949 2011-05-10  Eric Blake  <eblake@redhat.com>
54951         fclose: avoid double close race when possible
54952         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
54953         all but WINDOWS_SOCKETS.
54955 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
54957         openat: correct new comment
54958         * lib/openat-proc.c (openat_proc_name): Correct the comment.
54960 2011-05-10  Jim Meyering  <meyering@redhat.com>
54962         openat: add comments
54963         * lib/openat-proc.c (openat_proc_name): Add comments,
54964         mostly from Eric Blake.
54966 2011-05-09  Eric Blake  <eblake@redhat.com>
54968         openat: reduce syscalls in first probe of /proc
54969         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
54970         be a directory.  Simplify the probe for .. bugs.
54971         * modules/openat (Depends-on): Drop same-inode.
54972         Reported by Bastien ROUCARIES.
54974 2011-05-09  Jim Meyering  <meyering@redhat.com>
54976         maint.mk: change semantics/name of tight_scope variables
54977         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
54978         Rename variables to align with semantics that make them more useful.
54980         maint.mk: tweak new rule's name not to impinge
54981         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
54982         (sc_tight_scope): Use new rule name rather than $@-0.
54984         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
54985         * top/maint.mk (sc_tight_scope): New rule.
54986         (sc_tight_scope-0): New rule, ifdef'd out.
54987         (_gl_TS_dir): Default.
54988         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
54989         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
54991 2011-05-09  Simon Josefsson  <simon@josefsson.org>
54993         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
54994         Haible <bruno@clisp.org>.
54996 2011-05-08  Bruno Haible  <bruno@clisp.org>
54998         Comments.
54999         * m4/isnanf.m4: Add comment.
55000         * m4/isnanl.m4: Likewise.
55002 2011-05-08  Bruno Haible  <bruno@clisp.org>
55004         glob: Remove obsolete macro.
55005         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
55007 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
55009         intprops: Sun C 5.11 supports __typeof__
55010         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
55011         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
55012         which is new.
55013         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
55015         intprops: switch to usual gnulib indenting and naming
55016         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
55017         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
55019         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
55021 2011-05-08  Jim Meyering  <meyering@redhat.com>
55023         maint.mk: suppress "Entering/Leaving directory" diag in announcement
55024         * top/maint.mk (release-prep): Use make's --no-print-directory
55025         option when generating the announcement.  This eliminates the
55026         pesky "make[2]: Entering/Leaving directory" diagnostics in the
55027         generated announcement template.
55029 2011-05-08  Bruno Haible  <bruno@clisp.org>
55031         tzset: Fix gettimeofday wrapper on Solaris 2.6.
55032         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
55033         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
55035 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
55037         ignore-value, verify: Omit include files from lib_SOURCES.
55038         * modules/ignore-value, modules/verify (Makefile.am):
55039         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
55040         that leads Automake to duplicate use of am__objects_... variables
55041         in Makefile.in.  See
55042         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
55044 2011-05-07  Bruno Haible  <bruno@clisp.org>
55046         fclose: Simplify autoconf macro.
55047         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
55048         defined.
55050 2011-05-07  Bruno Haible  <bruno@clisp.org>
55052         canonicalize-lgpl: Fix autoconf macro ordering bug.
55053         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
55054         gl_STDLIB_H_DEFAULTS.
55056 2011-05-06  Eric Blake  <eblake@redhat.com>
55058         maintainer-makefile: make sc_po_check easier to tune
55059         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
55060         to probe for strings, such as an alternate location for gnulib.
55062         fclose: guarantee behavior on seekable stdin
55063         * modules/fclose (Depends-on): Add fflush.
55064         * doc/posix-functions/fclose.texi (fclose): Document this.
55065         * tests/test-fclose.c (main): Make test for this unconditional.
55067 2011-05-06  Bruno Haible  <bruno@clisp.org>
55069         fflush, fpurge: Relicense under LGPLv2+.
55070         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
55071         * modules/fpurge (License): Likewise.
55072         With permission from Eric Blake and Jim Meyering.
55073         Suggested by Eric Blake.
55075 2011-05-06  Karl Berry  <karl@gnu.org>
55077         * MODULES.html.sh (func_all_modules): remove exit.
55079 2011-05-06  Jim Meyering  <meyering@redhat.com>
55081         maint.mk: use info-gnu@ as the default only for a stable release
55082         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
55083         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
55084         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
55085         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
55087 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
55089         assert-h: new module, which supports C1X-style static_assert
55090         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
55091         * lib/verify.h: Revamp so that this can be copied into assert.h,
55092         while retaining the ability to use it standalone as before.
55093         Rename private identifiers so as not to encroach on the
55094         standard C namespace, since this is now used by assert.h.
55095         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
55096         the old verify_true.
55097         (_GL_VERIFY_TRUE): New macro, with much of the contents of
55098         the old verify_true.  Use _GL_VERIFY_TYPE.
55099         (_GL_VERIFY): New macro, with much of the contents of the old verify.
55100         (static_assert): New macro, if _GL_STATIC_ASSERT_H
55101         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
55102         defined when this file is copied into the replacement assert.h.
55103         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
55104         and _Static_assert is not built in.
55105         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
55106         defined, and use the new macros mentioned above.
55107         * doc/posix-headers/assert.texi: Document this.
55109 2011-05-05  Bruno Haible  <bruno@clisp.org>
55111         fclose, fflush: Respect rules for use of AC_LIBOBJ.
55112         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
55113         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
55114         gl_REPLACE_FCLOSE here.
55115         * modules/fflush (Depends-on): Remove fclose.
55116         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
55117         combination with module 'fclose'.
55119 2011-05-05  Bruno Haible  <bruno@clisp.org>
55121         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
55122         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
55123         gl_FUNC_FFLUSH.
55124         (gl_FUNC_FFLUSH): Use it.
55125         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
55126         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
55127         gl_REPLACE_FSEEKO here.
55129 2011-05-05  Bruno Haible  <bruno@clisp.org>
55131         tzset: Relicense under LGPL.
55132         * modules/tzset (License): Change to LGPL.
55133         No agreement needed; it's a no-op.
55135         strtoimax, strtoumax: Relicense under LGPL.
55136         * modules/strtoimax (License): Change to LGPL.
55137         * modules/strtoumax (License): Likewise.
55138         With permission from Jim Meyering, Paul Eggert:
55139         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
55140         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
55142         getgroups: Relicense under LGPL.
55143         * modules/getgroups (License): Change to LGPL.
55144         With permission from Jim Meyering, Paul Eggert, Eric Blake:
55145         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
55146         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
55147         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55149         nanosleep: Relicense under LGPL.
55150         * modules/nanosleep (License): Change to LGPL.
55151         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
55152         Haible:
55153         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
55154         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
55155         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55156         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
55158         futimens: Relicense under LGPL.
55159         * modules/futimens (License): Change to LGPL.
55160         With permission from Eric Blake:
55161         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55163         fflush: Relicense under LGPL.
55164         * modules/fflush (License): Change to LGPL.
55165         With permission from Eric Blake, Bruno Haible, Jim Meyering:
55166         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55167         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
55168         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
55170         tmpfile: Relicense under LGPL.
55171         * modules/tmpfile (License): Change to LGPL.
55172         With permission from Ben Pfaff:
55173         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
55175         isfinite: Relicense under LGPL.
55176         * modules/isfinite (License): Change to LGPL.
55177         With permission from Ben Pfaff, Bruno Haible:
55178         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
55179         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
55181         acosl..tanl: Relicense under LGPL.
55182         * modules/acosl (License): Change to LGPL.
55183         * modules/asinl (License): Likewise.
55184         * modules/atanl (License): Likewise.
55185         * modules/cosl (License): Likewise.
55186         * modules/expl (License): Likewise.
55187         * modules/logl (License): Likewise.
55188         * modules/sinl (License): Likewise.
55189         * modules/sqrtl (License): Likewise.
55190         * modules/tanl (License): Likewise.
55191         Source code originally from glibc and Paolo Bonzini. Agreements:
55192         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
55193         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
55195 2011-05-05  Bruno Haible  <bruno@clisp.org>
55197         signal: Define sighandler_t.
55198         * lib/signal.in.h (sighandler_t): New type.
55199         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
55200         whether sighandler_t is defined.
55201         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
55202         * modules/signal (Depends-on): Add extensions.
55203         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
55204         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
55205         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
55207 2011-05-05  Eric Blake  <eblake@redhat.com>
55209         maint: remove useless REPLACE_*_H macros
55210         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
55211         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
55212         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
55213         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
55214         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
55215         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
55216         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
55217         * m4/btowc.m4: Update callers.
55218         * m4/dirfd.m4: Likewise.
55219         * m4/duplocale.m4: Likewise.
55220         * m4/fchdir.m4: Likewise.
55221         * m4/fdopendir.m4: Likewise.
55222         * m4/inet_ntop.m4: Likewise.
55223         * m4/inet_pton.m4: Likewise.
55224         * m4/ioctl.m4: Likewise.
55225         * m4/mbrlen.m4: Likewise.
55226         * m4/mbrtowc.m4: Likewise.
55227         * m4/mbsinit.m4: Likewise.
55228         * m4/mbsnrtowcs.m4: Likewise.
55229         * m4/mbsrtowcs.m4: Likewise.
55230         * m4/poll.m4: Likewise.
55231         * m4/setlocale.m4: Likewise.
55232         * m4/wcrtomb.m4: Likewise.
55233         * m4/wcsnrtombs.m4: Likewise.
55234         * m4/wcsrtombs.m4: Likewise.
55235         * m4/wctob.m4: Likewise.
55236         * m4/wcwidth.m4: Likewise.
55237         * modules/posix_spawn: Likewise.
55238         * modules/posix_spawn_file_actions_addclose: Likewise.
55239         * modules/posix_spawn_file_actions_adddup2: Likewise.
55240         * modules/posix_spawn_file_actions_addopen: Likewise.
55241         * modules/posix_spawn_file_actions_destroy: Likewise.
55242         * modules/posix_spawn_file_actions_init: Likewise.
55243         * modules/posix_spawnattr_destroy: Likewise.
55244         * modules/posix_spawnattr_getflags: Likewise.
55245         * modules/posix_spawnattr_getpgroup: Likewise.
55246         * modules/posix_spawnattr_getschedparam: Likewise.
55247         * modules/posix_spawnattr_getschedpolicy: Likewise.
55248         * modules/posix_spawnattr_getsigdefault: Likewise.
55249         * modules/posix_spawnattr_getsigmask: Likewise.
55250         * modules/posix_spawnattr_init: Likewise.
55251         * modules/posix_spawnattr_setflags: Likewise.
55252         * modules/posix_spawnattr_setpgroup: Likewise.
55253         * modules/posix_spawnattr_setschedparam: Likewise.
55254         * modules/posix_spawnattr_setschedpolicy: Likewise.
55255         * modules/posix_spawnattr_setsigdefault: Likewise.
55256         * modules/posix_spawnattr_setsigmask: Likewise.
55257         * modules/posix_spawnp: Likewise.
55259 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
55261         Add option to do-release-commit-and-tag to specify branch.
55262         * build-aux/do-release-commit-and-tag: Add --branch.
55264 2011-05-03  Bruno Haible  <bruno@clisp.org>
55266         Avoid unnecessary compilation units, through conditional dependencies.
55267         * modules/accept (Depends-on): Add conditions to the dependencies.
55268         * modules/acosl (Depends-on): Likewise.
55269         * modules/argz (Depends-on): Likewise.
55270         * modules/asinl (Depends-on): Likewise.
55271         * modules/atanl (Depends-on): Likewise.
55272         * modules/atoll (Depends-on): Likewise.
55273         * modules/bind (Depends-on): Likewise.
55274         * modules/btowc (Depends-on): Likewise.
55275         * modules/canonicalize-lgpl (Depends-on): Likewise.
55276         * modules/ceil (Depends-on): Likewise.
55277         * modules/ceilf (Depends-on): Likewise.
55278         * modules/ceill (Depends-on): Likewise.
55279         * modules/chdir-long (Depends-on): Likewise.
55280         * modules/chown (Depends-on): Likewise.
55281         * modules/close (Depends-on): Likewise.
55282         * modules/connect (Depends-on): Likewise.
55283         * modules/cosl (Depends-on): Likewise.
55284         * modules/dirfd (Depends-on): Likewise.
55285         * modules/dprintf (Depends-on): Likewise.
55286         * modules/dprintf-posix (Depends-on): Likewise.
55287         * modules/error (Depends-on): Likewise.
55288         * modules/euidaccess (Depends-on): Likewise.
55289         * modules/expl (Depends-on): Likewise.
55290         * modules/faccessat (Depends-on): Likewise.
55291         * modules/fchdir (Depends-on): Likewise.
55292         * modules/fclose (Depends-on): Likewise.
55293         * modules/fcntl (Depends-on): Likewise.
55294         * modules/fdopendir (Depends-on): Likewise.
55295         * modules/fflush (Depends-on): Likewise.
55296         * modules/floor (Depends-on): Likewise.
55297         * modules/floorf (Depends-on): Likewise.
55298         * modules/floorl (Depends-on): Likewise.
55299         * modules/fnmatch (Depends-on): Likewise.
55300         * modules/fopen (Depends-on): Likewise.
55301         * modules/fprintf-posix (Depends-on): Likewise.
55302         * modules/frexp (Depends-on): Likewise.
55303         * modules/frexp-nolibm (Depends-on): Likewise.
55304         * modules/frexpl (Depends-on): Likewise.
55305         * modules/frexpl-nolibm (Depends-on): Likewise.
55306         * modules/fseek (Depends-on): Likewise.
55307         * modules/fsusage (Depends-on): Likewise.
55308         * modules/ftell (Depends-on): Likewise.
55309         * modules/ftello (Depends-on): Likewise.
55310         * modules/futimens (Depends-on): Likewise.
55311         * modules/getcwd (Depends-on): Likewise.
55312         * modules/getcwd-lgpl (Depends-on): Likewise.
55313         * modules/getdelim (Depends-on): Likewise.
55314         * modules/getdomainname (Depends-on): Likewise.
55315         * modules/getgroups (Depends-on): Likewise.
55316         * modules/gethostname (Depends-on): Likewise.
55317         * modules/getline (Depends-on): Likewise.
55318         * modules/getlogin_r (Depends-on): Likewise.
55319         * modules/getopt-posix (Depends-on): Likewise.
55320         * modules/getpeername (Depends-on): Likewise.
55321         * modules/getsockname (Depends-on): Likewise.
55322         * modules/getsockopt (Depends-on): Likewise.
55323         * modules/getsubopt (Depends-on): Likewise.
55324         * modules/getusershell (Depends-on): Likewise.
55325         * modules/glob (Depends-on): Likewise.
55326         * modules/grantpt (Depends-on): Likewise.
55327         * modules/iconv_open (Depends-on): Likewise.
55328         * modules/iconv_open-utf (Depends-on): Likewise.
55329         * modules/inet_ntop (Depends-on): Likewise.
55330         * modules/inet_pton (Depends-on): Likewise.
55331         * modules/ioctl (Depends-on): Likewise.
55332         * modules/isapipe (Depends-on): Likewise.
55333         * modules/isfinite (Depends-on): Likewise.
55334         * modules/isinf (Depends-on): Likewise.
55335         * modules/lchown (Depends-on): Likewise.
55336         * modules/ldexpl (Depends-on): Likewise.
55337         * modules/link (Depends-on): Likewise.
55338         * modules/linkat (Depends-on): Likewise.
55339         * modules/listen (Depends-on): Likewise.
55340         * modules/logl (Depends-on): Likewise.
55341         * modules/lstat (Depends-on): Likewise.
55342         * modules/mbrlen (Depends-on): Likewise.
55343         * modules/mbrtowc (Depends-on): Likewise.
55344         * modules/mbsinit (Depends-on): Likewise.
55345         * modules/mbsnrtowcs (Depends-on): Likewise.
55346         * modules/mbsrtowcs (Depends-on): Likewise.
55347         * modules/mbtowc (Depends-on): Likewise.
55348         * modules/memcmp (Depends-on): Likewise.
55349         * modules/mkdir (Depends-on): Likewise.
55350         * modules/mkdtemp (Depends-on): Likewise.
55351         * modules/mkfifo (Depends-on): Likewise.
55352         * modules/mkfifoat (Depends-on): Likewise.
55353         * modules/mknod (Depends-on): Likewise.
55354         * modules/mkostemp (Depends-on): Likewise.
55355         * modules/mkostemps (Depends-on): Likewise.
55356         * modules/mkstemp (Depends-on): Likewise.
55357         * modules/mkstemps (Depends-on): Likewise.
55358         * modules/mktime (Depends-on): Likewise.
55359         * modules/nanosleep (Depends-on): Likewise.
55360         * modules/open (Depends-on): Likewise.
55361         * modules/openat (Depends-on): Likewise.
55362         * modules/perror (Depends-on): Likewise.
55363         * modules/poll (Depends-on): Likewise.
55364         * modules/popen (Depends-on): Likewise.
55365         * modules/posix_spawn (Depends-on): Likewise.
55366         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
55367         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55368         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55369         * modules/posix_spawnp (Depends-on): Likewise.
55370         * modules/pread (Depends-on): Likewise.
55371         * modules/printf-posix (Depends-on): Likewise.
55372         * modules/ptsname (Depends-on): Likewise.
55373         * modules/putenv (Depends-on): Likewise.
55374         * modules/pwrite (Depends-on): Likewise.
55375         * modules/readline (Depends-on): Likewise.
55376         * modules/readlink (Depends-on): Likewise.
55377         * modules/readlinkat (Depends-on): Likewise.
55378         * modules/recv (Depends-on): Likewise.
55379         * modules/recvfrom (Depends-on): Likewise.
55380         * modules/regex (Depends-on): Likewise.
55381         * modules/remove (Depends-on): Likewise.
55382         * modules/rename (Depends-on): Likewise.
55383         * modules/renameat (Depends-on): Likewise.
55384         * modules/rmdir (Depends-on): Likewise.
55385         * modules/round (Depends-on): Likewise.
55386         * modules/roundf (Depends-on): Likewise.
55387         * modules/roundl (Depends-on): Likewise.
55388         * modules/rpmatch (Depends-on): Likewise.
55389         * modules/select (Depends-on): Likewise.
55390         * modules/send (Depends-on): Likewise.
55391         * modules/sendto (Depends-on): Likewise.
55392         * modules/setenv (Depends-on): Likewise.
55393         * modules/setlocale (Depends-on): Likewise.
55394         * modules/setsockopt (Depends-on): Likewise.
55395         * modules/shutdown (Depends-on): Likewise.
55396         * modules/sigaction (Depends-on): Likewise.
55397         * modules/signbit (Depends-on): Likewise.
55398         * modules/sigprocmask (Depends-on): Likewise.
55399         * modules/sinl (Depends-on): Likewise.
55400         * modules/sleep (Depends-on): Likewise.
55401         * modules/snprintf (Depends-on): Likewise.
55402         * modules/snprintf-posix (Depends-on): Likewise.
55403         * modules/socket (Depends-on): Likewise.
55404         * modules/sprintf-posix (Depends-on): Likewise.
55405         * modules/sqrtl (Depends-on): Likewise.
55406         * modules/stat (Depends-on): Likewise.
55407         * modules/strchrnul (Depends-on): Likewise.
55408         * modules/strdup-posix (Depends-on): Likewise.
55409         * modules/strerror (Depends-on): Likewise.
55410         * modules/strerror_r-posix (Depends-on): Likewise.
55411         * modules/strndup (Depends-on): Likewise.
55412         * modules/strnlen (Depends-on): Likewise.
55413         * modules/strptime (Depends-on): Likewise.
55414         * modules/strsep (Depends-on): Likewise.
55415         * modules/strsignal (Depends-on): Likewise.
55416         * modules/strstr-simple (Depends-on): Likewise.
55417         * modules/strtod (Depends-on): Likewise.
55418         * modules/strtoimax (Depends-on): Likewise.
55419         * modules/strtok_r (Depends-on): Likewise.
55420         * modules/strtoumax (Depends-on): Likewise.
55421         * modules/symlink (Depends-on): Likewise.
55422         * modules/symlinkat (Depends-on): Likewise.
55423         * modules/tanl (Depends-on): Likewise.
55424         * modules/tcgetsid (Depends-on): Likewise.
55425         * modules/tmpfile (Depends-on): Likewise.
55426         * modules/trunc (Depends-on): Likewise.
55427         * modules/truncf (Depends-on): Likewise.
55428         * modules/truncl (Depends-on): Likewise.
55429         * modules/uname (Depends-on): Likewise.
55430         * modules/unlink (Depends-on): Likewise.
55431         * modules/unlockpt (Depends-on): Likewise.
55432         * modules/unsetenv (Depends-on): Likewise.
55433         * modules/usleep (Depends-on): Likewise.
55434         * modules/utimensat (Depends-on): Likewise.
55435         * modules/vasprintf (Depends-on): Likewise.
55436         * modules/vdprintf (Depends-on): Likewise.
55437         * modules/vdprintf-posix (Depends-on): Likewise.
55438         * modules/vfprintf-posix (Depends-on): Likewise.
55439         * modules/vprintf-posix (Depends-on): Likewise.
55440         * modules/vsnprintf (Depends-on): Likewise.
55441         * modules/vsnprintf-posix (Depends-on): Likewise.
55442         * modules/vsprintf-posix (Depends-on): Likewise.
55443         * modules/wcrtomb (Depends-on): Likewise.
55444         * modules/wcscasecmp (Depends-on): Likewise.
55445         * modules/wcscspn (Depends-on): Likewise.
55446         * modules/wcsdup (Depends-on): Likewise.
55447         * modules/wcsncasecmp (Depends-on): Likewise.
55448         * modules/wcsnrtombs (Depends-on): Likewise.
55449         * modules/wcspbrk (Depends-on): Likewise.
55450         * modules/wcsrtombs (Depends-on): Likewise.
55451         * modules/wcsspn (Depends-on): Likewise.
55452         * modules/wcsstr (Depends-on): Likewise.
55453         * modules/wcstok (Depends-on): Likewise.
55454         * modules/wcswidth (Depends-on): Likewise.
55455         * modules/wctob (Depends-on): Likewise.
55456         * modules/wctomb (Depends-on): Likewise.
55457         * modules/wctype (Depends-on): Likewise.
55458         * modules/wcwidth (Depends-on): Likewise.
55459         * modules/write (Depends-on): Likewise.
55461 2011-05-03  Bruno Haible  <bruno@clisp.org>
55463         Support for conditional dependencies.
55464         * doc/gnulib.texi (Module description): Document the syntax of
55465         conditional dependencies.
55466         * gnulib-tool: New option --conditional-dependencies.
55467         (func_usage): Document it.
55468         (cond_dependencies): New variable.
55469         (func_get_automake_snippet_conditional,
55470         func_get_automake_snippet_unconditional): New functions, extracted from
55471         func_get_automake_snippet.
55472         (func_get_automake_snippet): Use them.
55473         (sed_first_32_chars): New variable.
55474         (func_module_shellfunc_name): New function.
55475         (func_module_shellvar_name): New function.
55476         (func_module_conditional_name): New function.
55477         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
55478         func_cond_module_condition): New functions.
55479         (func_modules_transitive_closure): Add support for conditional
55480         dependencies.
55481         (func_emit_lib_Makefile_am): For a conditional module, enclose the
55482         conditional automake snippet in an automake conditional.
55483         (func_emit_autoconf_snippets): Emit shell functions that contain the
55484         code for conditional modules.
55485         (func_import, func_create_testdir): Update specification.
55487 2011-05-03  Eric Blake  <eblake@redhat.com>
55489         test-getaddrinfo: report error information
55490         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
55492 2011-05-03  Jim Meyering  <meyering@redhat.com>
55494         bootstrap: avoid build failure when $GZIP is set
55495         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
55496         program name.  If defined at all, it is supposed to list gzip options.
55497         Reported by Alan Curry in http://debbugs.gnu.org/8609
55499 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
55501         readme-release: new module with release instructions
55502         * modules/readme-release: New module.
55503         * top/README-release: New file, from coreutils, grep, diffutils.
55504         * MODULES.html.sh (Support for maintaining and releasing): Add it.
55506 2011-05-02  Eric Blake  <eblake@redhat.com>
55508         fflush: also replace fclose when fixing fflush
55509         * modules/fflush (Depends-on): Add fclose.
55510         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
55511         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
55512         memstreams with no backing fd.
55513         * doc/posix-functions/fclose.texi (fclose): Document the use of
55514         fflush module to fix the bug.
55515         * tests/test-fclose.c (main): Relax test when fclose is used in
55516         isolation.
55518         fclose: add some tests
55519         * modules/fclose-tests: New test module.
55520         * tests/test-fclose.c: New file.
55521         * doc/posix-functions/fclose.texi (fclose): Document the bug.
55523         fclose: reduced dependencies
55524         * modules/fclose (Depends-on): Switch from fflush/fseeko to
55525         simpler lseek.
55526         * lib/fclose.c (rpl_fclose): Likewise.
55527         Reported by Simon Josefsson.
55529         exit: drop remaining clients
55530         * modules/argmatch (Depends-on): Replace exit with stdlib.
55531         * modules/copy-file (Depends-on): Likewise.
55532         * modules/execute (Depends-on): Likewise.
55533         * modules/exitfail (Depends-on): Likewise.
55534         * modules/obstack (Depends-on): Likewise.
55535         * modules/pagealign_alloc (Depends-on): Likewise.
55536         * modules/pipe-filter-gi (Depends-on): Likewise.
55537         * modules/pipe-filter-ii (Depends-on): Likewise.
55538         * modules/savewd (Depends-on): Likewise.
55539         * modules/spawn-pipe (Depends-on): Likewise.
55540         * modules/wait-process (Depends-on): Likewise.
55541         * modules/xsetenv (Depends-on): Likewise.
55542         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
55543         * modules/git-merge-changelog (Depends-on): Likewise.
55544         * modules/long-options (Depends-on): Likewise.
55545         * modules/pt_chown (Depends-on): Likewise.
55546         * modules/sysexits (Depends-on): Likewise.
55548         freading: relax license from LGPLv3+ to LGPLv2+
55549         * modules/freading (License): Relax LGPL version.
55551 2011-05-02  Bruno Haible  <bruno@clisp.org>
55553         fchdir: Remove unused dependencies.
55554         * modules/fchdir (Depends-on): Remove include_next.
55556 2011-05-02  Bruno Haible  <bruno@clisp.org>
55558         gnulib-tool: Refactor.
55559         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
55560         from func_emit_autoconf_snippets.
55561         (func_emit_autoconf_snippets): Use it.
55563 2011-05-02  Simon Josefsson  <simon@josefsson.org>
55565         * NEWS: Document removal of 'exit'.
55566         * modules/exit: Remove file.
55568 2011-05-01  Bruno Haible  <bruno@clisp.org>
55570         Update DEPENDENCIES.
55571         * DEPENDENCIES (gettext): Recommend the newest release.
55572         Reported by Simon Josefsson.
55574 2011-05-01  Bruno Haible  <bruno@clisp.org>
55576         gnulib-tool: Reduce code duplication.
55577         * gnulib-tool (func_emit_autoconf_snippets): New function.
55578         (func_import, func_create_testdir): Use it.
55580 2011-04-30  Eric Blake  <eblake@redhat.com>
55582         fclose: don't fail on non-seekable input stream
55583         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
55584         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
55585         since fflush is allowed to fail in that case.
55587 2011-04-30  Bruno Haible  <bruno@clisp.org>
55589         dup3: cleanup
55590         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
55592 2011-04-30  Bruno Haible  <bruno@clisp.org>
55594         netdb: Make it work in C++ mode.
55595         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
55596         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
55597         module.
55598         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
55599         gl_MODULE_INDICATOR_FOR_TESTS.
55600         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
55601         * modules/netdb-c++-tests: New file.
55602         * tests/test-netdb-c++.cc: New file.
55604 2011-04-30  Bruno Haible  <bruno@clisp.org>
55606         New modules 'vfscanf', 'vscanf'.
55607         * modules/vfscanf: New file.
55608         * modules/vscanf: New file.
55609         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
55610         here.
55611         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
55612         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
55614 2011-04-30  Bruno Haible  <bruno@clisp.org>
55616         passfd: Add comments.
55617         * lib/passfd.c: Add comments about platforms.
55619 2011-04-30  Bruno Haible  <bruno@clisp.org>
55621         sys_uio: Make <sys/uio.h> self-contained.
55622         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
55623         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
55625 2011-04-30  Bruno Haible  <bruno@clisp.org>
55627         sys_socket: Ensure 'struct iovec' definition.
55628         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
55629         <sys/socket.h>.
55630         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
55632 2011-04-30  Bruno Haible  <bruno@clisp.org>
55634         sys_uio: Protect definition of 'struct iovec'.
55635         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
55636         it as a C struct.
55638 2011-04-30  Bruno Haible  <bruno@clisp.org>
55640         manywarnings: fix indentation
55641         * m4/manywarnings.m4: Indent by 2 spaces consistently.
55643 2011-04-30  Pádraig Brady  <P@draigBrady.com>
55645         manywarnings: add -Wno-missing-field-initializers if needed.
55646         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
55647         option if it's needed to allow initialization with { 0, }
55649 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
55651         announce-gen: cosmetic improvement
55652         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
55654 2011-04-29  Jim Meyering  <meyering@redhat.com>
55656         vc-list-files: indent with spaces, not TABs
55657         * build-aux/vc-list-files: Convert leading TABs to spaces,
55658         to match the style of most other files in gnulib.
55660         announce-gen: indent with spaces, not TABs
55661         * build-aux/announce-gen: Convert all TABs to spaces, to match
55662         the style of most other files in gnulib.
55664 2011-04-29  Eric Blake  <eblake@redhat.com>
55666         quotearg: avoid uninitialized variable use
55667         * lib/quotearg.c (quoting_options_from_style): Initialize
55668         remaining fields, and ensure that custom styles are only used via
55669         quoting_options rather than quoting_style.
55671 2011-04-29  Jim Meyering  <meyering@redhat.com>
55673         maint.mk: remove unused VC-tag variable
55674         * top/maint.mk (VC-tag): Remove unused variable.
55676 2011-04-29  Bruno Haible  <bruno@clisp.org>
55678         netdb: fix gai_strerror replacements
55679         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
55680         * modules/netdb: Substitute it.
55682 2011-04-29  Jim Meyering  <meyering@redhat.com>
55684         test-getcwd.c: avoid new set-but-not-used warning
55685         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
55686         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
55687         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
55688         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
55690         test-hash.c: avoid a new shadowing warning
55691         * tests/test-hash.c (main): Don't shadow "dup".
55693 2011-04-28  Eric Blake  <eblake@redhat.com>
55695         getaddrinfo: fix gai_strerror signature
55696         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
55697         and work around mingw with UNICODE defined.
55698         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
55699         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
55700         * modules/netdb (Makefile.am): Substitute it.
55701         * lib/netdb.in.h (gai_strerror): Declare replacement.
55702         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
55703         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
55704         the fix.
55706         getsockopt: avoid compiler warning
55707         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
55708         Reported by Matthias Bolte.
55710         tests: drop unused link dependency
55711         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
55712         * modules/dirent-safer-tests (Makefile.am): Likewise.
55713         * modules/fdopendir-tests (Makefile.am): Likewise.
55714         * modules/mkfifoat-tests (Makefile.am): Likewise.
55715         * modules/openat-safer-tests (Makefile.am): Likewise.
55716         * modules/openat-tests (Makefile.am): Likewise.
55717         * modules/readlinkat-tests (Makefile.am): Likewise.
55718         * modules/symlinkat-tests (Makefile.am): Likewise.
55719         * modules/linkat-tests (Makefile.am): Likewise.
55720         (Depends-on): Switch to filenamecat-lgpl.
55721         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
55722         LIBINTL.
55723         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
55724         * tests/test-linkat.c (main): Don't require xalloc.
55726         hash, mgetgroups: drop xalloc dependency
55727         * lib/hash.c (includes): Adjust includes.
55728         * lib/mgetgroups.c (includes): Likewise.
55729         (xgetgroups): Move...
55730         * lib/xgetgroups.c: ...to new file.
55731         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
55732         * modules/xgetgroups: New file, split from...
55733         * modules/mgetgroups: ...here.
55734         (Depends-on): Add xalloc-oversized.
55735         * modules/hash (Depends-on): Likewise.
55736         * modules/hash-tests (Depends-on): Drop xalloc.
55737         (test_hash_LDADD): Drop unused library.
55738         * tests/test-hash.c (main): Break xalloc dependency.
55739         (includes): Drop unused include.
55741         xalloc-oversized: new module
55742         * modules/xalloc-oversized: New module.
55743         * modules/xalloc (Depends-on): Add it.
55744         * lib/xalloc.h (xalloc_oversized): Move...
55745         * lib/xalloc-oversized.h: ...into new file.
55747         utimecmp: drop dependency on xmalloc
55748         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
55749         due to memory pressure.
55750         * modules/utimecmp (Depends-on): Drop xalloc.
55752 2011-04-27  Eric Blake  <eblake@redhat.com>
55754         getcwd: fix mingw bugs
55755         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
55756         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
55757         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
55759 2011-04-27  Bruno Haible  <bruno@clisp.org>
55761         mkstemps: Ensure declaration on MacOS X 10.5.
55762         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
55763         * doc/glibc-functions/mkstemps.texi: Document header file problem on
55764         MacOS X.
55766 2011-04-27  Bruno Haible  <bruno@clisp.org>
55768         mkstemp: More documentation.
55769         * doc/posix-functions/mkstemp.texi: Document header file problem on
55770         MacOS X.
55772 2011-04-27  Bruno Haible  <bruno@clisp.org>
55774         mkstemp: Tweak configure message when cross-compiling.
55775         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
55776         result as a guess.
55778 2011-04-27  Bruno Haible  <bruno@clisp.org>
55780         clean-temp: Clarify what it does.
55781         * lib/clean-temp.h: Add more comments.
55782         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
55783         module.
55784         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
55785         * doc/glibc-functions/mkstemps.texi: Likewise.
55786         * doc/glibc-functions/mkostemps.texi: Likewise.
55788 2011-04-27  Eric Blake  <eblake@redhat.com>
55790         fchdir: avoid extra chdir and fix test
55791         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
55792         getcwd-lgpl.
55793         * lib/fchdir.c (get_name): Any absolute name will do; it does not
55794         have to be canonical.
55795         (canonicalize_file_name): Drop unused macro.
55796         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
55798         filenamecat-lgpl: fix licence
55799         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
55800         when it was first created.
55802         linkat, renameat: add missing dependency
55803         * modules/linkat (Depends-on): Require getcwd-lgpl.
55804         * modules/renameat (Depends-on): Likewise.
55806         tests: reduce dependencies
55807         * tests/test-linkat.c (main): Use lighter-weight getcwd.
55808         * tests/test-renameat.c (main): Likewise.
55809         * modules/linkat-tests (Depends-on): Relax dependency.
55810         * modules/renameat-tests (Depends-on): Likewise.
55811         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
55812         dependency explicit.
55814         save-cwd: reduce default dependency
55815         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
55816         * lib/save-cwd.c: Update comments.
55817         * NEWS: Document the semantic change.
55819         getcwd: enhance tests
55820         * tests/test-getcwd-lgpl.c: New file, taken from...
55821         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
55822         repeat long path stress tests from m4 probe.
55823         * modules/getcwd-lgpl-tests: New module.
55824         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
55825         * m4/getcwd-abort-bug.m4: Update comment.
55826         * m4/getcwd-path-max.m4: Likewise.
55828         getcwd-lgpl: new module
55829         * modules/getcwd-lgpl: New module.
55830         * lib/getcwd-lgpl.c: New file.
55831         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55832         * MODULES.html.sh (lacking POSIX:2008): Likewise.
55833         * modules/getcwd (configure.ac): Set C witness.
55834         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
55836         getcwd: tweak comments
55837         * m4/getcwd-abort-bug.m4: Fix comments.
55838         * m4/getcwd-path-max.m4: Likewise.
55839         * m4/getcwd.m4: Likewise.
55841 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
55842         and Eric Blake  <eblake@redhat.com>
55844         mkstemp: replace if system version uses wrong permissions
55845         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
55846         read/write mode bits set in file created by mkstemp.
55847         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
55849 2011-04-27  Eric Blake  <eblake@redhat.com>
55851         passfd: avoid compiler warning
55852         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
55853         Reported by Laine Stump.
55855 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
55857         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
55858         required by the NetBSD (and perhaps other 4.4BSD derived) join.
55860 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
55861         and Eric Blake  <eblake@redhat.com>
55863         mkstemp: mention clean-temp module
55864         * lib/mkstemp.c: Add comment.
55865         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
55867 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
55869         inttypes: also provide default values for 32-bit tests
55870         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
55871         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
55873 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
55875         strtoumax: remove dependency on strtoimax
55876         This is like the strtoull change of yesterday.
55877         * modules/strtoumax (Files): Add lib/strtoimax.c.
55878         (Depends-on): Remove strtoimax and add verify.
55880         inttypes-incomplete: new module
55881         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
55882         all but the PRI* and SCN* parts of gl_INTTYPES_H.
55883         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
55884         of gl_INTTYPES_H.
55885         (gl_INTTYPES_H): Rewrite in terms of these new macros.
55886         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
55887         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
55888         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
55889         * modules/strtoumax, modules/xstrtol (Depends-on):
55890         Depend on inttypes-incomplete, not inttypes.
55891         * modules/inttypes-incomplete: New module, containing the contents
55892         of the old modules/inttypes module, except that the Files: section
55893         omits m4/inttypes-pri.m4, and the configure.ac section invokes
55894         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
55895         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
55896         (Depends-on): Depend only on inttypes-incomplete.
55897         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
55899         inttypes: omit now-redundant strtoimax and strtoumax work
55900         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
55901         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
55903         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
55904         This supports apps that need pointers to strtoimax and strtoumax,
55905         and ports to HP-UX 11.00 64.bit, which has macros that expand to
55906         nonexistent functions.  See
55907         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
55908         et seq.
55909         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
55910         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
55911         a macro.
55912         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55914 2011-04-25  Simon Josefsson  <simon@josefsson.org>
55916         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
55918 2011-04-25  Bruno Haible  <bruno@clisp.org>
55920         strtol, strtoul: Mark modules as obsolete.
55921         * modules/strtol (Status, Notice): New sections.
55922         * modules/strtoul (Status, Notice): New sections.
55924 2011-04-25  Bruno Haible  <bruno@clisp.org>
55926         strtod: Remove check for strtod, unless supporting old platforms.
55927         * modules/strtod-obsolete: New file.
55928         * m4/strtod-obsolete.m4: New file.
55929         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
55930         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
55931         * modules/strtod (Depends-on): Add strtod-obsolete.
55932         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
55934 2011-04-25  Bruno Haible  <bruno@clisp.org>
55936         strcase: Make module obsolete.
55937         * modules/strcase (Status, Notice): New sections.
55939 2011-04-25  Bruno Haible  <bruno@clisp.org>
55941         dup2: Remove check for dup2, unless supporting old obsolete platforms.
55942         * modules/dup2-obsolete: New file.
55943         * m4/dup2-obsolete.m4: New file.
55944         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
55945         gl_FUNC_DUP2_OBSOLETE is not also defined.
55946         * modules/dup2 (Depends-on): Add dup2-obsolete.
55947         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
55949 2011-04-25  Bruno Haible  <bruno@clisp.org>
55951         strnlen: Avoid memchr related link error on old obsolete platforms.
55952         * modules/memchr-obsolete: New file.
55953         * m4/memchr-obsolete.m4: New file.
55954         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
55955         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
55956         * modules/memchr (Depends-on): Add memchr-obsolete.
55957         * modules/strnlen (Depends-on): Likewise.
55958         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
55960 2011-04-25  Jim Meyering  <meyering@redhat.com>
55962         maint.mk: makefile_at_at_check extend and clean up
55963         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
55964         in addition to */Makefile.am.
55965         Exempt legitimate uses of @VAR@ notation, e.g.,
55966         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
55967         Remove obsolete coreutils-specific comment.
55968         Prompted by discussion here:
55969         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
55971 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
55973         strtoul: remove dependency on strtol
55974         This is so that 'configure' need not check for strtol merely because
55975         the application needs strtoul.
55976         * modules/strtoul (Files): Add lib/strtol.c.
55977         (Depends-on): Remove strtol.
55979         strtoull: remove dependency on strtoul
55980         This is like the strtoll change.
55981         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
55982         (Depends-on): Remove strtoul.
55984         strtoll: remove dependency on strtol
55985         This is so that 'configure' need not check for strtol merely because
55986         the application needs strtoll.
55987         * modules/strtoll (Files): Add lib/strtol.c.
55988         (Depends-on): Remove strtol.
55990 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55992         inttypes: Move some configure check to module 'imaxdiv'.
55993         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
55994         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
55995         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
55997 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55999         inttypes: Move some configure check to module 'imaxabs'.
56000         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
56001         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
56002         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
56004 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56006         inttypes: Remove configure tests that are not needed since 2009-12-31.
56007         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
56008         gl_cv_header_working_inttypes_h.
56010 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56012         * modules/strnlen (Depends-on): Remove memchr.
56013         The strnlen implementation doesn't need the memchr module's fixes; see
56014         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
56016         strtol: remove dependency on wchar
56017         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
56018         * modules/strtol (Depends-on): Remove wchar.
56020 2011-04-21  Eric Blake  <eblake@redhat.com>
56022         passfd: fix test regression on Linux
56023         * modules/passfd-tests (configure.ac): Correct socketpair check.
56025         passfd: speed up configure and drop unused code
56026         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
56027         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
56028         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
56029         Instead of probing at configure for unix_scm_rights_bsd44_way,
56030         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
56031         check to a struct member probe.
56032         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
56033         (sendfd, recvfd): Update preprocessor checks.
56034         * modules/passfd (Files): Reflect rename, and drop unused file.
56035         (Depends-on): Drop unused dependency.
56037         passfd: allow compilation on mingw
56038         * modules/sys_socket (Depends-on): Add sys_uio.
56039         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
56040         iovec and a minimal struct msghdr.
56041         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
56042         * tests/test-sys_socket.c (main): Enhance test.
56043         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
56044         guaranteed to provide what we need.
56045         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
56046         * modules/passfd-tests (Depends-on): Add sys_wait.
56047         * tests/test-passfd.c (main): Skip test on mingw, for now.
56048         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
56049         partial 'struct msghdr' implementation.
56051         sys_uio: new module
56052         * modules/sys_uio: New module.
56053         * modules/sys_uio-tests: Likewise.
56054         * lib/sys_uio.in.h: New file.
56055         * m4/sys_uio_h.m4: Likewise.
56056         * tests/test-sys_uio.c: Likewise.
56057         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
56058         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
56060 2011-04-20  Jim Meyering  <meyering@redhat.com>
56062         useless-if-before-free: avoid false-positive
56063         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
56064         disjunct so that it too requires a terminating ";".  Without that,
56065         this script would identify as useless one statement from gcc that
56066         was not:
56067           if (aligned_ptr)
56068             free (((void **) aligned_ptr) [-1]);
56070 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
56072         doc: update users.txt.
56073         * users.txt: Add barcode.
56075 2011-04-19  Bruno Haible  <bruno@clisp.org>
56077         ioctl: Remove link dependency on native Windows.
56078         * lib/fd-hook.h: Renamed from lib/close-hook.h.
56079         (gl_close_fn, gl_ioctl_fn): New types.
56080         (struct fd_hook): Renamed from struct close_hook. Change type of
56081         private_close_fn field. Add private_ioctl_fn field.
56082         (close_hook_fn): Add parameter for primary close method.
56083         (execute_close_hooks, execute_all_close_hooks): Likewise.
56084         (ioctl_hook_fn): New type.
56085         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
56086         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
56087         argument.
56088         (unregister_fd_hook): Renamed from unregister_close_hook.
56089         * lib/fd-hook.c: Renamed from lib/close-hook.c.
56090         Don't include <unistd.h>.
56091         (close): Remove undef.
56092         (anchor): Update.
56093         (execute_close_hooks): Add argument for primary close method.
56094         (execute_all_close_hooks): Likewise.
56095         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
56096         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
56097         argument. Allow each argument to be NULL.
56098         (unregister_fd_hook): Renamed from unregister_close_hook.
56099         * lib/close.c (rpl_close): Pass 'close' function pointer to
56100         execute_all_close_hooks.
56101         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
56102         (primary_ioctl): New function.
56103         (ioctl): Don't call ioctlsocket here. Instead, call
56104         execute_all_ioctl_hooks.
56105         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
56106         close method.
56107         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
56108         (fd_sockets_hook): Renamed from close_sockets_hook.
56109         (gl_sockets_startup, gl_sockets_cleanup): Update.
56110         * modules/fd-hook: Renamed from modules/close-hook. Update.
56111         * modules/close (Depends-on): Add fd-hook, remove close-hook.
56112         * modules/sockets (Depends-on): Likewise.
56113         * modules/ioctl (Depends-on): Add fd-hook.
56114         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
56115         GNULIB_SOCKET.
56117 2011-04-19  Bruno Haible  <bruno@clisp.org>
56119         Move the support of O_NONBLOCK in open() to the 'open' module.
56120         * modules/nonblocking (Depends-on): Remove 'open'.
56121         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
56122         gl_cv_have_open_O_NONBLOCK.
56123         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
56124         O_NONBLOCK support.
56125         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
56127 2011-04-17  Bruno Haible  <bruno@clisp.org>
56129         pipe2: Simplify code.
56130         * lib/pipe2.c (pipe2): Reduce code duplication.
56132 2011-04-17  Bruno Haible  <bruno@clisp.org>
56134         nonblocking: Add comment.
56135         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
56137 2011-04-17  Bruno Haible  <bruno@clisp.org>
56139         nonblocking: Add tests for sockets.
56140         * tests/test-nonblocking-socket.sh: New file.
56141         * tests/test-nonblocking-socket-main.c: New file.
56142         * tests/test-nonblocking-socket-child.c: New file.
56143         * tests/test-nonblocking-socket.h: New file.
56144         * tests/socket-server.h: New file.
56145         * tests/socket-client.h: New file.
56146         * modules/nonblocking-socket-tests: New file.
56147         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
56149 2011-04-17  Bruno Haible  <bruno@clisp.org>
56151         nonblocking: Add tests for pipes.
56152         * tests/test-nonblocking-pipe.sh: New file.
56153         * tests/test-nonblocking-pipe-main.c: New file.
56154         * tests/test-nonblocking-pipe-child.c: New file.
56155         * tests/test-nonblocking-pipe.h: New file.
56156         * tests/test-nonblocking-writer.h: New file.
56157         * tests/test-nonblocking-reader.h: New file.
56158         * tests/test-nonblocking-misc.h: New file.
56159         * modules/nonblocking-pipe-tests: New file.
56160         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
56162 2011-04-16  Bruno Haible  <bruno@clisp.org>
56164         gettext: Clarify the needed programmer actions.
56165         * modules/gettext (Notice): New field.
56166         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
56168 2011-04-16  Bruno Haible  <bruno@clisp.org>
56170         strchrnul: Tweak last commit.
56171         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
56172         bug.
56173         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
56174         as in _GL_FUNCDECL_SYS.
56175         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
56176         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
56178 2011-04-15  Eric Blake  <eblake@redhat.com>
56180         strchrnul: work around cygwin bug
56181         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
56182         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
56183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
56184         * modules/string (Makefile.am): Substitute it.
56185         * lib/string.in.h (strchrnul): Use it.
56187 2011-04-15  Bruno Haible  <bruno@clisp.org>
56189         Don't require lib/stdio-write.c when only module 'stdio' is used.
56190         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
56191         invocation.
56192         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
56194 2011-04-14  Bruno Haible  <bruno@clisp.org>
56196         Support non-blocking pipe I/O in read() on native Windows.
56197         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
56198         (read): New declaration.
56199         * lib/read.c: New file.
56200         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
56201         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
56202         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
56203         vscanf): New declarations.
56204         * lib/stdio-read.c: New file.
56205         * m4/read.m4: New file.
56206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
56207         REPLACE_READ.
56208         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
56209         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56210         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
56211         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
56212         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
56213         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56214         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56215         * modules/read: New file.
56216         * modules/nonblocking (Files): Add lib/stdio-read.c.
56217         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
56218         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
56219         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56220         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56221         * modules/pread (Depends-on): Add read.
56222         * modules/safe-read (Depends-on): Likewise.
56223         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
56224         gets, scanf, vfscanf, vscanf): Verify signatures.
56225         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
56226         problem with non-blocking pipes.
56227         * doc/posix-functions/fgetc.texi: Likewise.
56228         * doc/posix-functions/fgets.texi: Likewise.
56229         * doc/posix-functions/fread.texi: Likewise.
56230         * doc/posix-functions/fscanf.texi: Likewise.
56231         * doc/posix-functions/getc.texi: Likewise.
56232         * doc/posix-functions/getchar.texi: Likewise.
56233         * doc/posix-functions/gets.texi: Likewise.
56234         * doc/posix-functions/scanf.texi: Likewise.
56235         * doc/posix-functions/vfscanf.texi: Likewise.
56236         * doc/posix-functions/vscanf.texi: Likewise.
56238 2011-04-14  Bruno Haible  <bruno@clisp.org>
56240         Support non-blocking pipe I/O in write() on native Windows.
56241         * lib/write.c (rpl_write): Split a write request that failed merely
56242         because the byte count was larger than the pipe buffer's size.
56243         * doc/posix-functions/write.texi: Mention the problem with large byte
56244         counts.
56246 2011-04-14  Bruno Haible  <bruno@clisp.org>
56248         wchar: Ensure that wchar_t gets defined on uClibc.
56249         * lib/wchar.in.h: On uClibc, include <stddef.h>.
56250         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
56252 2011-04-13  Bruno Haible  <bruno@clisp.org>
56254         safe-write, full-read: Avoid unnecessary compilation units.
56255         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
56256         (Depends-on): Remove safe-read. Add ssize_t.
56257         * modules/full-read (Files): Add lib/full-write.c.
56258         (Depends-on): Add full-write.
56260 2011-04-13  Bruno Haible  <bruno@clisp.org>
56262         Support non-blocking pipe I/O and SIGPIPE in pwrite().
56263         * modules/pwrite (Depends-on): Add 'write'.
56265 2011-04-13  Bruno Haible  <bruno@clisp.org>
56267         Support non-blocking pipe I/O in write() on native Windows.
56268         * lib/unistd.in.h (write): Enable replacement also if
56269         GNULIB_UNISTD_H_NONBLOCKING is 1.
56270         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
56271         (rpl_write): When failing to write on a non-blocking pipe, change
56272         errno from ENOSPC to EAGAIN.
56273         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
56274         putchar, puts, vfprintf, vprintf): Enable replacement also if
56275         GNULIB_STDIO_H_NONBLOCKING is 1.
56276         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
56277         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
56278         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
56279         CALL_WITH_SIGPIPE_EMULATION.
56280         (CALL_WITH_SIGPIPE_EMULATION): Use them.
56281         * m4/nonblocking.m4: New file.
56282         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
56283         for non-blocking I/O support.
56284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56285         GNULIB_UNISTD_H_NONBLOCKING.
56286         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
56287         required for non-blocking I/O support.
56288         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
56289         * modules/nonblocking (Files): Add m4/nonblocking.m4,
56290         lib/stdio-write.c, m4/asm-underscore.m4.
56291         (Depends-on): Add stdio, unistd.
56292         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
56293         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
56294         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
56295         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
56296         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
56297         problem with non-blocking pipes.
56298         * doc/posix-functions/fputc.texi: Likewise.
56299         * doc/posix-functions/fputs.texi: Likewise.
56300         * doc/posix-functions/fwrite.texi: Likewise.
56301         * doc/posix-functions/printf.texi: Likewise.
56302         * doc/posix-functions/putc.texi: Likewise.
56303         * doc/posix-functions/putchar.texi: Likewise.
56304         * doc/posix-functions/puts.texi: Likewise.
56305         * doc/posix-functions/vfprintf.texi: Likewise.
56306         * doc/posix-functions/vprintf.texi: Likewise.
56307         * doc/posix-functions/write.texi: Likewise.
56309 2011-04-10  Jim Meyering  <meyering@redhat.com>
56311         maint.mk: prohibit doubled words
56312         Detect them also when they're separated by a newline.
56313         There are 3 ways to customize it:
56314           - disable the test on a per file basis, as usual with rules using
56315             $(VC_LIST_EXCEPT)
56316           - replace the default doubled-word-selecting regexp (affects all files)
56317           - ignore a particular file-vs-doubled-word match
56318         I nearly used that last one to ignore the "is is" match in
56319         coreutils' NEWS file, since the text was "ls -is is ..."
56320         To do that, I would have added this line to cfg.mk:
56321           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
56322         but it would have ignored any "is is" match in NEWS.
56323         Low probability, but still...
56324         Instead, I changed the text, slightly:
56325           -  ls -is is now consistent with ls -lis in ignoring values returned
56326           +  "ls -is" is now consistent with ls -lis in ignoring values returned
56327         * top/maint.mk (prohibit_double_word_RE_): Provide default.
56328         (prohibit_doubled_word_): Define.
56329         (sc_prohibit_doubled_word): New rule.
56330         (sc_prohibit_the_the): Remove.  Subsumed by the above.
56332 2011-04-10  Jim Meyering  <meyering@redhat.com>
56334         maint: fix doubled-word typo in comment
56335         * m4/gethostname.m4: s/is is/it is/
56336         * m4/getdomainname.m4: Likewise.
56338 2011-04-10  Jim Meyering  <meyering@redhat.com>
56340         maint: remove doubled word: s/it it/it/
56341         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
56343 2011-04-10  Jim Meyering  <meyering@redhat.com>
56345         maint.mk: remove useless semicolon and backslash
56346         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
56347         semicolon and backslash.
56349 2011-04-10  Bruno Haible  <bruno@clisp.org>
56351         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
56352         * modules/stdint-tests (Depends-on): Add wchar.
56354 2011-04-10  Jim Meyering  <meyering@redhat.com>
56356         maint: remove doubled words in comments, e.g., s/a a/a/
56357         * lib/strptime.c (day_of_the_week): s/the the/the/
56358         * tests/test-chown.h (test_chown): s/a a/a/
56360         test-chown.h: correct a cast
56361         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
56362         when the destination is a stat.st_gid.
56364 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
56366         getaddrinfo: Fix test for sa_len member.
56367         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
56368         include <sys/types.h> before <sys/socket.h>.
56370 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56372         maint: change "can not" to "cannot"
56373         * doc/posix-functions/iconv.texi (iconv): This one crossed line
56374         boundaries.
56376 2011-04-09  Jim Meyering  <meyering@redhat.com>
56378         maint: change "a a" to "a"
56379         * tests/test-lchown.h (test_lchown): s/a a/a/
56381         maint.mk: prohibit \<the the\>
56382         * top/maint.mk (sc_prohibit_the_the): New rule.
56384         maint: fix "the the" in comment
56385         * lib/count-one-bits.h: s/the the/the/
56387         maint: change "can not" to "cannot"
56388         But do not change the occurrences in maintain.texi or in
56389         build-aux/po/Makefile.in.in, which I presume comes from gettext.
56390         * doc/gnulib-tool.texi: s/can not/cannot/
56391         * doc/posix-functions/accept.texi (accept): Likewise.
56392         * doc/posix-functions/socket.texi (socket): Likewise.
56393         * lib/mbrtowc.c: Likewise.
56395         maint.mk: prohibit use of "can not"
56396         * top/maint.mk (sc_prohibit_can_not): New rule.
56397         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
56399 2011-04-09  Bruno Haible  <bruno@clisp.org>
56401         careadlinkat: Guard against misuse of careadlinkatcwd.
56402         * lib/careadlinkat.c: Include <stdlib.h>.
56403         (careadlinkatcwd): Check that the fd argument is as expected.
56405 2011-04-09  Bruno Haible  <bruno@clisp.org>
56407         careadlinkat: Use common coding style.
56408         * lib/careadlinkat.c: Move gnulib includes after system includes.
56410 2011-04-09  Bruno Haible  <bruno@clisp.org>
56412         careadlinkat: Clarify specification.
56413         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
56414         (careadlinkatcwd): Add comment.
56415         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
56417 2011-04-09  Bruno Haible  <bruno@clisp.org>
56419         areadlinkat: Avoid link error on many platforms.
56420         * modules/areadlinkat (Depends-on): Add areadlink.
56422 2011-04-09  Bruno Haible  <bruno@clisp.org>
56424         allocator, careadlinkat: Fix double-inclusion guard.
56425         * lib/allocator.h: Fix double-inclusion guard.
56426         * lib/careadlinkat.h: Likewise.
56428 2011-04-09  Bruno Haible  <bruno@clisp.org>
56430         relocatable-prog-wrapper: Update after module 'areadlink' changed.
56431         * lib/relocwrapper.c: Update dependencies hierarchy.
56432         * build-aux/install-reloc: Update list of files to be compiled.
56433         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
56434         lib/allocator.[hc].
56436 2011-04-08  Eric Blake  <eblake@redhat.com>
56438         strftime: silence gnulib-tool warning
56439         * modules/strftime-tests (Depends-on): Drop automatic dependency.
56441 2011-04-08  Bruno Haible  <bruno@clisp.org>
56443         verify: Fix syntax error with GCC 4.6 in C++ mode.
56444         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
56445         (HAVE_STATIC_ASSERT): New macro.
56446         (verify_true, verify): Use 'static_assert' if it is supported and
56447         '_Static_assert' is not supported.
56449 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
56451         allocator: New module.
56452         * modules/allocator, lib/allocator.c: New files.
56453         * lib/allocator.h (stdlib_allocator): New decl.
56454         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
56455         Remove.  Do not include <stdlib.h>.
56456         (careadlinkat): Use stdlib_allocator instead of rolling our own.
56457         * modules/careadlinkat (Files): Remove lib/allocator.h.
56458         (Depends-on): Add allocator.
56460         stdlib: let modules use system malloc, realloc
56461         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
56462         if !_GL_USE_STDLIB_ALLOC.
56463         (malloc, realloc): Limit this change to a smaller scope.
56465         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
56466         (malloc, realloc): Don't #undef; no longer needed.
56467         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56468         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56469         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56470         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56471         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56472         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56473         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56474         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56476         careadlinkat: rename members to avoid problem
56477         * lib/allocator.h (struct allocator): Rename members from
56478         malloc/realloc to allocate/reallocate, to avoid problems if malloc
56479         and realloc are #define'd.  Reported by Eric Blake in
56480         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
56481         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
56483 2011-04-08  Eric Blake  <eblake@redhat.com>
56485         nonblocking: reduce dependency
56486         * tests/test-nonblocking.c: Only test sockets when in use.
56487         * modules/nonblocking-tests (Depends-on): Drop socket.
56488         (Makefile.am): Link even if sockets are not present.
56489         * modules/pipe2-tests (Makefile.am): Likewise.
56490         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
56492         pipe2: fix O_NONBLOCK support on mingw
56493         * modules/pipe2 (Depends-on): Add nonblocking.
56494         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
56495         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
56496         * tests/test-nonblocking.c (main): Likewise.
56497         * modules/pipe2-tests (Makefile.am): Avoid link failure.
56499         fcntl-h: fix O_ACCMODE on cygwin
56500         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
56501         * lib/fcntl.in.h (O_ACCMODE): Fix it.
56503         pipe-filter: drop O_NONBLOCK workarounds
56504         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
56505         * modules/pipe-filter-ii (Depends-on): Likewise.
56506         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
56508         nonblocking: provide O_NONBLOCK for mingw
56509         * modules/nonblocking (Depends-on): Add open.
56510         (configure.ac): Set new witness macro.
56511         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
56512         * modules/fcntl-h (Makefile.am): Substitute it.
56513         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
56514         nonblocking module is in use.
56515         * lib/nonblocking.c: Adjust portability test.
56516         * lib/open.c (open): Don't let native open see gnulib flag.
56517         * tests/test-fcntl-h.c (main): Enhance test.
56518         * tests/test-open.h (test_open): Likewise.
56519         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
56521         careadlinkat: fix compilation error on mingw
56522         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
56523         within struct allocator.
56525 2011-04-06  Eric Blake  <eblake@redhat.com>
56527         binary-io: relicense under LGPLv2+
56528         * modules/binary-io (License): Relax to LGPLv2+.
56529         Requested for libvirt, and required by pipe2.
56531 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
56533         verify: use _Static_assert if available
56534         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
56535         (verify_true, verify): Use it if available.  This generates better
56536         diagnostics with GCC 4.6.0 and later.
56538 2011-04-05  Bruno Haible  <bruno@clisp.org>
56540         Remove leftover generated .h files after config.status changed.
56542         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
56543         GL_GENERATE_ALLOCA_H.
56544         * modules/alloca-opt (Makefile.am): Remove alloca.h if
56545         GL_GENERATE_ALLOCA_H evaluates to false.
56547         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
56548         GL_GENERATE_ARGZ_H.
56549         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
56550         evaluates to false.
56552         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
56553         GL_GENERATE_BYTESWAP_H.
56554         * modules/byteswap (Makefile.am): Remove byteswap.h if
56555         GL_GENERATE_BYTESWAP_H evaluates to false.
56557         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
56558         GL_GENERATE_ERRNO_H.
56559         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
56560         evaluates to false.
56562         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
56563         GL_GENERATE_FLOAT_H.
56564         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
56565         evaluates to false.
56567         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
56568         GL_GENERATE_FNMATCH_H.
56569         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
56570         GL_GENERATE_FNMATCH_H evaluates to false.
56572         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
56573         GL_GENERATE_GLOB_H.
56574         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
56575         evaluates to false.
56577         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
56578         automake conditional GL_GENERATE_ICONV_H.
56579         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
56580         evaluates to false.
56582         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
56583         GL_GENERATE_NETINET_IN_H.
56584         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
56585         GL_GENERATE_NETINET_IN_H evaluates to false.
56587         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
56588         conditional GL_GENERATE_PTHREAD_H.
56589         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
56590         * modules/pthread (Makefile.am): Remove pthread.h if
56591         GL_GENERATE_PTHREAD_H evaluates to false.
56593         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
56594         GL_GENERATE_SCHED_H.
56595         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
56596         evaluates to false.
56598         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
56599         conditional GL_GENERATE_SELINUX_CONTEXT_H.
56600         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
56601         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
56603         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
56604         GL_GENERATE_STDARG_H.
56605         * modules/stdarg (Makefile.am): Remove stdarg.h if
56606         GL_GENERATE_STDARG_H evaluates to false.
56608         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
56609         GL_GENERATE_STDBOOL_H.
56610         * modules/stdbool (Makefile.am): Remove stdbool.h if
56611         GL_GENERATE_STDBOOL_H evaluates to false.
56613         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
56614         conditional GL_GENERATE_STDDEF_H.
56615         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
56616         * modules/stddef (Makefile.am): Remove stddef.h if
56617         GL_GENERATE_STDDEF_H evaluates to false.
56619         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
56620         GL_GENERATE_STDINT_H.
56621         * modules/stdint (Makefile.am): Remove stdint.h if
56622         GL_GENERATE_STDINT_H evaluates to false.
56624         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
56625         GL_GENERATE_SYSEXITS_H.
56626         * modules/sysexits (Makefile.am): Remove sysexits.h if
56627         GL_GENERATE_SYSEXITS_H evaluates to false.
56629         Reported by Karl Berry and Ralf Wildenhues.
56631 2011-04-05  Bruno Haible  <bruno@clisp.org>
56633         Ensure to rebuild generated .h files when config.status has changed.
56634         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
56635         config.status.
56636         * modules/ctype (Makefile.am): Likewise.
56637         * modules/dirent (Makefile.am): Likewise.
56638         * modules/errno (Makefile.am): Likewise.
56639         * modules/fcntl-h (Makefile.am): Likewise.
56640         * modules/float (Makefile.am): Likewise.
56641         * modules/getopt-posix (Makefile.am): Likewise.
56642         * modules/glob (Makefile.am): Likewise.
56643         * modules/iconv-h (Makefile.am): Likewise.
56644         * modules/inttypes (Makefile.am): Likewise.
56645         * modules/langinfo (Makefile.am): Likewise.
56646         * modules/locale (Makefile.am): Likewise.
56647         * modules/math (Makefile.am): Likewise.
56648         * modules/netdb (Makefile.am): Likewise.
56649         * modules/netinet_in (Makefile.am): Likewise.
56650         * modules/poll-h (Makefile.am): Likewise.
56651         * modules/pthread (Makefile.am): Likewise.
56652         * modules/pty (Makefile.am): Likewise.
56653         * modules/sched (Makefile.am): Likewise.
56654         * modules/search (Makefile.am): Likewise.
56655         * modules/selinux-h (Makefile.am): Likewise.
56656         * modules/signal (Makefile.am): Likewise.
56657         * modules/spawn (Makefile.am): Likewise.
56658         * modules/stdarg (Makefile.am): Likewise.
56659         * modules/stdbool (Makefile.am): Likewise.
56660         * modules/stddef (Makefile.am): Likewise.
56661         * modules/stdint (Makefile.am): Likewise.
56662         * modules/stdio (Makefile.am): Likewise.
56663         * modules/stdlib (Makefile.am): Likewise.
56664         * modules/string (Makefile.am): Likewise.
56665         * modules/strings (Makefile.am): Likewise.
56666         * modules/sys_file (Makefile.am): Likewise.
56667         * modules/sys_ioctl (Makefile.am): Likewise.
56668         * modules/sys_select (Makefile.am): Likewise.
56669         * modules/sys_socket (Makefile.am): Likewise.
56670         * modules/sys_stat (Makefile.am): Likewise.
56671         * modules/sys_time (Makefile.am): Likewise.
56672         * modules/sys_times (Makefile.am): Likewise.
56673         * modules/sys_utsname (Makefile.am): Likewise.
56674         * modules/sys_wait (Makefile.am): Likewise.
56675         * modules/sysexits (Makefile.am): Likewise.
56676         * modules/termios (Makefile.am): Likewise.
56677         * modules/time (Makefile.am): Likewise.
56678         * modules/unistd (Makefile.am): Likewise.
56679         * modules/wchar (Makefile.am): Likewise.
56680         * modules/wctype-h (Makefile.am): Likewise.
56681         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
56683 2011-04-05  Bruno Haible  <bruno@clisp.org>
56685         pipe2: Relicense under LGPLv2+.
56686         * modules/pipe2 (License): Change to LGPLv2+.
56687         Requested by Eric Blake, for libvirt.
56689 2011-04-05  Bruce Korb  <bkorb@gnu.org>
56691         bootstrap: compute gnulib_extra_files after updating build_aux
56692         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
56693         change build_aux or also supply gnulib_extra_files.  Handle correctly.
56695 2011-04-05  Eric Blake  <eblake@redhat.com>
56697         bootstrap: preserve git whitelist item sorting
56698         * build-aux/bootstrap (sort_patterns): New function.
56699         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
56701 2011-04-05  Simon Josefsson  <simon@josefsson.org>
56703         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
56704         sc_space_tab check.
56706 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
56708         areadlink, areadlinkat: rewrite in terms of careadlinkat
56709         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
56710         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
56711         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
56712         (malloc, realloc): Remove #undefs.
56713         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
56714         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
56715         readlink, ssize_t, stdint, unistd.
56716         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
56717         areadlink, stdint.
56719         careadlinkat: new module
56720         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
56721         * modules/careadlinkat: New files, written by me with
56722         a review and feedback from Ben Pfaff in
56723         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
56725 2011-04-01  Bruno Haible  <bruno@clisp.org>
56727         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
56728         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
56729         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
56730         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
56731         Reported by Bruce Korb <bruce.korb@gmail.com>.
56733 2011-04-01  Bruno Haible  <bruno@clisp.org>
56735         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
56736         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
56737         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
56738         * modules/wcpcpy (Depends-on): Add extensions.
56739         * modules/wcpncpy (Depends-on): Likewise.
56740         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
56741         systems.
56742         * doc/posix-functions/wcpncpy.texi: Likewise.
56743         * doc/posix-functions/wcwidth.texi: Likewise.
56745 2011-03-31  Eric Blake  <eblake@redhat.com>
56747         nonblocking: fix mingw test failures
56748         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
56749         non-blocking flag on regular file.
56750         (get_nonblocking_flag): Set errno on invalid fd.
56751         * tests/test-nonblocking.c (main): Avoid test failure on
56752         directories if fchdir is not active.
56753         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
56755 2011-03-31  Bruno Haible  <bruno@clisp.org>
56757         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
56758         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
56759         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
56760         Reported by Simon Josefsson <simon@josefsson.org>.
56762 2011-03-31  Bruno Haible  <bruno@clisp.org>
56763         and Eric Blake  <eblake@redhat.com>
56765         nonblocking: new module
56766         * modules/nonblocking: New module.
56767         * modules/nonblocking-tests: Likewise.
56768         * lib/nonblocking.h: New file.
56769         * lib/nonblocking.c: Likewise.
56770         * tests/test-nonblocking.c: New test.
56771         * lib/ioctl.c (ioctl) [mingw]: Update comment.
56773 2011-03-30  Bruno Haible  <bruno@clisp.org>
56775         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
56776         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
56777         instead of 'printf' format for GCC >= 4.4.
56778         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
56779         (fprintf, printf, vfprintf, vprintf): Declare with
56780         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
56781         the system's vfprintf() function.
56782         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
56784 2011-03-30  Eric Blake  <eblake@redhat.com>
56786         passfd: fix scoping bug
56787         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
56788         before sendmsg/recvmsg.
56790         passfd: standardize coding conventions
56791         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
56792         can be learned at compile time.
56793         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
56794         ifdefs.
56795         (sendfd, recvfd): Follow gnulib code conventions.
56797         passfd: fix incorrect sendmsg arguments
56798         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
56799         incorrect msg_controllen value.
56800         * modules/passfd-tests (Depends-on): Check for alarm.
56801         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
56802         Reported by Bastien ROUCARIES.
56804 2011-03-30  Bruno Haible  <bruno@clisp.org>
56806         c-strcasestr: Relicense under LGPLv2+.
56807         * modules/c-strcasestr (License): Change to LGPLv2+.
56808         Requested by Eric Blake, for libvirt.
56810 2011-03-30  Simon Josefsson  <simon@josefsson.org>
56812         * users.txt: Add libidn2.  Fix libtasn1 link.
56814 2011-03-30  Jim Meyering  <meyering@redhat.com>
56816         tests: readlink* ("",... fails with EINVAL on newer kernels
56817         readlink and readlinkat have typically failed with ENOENT for
56818         the invalid, empty file name,  "".  However, with the advent
56819         of linux-2.6.39, they fail with EINVAL.
56820         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
56821         when operating on the empty file name.
56822         * tests/test-readlink.h (test_readlink): Likewise.
56824 2011-03-29  Bruno Haible  <bruno@clisp.org>
56826         Relicense some modules under LGPLv2+, for libidn2.
56827         * modules/array-mergesort (License): Change to LGPLv2+.
56828         * modules/c-strcaseeq (License): Likewise.
56829         * modules/striconveh (License): Likewise.
56830         * modules/striconveha (License): Likewise.
56831         * modules/uniconv/base (License): Likewise.
56832         * modules/uniconv/u8-conv-from-enc (License): Likewise.
56833         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
56834         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
56835         * modules/unictype/base (License): Likewise.
56836         * modules/unictype/bidiclass-of (License): Likewise.
56837         * modules/unictype/category-M (License): Likewise.
56838         * modules/unictype/category-none (License): Likewise.
56839         * modules/unictype/category-of (License): Likewise.
56840         * modules/unictype/category-test (License): Likewise.
56841         * modules/unictype/category-test-withtable (License): Likewise.
56842         * modules/unictype/combining-class (License): Likewise.
56843         * modules/unictype/joiningtype-of (License): Likewise.
56844         * modules/unictype/scripts (License): Likewise.
56845         * modules/uninorm/base (License): Likewise.
56846         * modules/uninorm/canonical-decomposition (License): Likewise.
56847         * modules/uninorm/composition (License): Likewise.
56848         * modules/uninorm/decompose-internal (License): Likewise.
56849         * modules/uninorm/decomposition-table (License): Likewise.
56850         * modules/uninorm/nfc (License): Likewise.
56851         * modules/uninorm/nfd (License): Likewise.
56852         * modules/uninorm/u32-normalize (License): Likewise.
56853         * modules/unistr/base (License): Likewise.
56854         * modules/unistr/u32-cpy (License): Likewise.
56855         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
56856         * modules/unistr/u32-to-u8 (License): Likewise.
56857         * modules/unistr/u32-uctomb (License): Likewise.
56858         * modules/unistr/u8-check (License): Likewise.
56859         * modules/unistr/u8-mblen (License): Likewise.
56860         * modules/unistr/u8-mbtouc (License): Likewise.
56861         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
56862         * modules/unistr/u8-mbtoucr (License): Likewise.
56863         * modules/unistr/u8-prev (License): Likewise.
56864         * modules/unistr/u8-strlen (License): Likewise.
56865         * modules/unistr/u8-to-u32 (License): Likewise.
56866         * modules/unistr/u8-uctomb (License): Likewise.
56867         * modules/unitypes (License): Likewise.
56868         Requested by Simon Josefsson.
56870 2011-03-29  Simon Josefsson  <simon@josefsson.org>
56872         lib-symbol-visibility: Add a notice.
56873         * modules/lib-symbol-visibility (Notice): New field.
56875 2011-03-29  Bruno Haible  <bruno@clisp.org>
56877         getaddrinfo: Doc fix.
56878         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
56879         section "fixed in Gnulib".
56881 2011-03-28  Simon Josefsson  <simon@josefsson.org>
56883         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
56884         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
56886 2011-03-26  Bruno Haible  <bruno@clisp.org>
56888         unictype/property-byname: Reduce the number of load-time relocations.
56889         * lib/unictype/pr_byname.c: Include <stdlib.h>.
56890         (UC_PROPERTY_INDEX_*): New enumeration values.
56891         (uc_property_byname): Convert an index from the lookup table to an
56892         uc_property_t.
56893         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
56894         values.
56896 2011-03-26  Bruno Haible  <bruno@clisp.org>
56898         unictype/property-byname: Allow omitted word separators and aliases.
56899         * lib/unictype/pr_byname.gperf: Add property names without word
56900         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
56901         for 'space'.
56903 2011-03-26  Bruno Haible  <bruno@clisp.org>
56905         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
56906         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
56907         also hyphens to space.
56908         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
56909         without spaces.
56910         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
56912 2011-03-26  Bruno Haible  <bruno@clisp.org>
56914         unictype/joiningtype-byname: Recognize long names as well.
56915         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
56916         a long name.
56917         * lib/unictype/joiningtype_byname.c: Include <string.h>,
56918         unictype/joiningtype_byname.h.
56919         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
56920         * lib/unictype/joiningtype_byname.gperf: New file.
56921         * modules/unictype/joiningtype-byname (Files): Add
56922         lib/unictype/joiningtype_byname.gperf.
56923         (Depends-on): Add gperf.
56924         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
56925         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
56926         long names.
56928         Tests for module 'unictype/joiningtype-longname'.
56929         * modules/unictype/joiningtype-longname-tests: New file.
56930         * tests/unictype/test-joiningtype_longname.c: New file.
56932         New module 'unictype/joiningtype-longname'.
56933         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
56934         * lib/unictype/joiningtype_longname.c: New file.
56935         * modules/unictype/joiningtype-longname: New file.
56936         * modules/unictype/joiningtype-all (Depends-on): Add
56937         unictype/joiningtype-longname.
56939 2011-03-26  Bruno Haible  <bruno@clisp.org>
56941         unictype/bidiclass-byname: Recognize long names as well.
56942         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
56943         name.
56944         * lib/unictype/bidi_byname.c: Include <string.h>,
56945         unictype/bidi_byname.h.
56946         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
56947         * lib/unictype/bidi_byname.gperf: New file.
56948         * modules/unictype/bidiclass-byname (Files): Add
56949         lib/unictype/bidi_byname.gperf.
56950         (Depends-on): Add gperf.
56951         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
56952         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
56953         long names.
56955         Tests for module 'unictype/bidiclass-longname'.
56956         * modules/unictype/bidiclass-longname-tests: New file.
56957         * tests/unictype/test-bidi_longname.c: New file.
56959         New module 'unictype/bidiclass-longname'.
56960         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
56961         * lib/unictype/bidi_longname.c: New file.
56962         * modules/unictype/bidiclass-longname: New file.
56963         * modules/unictype/bidiclass-all (Depends-on): Add
56964         unictype/bidiclass-longname.
56966 2011-03-26  Bruno Haible  <bruno@clisp.org>
56968         unictype/bidi*: Rename modules.
56969         * modules/unictype/bidiclass-all: Renamed from
56970         modules/unictype/bidicategory-all.
56971         * modules/unictype/bidiclass-name: Renamed from
56972         modules/unictype/bidiclass-name.
56973         (Description): Update.
56974         * modules/unictype/bidiclass-name-tests: Renamed from
56975         modules/unictype/bidicategory-name-tests.
56976         * modules/unictype/bidiclass-byname: Renamed from
56977         modules/unictype/bidicategory-byname.
56978         (Description): Update.
56979         * modules/unictype/bidiclass-byname-tests: Renamed from
56980         modules/unictype/bidicategory-byname-tests.
56981         * modules/unictype/bidiclass-of: Renamed from
56982         modules/unictype/bidicategory-of.
56983         (Description): Update.
56984         * modules/unictype/bidiclass-of-tests: Renamed from
56985         modules/unictype/bidicategory-of-tests.
56986         * modules/unictype/bidiclass-test: Renamed from
56987         modules/unictype/bidicategory-test.
56988         (Description): Update.
56989         * modules/unictype/bidiclass-test-tests: Renamed from
56990         modules/unictype/bidicategory-test-tests.
56991         * modules/unictype/bidicategory-all: New file, a simple redirection.
56992         * modules/unictype/bidicategory-name: Likewise.
56993         * modules/unictype/bidicategory-byname: Likewise.
56994         * modules/unictype/bidicategory-of: Likewise.
56995         * modules/unictype/bidicategory-test: Likewise.
56996         * modules/unictype/property-bidi-* (Dependencies): Update.
56997         * lib/unictype/bidi_*.c: Update comment.
56999 2011-03-26  Bruno Haible  <bruno@clisp.org>
57001         unictype/bidi*: Rename functions, part 2.
57002         * modules/unictype/bidicategory-name (configure.ac): Update required
57003         libunistring version.
57004         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
57006 2011-03-25  Bruno Haible  <bruno@clisp.org>
57008         New module 'unictype/combining-class-all'.
57009         * modules/unictype/combining-class-all: New file.
57011         Tests for module 'unictype/combining-class-byname'.
57012         * modules/unictype/combining-class-byname-tests: New file.
57013         * tests/unictype/test-combiningclass_byname.c: New file.
57015         New module 'unictype/combining-class-byname'.
57016         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
57017         * lib/unictype/combiningclass_byname.c: New file.
57018         * lib/unictype/combiningclass_byname.gperf: New file.
57019         * modules/unictype/combining-class-byname: New file.
57021         Tests for module 'unictype/combining-class-longname'.
57022         * modules/unictype/combining-class-longname-tests: New file.
57023         * tests/unictype/test-combiningclass_longname.c: New file.
57025         New module 'unictype/combining-class-longname'.
57026         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
57027         * lib/unictype/combiningclass_longname.c: New file.
57028         * modules/unictype/combining-class-longname: New file.
57030         Tests for module 'unictype/combining-class-name'.
57031         * modules/unictype/combining-class-name-tests: New file.
57032         * tests/unictype/test-combiningclass_name.c: New file.
57034         New module 'unictype/combining-class-name'.
57035         * lib/unictype.in.h (uc_combining_class_name): New declaration.
57036         * lib/unictype/combiningclass_name.c: New file.
57037         * modules/unictype/combining-class-name: New file.
57039 2011-03-25  Bruno Haible  <bruno@clisp.org>
57041         unictype/combining-class: Rename source files.
57042         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
57043         of unictype/combining.h.
57044         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
57045         Update.
57046         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
57047         * modules/unictype/combining-class (Description): Fix.
57048         (Files, Makefile.am): Update.
57049         * tests/unictype/test-combiningclass.c: Renamed from
57050         tests/unictype/test-combining.c.
57051         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
57053 2011-03-25  Bruno Haible  <bruno@clisp.org>
57055         unictype: Update list of canonical combining classes.
57056         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
57058 2011-03-25  Bruno Haible  <bruno@clisp.org>
57060         unictype/category-byname: Recognize long names as well.
57061         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
57062         a long name.
57063         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
57064         unictype/categ_byname.h.
57065         (UC_CATEGORY_INDEX_*): New enumeration values.
57066         (uc_general_category_byname): Use uc_general_category_lookup and
57067         convert from index to value.
57068         * lib/unictype/categ_byname.gperf: New file.
57069         * modules/unictype/category-byname (Files): Add
57070         lib/unictype/categ_byname.gperf.
57071         (Depends-on): Add gperf.
57072         (Makefile.am): Add rule for generating unictype/categ_byname.h.
57073         * tests/unictype/test-categ_byname.c (main): Test the recognition of
57074         long names.
57076         Tests for module 'unictype/category-longname'.
57077         * modules/unictype/category-longname-tests: New file.
57078         * tests/unictype/test-categ_longname.c: New file.
57080         New module 'unictype/category-longname'.
57081         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
57082         * lib/unictype/categ_longname.c: New file.
57083         * modules/unictype/category-longname: New file.
57084         * modules/unictype/category-all (Depends-on): Add it.
57086 2011-03-25  Bruno Haible  <bruno@clisp.org>
57088         Tests for module 'unictype/category-LC'.
57089         * modules/unictype/category-LC-tests: New file.
57090         * tests/unictype/test-categ_LC.c: New file, automatically generated.
57092         New module 'unictype/category-LC'.
57093         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
57094         (UC_CATEGORY_LC): New declaration.
57095         (UC_CASED_LETTER): New macro.
57096         * lib/gen-uni-tables.c (is_category_LC): New function.
57097         (output_categories): Also handle category LC.
57098         (UC_CATEGORY_MASK_LC): New enumeration value.
57099         (general_category_byname): Also handle category LC.
57100         * lib/unictype/categ_LC.c: New file.
57101         * lib/unictype/categ_LC.h: New file, automatically generated.
57102         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
57103         category LC.
57104         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
57105         * modules/unictype/category-LC: New file.
57106         * modules/unictype/category-byname (Depends-on): Add
57107         unictype/category-LC.
57108         * modules/unictype/category-all (Depends-on): Likewise.
57110 2011-03-25  Eric Blake  <eblake@redhat.com>
57112         xmalloc: revert yesterday's regression
57113         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
57114         realloc's underlying behavior (allowing allocation of zero-size
57115         objects, especially if malloc-gnu is also in use).
57117 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
57119         maint.mk: add missing version to VC-tag
57120         * top/maint.mk: git tag was missing actual tag name; add it.
57122         valgrind: do leak checking, and exit with code 1 on error (not 0)
57123         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
57124         to VALGRIND.
57126 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
57128         posix-modules: say what it does.
57129         * posix-modules: Add a line to the --help output saying what it does.
57131 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
57133         xmalloc: Do not leak if underlying realloc is C99 compatible.
57134         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
57135         This avoids a leak on C99-based systems.  See
57136         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
57138 2011-03-24  Eric Blake  <eblake@redhat.com>
57140         realloc: document portability problem
57141         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
57142         passing 0 size to realloc.
57144 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
57146         doc: update users.txt
57147         * users.txt: Add cvsps, tmpwatch
57149 2011-03-23  Matt Rice  <ratmice@gmail.com>
57151         doc: update users.txt
57152         * users.txt: Add gdb.
57154 2011-03-23  Jim Meyering  <meyering@redhat.com>
57156         doc: update users.txt
57157         Looking through matches up to the following URL (there are still
57158         several more pages), I found several projects that use gnulib:
57159         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
57160         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
57161         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
57163 2011-03-22  Bruno Haible  <bruno@clisp.org>
57165         unictype/bidi*: Rename functions.
57166         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
57167         uc_bidi_class, uc_is_bidi_class): New declarations.
57168         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
57169         uc_bidi_category_byname.
57170         (uc_bidi_category_byname): New function.
57171         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
57172         u_bidi_category_name.
57173         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
57174         (uc_bidi_category_name): New function.
57175         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
57176         uc_bidi_category.
57177         (uc_bidi_category): New function.
57178         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
57179         uc_is_bidi_category. Invoke uc_bidi_class.
57180         (uc_is_bidi_category): New function.
57181         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
57182         instead of uc_bidi_category_byname.
57183         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
57184         instead of uc_bidi_category_name.
57185         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
57186         uc_bidi_category.
57187         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
57188         instead of uc_is_bidi_category.
57190 2011-03-21  Bruno Haible  <bruno@clisp.org>
57192         New module 'unictype/joininggroup-all'.
57193         * modules/unictype/joininggroup-all: New file.
57195         Tests for module 'unictype/joininggroup-of'.
57196         * modules/unictype/joininggroup-of-tests: New file.
57197         * tests/unictype/test-joininggroup_of.c: New file.
57198         * tests/unictype/test-joininggroup_of.h: New file, automatically
57199         generated by gen-uni-tables.
57201         New module 'unictype/joininggroup-of'.
57202         * modules/unictype/joininggroup-of: New file.
57203         * lib/unictype/joininggroup_of.c: New file.
57204         * lib/unictype/joininggroup_of.h: New file, automatically generated by
57205         gen-uni-tables.
57207         Tests for module 'unictype/joininggroup-byname'.
57208         * modules/unictype/joininggroup-byname-tests: New file.
57209         * tests/unictype/test-joininggroup_byname.c: New file.
57211         New module 'unictype/joininggroup-byname'.
57212         * modules/unictype/joininggroup-byname: New file.
57213         * lib/unictype/joininggroup_byname.c: New file.
57214         * lib/unictype/joininggroup_byname.gperf: New file.
57216         Tests for module 'unictype/joininggroup-name'.
57217         * modules/unictype/joininggroup-name-tests: New file.
57218         * tests/unictype/test-joininggroup_name.c: New file.
57220         New module 'unictype/joininggroup-name'.
57221         * modules/unictype/joininggroup-name: New file.
57222         * lib/unictype/joininggroup_name.c: New file.
57223         * lib/unictype/joininggroup_name.h: New file.
57225         New module 'unictype/joiningtype-all'.
57226         * modules/unictype/joiningtype-all: New file.
57228         Tests for module 'unictype/joiningtype-of'.
57229         * modules/unictype/joiningtype-of-tests: New file.
57230         * tests/unictype/test-joiningtype_of.c: New file.
57231         * tests/unictype/test-joiningtype_of.h: New file, automatically
57232         generated by gen-uni-tables.
57234         New module 'unictype/joiningtype-of'.
57235         * modules/unictype/joiningtype-of: New file.
57236         * lib/unictype/joiningtype_of.c: New file.
57237         * lib/unictype/joiningtype_of.h: New file, automatically generated by
57238         gen-uni-tables.
57240         Tests for module 'unictype/joiningtype-byname'.
57241         * modules/unictype/joiningtype-byname-tests: New file.
57242         * tests/unictype/test-joiningtype_byname.c: New file.
57244         New module 'unictype/joiningtype-byname'.
57245         * modules/unictype/joiningtype-byname: New file.
57246         * lib/unictype/joiningtype_byname.c: New file.
57248         Tests for module 'unictype/joiningtype-name'.
57249         * modules/unictype/joiningtype-name-tests: New file.
57250         * tests/unictype/test-joiningtype_name.c: New file.
57252         New module 'unictype/joiningtype-name'.
57253         * modules/unictype/joiningtype-name: New file.
57254         * lib/unictype/joiningtype_name.c: New file.
57256         unictype: Add support for Arabic shaping properties.
57257         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
57258         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
57259         declarations.
57260         (UC_JOINING_GROUP_*): New enumeration values.
57261         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
57262         declarations.
57263         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
57264         (unicode_joining_type): New variable.
57265         (UC_JOINING_GROUP_*): New enumeration values.
57266         (unicode_joining_group): New variable.
57267         (fill_arabicshaping, joining_type_as_c_identifier,
57268         output_joining_type_test, output_joining_type,
57269         joining_group_as_c_identifier, output_joining_group_test,
57270         output_joining_group): New functions.
57271         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
57272         fill_arabicshaping and output_joining_type_test, output_joining_type,
57273         output_joining_group_test, output_joining_group.
57274         Reported by Simon Josefsson.
57276 2011-03-21  Jim Meyering  <meyering@redhat.com>
57278         strftime: fix a bug in yesterday's change
57279         * lib/strftime.c (add): Accommodate width's initial value of -1.
57280         Otherwise, nstrftime would copy uninitialized data into
57281         the result buffer.
57283 2011-03-21  Jim Meyering  <meyering@redhat.com>
57285         tests: add strftime-tests module
57286         * tests/test-strftime.c: New file.
57287         * modules/strftime-tests: New module.
57289 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57291         strftime: don't assume a byte count fits in 'int'
57292         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
57293         found this problem by static analysis, using gcc -Wstrict-overflow
57294         (GCC 4.5.2, x86-64).  This reported an optimization that depended
57295         on an integer overflow having undefined behavior, but it turns out
57296         that the argument is a size, which might not fit in 'int' anyway,
57298 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57300         stdio: don't require ignore_value around fwrite
57302         This patch works around libc bug 11959
57303         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
57304         Without this patch, applications must often write
57305         ignore_value (fwrite (...)) even though the ignore_value is
57306         not helpful here.  It's common to write many objects, using
57307         fwrite/printf/etc., and then use ferror to detect output error.
57309         I considered making this patch optional, but decided against it,
57310         because libc is obviously being inconsistent here: there is no
57311         reason libc should insist that user code must inspect fwrite
57312         return's value without also insisting that it inspect printf's,
57313         putchar's, etc.  If user code wants to have a strict style where
57314         all these functions' values are checked (so that ferror need not
57315         be checked), we could add support for that style in a new gnulib
57316         module, but in the meantime it's better to be consistent and to
57317         support common usage.
57319         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
57320         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
57321         that we are compiling in checking mode, and if not C++, and
57322         if not already wrapping fwrite for some other reason.
57323         (fwrite): #define to rpl_fwrite if the latter is defined.
57325 2011-03-20  Bruno Haible  <bruno@clisp.org>
57327         verror: Fix compilation error introduced on 2011-02-13.
57328         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
57329         instead of __attribute__.
57330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57332 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57333             Bruno Haible  <bruno@clisp.org>
57335         socklen: do not depend on sys_socket
57336         While trying to modify Emacs to use gnulib's socklen module,
57337         I discovered a circular dependency: socklen depends on sys_socket
57338         and vice versa.  Emacs can use socklen, but it does not need
57339         sys_socket because it has its own substitute for sys/socket.h.
57340         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
57341         gl_TYPE_SOCKLEN_T.
57342         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
57343         gl_PREREQ_SYS_H_SOCKET.
57344         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
57345         gl_PREREQ_SYS_H_SOCKET.
57346         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
57347         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
57348         * modules/socklen (Depends-on): Do not depend on sys_socket.
57349         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
57351 2011-03-20  Jim Meyering  <meyering@redhat.com>
57353         maint.mk: sort file names *after* new transformation
57354         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
57355         prefix would have led to an unwarranted failure in GNU parted.
57356         Sort after that transformation.
57358 2011-03-19  Jim Meyering  <meyering@redhat.com>
57360         maint.mk: fix po-file syntax-check rule
57361         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
57362         Patch by Bruno Haible.
57364 2011-03-19  Bruno Haible  <bruno@clisp.org>
57366         socklen: Update comment.
57367         * m4/socklen.m4: Update comment about platforms.
57369 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57370             Bruno Haible  <bruno@clisp.org>
57372         inet_ntop, inet_pton: Simplify.
57373         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
57374         documented to provide socklen_t and we already depend on sys_socket.
57375         * modules/inet_pton (Depends-on): Likewise.
57376         * lib/arpa_inet.in.h: Adjust comment.
57378 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57379             Bruno Haible  <bruno@clisp.org>
57381         netdb: Simplify.
57382         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
57383         documented to provide socklen_t and we already depend on sys_socket.
57384         * lib/netdb.in.h: Adjust comment.
57386 2011-03-19  Bruno Haible  <bruno@clisp.org>
57388         sys_socket, netdb: Document problem with socklen_t.
57389         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
57390         platforms.
57391         * doc/posix-headers/netdb.texi: Likewise.
57393 2011-03-18  Eric Blake  <eblake@redhat.com>
57395         maint.mk: let po check work in VPATH build
57396         * top/maint.mk (po_file): Allow cfg.mk override.
57397         (sc_po_check): Allow VPATH use.
57398         Reported by Jiri Denemark.
57400 2011-03-16  Jim Meyering  <meyering@redhat.com>
57402         maint.mk: allow fine-grained syntax-check exclusion via Make variables
57403         Before, you would have had to create one .x-sc_ file per rule in order
57404         to exempt offending files.  Now, you may instead use a Make variable --
57405         usually defined in cfg.mk -- whose name identifies the affected rule.
57406         * top/maint.mk (_sc_excl): Define.
57407         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
57408         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
57410 2011-03-13  Bruno Haible  <bruno@clisp.org>
57412         ignore-value tests: Avoid warnings.
57413         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
57414         empty for gcc < 3.4.
57416 2011-03-13  Bruno Haible  <bruno@clisp.org>
57418         passfd: Fix link error on Solaris.
57419         * modules/passfd (Description): Correct.
57420         (Depends-on): Add socketlib.
57421         (Link): New section.
57422         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
57424 2011-03-13  Bruno Haible  <bruno@clisp.org>
57426         passfd: Fix link error on AIX 5.2.
57427         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
57429 2011-03-13  Bruno Haible  <bruno@clisp.org>
57431         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
57432         * lib/sys_socket.in.h: Include <stddef.h>.
57433         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
57434         CMSG_FIRSTHDR. Remove unused variable.
57436 2011-03-13  Bruno Haible  <bruno@clisp.org>
57438         passfd: Fix compilation error on OpenBSD.
57439         * lib/passfd.c: Include <sys/uio.h>.
57441 2011-03-13  Bruno Haible  <bruno@clisp.org>
57443         passfd test: Fix warnings.
57444         * tests/test-passfd.c: Include <sys/wait.h>.
57445         (main): Fix typo.
57447 2011-03-13  Bruno Haible  <bruno@clisp.org>
57449         passfd module, part 4, tweaks.
57450         * tests/test-passfd.c: Reorder includes.
57451         (main): Fix perror and printf calls.
57453 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57455         passfd module, part 4.
57456         * modules/passfd-tests: New file.
57457         * tests/test-passfd.c: New file.
57459 2011-03-13  Jim Meyering  <meyering@redhat.com>
57461         Makefile: rely on GNU make; derive syntax-check rule names
57462         Rather than requiring that each sc_ rule be listed as a dependent
57463         of "check", use features of GNU make to derive the list.
57464         * Makefile (syntax-check-rules): Define.
57465         (check): Depend on the new variable, not the hard-coded list.
57467 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
57468             Bruno Haible  <bruno@clisp.org>
57470         passfd module, part 3.
57471         * lib/passfd.h (recvfd): Add a flags argument.
57472         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
57473         (recvfd): Add a flags argument.
57474         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
57475         exists.
57476         * modules/passfd (Depends-on): Add cloexec.
57477         Suggested by Eric Blake.
57479 2011-03-13  Bruno Haible  <bruno@clisp.org>
57481         passfd module, part 2, tweaks.
57482         * modules/passfd (Files): Reorder.
57483         (Depends-on): Remove errno.
57484         (Include): Remove <sys/socket.h>, <sys/un.h>.
57485         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
57486         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
57487         specification header. Include <sys/socket.h> always. Don't include
57488         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
57489         (sendfd): Clarify that it sets errno when it fails.
57490         (recvfd): Fix specification.
57492 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57494         passfd module, part 2.
57495         * modules/passfd: New file.
57496         * lib/passfd.h: New file.
57497         * lib/passfd.c: New file.
57499 2011-03-12  Bruno Haible  <bruno@clisp.org>
57501         wcswidth, mbswidth: Avoid integer overflow.
57502         * lib/wcswidth.c: Include <limits.h>.
57503         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
57504         * lib/mbswidth.c: Include <limits.h>.
57505         (mbsnwidth): Avoid 'int' overflow.
57506         Reported by Jim Meyering.
57508 2011-03-12  Bruno Haible  <bruno@clisp.org>
57510         futimens, utimensat: Avoid endless recursion on Solaris 10.
57511         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
57512         Solaris.
57513         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
57514         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
57516 2011-03-11  Jim Meyering  <meyering@redhat.com>
57518         maint.mk: relax a regexp to accommodate other formatting styles
57519         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
57520         between "ngettext" and the following "(".
57522 2011-03-11  Pádraig Brady  <P@draigBrady.com>
57524         maint.mk: suppress a false positive warning
57525         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
57526         diagnostics are marked with ngettext.
57528 2011-03-10  Eric Blake  <eblake@redhat.com>
57530         wchar: add explicit dependencies, for Tru64
57531         * modules/mbmemcasecoll (Depends-on): Add wchar.
57532         * modules/mbtowc (Depends-on): Likewise.
57533         * modules/vasnprintf (Depends-on): Likewise.
57534         * modules/unistdio/u-printf-args (Depends-on): Likewise.
57535         * modules/wctomb (Depends-on): Likewise.
57536         Reported by Peter O'Gorman.
57538 2011-03-08  Bruno Haible  <bruno@clisp.org>
57540         passfd module, part 1, tweaks.
57541         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
57542         Improve indentation. Improve AC_MSG_CHECKING messages.
57543         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
57544         gl_SOCKET_FAMILIES.
57546 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57548         passfd module, part 1.
57549         * m4/afunix.m4: New file.
57550         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
57551         sockets.
57553 2011-03-08  Bruno Haible  <bruno@clisp.org>
57555         regex-quote: New API.
57556         * lib/regex-quote.h: Include <stdbool.h>.
57557         (struct regex_quote_spec): New type.
57558         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57559         New declarations.
57560         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57561         'const struct regex_quote_spec *' argument.
57562         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
57563         (pcre_special): New constant.
57564         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57565         New functions.
57566         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57567         'const struct regex_quote_spec *' argument.
57568         * modules/regex-quote (Depends-on): Add stdbool.
57569         * tests/test-regex-quote.c (check): Update for new API. Add test for
57570         anchored results.
57571         * NEWS: Mention the API change.
57572         Reported by Reuben Thomas and Eric Blake.
57574 2011-03-06  Bruno Haible  <bruno@clisp.org>
57576         regex-quote: Fix creation of POSIX extended regular expressions.
57577         * lib/regex-quote.c (ere_special): Add grouping and alternation
57578         operators.
57580 2011-03-05  Bruno Haible  <bruno@clisp.org>
57582         doc: Improve doc regarding autopoint vs. gnulib.
57583         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
57584         disable autopoint while running autoreconf.
57585         Suggested by Ralf Wildenhues.
57587 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57589         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
57590         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
57592 2011-03-03  Bruce Korb  <bkorb@gnu.org>
57594         parse-duration: remove xalloc.h dependency
57595         * lib/parse-duration.c (parse_period): handle NULL return from
57596         strdup instead of calling xstrdup().
57597         * modules/parse-duration: remove "xalloc" dependency
57599 2011-03-03  Matthew Booth  <mbooth@redhat.com>
57601         bootstrap: honor m4_base when running aclocal
57602         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
57604 2011-03-02  Jim Meyering  <meyering@redhat.com>
57606         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
57607         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
57608         on request from Matt Booth.
57610 2011-03-01  Eric Blake  <eblake@redhat.com>
57612         test-link: work on Hurd
57613         * tests/test-link.h (test_link): Hurd rejects linking directories
57614         with EISDIR instead of the POSIX-mandated EPERM.
57616 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
57618         stdio: simplify by moving files to printf-posix, sigpipe
57619         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
57620         since this symbol is needed only if printf is replaced.
57621         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
57622         Require gl_ASM_SYMBOL_PREFIX.
57623         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
57624         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
57625         (Depends-on): Add 'raise'.
57626         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
57627         * modules/stdio (Files): Remove lib/stdio-write.c,
57628         m4/asm-underscore.m4.
57629         (Depends-on): Remove 'raise'.
57631         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
57632         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
57633         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
57634         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
57636 2011-02-28  Bruno Haible  <bruno@clisp.org>
57638         localcharset: Assume ANSI C behaviour of free().
57639         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
57640         calling free().
57641         Suggested by Simon Josefsson <simon@josefsson.org>.
57643 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
57644             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
57645             Bruno Haible  <bruno@clisp.org>  (tiny change)
57647         On Cygwin, use /proc file system instead of win32 API.
57648         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
57649         Win32 file names.
57650         (DllMain): Simplify by removing Cygwin specific code.
57651         (find_shared_library_fullname): Use Linux specific implementation also
57652         for Cygwin.
57653         (get_shared_library_fullname): Update accordingly.
57654         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
57655         Win32 file names.
57656         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
57657         Cygwin specific code.
57659 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
57660             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
57662         Fix OpenMP flag detection for various Fortran compilers.
57663         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
57664         OpenMP-conditional compilation construct, to force compile
57665         failure with missing OpenMP flag.
57666         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
57668 2011-02-25  Eric Blake  <eblake@redhat.com>
57670         strstr: expand test coverage
57671         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
57672         compilation.
57673         * tests/test-memmem.c (main): Duplicate tests.
57674         * tests/test-strcasestr.c (main): Likewise.
57675         * tests/test-c-strcasestr.c (main): Likewise.
57677 2011-02-25  Jim Meyering  <meyering@redhat.com>
57679         maint.mk: detect missing-NL-at-EOF, too
57680         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
57681         it also detects when a file lacks a newline at EOF.
57682         (require_exactly_one_NL_at_EOF_): Renamed from
57683         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
57684         since people may well have .x-sc_... file names tied to the
57685         existing name.  Suggested by Eric Blake.
57687 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57689         dirname: move m4/dos.m4 functionality into lib/dosname.h
57691         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
57692         extracts symbols from it, puts them into config.h; but it's much
57693         easier to use the symbols directly.  filename.h already does this,
57694         but it disagrees with dos.m4 in some respects.  This patch
57695         introduces a different include file dosname.h that packages up
57696         dos.m4, and then later we can work on merging filename.h and
57697         dosname.h.  Applications that need only the easy-to-configure
57698         symbols should consider including dosname.h rather than dirname.h.
57699         * NEWS: Mention incompatible changes.
57700         * m4/dos.m4: Remove.
57701         * lib/dosname.h, modules/dosname: New files.
57702         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
57703         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
57704         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
57705         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
57706         Include dosname.h, not dirname.h.
57707         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
57708         Include dosname.h, for definitions of symbols like ISSLASH
57709         that used to be in config.h.
57710         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
57711         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
57712         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
57713         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
57714         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
57715         * modules/rmdir (Files): Likewise.
57716         * modules/stat (Files): Likewise.
57717         * modules/unlink (Files): Likewise.
57718         * modules/dirname-lgpl (Depends-on): Add dosname.
57719         * modules/lstat (Depends-on): Likewise.
57720         * modules/openat (Depends-on): Likewise.
57721         * modules/rmdir (Depends-on): Likewise.
57722         * modules/savewd (Depends-on): Likewise.
57723         * modules/stat (Depends-on): Likewise.
57724         * modules/unlink (Depends-on): Likewise.
57725         * modules/openat (Depends-on): Remove dirname-lgpl.
57726         * modules/savewd (Depends-on): Likewise.
57727         * tests/test-dirname.c: Do not use removed symbols like
57728         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
57729         the remaining symbols, e.g., ISSLASH ('\\').
57731 2011-02-25  Eric Blake  <eblake@redhat.com>
57733         strstr: revert patches that introduced bug and pessimization
57734         * lib/str-two-way.h: Add another reference.
57735         (two_way_short_needle, two_way_long_needle): Revert changes from
57736         2011-02-24; they pessimize search speed.
57737         (critical_factorization): Partially revert changes from
57738         2010-06-22; they violate the requirement that the left half of the
57739         needle be smaller than the period of the needle.
57741 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57743         filenamecat: remove unnecessary dependency on dirname-lgpl
57744         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
57745         is no direct dependency, just an indirect one via filenamecat-lgpl.
57747         remove: remove unnecessary use of m4/dos.m4
57748         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
57749         * modules/remove (FILES): Remove m4/dos.m4.
57751         * lib/openat-proc.c: Don't include dirname.h; not needed.
57753         backupfile: remove unnecessary use of m4/dos.m4
57754         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
57755         of its symbols are used by the backupfile code.  backupfile.c does
57756         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
57757         for the rare case of programs that want all their backup file
57758         names to live within 8+3 limits, and dos.m4 doesn't address that.
57759         * modules/backupfile (Files): Remove m4/dos.m4.
57761 2011-02-24  Jim Meyering  <meyering@redhat.com>
57763         strstr: fix a bug whereby strstr would mistakenly return NULL
57764         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
57765         in period calculation.
57766         (two_way_long_needle): Likewise.
57767         The original problem was reported by Mike Stump in
57768         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
57769         Ralf Wildenhues provided the short needle and haystack.
57770         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
57771         Add a more involved test to trigger the bug in two_way_long_needle.
57773 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
57775         gnulib-tool: remove use of bold display in help screen
57776         * gnulib-tool (func_usage): Do not use bold display anymore in the
57777         help screen.  That was just meant to be a temporary emphasis for a
57778         backward-incompatible change.
57780 2011-02-23  Bruno Haible  <bruno@clisp.org>
57782         Fix misindentation of preprocessor directives.
57783         * lib/argp-namefrob.h: Reindent preprocessor directives.
57784         * lib/getopt_int.h (struct _getopt_data): Likewise.
57785         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
57786         * lib/vasnprintf.c (decode_long_double): Likewise.
57787         * tests/test-argmatch.c: Insert blank lines, for clarity.
57788         * tests/test-exclude.c: Likewise.
57790 2011-02-22  Bruno Haible  <bruno@clisp.org>
57792         ioctl: Fix for MacOS X in 64-bit mode.
57793         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
57794         value.
57795         Suggested by Eric Blake.
57796         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
57798 2011-02-22  Jim Meyering  <meyering@redhat.com>
57800         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
57801         * Makefile (sc_cpp_indent_check): Don't limit the check to files
57802         in lib/.
57804 2011-02-22  Eric Blake  <eblake@redhat.com>
57806         maint: avoid any CDPATH issue
57807         * Makefile (sc_cpp_indent_check): Anchor cd argument.
57809         maint: adjust cpp indentation for my modules, as well
57810         * Makefile (sc_cpp_indent_check): Add my name.
57811         * lib/fbufmode.c: Filter through cppi.
57812         * lib/fpurge.c: Likewise.
57813         * lib/freadable.c: Likewise.
57814         * lib/freading.c: Likewise.
57815         * lib/fwritable.c: Likewise.
57816         * lib/fwriting.c: Likewise.
57817         * lib/sigaction.c: Likewise.
57819 2011-02-22  Jim Meyering  <meyering@redhat.com>
57821         maint: adjust cpp indentation to reflect nesting depth
57822         I.e., in a block of code that begins with an unnested "#if",
57823         put one space between the "#" in column 1 and following token.
57824         For example,
57825         -#include <sys/vfs.h>
57826         +# include <sys/vfs.h>
57827         Do this only in .c files that are part of a module I maintain.
57828         * lib/linkat.c: Filter through cppi.
57829         * lib/nanosleep.c: Likewise.
57830         * lib/openat.c: Likewise.
57831         * lib/openat-die.c: Likewise.
57832         * lib/dup3.c: Likewise.
57833         * lib/fchownat.c: Likewise.
57834         * lib/flock.c: Likewise.
57835         * lib/fsync.c: Likewise.
57836         * lib/fts.c: Likewise.
57837         * lib/getpass.c: Likewise.
57838         * lib/gettimeofday.c: Likewise.
57839         * lib/userspec.c: Likewise.
57840         * Makefile (sc_cpp_indent_check): New rule, to check this.
57842 2011-02-22  Bruno Haible  <bruno@clisp.org>
57844         New module 'wctomb'.
57845         * lib/stdlib.in.h (wctomb): New declaration.
57846         * lib/wctomb.c: New file.
57847         * lib/wctomb-impl.h: New file.
57848         * m4/wctomb.m4: New file.
57849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
57850         REPLACE_WCTOMB.
57851         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
57852         REPLACE_WCTOMB.
57853         * modules/wctomb: New file.
57854         * tests/test-stdlib-c++.cc: Test signature of wctomb.
57855         * doc/posix-functions/wctomb.texi: Mention the new module.
57856         * modules/wctob (Depends-on): Add wctomb.
57858 2011-02-22  Bruno Haible  <bruno@clisp.org>
57860         New module 'mbtowc'.
57861         * lib/stdlib.in.h (mbtowc): New declaration.
57862         * lib/mbtowc.c: New file.
57863         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
57864         * m4/mbtowc.m4: New file.
57865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
57866         REPLACE_MBTOWC.
57867         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
57868         REPLACE_MBTOWC.
57869         * modules/mbtowc: New file.
57870         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
57871         * doc/posix-functions/mbtowc.texi: Mention the new module.
57872         * modules/btowc (Depends-on): Add mbtowc.
57874 2011-02-22  Bruno Haible  <bruno@clisp.org>
57876         wcrtomb: Add more tests for native Windows platforms.
57877         * tests/test-wcrtomb-w32-1.sh: New file.
57878         * tests/test-wcrtomb-w32-2.sh: New file.
57879         * tests/test-wcrtomb-w32-3.sh: New file.
57880         * tests/test-wcrtomb-w32-4.sh: New file.
57881         * tests/test-wcrtomb-w32-5.sh: New file.
57882         * tests/test-wcrtomb-w32.c: New file.
57883         * modules/wcrtomb-tests (Files): Add them.
57884         (Makefile.am): Arrange to run these tests.
57885         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
57886         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
57888 2011-02-20  Bruno Haible  <bruno@clisp.org>
57890         wcrtomb: Enhance test.
57891         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
57893 2011-02-20  Bruno Haible  <bruno@clisp.org>
57895         mbrtowc: Tiny optimization.
57896         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
57898 2011-02-20  Jim Meyering  <meyering@redhat.com>
57900         test-exclude.c: remove unmatched #endif
57901         * tests/test-exclude.c: Remove stray #endif, left over from
57902         the change of a week ago.
57904 2011-02-19  Jim Meyering  <meyering@redhat.com>
57906         git-version-gen: skip "-dirty" check when appropriate
57907         * build-aux/git-version-gen: Don't run any git commands when the
57908         version string comes from .tarball-version.  Prior to this, we
57909         would run git update-index --refresh even from a just-unpacked
57910         tarball directory, and that could affect a .git/ directory in a
57911         parent of the build directory.  Reported by Mike Frysinger.
57913 2011-02-19  Bruno Haible  <bruno@clisp.org>
57915         unictype/property-byname: Reduce the size of the 'data' segment.
57916         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
57918 2011-02-19  Bruno Haible  <bruno@clisp.org>
57920         unictype/scripts: Reduce the size of the 'data' segment.
57921         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
57922         '%pic'.
57923         * lib/unictype/scripts_byname.gperf: Regenerated.
57925 2011-02-19  Bruno Haible  <bruno@clisp.org>
57927         stdint: Update documentation.
57928         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
57930 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
57932         stdint: omit redundant check for wchar.h
57933         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
57934         always tests whether wchar.h exists, so remove the now-redundant test.
57936 2011-02-18  Bruno Haible  <bruno@clisp.org>
57938         stdint: Cut dependency to module 'wchar'.
57939         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
57940         include the necessary prerequisites.
57941         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
57942         * modules/stdint (Depends-on): Remove wchar.
57943         (Makefile.am): Substitute HAVE_WCHAR_H.
57944         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
57946 2011-02-18  Eric Blake  <eblake@redhat.com>
57948         longlong: skip, rather than fail, on cross-compilation
57949         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
57950         when cross-compiling; regression from 2011-02-16.
57952 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
57954         * NEWS: Mention 2011-02-08 change to stdlib.
57956 2011-02-17  Bruno Haible  <bruno@clisp.org>
57958         getloadavg: Add comments about platforms.
57959         * m4/getloadavg.m4: Add comment.
57960         * lib/getloadavg.c: Likewise.
57962 2011-02-17  Bruno Haible  <bruno@clisp.org>
57964         getloadavg: Fix link error on Solaris 2.6.
57965         * modules/getloadavg (Link): New section.
57966         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
57967         linking test-getloadavg.
57968         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
57969         getloadavg.
57971 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
57973         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
57974         It was 'int', but this doesn't match the IRIX 6.5 manual.
57975         Suggested by Bruno Haible in
57976         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
57978 2011-02-17  Bruno Haible  <bruno@clisp.org>
57980         havelib: Fix comments.
57981         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
57982         change.
57984 2011-02-17  Bruno Haible  <bruno@clisp.org>
57986         havelib: Update config.rpath.
57987         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
57989 2011-02-17  Bruno Haible  <bruno@clisp.org>
57991         getloadavg test: Add some plausibility checks.
57992         * tests/test-getloadavg.c (check_avg): Print a warning when the value
57993         is improbable.
57995 2011-02-16  Eric Blake  <eblake@redhat.com>
57997         maintainer-makefile: make syntax-check a no-op from tarballs
57998         * top/maint.mk (no-vc-detected): New rule.
57999         (local-checks-available): Use it to avoid hanging if someone tries
58000         'make syntax-check' from a tarball.  Also append to any non-syntax
58001         checks already defined in cfg.mk.
58003 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
58005         longlong: tune, particularly for common case of c99
58007         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
58008         or running anything if c99, or if unsigned long long int does not
58009         work.  In either case, we know the answer without further tests.
58010         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
58011         it at most once, and use its results for both long long int and
58012         unsigned long long int.  This is more likely to be efficient in
58013         the common case where the program wants to check for both long
58014         long int and unsigned long long int.
58015         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
58016         since the answer is already known.
58018 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
58020         getloadavg: set errno
58021         * lib/getloadavg.c: Set errno when returning -1.  If no other
58022         error number looks appropriate, set it to ENOSYS if the getloadavg
58023         looks like it can't possibly ever work, ENOTSUP otherwise.
58024         Suggested by Bruno Haible in
58025         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
58027         getloadavg: trim unused parts and speed up 'configure'
58028         * NEWS: Document this.
58029         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
58030         always compiled if getloadavg is absent.
58031         Move test code to ...
58032         * tests/test-getloadavg.c: New file, containing previous
58033         contents of test from lib/getloadavg.c.  It also contains
58034         suggestions by Bruno Haible in
58035         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
58036         * modules/getloadavg-tests: New file.
58037         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
58038         Do tests in the same order as they're needed for getloadavg.c.
58039         Omit setgid-related tests that generate symbols KMEM_GROUP,
58040         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
58041         Do only the tests that are needed to see whether the system has
58042         getloadavg, moving the other tests into ...
58043         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
58044         NLIST_NAME_UNION; nobody should be using it.  Do not define
58045         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
58046         relevant, as the user of this module shouldn't care how getloadavg
58047         is implemented.
58049         getloadavg: omit unused var
58050         * lib/getloadavg.c (getloadavg): Omit unused local variable.
58052 2011-02-15  Jim Meyering  <meyering@redhat.com>
58054         doc: update users.txt
58055         * users.txt: Update iwhd's URL.
58057 2011-02-13  Bruno Haible  <bruno@clisp.org>
58059         Consistent macro naming for macros that use GCC __attribute__.
58060         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
58061         _ATTRIBUTE_NONNULL_.
58062         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
58063         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
58064         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
58065         ATTRIBUTE_DEPRECATED.
58066         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
58067         ATTRIBUTE_NORETURN.
58068         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58069         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58070         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58071         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58072         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
58073         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
58074         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
58075         ATTRIBUTE_SENTINEL.
58076         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
58077         ATTRIBUTE_RETURN_CHECK.
58078         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
58079         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
58080         ATTRIBUTE_NORETURN.
58081         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
58082         Reported by Paul Eggert.
58084 2011-02-13  Bruno Haible  <bruno@clisp.org>
58086         Don't interfere with a program's definition of __attribute__.
58087         * lib/argp.h (__attribute__): Remove definition.
58088         (_GL_ATTRIBUTE_FORMAT): New macro.
58089         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
58090         * lib/argp-fmtstream.h (__attribute__): Remove definition.
58091         (_GL_ATTRIBUTE_FORMAT): New macro.
58092         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
58093         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
58094         GCC 3 or newer.
58095         * lib/error.h (__attribute__): Remove definition.
58096         (_GL_ATTRIBUTE_FORMAT): New macro.
58097         (error, error_at_line): Use it.
58098         * lib/hash.h (__attribute__): Remove definition.
58099         (ATTRIBUTE_WUR): Update definition. Define always.
58100         * lib/openat.h (__attribute__): Remove definition.
58101         (ATTRIBUTE_NORETURN): Update definition. Define always.
58102         * lib/sigpipe-die.h (__attribute__): Remove definition.
58103         (ATTRIBUTE_NORETURN): Update definition. Define always.
58104         * lib/vasnprintf.h (__attribute__): Remove definition.
58105         (_GL_ATTRIBUTE_FORMAT): New macro.
58106         (asnprintf, vasnprintf): Use it.
58107         * lib/xalloc.h (__attribute__): Remove definition.
58108         (ATTRIBUTE_NORETURN): Update definition. Define always.
58109         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
58110         * lib/xmemdup0.h (__attribute__): Remove definition.
58111         (ATTRIBUTE_NORETURN): Update definition. Define always.
58112         * lib/xprintf.h (__attribute__): Remove definition.
58113         (_GL_ATTRIBUTE_FORMAT): New macro.
58114         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
58115         * lib/xstrtol.h (__attribute__): Remove definition.
58116         (ATTRIBUTE_NORETURN): Update definition. Define always.
58117         * lib/xvasprintf.h (__attribute__): Remove definition.
58118         (_GL_ATTRIBUTE_FORMAT): New macro.
58119         (xasprintf, xvasprintf): Use it.
58120         * tests/test-argmatch.c (__attribute__): Remove definition.
58121         (ATTRIBUTE_NORETURN): Update definition. Define always.
58122         * tests/test-exclude.c (__attribute__): Remove definition.
58123         (ATTRIBUTE_NORETURN): Update definition. Define always.
58124         Reported by Paul Eggert.
58126 2011-02-13  Bruno Haible  <bruno@clisp.org>
58128         mbrtowc: Add more tests for native Windows platforms.
58129         * tests/test-mbrtowc-w32-1.sh: New file.
58130         * tests/test-mbrtowc-w32-2.sh: New file.
58131         * tests/test-mbrtowc-w32-3.sh: New file.
58132         * tests/test-mbrtowc-w32-4.sh: New file.
58133         * tests/test-mbrtowc-w32-5.sh: New file.
58134         * tests/test-mbrtowc-w32.c: New file.
58135         * modules/mbrtowc-tests (Files): Add them.
58136         (Makefile.am): Arrange to run these tests.
58137         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
58138         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
58140 2011-02-13  Bruno Haible  <bruno@clisp.org>
58142         mbrtowc: Work around native Windows bug.
58143         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
58144         guess when no suitable locale for testing was found.
58145         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
58147 2011-02-13  Bruno Haible  <bruno@clisp.org>
58149         mbsinit: Work around mingw bug.
58150         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
58151         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
58152         Windows.
58153         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
58155 2011-02-13  Bruno Haible  <bruno@clisp.org>
58157         mbsinit: Don't crash for a NULL argument.
58158         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
58159         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
58161 2011-02-13  Bruno Haible  <bruno@clisp.org>
58163         Don't interfere with a program's definition of __attribute__.
58164         * lib/stdio.in.h (__attribute__): Remove definition.
58165         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
58166         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
58167         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
58168         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
58169         * lib/string.in.h (__attribute__): Remove definition.
58170         Reported by Paul Eggert.
58172 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58174         stdlib: don't get in the way of non-GCC __attribute__
58175         See thread starting at
58176         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
58177         Revert previous stdlib change, installing the following instead:
58178         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
58179         to get in the way of a non-GCC compiler that supports __attribute__.
58180         (_GL_ATTRIBUTE_RETURN): New macro.
58181         (_Exit): Use it instead of __attribute__.
58183 2011-02-12  Bruno Haible  <bruno@clisp.org>
58185         quotearg test: Avoid test failure on mingw.
58186         * tests/test-quotearg.sh: Convert the locale identifier from native
58187         Windows syntax to Unix syntax.
58189 2011-02-12  Bruno Haible  <bruno@clisp.org>
58191         setlocale: Prefer gnulib's override over libintl's override.
58192         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
58193         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
58194         GNULIB_defined_setlocale is set.
58196 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58198         stdlib: support non-GCC __attribute__
58200         Fix a serious and tricky problem encountered when attempting to
58201         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
58202         5.5, but it crashed due to memory corruption on Solaris 10 with
58203         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
58204         bits that are otherwise zero.  This tagging is optional inside
58205         Emacs but is preferred and is used when __attribute__ ((__aligned
58206         (8))) works, as it does with both recent-enough GCC and with Sun C
58207         5.11.  However, Sun C 5.11 is not GCC and does not #define
58208         __GNUC__ and __GNUC_MINOR__.
58210         When I added the getloadavg module to Emacs, it brought in
58211         stdlib.in.h, which contained this fragment:
58213            #ifndef __attribute__
58214            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
58215            #  define __attribute__(Spec)   /* empty */
58216            # endif
58217            #endif
58219         When files that include <stdlib.h> were compiled with Sun C 5.11,
58220         the above code disabled __attribute__ ((__aligned (8))), which
58221         caused variables to not be properly aligned, which eventually led
58222         to the pointer corruption mentioned above.  (This was a bit hard
58223         to diagnose, unfortunately.)
58225         Several "#define __attribute__(X) /* empty */" code snippets need
58226         to be eradicated from Gnulib to work with non-GCC compilers that
58227         support __attribute__.  The Autoconf way to do this is to test for
58228         each kind of attribute that we want support for, and selectively
58229         enable that in source code.
58231         Fix this problem just for stdlib.h, by adding a test for the
58232         __noreturn__ attribute, and change stdlib.in.h to use that test
58233         when needed.  This technique can be easily generalized to the
58234         other *.in.h files and attributes, and a similar technique can be
58235         used for *.h and *.c files.  This patch is enough to solve the
58236         problem for Emacs + getloadavg, and I thought I'd publish it for
58237         feedback before undertaking further, similar fixes in other
58238         modules.
58240         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
58241         because it's not needed for stdlib.h.  It merely substitutes the
58242         value directly into stdlib.h.  We may well need to #define it, or
58243         similar symbols, for other modules, but it's nice to also have an
58244         option to not #define it for applications like Emacs that do not
58245         need it.
58247         * lib/stdlib.in.h (__attribute__): Do not #define.
58248         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
58249         be defined only if the _Exit module is also used.
58250         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
58251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
58252         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
58253         platforms.
58254         * modules/_Exit (Files): Add m4/attribute.m4.
58255         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
58256         * m4/attribute.m4: New file.
58258 2011-02-12  Bruno Haible  <bruno@clisp.org>
58260         wcsrtombs: Work around bug on native Windows.
58261         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
58262         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
58263         instead of len.
58264         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
58266 2011-02-12  Bruno Haible  <bruno@clisp.org>
58268         mbsrtowcs: Work around bug on native Windows.
58269         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
58270         against mingw bug.
58271         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
58273 2011-02-12  Bruno Haible  <bruno@clisp.org>
58275         Avoid setlocale bugs in tests.
58276         * modules/btowc (Dependencies): Add setlocale.
58277         * modules/c-strcase (Dependencies): Likewise.
58278         * modules/mbmemcasecmp (Dependencies): Likewise.
58279         * modules/mbmemcasecoll (Dependencies): Likewise.
58280         * modules/mbrtowc (Dependencies): Likewise.
58281         * modules/mbscasecmp (Dependencies): Likewise.
58282         * modules/mbscasestr (Dependencies): Likewise.
58283         * modules/mbschr (Dependencies): Likewise.
58284         * modules/mbscspn (Dependencies): Likewise.
58285         * modules/mbsinit (Dependencies): Likewise.
58286         * modules/mbsncasecmp (Dependencies): Likewise.
58287         * modules/mbsnrtowcs (Dependencies): Likewise.
58288         * modules/mbspbrk (Dependencies): Likewise.
58289         * modules/mbspcasecmp (Dependencies): Likewise.
58290         * modules/mbsrchr (Dependencies): Likewise.
58291         * modules/mbsrtowcs (Dependencies): Likewise.
58292         * modules/mbsspn (Dependencies): Likewise.
58293         * modules/mbsstr (Dependencies): Likewise.
58294         * modules/nl_langinfo (Dependencies): Likewise.
58295         * modules/quotearg (Dependencies): Likewise.
58296         * modules/unicase/locale-language (Dependencies): Likewise.
58297         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
58298         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
58299         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
58300         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
58301         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
58302         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
58303         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
58304         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
58305         * modules/vasnprintf-posix (Dependencies): Likewise.
58306         * modules/wcrtomb (Dependencies): Likewise.
58307         * modules/wcsnrtombs (Dependencies): Likewise.
58308         * modules/wcsrtombs (Dependencies): Likewise.
58310 2011-02-12  Bruno Haible  <bruno@clisp.org>
58312         setlocale: Workaround native Windows bug.
58313         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
58314         succeeds but sets LC_CTYPE to "C", report a failure.
58315         * tests/test-setlocale2.sh: New file.
58316         * tests/test-setlocale2.c: New file.
58317         * modules/setlocale-tests (Files): Add the new files.
58318         (Makefile.am): Enable test-setlocale2.sh test.
58319         * doc/posix-functions/setlocale.texi: Mention workaround.
58321 2011-02-11  Bruno Haible  <bruno@clisp.org>
58323         Tests for module 'setlocale'.
58324         * modules/setlocale-tests: New file.
58325         * tests/test-setlocale1.sh: New file.
58326         * tests/test-setlocale1.c: New file.
58328         New module 'setlocale'.
58329         * lib/locale.in.h (setlocale): New declaration.
58330         * lib/setlocale.c: New file, based on
58331         gettext/gettext-runtime/intl/setlocale.c.
58332         * m4/setlocale.m4: New file.
58333         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
58334         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
58335         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
58336         REPLACE_SETLOCALE.
58337         * modules/setlocale: New file.
58338         * tests/test-locale-c++.cc: Test the declaration of setlocale.
58339         * doc/posix-functions/setlocale.texi: Mention the new module.
58341 2011-02-11  Bruno Haible  <bruno@clisp.org>
58343         Prepare for locale dependent tests on mingw.
58344         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
58345         because it has the wrong locale encoding.
58346         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
58347         French_France.1252 instead of "fr".
58348         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
58349         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
58350         because it has the wrong locale encoding.
58351         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
58352         native Windows, try Turkish_Turkey.65001.
58353         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
58354         Chinese_China.54936.
58356         Prepare for locale dependent tests on mingw.
58357         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
58358         differently.
58359         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
58360         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
58361         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58362         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58364 2011-02-11  Eric Blake  <eblake@redhat.com>
58366         strptime: avoid compiler warnings
58367         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
58368         compiler warnings about dead code.
58369         Reported by Daniel P. Berrange.
58371 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
58373         doc: update users.txt
58374         * users.txt: Add rcs.
58376 2011-02-10  John W. Eaton  <jwe@gnu.org>
58378         doc: update users.txt
58379         * users.txt: Add octave.
58381 2011-02-10  Jim Meyering  <meyering@redhat.com>
58383         doc: update users.txt
58384         * users.txt: Add iwhd.
58386 2011-02-09  Bruno Haible  <bruno@clisp.org>
58388         gnulib-tool: Make copyright notice adjustment more robust.
58389         * gnulib-tool (func_import): In sed_transform_main_lib_file,
58390         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
58391         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
58392         License".
58393         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
58395 2011-02-06  Bruno Haible  <bruno@clisp.org>
58397         New module 'towctrans'.
58398         * modules/towctrans: New file.
58399         * lib/wctype.in.h (towctrans): New declaration.
58400         * lib/towctrans.c: New file.
58401         * lib/towctrans-impl.h: New file.
58402         * m4/towctrans.m4: New file.
58403         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
58404         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
58405         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
58406         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
58407         * doc/posix-functions/towctrans.texi: Mention the new module.
58409 2011-02-06  Bruno Haible  <bruno@clisp.org>
58411         New module 'wctrans'.
58412         * modules/wctrans: New file.
58413         * lib/wctype.in.h (wctrans): New declaration.
58414         * lib/wctrans.c: New file.
58415         * lib/wctrans-impl.h: New file.
58416         * m4/wctrans.m4: New file.
58417         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
58418         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
58419         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
58420         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
58421         * doc/posix-functions/wctrans.texi: Mention the new module.
58423 2011-02-06  Bruno Haible  <bruno@clisp.org>
58425         New module 'iswctype'.
58426         * modules/iswctype: New file.
58427         * lib/wctype.in.h (iswctype): New declaration.
58428         * lib/iswctype.c: New file.
58429         * lib/iswctype-impl.h: New file.
58430         * m4/iswctype.m4: New file.
58431         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
58432         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
58433         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
58434         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
58435         * doc/posix-functions/iswctype.texi: Mention the new module and the
58436         HP-UX 11.00 problem.
58438 2011-02-06  Bruno Haible  <bruno@clisp.org>
58440         New module 'wctype'.
58441         * modules/wctype: Change to represent the wctype() substitute.
58442         * lib/wctype.in.h (wctype): New declaration.
58443         * lib/wctype.c: New file.
58444         * lib/wctype-impl.h: New file.
58445         * m4/wctype.m4: New file.
58446         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
58447         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
58448         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
58449         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
58450         * doc/posix-functions/wctype.texi: Mention the new module and the
58451         HP-UX 11.00 problem.
58453 2011-02-06  Bruno Haible  <bruno@clisp.org>
58455         wctype-h: Ensure wctype_t and wctrans_t are defined.
58456         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
58457         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58458         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58459         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
58460         HAVE_WCTRANS_T.
58461         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
58463 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
58465         flock: fix license typo
58467         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
58468         omitted.
58470 2011-02-08  Bruno Haible  <bruno@clisp.org>
58472         Split large sed scripts, for HP-UX sed.
58473         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
58474         to avoid HP-UX limit of 99 commands, in the near future.
58475         * modules/stdlib (Makefile.am): Likewise.
58476         * modules/unistd (Makefile.am): Likewise.
58477         * modules/wchar (Makefile.am): Likewise.
58478         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58479         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
58480         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
58482 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58483             Bruno Haible  <bruno@clisp.org>
58485         stdlib: improve random_r modularization
58486         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
58487         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
58488         you also need the random_r module to get this material right.
58489         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
58490         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
58491         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
58493 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58495         stdlib: don't depend on stdint
58496         * lib/stdlib.in.h: Don't include <stdint.h> merely because
58497         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
58498         be independent of whether stdint.h is needed.
58499         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
58500         here, instead of ...
58501         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
58502         struct random_data should be using the random_r module, not just
58503         the stdlib module (which wouldn't make sense: what package needs
58504         just struct random_data without also needing random_r?).
58505         * modules/stdlib (Depends-on): Remove stdint.
58507         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
58508         See the thread rooted at
58509         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
58510         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
58511         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
58512         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
58513         __VMS)); previously it was always included (via fcntl--.h).
58514         (getloadavg): Do not use c_strtod.  Instead, approximate it by
58515         hand; this is good enough for load averages.  Also, do not use
58516         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
58517         flags directly if available and don't bother otherwise.  (Packages
58518         that need the extra reliability should use the modules that define
58519         these flags on older platforms that lack them.)
58520         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
58521         fcntl-safer.
58523 2011-02-08  Jim Meyering  <meyering@redhat.com>
58525         di-set.h, ino-map.h: add multiple-inclusion guard
58526         Technically, the guard is required only for ino-map.h, due to its
58527         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
58528         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
58529         * lib/ino-map.h: Likewise.
58531 2011-02-06  Bruno Haible  <bruno@clisp.org>
58533         iswblank: Ensure declaration on glibc systems.
58534         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
58535         * modules/iswblank (Dependencies): Add 'extensions'.
58536         * doc/posix-functions/iswblank.texi: Document the glibc problem.
58538 2011-02-06  Bruno Haible  <bruno@clisp.org>
58540         New module 'iswblank'.
58541         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
58542         * modules/iswblank: New file.
58543         * modules/wctype-h (Files): Remove lib/iswblank.c.
58544         (Makefile.am): Substitute GNULIB_ISWBLANK.
58545         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
58546         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
58547         (gl_WCTYPE_H_DEFAULTS): New macro.
58548         (gl_WCTYPE_H): Require it. Remove iswblank related code.
58549         * modules/iswblank-tests: New file.
58550         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
58551         * tests/test-wctype-h.c (main): Remove iswblank tests.
58552         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
58553         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
58554         of 'wctype-h'.
58555         * NEWS: Mention the change.
58556         * modules/mbchar (Depends-on): Add iswblank.
58558 2011-02-08  Bruno Haible  <bruno@clisp.org>
58560         di-set tests: Refactor.
58561         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
58562         unnecessary includes.
58563         (ASSERT): Remove macro.
58564         (main): Make C90 compliant by avoiding variable declaration after
58565         statement.
58566         * modules/di-set-tests (Files): Add tests/macros.h.
58568 2011-02-08  Bruno Haible  <bruno@clisp.org>
58570         ino-map tests: Refactor.
58571         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
58572         unnecessary includes.
58573         (ASSERT): Remove macro.
58574         (main): Make C90 compliant by avoiding variable declaration after
58575         statement.
58576         * modules/ino-map-tests (Files): Add tests/macros.h.
58578 2011-02-08  Jim Meyering  <meyering@redhat.com>
58580         di-set: add "const" to a cast
58581         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
58582         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
58584 2011-02-06  Bruno Haible  <bruno@clisp.org>
58586         Rename module 'wctype' to 'wctype-h'.
58587         * modules/wctype-h: Renamed from modules/wctype.
58588         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
58589         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
58590         (Files, Depends-on, Makefile.am): Update.
58591         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
58592         (Files, Makefile.am): Update.
58593         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
58594         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
58595         * doc/posix-headers/wctype.texi: Update.
58596         * doc/posix-functions/iswalnum.texi: Update.
58597         * doc/posix-functions/iswalpha.texi: Update.
58598         * doc/posix-functions/iswblank.texi: Update.
58599         * doc/posix-functions/iswcntrl.texi: Update.
58600         * doc/posix-functions/iswdigit.texi: Update.
58601         * doc/posix-functions/iswgraph.texi: Update.
58602         * doc/posix-functions/iswlower.texi: Update.
58603         * doc/posix-functions/iswprint.texi: Update.
58604         * doc/posix-functions/iswpunct.texi: Update.
58605         * doc/posix-functions/iswspace.texi: Update.
58606         * doc/posix-functions/iswupper.texi: Update.
58607         * doc/posix-functions/iswxdigit.texi: Update.
58608         * doc/posix-functions/towlower.texi: Update.
58609         * doc/posix-functions/towupper.texi: Update.
58610         * NEWS: Mention the change.
58611         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
58612         * modules/mbchar (Dependencies): Likewise.
58613         * modules/mbswidth (Dependencies): Likewise.
58614         * modules/quotearg (Dependencies): Likewise.
58615         * modules/regex (Dependencies): Likewise.
58616         * modules/wcscasecmp (Dependencies): Likewise.
58617         * modules/wcsncasecmp (Dependencies): Likewise.
58618         * modules/wcwidth (Dependencies): Likewise.
58620 2011-02-06  Bruno Haible  <bruno@clisp.org>
58622         New module 'wcswidth'.
58623         * modules/wcswidth: New file.
58624         * lib/wchar.in.h (wcswidth): New declaration.
58625         * lib/wcswidth.c: New file.
58626         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
58627         * m4/wcswidth.m4: New file.
58628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
58629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
58630         REPLACE_WCSWIDTH.
58631         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
58632         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
58633         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
58634         * doc/posix-functions/wcswidth.texi: Mention the new module.
58636 2011-02-06  Bruno Haible  <bruno@clisp.org>
58638         New module 'wcstok'.
58639         * modules/wcstok: New file.
58640         * lib/wchar.in.h (wcstok): New declaration.
58641         * lib/wcstok.c: New file.
58642         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
58643         * m4/wcstok.m4: New file.
58644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
58645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
58646         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
58647         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
58648         * doc/posix-functions/wcstok.texi: Mention the new module.
58650 2011-02-06  Bruno Haible  <bruno@clisp.org>
58652         New module 'wcsstr'.
58653         * modules/wcsstr: New file.
58654         * lib/wchar.in.h (wcsstr): New declaration.
58655         * lib/wcsstr.c: New file.
58656         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
58657         * m4/wcsstr.m4: New file.
58658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
58659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
58660         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
58661         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
58662         * doc/posix-functions/wcsstr.texi: Mention the new module.
58664 2011-02-06  Bruno Haible  <bruno@clisp.org>
58666         New module 'wcspbrk'.
58667         * modules/wcspbrk: New file.
58668         * lib/wchar.in.h (wcspbrk): New declaration.
58669         * lib/wcspbrk.c: New file.
58670         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
58671         * m4/wcspbrk.m4: New file.
58672         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
58673         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
58674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
58675         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
58676         * doc/posix-functions/wcspbrk.texi: Mention the new module.
58678 2011-02-06  Bruno Haible  <bruno@clisp.org>
58680         New module 'wcsspn'.
58681         * modules/wcsspn: New file.
58682         * lib/wchar.in.h (wcsspn): New declaration.
58683         * lib/wcsspn.c: New file.
58684         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
58685         * m4/wcsspn.m4: New file.
58686         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
58687         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
58688         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
58689         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
58690         * doc/posix-functions/wcsspn.texi: Mention the new module.
58692 2011-02-06  Bruno Haible  <bruno@clisp.org>
58694         New module 'wcscspn'.
58695         * modules/wcscspn: New file.
58696         * lib/wchar.in.h (wcscspn): New declaration.
58697         * lib/wcscspn.c: New file.
58698         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
58699         * m4/wcscspn.m4: New file.
58700         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
58701         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
58702         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
58703         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
58704         * doc/posix-functions/wcscspn.texi: Mention the new module.
58706 2011-02-06  Bruno Haible  <bruno@clisp.org>
58708         New module 'wcsrchr'.
58709         * modules/wcsrchr: New file.
58710         * lib/wchar.in.h (wcsrchr): New declaration.
58711         * lib/wcsrchr.c: New file.
58712         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
58713         * m4/wcsrchr.m4: New file.
58714         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
58715         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
58716         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
58717         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
58718         * doc/posix-functions/wcsrchr.texi: Mention the new module.
58720 2011-02-06  Bruno Haible  <bruno@clisp.org>
58722         New module 'wcschr'.
58723         * modules/wcschr: New file.
58724         * lib/wchar.in.h (wcschr): New declaration.
58725         * lib/wcschr.c: New file.
58726         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
58727         * m4/wcschr.m4: New file.
58728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
58729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
58730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
58731         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
58732         * doc/posix-functions/wcschr.texi: Mention the new module.
58734 2011-02-06  Bruno Haible  <bruno@clisp.org>
58736         New module 'wcsdup'.
58737         * modules/wcsdup: New file.
58738         * lib/wchar.in.h (wcsdup): New declaration.
58739         * lib/wcsdup.c: New file.
58740         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
58741         * m4/wcsdup.m4: New file.
58742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
58743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
58744         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
58745         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
58746         * doc/posix-functions/wcsdup.texi: Mention the new module.
58748 2011-02-06  Bruno Haible  <bruno@clisp.org>
58750         New module 'wcsxfrm'.
58751         * modules/wcsxfrm: New file.
58752         * lib/wchar.in.h (wcsxfrm): New declaration.
58753         * lib/wcsxfrm.c: New file.
58754         * lib/wcsxfrm-impl.h: New file.
58755         * m4/wcsxfrm.m4: New file.
58756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
58757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
58758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
58759         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
58760         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
58762 2011-02-06  Bruno Haible  <bruno@clisp.org>
58764         New module 'wcscoll'.
58765         * modules/wcscoll: New file.
58766         * lib/wchar.in.h (wcscoll): New declaration.
58767         * lib/wcscoll.c: New file.
58768         * lib/wcscoll-impl.h: New file.
58769         * m4/wcscoll.m4: New file.
58770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
58771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
58772         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
58773         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
58774         * doc/posix-functions/wcscoll.texi: Mention the new module.
58776 2011-02-06  Bruno Haible  <bruno@clisp.org>
58778         New module 'wcsncasecmp'.
58779         * modules/wcsncasecmp: New file.
58780         * lib/wchar.in.h (wcsncasecmp): New declaration.
58781         * lib/wcsncasecmp.c: New file.
58782         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
58783         * m4/wcsncasecmp.m4: New file.
58784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
58785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
58786         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
58787         HAVE_WCSNCASECMP.
58788         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
58789         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
58791 2011-02-06  Bruno Haible  <bruno@clisp.org>
58793         New module 'wcscasecmp'.
58794         * modules/wcscasecmp: New file.
58795         * lib/wchar.in.h (wcscasecmp): New declaration.
58796         * lib/wcscasecmp.c: New file.
58797         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
58798         * m4/wcscasecmp.m4: New file.
58799         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
58800         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
58801         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
58802         HAVE_WCSCASECMP.
58803         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
58804         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
58806 2011-02-05  Bruno Haible  <bruno@clisp.org>
58808         New module 'wcsncmp'.
58809         * modules/wcsncmp: New file.
58810         * lib/wchar.in.h (wcsncmp): New declaration.
58811         * lib/wcsncmp.c: New file.
58812         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
58813         * m4/wcsncmp.m4: New file.
58814         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
58815         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
58816         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
58817         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
58818         * doc/posix-functions/wcsncmp.texi: Mention the new module.
58820 2011-02-05  Bruno Haible  <bruno@clisp.org>
58822         New module 'wcscmp'.
58823         * modules/wcscmp: New file.
58824         * lib/wchar.in.h (wcscmp): New declaration.
58825         * lib/wcscmp.c: New file.
58826         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
58827         * m4/wcscmp.m4: New file.
58828         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
58829         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
58830         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
58831         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
58832         * doc/posix-functions/wcscmp.texi: Mention the new module.
58834 2011-02-05  Bruno Haible  <bruno@clisp.org>
58836         New module 'wcsncat'.
58837         * modules/wcsncat: New file.
58838         * lib/wchar.in.h (wcsncat): New declaration.
58839         * lib/wcsncat.c: New file.
58840         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
58841         * m4/wcsncat.m4: New file.
58842         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
58843         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
58844         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
58845         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
58846         * doc/posix-functions/wcsncat.texi: Mention the new module.
58848 2011-02-05  Bruno Haible  <bruno@clisp.org>
58850         New module 'wcscat'.
58851         * modules/wcscat: New file.
58852         * lib/wchar.in.h (wcscat): New declaration.
58853         * lib/wcscat.c: New file.
58854         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
58855         * m4/wcscat.m4: New file.
58856         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
58857         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
58858         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
58859         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
58860         * doc/posix-functions/wcscat.texi: Mention the new module.
58862 2011-02-05  Bruno Haible  <bruno@clisp.org>
58864         New module 'wcpncpy'.
58865         * modules/wcpncpy: New file.
58866         * lib/wchar.in.h (wcpncpy): New declaration.
58867         * lib/wcpncpy.c: New file.
58868         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
58869         * m4/wcpncpy.m4: New file.
58870         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
58871         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
58872         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
58873         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
58874         * doc/posix-functions/wcpncpy.texi: Mention the new module.
58876 2011-02-05  Bruno Haible  <bruno@clisp.org>
58878         New module 'wcsncpy'.
58879         * modules/wcsncpy: New file.
58880         * lib/wchar.in.h (wcsncpy): New declaration.
58881         * lib/wcsncpy.c: New file.
58882         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
58883         * m4/wcsncpy.m4: New file.
58884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
58885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
58886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
58887         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
58888         * doc/posix-functions/wcsncpy.texi: Mention the new module.
58890 2011-02-05  Bruno Haible  <bruno@clisp.org>
58892         New module 'wcpcpy'.
58893         * modules/wcpcpy: New file.
58894         * lib/wchar.in.h (wcpcpy): New declaration.
58895         * lib/wcpcpy.c: New file.
58896         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
58897         * m4/wcpcpy.m4: New file.
58898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
58899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
58900         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
58901         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
58902         * doc/posix-functions/wcpcpy.texi: Mention the new module.
58904 2011-02-05  Bruno Haible  <bruno@clisp.org>
58906         New module 'wcscpy'.
58907         * modules/wcscpy: New file.
58908         * lib/wchar.in.h (wcscpy): New declaration.
58909         * lib/wcscpy.c: New file.
58910         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
58911         * m4/wcscpy.m4: New file.
58912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
58913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
58914         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
58915         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
58916         * doc/posix-functions/wcscpy.texi: Mention the new module.
58918 2011-02-05  Bruno Haible  <bruno@clisp.org>
58920         New module 'wcsnlen'.
58921         * modules/wcsnlen: New file.
58922         * lib/wchar.in.h (wcsnlen): New declaration.
58923         * lib/wcsnlen.c: New file.
58924         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
58925         * m4/wcsnlen.m4: New file.
58926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
58927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
58928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
58929         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
58930         * doc/posix-functions/wcsnlen.texi: Mention the new module.
58932 2011-02-05  Bruno Haible  <bruno@clisp.org>
58934         New module 'wcslen'.
58935         * modules/wcslen: New file.
58936         * lib/wchar.in.h (wcslen): New declaration.
58937         * lib/wcslen.c: New file.
58938         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
58939         * m4/wcslen.m4: New file.
58940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
58941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
58942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
58943         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
58944         * doc/posix-functions/wcslen.texi: Mention the new module.
58946 2011-02-05  Bruno Haible  <bruno@clisp.org>
58948         New module 'wmemset'.
58949         * modules/wmemset: New file.
58950         * lib/wchar.in.h (wmemset): New declaration.
58951         * lib/wmemset.c: New file.
58952         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
58953         * m4/wmemset.m4: New file.
58954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
58955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
58956         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
58957         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
58958         * doc/posix-functions/wmemset.texi: Mention the new module.
58960 2011-02-05  Bruno Haible  <bruno@clisp.org>
58962         New module 'wmemmove'.
58963         * modules/wmemmove: New file.
58964         * lib/wchar.in.h (wmemmove): New declaration.
58965         * lib/wmemmove.c: New file.
58966         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
58967         * m4/wmemmove.m4: New file.
58968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
58969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
58970         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
58971         HAVE_WMEMMOVE.
58972         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
58973         * doc/posix-functions/wmemmove.texi: Mention the new module.
58975 2011-02-05  Bruno Haible  <bruno@clisp.org>
58977         New module 'wmemcpy'.
58978         * modules/wmemcpy: New file.
58979         * lib/wchar.in.h (wmemcpy): New declaration.
58980         * lib/wmemcpy.c: New file.
58981         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
58982         * m4/wmemcpy.m4: New file.
58983         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
58984         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
58985         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
58986         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
58987         * doc/posix-functions/wmemcpy.texi: Mention the new module.
58989 2011-02-05  Bruno Haible  <bruno@clisp.org>
58991         New module 'wmemcmp'.
58992         * modules/wmemcmp: New file.
58993         * lib/wchar.in.h (wmemcmp): New declaration.
58994         * lib/wmemcmp.c: New file.
58995         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
58996         * m4/wmemcmp.m4: New file.
58997         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
58998         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
58999         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
59000         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
59001         * doc/posix-functions/wmemcmp.texi: Mention the new module.
59003 2011-02-07  Jim Meyering  <meyering@redhat.com>
59005         di-set, ino-map: new modules, from coreutils
59006         * lib/di-set.c: New file.
59007         * lib/di-set.h: Likewise.
59008         * lib/ino-map.c: Likewise.
59009         * lib/ino-map.h: Likewise.
59010         * modules/di-set: Likewise.
59011         * modules/di-set-tests: Likewise.
59012         * modules/ino-map: Likewise.
59013         * modules/ino-map-tests: Likewise.
59014         * tests/test-di-set.c: Likewise.
59015         * tests/test-ino-map.c: Likewise.
59017 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
59019         getloadavg: merge minor changes from Emacs
59021         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
59022         (getloadavg): Use memset, not bzero.
59024         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
59025         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
59026         clash (bug#86).
59028 2010-11-14  Bruno Haible  <bruno@clisp.org>
59030         Allow multiple gnulib generated replacements to coexist.
59031         * lib/getopt.in.h (struct option): Avoid identical redefinition.
59032         * lib/inttypes.in.h (imaxdiv_t): Likewise.
59033         * lib/langinfo.in.h (nl_item): Likewise.
59034         * lib/math.in.h (_NaN, NAN): Likewise.
59035         * lib/netdb.in.h (struct addrinfo): Likewise.
59036         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
59037         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
59038         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
59039         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
59040         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
59041         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
59042         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
59043         pthread_mutexattr_init, pthread_mutexattr_settype,
59044         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
59045         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
59046         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
59047         pthread_spin_trylock, pthread_spin_unlock): Likewise.
59048         * lib/sched.in.h (struct sched_param): Likewise.
59049         * lib/se-selinux.in.h (security_class_t, security_context_t,
59050         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
59051         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
59052         lsetfilecon, fsetfilecon, security_check_context,
59053         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
59054         Likewise.
59055         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
59056         Likewise.
59057         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
59058         _gl_function_taking_int_returning_void_t, union sigval,
59059         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
59060         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
59061         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
59062         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
59063         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
59064         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
59065         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
59066         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
59067         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
59068         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
59069         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
59070         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
59071         socklen_t, rpl_fd_isset): Likewise.
59072         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
59073         * lib/sys_time.in.h (struct timeval): Likewise.
59074         * lib/sys_times.in.h (struct tms): Likewise.
59075         * lib/sys_utsname.in.h (struct utsname):
59076         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
59077         * lib/unistd.in.h (getpagesize): Likewise.
59078         * lib/wchar.in.h (mbstate_t): Likewise.
59079         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59080         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
59081         towlower, towupper): Likewise.
59082         Reported by Sam Steingold <sds@gnu.org>.
59084 2011-02-05  Eric Blake  <eblake@redhat.com>
59086         unsetenv: work around Haiku issues
59087         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
59088         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
59090 2010-12-30  Bruce Korb  <bkorb@gnu.org>
59092         libposix: avoid calling error() within libposix
59093         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
59094         is defined.
59096 2011-02-05  Eric Blake  <eblake@redhat.com>
59098         strerror_r-posix: port to cygwin
59099         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
59100         implementation.
59101         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
59102         * tests/test-strerror_r.c (main): Fix test.
59103         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
59104         issue.
59106 2011-02-05  Bruno Haible  <bruno@clisp.org>
59108         New module 'wmemchr'.
59109         * modules/wmemchr: New file.
59110         * lib/wchar.in.h (wmemchr): New declaration.
59111         * lib/wmemchr.c: New file.
59112         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
59113         * m4/wmemchr.m4: New file.
59114         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
59115         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
59116         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
59117         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
59118         * doc/posix-functions/wmemchr.texi: Mention the new module.
59120 2011-02-04  Eric Blake  <eblake@redhat.com>
59122         fdopendir: detect FreeBSD bug
59123         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
59124         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
59126 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59128         stdbool: do not define HAVE_STDBOOL_H
59129         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
59130         AC_HEADER_STDBOOL.  All uses changed.  Do not define
59131         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
59132         imported from the latest Autoconf git.  It was motivated by Emacs,
59133         which uses gnulib but does not need HAVE_STDBOOL_H.
59135 2011-02-04  Bruno Haible  <bruno@clisp.org>
59137         wcsnrtombs: Prepare for new module wwcsnrtombs.
59138         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
59139         * lib/wcsnrtombs.c: Include it.
59140         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
59142         wcsrtombs: Prepare for new module wwcsrtombs.
59143         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
59144         * lib/wcsrtombs.c: Include it.
59145         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
59147         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
59148         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
59149         * lib/mbsnrtowcs.c: Include it.
59150         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
59152         mbsrtowcs: Prepare for new module mbsrtowwcs.
59153         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
59154         * lib/mbsrtowcs.c: Include it.
59155         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
59157 2011-02-04  Bruno Haible  <bruno@clisp.org>
59159         vasnprintf: Reduce use of malloc for small format strings.
59160         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
59161         (arguments): Add room for the first 7 arguments.
59162         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
59163         (char_directives, u8_directives, u16_directives, u32_directives): Add
59164         room for the first 7 directives.
59165         * lib/printf-parse.c: Include <string.h>.
59166         (PRINTF_PARSE): Change memory handling code so that it uses the first
59167         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
59168         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
59169         Reported by Pádraig Brady <P@draigbrady.com>.
59171 2011-01-31  Eric Blake  <eblake@redhat.com>
59173         dup2: work around Haiku bug
59174         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
59175         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
59176         * doc/posix-functions/dup2.texi (dup2): Document the bug.
59177         * tests/test-dup2.c (main): Enhance test.
59179 2011-01-31  Simon Josefsson  <simon@josefsson.org>
59181         doc: off_t is not available in eglibc 2.11.2 stdio.h.
59182         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
59183         declared by eglibc 2.11.2.
59184         * lib/stdio.in.h: Likewise.
59186 2011-01-31  Eric Blake  <eblake@redhat.com>
59188         ignore-value: add missing test dependency
59189         * tests/test-ignore-value.c: Revert previous change; stdio.h
59190         provides off_t.
59191         * modules/ignore-value-tests (Depends-on): Add missing dependency.
59193 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
59195         mktime: clarify long_int width checking
59196         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
59197         the top level, to make it clearer that the assumption about
59198         long_int width is being checked.  See
59199         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
59201 2011-01-30  Simon Josefsson  <simon@josefsson.org>
59203         ignore-value: Fix self-test.
59204         * tests/test-ignore-value.c: Include sys/types.h for off_t.
59206 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59208         TYPE_MAXIMUM: avoid theoretically undefined behavior
59209         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
59210         negative number, which the C Standard says has undefined behavior.
59211         In practice this is not a problem, but might as well do it by the book.
59212         Reported by Rich Felker and Eric Blake; see
59213         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
59214         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
59215         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59216         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59217         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
59218         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59219         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
59221         mktime: #undef mktime before #defining it
59222         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
59224         mktime: systematically normalize tm_isdst comparisons
59225         * lib/mktime.c (isdst_differ): New function.
59226         (__mktime_internal): Use it systematically for all isdst comparisons.
59227         This completes the fix for libc BZ #6723, and removes the need for
59228         normalizing tm_isdst.  See
59229         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
59230         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
59232         mktime: fix some integer overflow issues and sidestep the rest
59234         This was prompted by a bug report by Benjamin Lindner for MinGW
59235         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
59236         His bug is due to signed integer overflow (0 - INT_MIN), and I
59237         I scanned through mktime.c looking for other integer overflow
59238         problems, fixing all the bugs I found.
59240         Although the C Standard says the resulting code is still not safe
59241         in the presence of integer overflow, in practice it should be good
59242         enough for all real-world two's-complement implementations, except
59243         for debugging environments that deliberately trap on integer
59244         overflow (e.g., gcc -ftrapv).
59246         * lib/mktime.c (WRAPV): New macro.
59247         (SHR): Also check that long_int and time_t shift right in the
59248         usual way, before using the fast-but-unportable method.
59249         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
59250         used.  The code already assumed two's complement, so there's
59251         no need to test for alternatives.  All uses removed.
59252         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
59253         the C standard.  Problem reported by Rich Felker in
59254         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
59255         (twos_complement_arithmetic): Also check long_int and time_t.
59256         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
59257         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
59258         (__mktime_internal): Avoid integer overflow with unary subtraction
59259         in two instances where -1 - X is an adequate replacement for -X,
59260         since the calculations are approximate.
59262 2011-01-29  Eric Blake  <eblake@redhat.com>
59264         mktime: avoid infinite loop
59265         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
59266         type; behavior is still undefined but portable to all known targets.
59267         Reported by Rich Felker.
59269 2011-01-29  Simon Josefsson  <simon@josefsson.org>
59271         rename, unlink, same-inode: Relicense.
59272         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
59273         * modules/unlink (License): Likewise.
59274         * modules/same-inode (License): Likewise.
59276 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59278         mktime: avoid problems on NetBSD 5 / i386
59279         * lib/mktime.c (long_int): New type.  This works around a problem
59280         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
59281         but time_t is 64 bits, and where I expect the existing code is
59282         wrong in some cases.
59283         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
59284         (ydhms_diff): Bring back the compile-time check for wide-enough
59285         year and yday.
59287         mktime: fix misspelling in comment
59288         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
59289         This merges all recent glibc changes of importance.
59291 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59293         move-if-change: cope with concurrent mv of identical file.
59294         * build-aux/move-if-change (CMPPROG): Accept environment
59295         variable as an override for `cmp'.
59296         (usage): Document CMPPROG.
59297         Adjust comparison to drop stdout.  Cope with failure of mv if
59298         the target file exists and is identical to the source, for
59299         parallel builds.
59300         Report from H.J. Lu against binutils in PR binutils/12283.
59302 2011-01-28  Bruce Korb  <bkorb@gnu.org>
59304         * users.txt: Mention sharutils.
59306 2011-01-28  Simon Josefsson  <simon@josefsson.org>
59308         * users.txt: Mention OATH Toolkit.
59310 2011-01-27  Bruno Haible  <bruno@clisp.org>
59312         Prepare for supporting FreeBSD 10.
59313         * build-aux/config.libpath: Remove handling of freebsd1*.
59315 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
59317         Prepare for supporting FreeBSD 10.
59318         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
59319         match FreeBSD 10.0.
59321 2011-01-27  Bruno Haible  <bruno@clisp.org>
59323         vma-iter, get-rusage-as: Add OpenBSD support.
59324         * modules/vma-iter (configure.ac): Test for mquery.
59325         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
59326         * lib/vma-iter.c: Include <sys/mman.h>.
59327         (vma_iterate): Add an implementation based on mquery().
59328         * lib/resource-ext.h (get_rusage_as): Update comments.
59329         * lib/get-rusage-as.c: Likewise.
59330         * lib/get-rusage-data.c: Likewise.
59332 2011-01-26  Karl Berry  <karl@gnu.org>
59334         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
59335         variables to make it easier to override the makeinfo program used.
59337 2011-01-26  Eric Blake  <eblake@redhat.com>
59339         fcntl: work around Haiku F_DUPFD bugs
59340         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
59341         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
59342         cloexec bit on duplication.
59343         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
59345 2011-01-26  Bruno Haible  <bruno@clisp.org>
59347         Enable memory leak tests on AIX.
59348         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
59349         * tests/test-fprintf-posix3.c (main): Likewise.
59351 2011-01-26  Bruno Haible  <bruno@clisp.org>
59353         Tests for module 'get-rusage-data'.
59354         * modules/get-rusage-data-tests: New file.
59355         * tests/test-get-rusage-data.c: New file.
59357         New module 'get-rusage-data'.
59358         * lib/resource-ext.h (get_rusage_data): New declaration.
59359         * lib/get-rusage-data.c: New file.
59360         * modules/get-rusage-data: New file.
59362 2011-01-25  Bruno Haible  <bruno@clisp.org>
59364         get-rusage-as: Allow for easier testing.
59365         * lib/resource-ext.h (get_rusage_as): Add comment.
59366         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
59367         (main): New function for interactive testing.
59369 2011-01-25  Bruno Haible  <bruno@clisp.org>
59371         vma-iter: Treat Haiku like BeOS.
59372         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
59373         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
59375 2011-01-25  Eric Blake  <eblake@redhat.com>
59377         c-stack: fix regression on cygwin when libsigsegv is present
59378         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
59380 2011-01-24  Bruno Haible  <bruno@clisp.org>
59382         vma-iter: Avoid empty intervals.
59383         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
59384         on an empty interval.
59386 2011-01-24  Jim Meyering  <meyering@redhat.com>
59388         u64: remove unnecessary #include
59389         * lib/u64.h: Don't include <stddef.h>.  It was not used.
59391 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59393         Allow the user to avoid the HAVE_RAW_DECL_* macros.
59394         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
59396 2011-01-23  Bruno Haible  <bruno@clisp.org>
59398         New module 'vma-iter'.
59399         * lib/vma-iter.h: New file.
59400         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
59401         * modules/vma-iter: New file.
59402         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
59403         for get_rusage_as_via_iterator.
59404         (vma_iterate_callback): New function.
59405         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
59406         * modules/get-rusage-as (Depends-on): Add vma-iter.
59408 2011-01-23  Bruno Haible  <bruno@clisp.org>
59410         uninorm: Tweak includes.
59411         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
59412         Reported by Jim Meyering.
59414 2011-01-23  Bruno Haible  <bruno@clisp.org>
59416         get-rusage-as: Improve on NetBSD.
59417         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
59418         /proc, like on FreeBSD.
59420 2011-01-23  Jim Meyering  <meyering@redhat.com>
59422         xreadlink.h: remove unnecessary #include
59423         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
59425         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
59426         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
59428 2011-01-23  Bruno Haible  <bruno@clisp.org>
59430         get-rusage-as: Fix bug.
59431         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
59432         original limit when aborting the first loop.
59434 2011-01-23  Bruno Haible  <bruno@clisp.org>
59436         wctype: Ensure valid C syntax.
59437         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
59438         unconditionally, instead of gl_NEXT_HEADERS conditionally.
59440 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59442         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
59443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
59444         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
59445         as they are needed only for configure's test case.
59446         This removes two unnecessary symbols from config.h.
59448         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
59449         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
59450         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
59451         AC_CHECK_HEADERS_ONCE on a header that we also invoke
59452         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
59453         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
59454         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
59455         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
59456         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59457         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
59458         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
59459         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59460         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59461         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
59462         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
59463         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59464         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59465         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
59467 2011-01-21  Eric Blake  <eblake@redhat.com>
59469         maintainer-makefile: work with older git for submodule check
59470         * top/maint.mk (public-submodule-commit): Rewrite to avoid
59471         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
59472         Reported by Matthias Bolte.
59474         bootstrap: minor portability fixes
59475         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
59476         (usage): Omit leading capital and trailing . on help phrases, per
59477         GNU Coding Standards.
59478         (check_versions, top level): Prefix messages with script name.
59480 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
59482         bootstrap: support --no-git option
59483         * build-aux/bootstrap: Add --no-git option, to be used when
59484         --gnulib-srcdir points to the exact desired checkout.
59486 2011-01-21  Eric Blake  <eblake@redhat.com>
59488         strerror_r-posix: work with glibc 2.13
59489         * lib/strerror_r.c (strerror_r): Fix return type.
59491 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59492             Bruno Haible  <bruno@clisp.org>
59494         uN_strstr: New unit tests.
59495         * modules/unistr/u8-strstr-tests: New file.
59496         * modules/unistr/u16-strstr-tests: New file.
59497         * modules/unistr/u32-strstr-tests: New file.
59498         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
59499         * tests/unistr/test-u8-strstr.c: New file.
59500         * tests/unistr/test-u16-strstr.c: New file.
59501         * tests/unistr/test-u32-strstr.c: New file.
59503 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59504             Bruno Haible  <bruno@clisp.org>
59506         Make uN_strstr functions O(n) worst-case.
59507         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
59508         16-bit and 32-bit unit cases, use the unibyte algorithm from
59509         lib/mbsstr.c.
59510         * lib/unistr/u8-strstr.c: Include <string.h>.
59511         (UNIT_IS_UINT8_T): New macro.
59512         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
59513         (U_STRLEN, U_STRNLEN): New macros.
59514         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
59515         (U_STRLEN, U_STRNLEN): New macros.
59516         * modules/unistr/u8-strstr (Depends-on): Add strstr.
59517         (configure.ac): Update required libunistring version.
59518         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
59519         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
59520         malloca.
59521         (configure.ac): Update required libunistring version.
59522         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
59523         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
59524         malloca.
59525         (configure.ac): Update required libunistring version.
59527 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59528             Bruno Haible  <bruno@clisp.org>
59530         Prepare for faster uN_strstr functions.
59531         * lib/str-kmp.h: Support definable UNITs.
59532         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
59533         needle_len argument.
59534         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
59535         * lib/mbscasestr.c (mbscasestr): Likewise.
59537 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59539         malloca-tests: make faster by unsetting MALLOC_PERTURB_
59540         * tests/test-malloca.c (main): Unset the environment variable
59541         to greatly speed up the test.
59542         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
59543         * modules/malloca-tests: Depend on unsetenv.
59545 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59547         ignore-value: remove stdint dependency
59548         * lib/ignore-value.h: Remove <stdint.h>
59549         * modules/ignore-value: Remove stdint dependency.
59551 2011-01-21  Jim Meyering  <meyering@redhat.com>
59553         maint.mk: adjust variable name to be consistent with other gl_ vars
59554         * top/maint.mk (gl_public_submodule_commit): Rename the variable
59555         to be lower case.
59557 2011-01-20  Jim Meyering  <meyering@redhat.com>
59559         maint.mk: make "check" depend on public-submodule-commit by default
59560         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
59562 2011-01-20  Bruno Haible  <bruno@clisp.org>
59564         mbfile, mbiter: Complete change from 2008-12-21.
59565         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
59566         * m4/mbiter.m4 (gl_MBITER): Likewise.
59568 2011-01-20  Jim Meyering  <meyering@redhat.com>
59570         init.sh: insert space between each function name and "()"
59571         * tests/init.sh: Make it a little easier to see that a function's
59572         name is "warn_", and not "warn" when looking at the first part of
59573         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
59575 2011-01-20  Jim Meyering  <meyering@redhat.com>
59577         mountlist: clean up code formatting
59578         * lib/mountlist.c (read_file_system_list): Split a long line,
59579         correct bracing style, use NULL in place of "(struct statfs *)0",
59580         don't parenthesize return value, add spaces around "=" and after
59581         ";-in-for-stmt".
59583 2011-01-14  Markus Duft  <mduft@gentoo.org>
59585         mountlist: add support for Interix
59586         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
59587         Apply statvfs to all entries of /dev/fs.
59588         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
59589         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
59591 2011-01-20  Jim Meyering  <meyering@redhat.com>
59593         maint.mk: improve the public-submodule-commit rule
59594         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
59595         to suppress printing of its commands... unless V=1.
59596         Add git submodule's --quiet option to suppress printing of e.g.,
59597         "Entering gnulib" output.
59598         "cd" into $(srcdir) before running git submodule.
59600 2011-01-20  Bruno Haible  <bruno@clisp.org>
59602         include_next: Fix bug introduced on 2011-01-18.
59603         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
59604         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
59605         ac_cv_header_... variable if the second argument is not 'check'.
59606         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
59607         gl_NEXT_HEADERS_INTERNAL.
59609 2011-01-20  Bruno Haible  <bruno@clisp.org>
59611         Allow the user to avoid the GNULIB_TEST_* macros.
59612         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
59613         Suggested by Paul Eggert.
59615 2011-01-14  Jim Meyering  <meyering@redhat.com>
59617         bootstrap: avoid failure when there is no .gitmodules file
59618         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
59619         has been assigned to, even when its value is the empty string.
59620         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
59621         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
59622         Reported by John W. Eaton <jwe@gnu.org>.
59624 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59626         assume <ctype.h>, ..., <time.h> exist
59627         For years gnulib has been assuming the existence of the headers
59628         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
59629         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
59630         them, since they don't appear to be needed.
59631         * README (Portability guidelines): Document this.
59632         * lib/flock.c: Assume <fcntl.h> exists.
59633         * lib/regex_internal.h: Assume <locale.h> exists.
59634         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
59635         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
59636         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
59637         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
59638         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
59639         * m4/regex.m4 (gl_REGEX): Likewise.
59640         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
59641         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
59642         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
59643         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
59644         * tests/test-argp.c: Likewise.
59645         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
59647         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
59648         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
59649         AA_APPLE_UNIVERSAL_BUILD.  See
59650         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
59651         * NEWS: Document this.
59653 2011-01-19  Eric Blake  <eblake@redhat.com>
59655         c-stack: assume stack overflow if SA_SIGINFO unsupported
59656         * lib/c-stack.c (SIGACTION_WORKS): Rename...
59657         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
59658         sigaction will work.
59659         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
59660         behavior match Linux.
59661         * tests/test-c-stack.c (main): Prefer NULL for pointers.
59663         stdbool-tests: accommodate Haiku
59664         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
59666         binary-io: fix O_TEXT on Haiku
59667         * modules/binary-io (Depends-on): Add fcntl-h.
59668         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
59669         than blindly undefining O_TEXT.
59670         Reported by Scott McCreary.
59672 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59674         include_next: do not check for standard headers like stddef.h
59676         I found this problem when modifying Emacs to use gnulib.
59677         I noticed that it added HAVE_STDDEF_H to config.h, even though
59678         gnulib always assumes <stddef.h> exists as per README and this
59679         symbol is unnecessary.
59680         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
59681         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
59682         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
59683         faster for headers like stddef.h that are known to exist.
59684         (gl_CHECK_NEXT_HEADERS): Use it.
59685         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
59686         rather than gl_CHECK_NEXT_HEADERS.
59687         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
59688         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
59690 2011-01-18  Eric Blake  <eblake@redhat.com>
59692         ansi-c++-opt: skip C++ dependency style if C++ is unused
59693         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
59694         tests when we know C++ compilation is not desired.
59695         Reported by Scott McCreary.
59697 2011-01-18  Bruno Haible  <bruno@clisp.org>
59699         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
59700         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
59701         (main): Perform test also when getrlimit and setrlimit don't exist or
59702         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
59703         limiting the address space size using setrlimit, compare the address
59704         space size before and after the test.
59705         * tests/test-dprintf-posix2.c: Likewise.
59706         * tests/test-fprintf-posix3.sh: Update skip messages.
59707         * tests/test-dprintf-posix2.sh: Likewise.
59708         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
59709         * modules/dprintf-posix-tests (Depends-on): Likewise.
59710         Reported by Bruce Korb <bkorb@gnu.org> and
59711         Gary V. Vaughan <gary@gnu.org>.
59713 2011-01-18  Bruno Haible  <bruno@clisp.org>
59715         get-rusage-as: Improvement for Cygwin.
59716         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
59717         areas that are merely reserved.
59719 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59721         strftime: remove dependencies on multibyte modules
59723         strftime depended on mbrlen, mbsinit, and wchar, but these modules
59724         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
59725         only if __osf__ is defined, and I suspect OSF doesn't need these
59726         other modules.  If my guess is wrong, we'll need to come up with a
59727         variant of strftime that doesn't need the multibyte modules.
59729         I discovered this problem when attempting modify Emacs to use the
59730         strftime module.  With the previous gnulib, this caused Emacs to
59731         need 31 new files, ranging from lib/config.charset to
59732         m4/wint_t.m4.  This was overkill and I expect would be offputting
59733         to the Emacs maintainers.  After this change, only 6 new files are
59734         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
59735         stdbool.m4, and tm_gmtoff.m4.
59737         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
59738         Suggested by Bruno Haible in
59739         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
59740         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
59741         and do not check for wchar.h.
59742         * modules/strftime (Files): Remove m4/mbstate_t.m4.
59743         (Depends-on): Remove mbrlen, mbsinit, wchar.
59745 2011-01-18  Bruno Haible  <bruno@clisp.org>
59747         Tests for module 'get-rusage-as'.
59748         * modules/get-rusage-as-tests: New file.
59749         * tests/test-get-rusage-as.c: New file.
59751         New module 'get-rusage-as'.
59752         * modules/get-rusage-as: New file.
59753         * lib/resource-ext.h: New file.
59754         * lib/get-rusage-as.c: New file.
59756 2011-01-17  Eric Blake  <eblake@redhat.com>
59758         sigaction: relax license from LGPLv3+ to LGPLv2+
59759         * modules/sigaction (License): Relax to LGPLv2+.
59761 2011-01-14  Bruno Haible  <bruno@clisp.org>
59763         filemode: Make function declarations usable in C++ mode.
59764         * lib/filemode.h: Enclose function declarations in extern "C" block.
59765         Reported by John W. Eaton <jwe@gnu.org>.
59767 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
59769         save-cwd: no longer include "xgetcwd.h"
59770         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
59771         This avoids a compilation failure in projects that use save-cwd
59772         without also using the xgetcwd module.
59774 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59776         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
59777         This is so that a program like Emacs, which needs only dtoastr,
59778         does not have to bother with distributing and compiling ftoastr
59779         and ldtoastr.
59780         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
59781         * modules/dtoastr, modules/ldtoastr: New files.
59782         * modules/ftoastr: Now works just for 'float'.
59783         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
59784         (Makefile.am): Remove ftoastr.h (not needed and no effect),
59785         dtoastr.c, ldtoastr.c.
59787 2011-01-11  Jim Meyering  <meyering@redhat.com>
59789         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
59790         There is no need to work around the lack of the fchdir function,
59791         since gnulib can now provide a replacement when required.
59792         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
59793         * modules/save-cwd (Depends-on): Add fchdir.
59795 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59797         openat, save-cwd: avoid xmalloc
59799         This removes a direct (but undocumented) dependency of openat on
59800         xalloc, along with an indirect dependency via save-cwd.  It also
59801         removes a dependency of save-cwd on xgetcwd, and thereby
59802         indirectly on xalloc.  This change causes the openat substitute
59803         to fall back on save_cwd when memory is tight, and for save_cwd to
59804         fail instead of dying when memory is tight, but that's good enough.
59805         Problem and initial idea for fix reported by Bastien Roucaries in
59806         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
59808         * lib/openat-proc.c: Include stdlib.h (for malloc), not
59809         xalloc.h (for xmalloc).
59810         (openat_proc_name): Use malloc, not xmalloc.
59811         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
59812         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
59814         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
59815         This avoids heap allocation for file names whose lengths are in
59816         the range 512..1023, with the upper bound increasing to at most
59817         4031 depending on the platform's PATH_MAX.  (We do not want
59818         pathmax.h here as it might supply a non-constant PATH_MAX.)
59819         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
59820         Perhaps they should be moved to malloca.h?
59821         (OPENAT_BUFFER_SIZE): Use them.
59823 2011-01-10  Bruno Haible  <bruno@clisp.org>
59825         doc: Update users.txt.
59826         * users.txt: Add recutils.
59828 2011-01-09  Karl Berry  <karl@gnu.org>
59830         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
59832         * doc/configmake.texi: New file.
59833         * doc/gnulib.texi: Include it.
59834         * modules/configmake: Move documentation from here.
59836 2011-01-09  Bruno Haible  <bruno@clisp.org>
59838         Update to Unicode 6.0.0.
59839         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
59840         (get_lbp): Update for Unicode 6.0.0.
59841         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
59842         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
59843         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
59844         U+11001, U+11038..U+11046. Remove U+06DE.
59845         (uc_width): Fix bounds of planes.
59846         * tests/uniwidth/test-uc_width2.sh: Same updates as in
59847         lib/uniwidth/width.c.
59848         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
59849         trailing whitespace removed.
59850         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
59851         without comments, but with the original copyright notice.
59852         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
59853         * lib/unicase/ignorable.h: Likewise.
59854         * lib/unicase/tocasefold.h: Likewise.
59855         * lib/unicase/tolower.h: Likewise.
59856         * lib/unicase/totitle.h: Likewise.
59857         * lib/unicase/toupper.h: Likewise.
59858         * lib/unictype/bidi_of.h: Likewise.
59859         * lib/unictype/blocks.h: Likewise.
59860         * lib/unictype/categ_C.h: Likewise.
59861         * lib/unictype/categ_Cn.h: Likewise.
59862         * lib/unictype/categ_L.h: Likewise.
59863         * lib/unictype/categ_Ll.h: Likewise.
59864         * lib/unictype/categ_Lm.h: Likewise.
59865         * lib/unictype/categ_Lo.h: Likewise.
59866         * lib/unictype/categ_Lu.h: Likewise.
59867         * lib/unictype/categ_M.h: Likewise.
59868         * lib/unictype/categ_Mc.h: Likewise.
59869         * lib/unictype/categ_Me.h: Likewise.
59870         * lib/unictype/categ_Mn.h: Likewise.
59871         * lib/unictype/categ_N.h: Likewise.
59872         * lib/unictype/categ_Nd.h: Likewise.
59873         * lib/unictype/categ_No.h: Likewise.
59874         * lib/unictype/categ_P.h: Likewise.
59875         * lib/unictype/categ_Po.h: Likewise.
59876         * lib/unictype/categ_S.h: Likewise.
59877         * lib/unictype/categ_Sc.h: Likewise.
59878         * lib/unictype/categ_Sk.h: Likewise.
59879         * lib/unictype/categ_Sm.h: Likewise.
59880         * lib/unictype/categ_So.h: Likewise.
59881         * lib/unictype/categ_of.h: Likewise.
59882         * lib/unictype/combining.h: Likewise.
59883         * lib/unictype/ctype_alnum.h: Likewise.
59884         * lib/unictype/ctype_alpha.h: Likewise.
59885         * lib/unictype/ctype_graph.h: Likewise.
59886         * lib/unictype/ctype_lower.h: Likewise.
59887         * lib/unictype/ctype_print.h: Likewise.
59888         * lib/unictype/ctype_punct.h: Likewise.
59889         * lib/unictype/ctype_upper.h: Likewise.
59890         * lib/unictype/decdigit.h: Likewise.
59891         * lib/unictype/digit.h: Likewise.
59892         * lib/unictype/numeric.h: Likewise.
59893         * lib/unictype/pr_alphabetic.h: Likewise.
59894         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59895         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59896         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59897         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59898         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59899         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59900         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59901         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59902         * lib/unictype/pr_case_ignorable.h: Likewise.
59903         * lib/unictype/pr_cased.h: Likewise.
59904         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
59905         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
59906         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
59907         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
59908         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
59909         * lib/unictype/pr_combining.h: Likewise.
59910         * lib/unictype/pr_composite.h: Likewise.
59911         * lib/unictype/pr_currency_symbol.h: Likewise.
59912         * lib/unictype/pr_decimal_digit.h: Likewise.
59913         * lib/unictype/pr_deprecated.h: Likewise.
59914         * lib/unictype/pr_format_control.h: Likewise.
59915         * lib/unictype/pr_grapheme_base.h: Likewise.
59916         * lib/unictype/pr_grapheme_extend.h: Likewise.
59917         * lib/unictype/pr_grapheme_link.h: Likewise.
59918         * lib/unictype/pr_id_continue.h: Likewise.
59919         * lib/unictype/pr_id_start.h: Likewise.
59920         * lib/unictype/pr_ideographic.h: Likewise.
59921         * lib/unictype/pr_lowercase.h: Likewise.
59922         * lib/unictype/pr_math.h: Likewise.
59923         * lib/unictype/pr_numeric.h: Likewise.
59924         * lib/unictype/pr_other_alphabetic.h: Likewise.
59925         * lib/unictype/pr_other_id_continue.h: Likewise.
59926         * lib/unictype/pr_other_math.h: Likewise.
59927         * lib/unictype/pr_punctuation.h: Likewise.
59928         * lib/unictype/pr_sentence_terminal.h: Likewise.
59929         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59930         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59931         * lib/unictype/pr_unified_ideograph.h: Likewise.
59932         * lib/unictype/pr_uppercase.h: Likewise.
59933         * lib/unictype/pr_xid_continue.h: Likewise.
59934         * lib/unictype/pr_xid_start.h: Likewise.
59935         * lib/unictype/scripts.h: Likewise.
59936         * lib/unictype/scripts_byname.gperf: Likewise.
59937         * lib/unictype/sy_java_ident.h: Likewise.
59938         * lib/unigbrk/gbrkprop.h: Likewise.
59939         * lib/unilbrk/lbrkprop1.h: Likewise.
59940         * lib/unilbrk/lbrkprop2.h: Likewise.
59941         * lib/uninorm/decomposition-table2.h: Likewise.
59942         * lib/uniwbrk/wbrkprop.h: Likewise.
59943         * tests/unicase/test-cased.c: Likewise.
59944         * tests/unicase/test-ignorable.c: Likewise.
59945         * tests/unicase/test-uc_tolower.c: Likewise.
59946         * tests/unicase/test-uc_totitle.c: Likewise.
59947         * tests/unicase/test-uc_toupper.c: Likewise.
59948         * tests/unictype/test-categ_C.c: Likewise.
59949         * tests/unictype/test-categ_Cn.c: Likewise.
59950         * tests/unictype/test-categ_L.c: Likewise.
59951         * tests/unictype/test-categ_Ll.c: Likewise.
59952         * tests/unictype/test-categ_Lm.c: Likewise.
59953         * tests/unictype/test-categ_Lo.c: Likewise.
59954         * tests/unictype/test-categ_Lu.c: Likewise.
59955         * tests/unictype/test-categ_M.c: Likewise.
59956         * tests/unictype/test-categ_Mc.c: Likewise.
59957         * tests/unictype/test-categ_Me.c: Likewise.
59958         * tests/unictype/test-categ_Mn.c: Likewise.
59959         * tests/unictype/test-categ_N.c: Likewise.
59960         * tests/unictype/test-categ_Nd.c: Likewise.
59961         * tests/unictype/test-categ_No.c: Likewise.
59962         * tests/unictype/test-categ_P.c: Likewise.
59963         * tests/unictype/test-categ_Po.c: Likewise.
59964         * tests/unictype/test-categ_S.c: Likewise.
59965         * tests/unictype/test-categ_Sc.c: Likewise.
59966         * tests/unictype/test-categ_Sk.c: Likewise.
59967         * tests/unictype/test-categ_Sm.c: Likewise.
59968         * tests/unictype/test-categ_So.c: Likewise.
59969         * tests/unictype/test-ctype_alnum.c: Likewise.
59970         * tests/unictype/test-ctype_alpha.c: Likewise.
59971         * tests/unictype/test-ctype_graph.c: Likewise.
59972         * tests/unictype/test-ctype_lower.c: Likewise.
59973         * tests/unictype/test-ctype_print.c: Likewise.
59974         * tests/unictype/test-ctype_punct.c: Likewise.
59975         * tests/unictype/test-ctype_upper.c: Likewise.
59976         * tests/unictype/test-decdigit.h: Likewise.
59977         * tests/unictype/test-digit.h: Likewise.
59978         * tests/unictype/test-numeric.h: Likewise.
59979         * tests/unictype/test-pr_alphabetic.c: Likewise.
59980         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59981         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59982         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59983         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59984         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59985         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59986         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59987         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59988         * tests/unictype/test-pr_case_ignorable.c: Likewise.
59989         * tests/unictype/test-pr_cased.c: Likewise.
59990         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
59991         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
59992         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
59993         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
59994         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
59995         * tests/unictype/test-pr_combining.c: Likewise.
59996         * tests/unictype/test-pr_composite.c: Likewise.
59997         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59998         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59999         * tests/unictype/test-pr_deprecated.c: Likewise.
60000         * tests/unictype/test-pr_format_control.c: Likewise.
60001         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60002         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60003         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60004         * tests/unictype/test-pr_id_continue.c: Likewise.
60005         * tests/unictype/test-pr_id_start.c: Likewise.
60006         * tests/unictype/test-pr_ideographic.c: Likewise.
60007         * tests/unictype/test-pr_lowercase.c: Likewise.
60008         * tests/unictype/test-pr_math.c: Likewise.
60009         * tests/unictype/test-pr_numeric.c: Likewise.
60010         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60011         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60012         * tests/unictype/test-pr_other_math.c: Likewise.
60013         * tests/unictype/test-pr_punctuation.c: Likewise.
60014         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60015         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60016         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60017         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60018         * tests/unictype/test-pr_uppercase.c: Likewise.
60019         * tests/unictype/test-pr_xid_continue.c: Likewise.
60020         * tests/unictype/test-pr_xid_start.c: Likewise.
60021         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60022         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60023         changes.
60024         * lib/unictype/categ_Cc.h: Likewise.
60025         * lib/unictype/categ_Cf.h: Likewise.
60026         * lib/unictype/categ_Co.h: Likewise.
60027         * lib/unictype/categ_Cs.h: Likewise.
60028         * lib/unictype/categ_Lt.h: Likewise.
60029         * lib/unictype/categ_Nl.h: Likewise.
60030         * lib/unictype/categ_Pc.h: Likewise.
60031         * lib/unictype/categ_Pd.h: Likewise.
60032         * lib/unictype/categ_Pe.h: Likewise.
60033         * lib/unictype/categ_Pf.h: Likewise.
60034         * lib/unictype/categ_Pi.h: Likewise.
60035         * lib/unictype/categ_Ps.h: Likewise.
60036         * lib/unictype/categ_Z.h: Likewise.
60037         * lib/unictype/categ_Zl.h: Likewise.
60038         * lib/unictype/categ_Zp.h: Likewise.
60039         * lib/unictype/categ_Zs.h: Likewise.
60040         * lib/unictype/ctype_blank.h: Likewise.
60041         * lib/unictype/ctype_cntrl.h: Likewise.
60042         * lib/unictype/ctype_digit.h: Likewise.
60043         * lib/unictype/ctype_space.h: Likewise.
60044         * lib/unictype/ctype_xdigit.h: Likewise.
60045         * lib/unictype/mirror.h: Likewise.
60046         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60047         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60048         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60049         * lib/unictype/pr_bidi_control.h: Likewise.
60050         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60051         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60052         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60053         * lib/unictype/pr_bidi_pdf.h: Likewise.
60054         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60055         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60056         * lib/unictype/pr_dash.h: Likewise.
60057         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60058         * lib/unictype/pr_diacritic.h: Likewise.
60059         * lib/unictype/pr_extender.h: Likewise.
60060         * lib/unictype/pr_hex_digit.h: Likewise.
60061         * lib/unictype/pr_hyphen.h: Likewise.
60062         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60063         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60064         * lib/unictype/pr_ignorable_control.h: Likewise.
60065         * lib/unictype/pr_iso_control.h: Likewise.
60066         * lib/unictype/pr_join_control.h: Likewise.
60067         * lib/unictype/pr_left_of_pair.h: Likewise.
60068         * lib/unictype/pr_line_separator.h: Likewise.
60069         * lib/unictype/pr_logical_order_exception.h: Likewise.
60070         * lib/unictype/pr_non_break.h: Likewise.
60071         * lib/unictype/pr_not_a_character.h: Likewise.
60072         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60073         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60074         * lib/unictype/pr_other_id_start.h: Likewise.
60075         * lib/unictype/pr_other_lowercase.h: Likewise.
60076         * lib/unictype/pr_other_uppercase.h: Likewise.
60077         * lib/unictype/pr_paired_punctuation.h: Likewise.
60078         * lib/unictype/pr_paragraph_separator.h: Likewise.
60079         * lib/unictype/pr_pattern_syntax.h: Likewise.
60080         * lib/unictype/pr_pattern_white_space.h: Likewise.
60081         * lib/unictype/pr_private_use.h: Likewise.
60082         * lib/unictype/pr_quotation_mark.h: Likewise.
60083         * lib/unictype/pr_radical.h: Likewise.
60084         * lib/unictype/pr_soft_dotted.h: Likewise.
60085         * lib/unictype/pr_space.h: Likewise.
60086         * lib/unictype/pr_titlecase.h: Likewise.
60087         * lib/unictype/pr_variation_selector.h: Likewise.
60088         * lib/unictype/pr_white_space.h: Likewise.
60089         * lib/unictype/pr_zero_width.h: Likewise.
60090         * lib/unictype/sy_c_ident.h: Likewise.
60091         * lib/unictype/sy_c_whitespace.h: Likewise.
60092         * lib/unictype/sy_java_whitespace.h: Likewise.
60093         * lib/uninorm/composition-table.gperf: Likewise.
60094         * lib/uninorm/decomposition-table1.h: Likewise.
60095         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
60096         LB8.
60097         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60098         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60099         * modules/unictype/*: Bump version number of expected libunistring
60100         version.
60102 2011-01-09  Bruno Haible  <bruno@clisp.org>
60104         Update to Unicode 5.2.0.
60105         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
60106         trailing whitespace removed.
60108 2011-01-09  Bruno Haible  <bruno@clisp.org>
60110         New Unicode character properties, from Unicode 5.2.0.
60111         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
60112         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
60113         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
60114         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
60115         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
60116         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
60117         uc_is_property_cased, uc_is_property_case_ignorable,
60118         uc_is_property_changes_when_lowercased,
60119         uc_is_property_changes_when_uppercased,
60120         uc_is_property_changes_when_titlecased,
60121         uc_is_property_changes_when_casefolded,
60122         uc_is_property_changes_when_casemapped): New declarations.
60123         * lib/unictype/pr_byname.gperf: Add the new properties.
60124         * modules/unictype/property-byname (Depends-on): Depend on the new
60125         properties modules.
60126         * modules/unictype/property-all (Depends-on): Likewise.
60127         * MODULES.html.sh (Unicode string functions): Add
60128         unictype/property-case-ignorable, unictype/property-cased,
60129         unictype/property-changes-when-casefolded,
60130         unictype/property-changes-when-casemapped,
60131         unictype/property-changes-when-lowercased,
60132         unictype/property-changes-when-titlecased,
60133         unictype/property-changes-when-uppercased.
60135         New module 'unictype/property-changes-when-casemapped'.
60136         * modules/unictype/property-changes-when-casemapped: New file.
60137         * lib/unictype/pr_changes_when_casemapped.c: New file.
60138         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
60139         generated by gen-uni-tables.
60140         * modules/unictype/property-changes-when-casemapped-tests: New file.
60141         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
60142         automatically generated by gen-uni-tables.
60144         New module 'unictype/property-changes-when-casefolded'.
60145         * modules/unictype/property-changes-when-casefolded: New file.
60146         * lib/unictype/pr_changes_when_casefolded.c: New file.
60147         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
60148         generated by gen-uni-tables.
60149         * modules/unictype/property-changes-when-casefolded-tests: New file.
60150         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
60151         automatically generated by gen-uni-tables.
60153         New module 'unictype/property-changes-when-titlecased'.
60154         * modules/unictype/property-changes-when-titlecased: New file.
60155         * lib/unictype/pr_changes_when_titlecased.c: New file.
60156         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
60157         generated by gen-uni-tables.
60158         * modules/unictype/property-changes-when-titlecased-tests: New file.
60159         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
60160         automatically generated by gen-uni-tables.
60162         New module 'unictype/property-changes-when-uppercased'.
60163         * modules/unictype/property-changes-when-uppercased: New file.
60164         * lib/unictype/pr_changes_when_uppercased.c: New file.
60165         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
60166         generated by gen-uni-tables.
60167         * modules/unictype/property-changes-when-uppercased-tests: New file.
60168         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
60169         automatically generated by gen-uni-tables.
60171         New module 'unictype/property-changes-when-lowercased'.
60172         * modules/unictype/property-changes-when-lowercased: New file.
60173         * lib/unictype/pr_changes_when_lowercased.c: New file.
60174         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
60175         generated by gen-uni-tables.
60176         * modules/unictype/property-changes-when-lowercased-tests: New file.
60177         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
60178         automatically generated by gen-uni-tables.
60180         New module 'unictype/property-case-ignorable'.
60181         * modules/unictype/property-case-ignorable: New file.
60182         * lib/unictype/pr_case_ignorable.c: New file.
60183         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
60184         by gen-uni-tables.
60185         * modules/unictype/property-case-ignorable-tests: New file.
60186         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
60187         generated by gen-uni-tables.
60189         New module 'unictype/property-cased'.
60190         * modules/unictype/property-cased: New file.
60191         * lib/unictype/pr_cased.c: New file.
60192         * lib/unictype/pr_cased.h: New file, automatically generated by
60193         gen-uni-tables.
60194         * modules/unictype/property-cased-tests: New file.
60195         * tests/unictype/test-pr_cased.c: New file, automatically generated by
60196         gen-uni-tables.
60198 2011-01-09  Bruno Haible  <bruno@clisp.org>
60200         Update to Unicode 5.2.0.
60201         * lib/gen-uni-tables.c (output_predicate, output_category,
60202         output_combclass, output_bidi_category, output_decimal_digit_test,
60203         output_decimal_digit, output_digit_test, output_digit,
60204         output_numeric_test, output_numeric, output_mirror, output_scripts,
60205         output_scripts_byname, output_blocks, output_ident_category): Fix
60206         comment header.
60207         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
60208         get_wbp.
60209         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
60210         items.
60211         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
60212         Changes_When_Lowercased, Changes_When_Uppercased,
60213         Changes_When_Titlecased, Changes_When_Casefolded,
60214         Changes_When_Casemapped.
60215         (is_property_alphabetic, is_property_default_ignorable_code_point):
60216         Update for Unicode 5.2.0.
60217         (is_property_cased, is_property_case_ignorable,
60218         is_property_changes_when_lowercased,
60219         is_property_changes_when_uppercased,
60220         is_property_changes_when_titlecased,
60221         is_property_changes_when_casefolded,
60222         is_property_changes_when_casemapped): New functions.
60223         (output_properties): Output also the properties cased, case_ignorable,
60224         changes_when_lowercased, changes_when_uppercased,
60225         changes_when_titlecased, changes_when_casefolded,
60226         changes_when_casemapped.
60227         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
60228         Unicode TR#11 revision 17 -> 19.
60229         (LBP_CP): New enumeration value.
60230         (LBP_*): Adjust values accordingly.
60231         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
60232         TR#14 revision 22 -> 24.
60233         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
60234         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
60235         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
60236         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
60237         is_WBP_MIDLETTER.
60238         (output_composition_tables): Allow for 24 bits instead of 16 bits in
60239         the code1 and code2 of each composition rule.
60240         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
60241         * lib/unicase/ignorable.h: Likewise.
60242         * lib/unicase/tocasefold.h: Likewise.
60243         * lib/unicase/tolower.h: Likewise.
60244         * lib/unicase/totitle.h: Likewise.
60245         * lib/unicase/toupper.h: Likewise.
60246         * lib/unictype/bidi_of.h: Likewise.
60247         * lib/unictype/blocks.h: Likewise.
60248         * lib/unictype/categ_C.h: Likewise.
60249         * lib/unictype/categ_Cf.h: Likewise.
60250         * lib/unictype/categ_Cn.h: Likewise.
60251         * lib/unictype/categ_L.h: Likewise.
60252         * lib/unictype/categ_Ll.h: Likewise.
60253         * lib/unictype/categ_Lm.h: Likewise.
60254         * lib/unictype/categ_Lo.h: Likewise.
60255         * lib/unictype/categ_Lu.h: Likewise.
60256         * lib/unictype/categ_M.h: Likewise.
60257         * lib/unictype/categ_Mc.h: Likewise.
60258         * lib/unictype/categ_Mn.h: Likewise.
60259         * lib/unictype/categ_N.h: Likewise.
60260         * lib/unictype/categ_Nd.h: Likewise.
60261         * lib/unictype/categ_Nl.h: Likewise.
60262         * lib/unictype/categ_No.h: Likewise.
60263         * lib/unictype/categ_P.h: Likewise.
60264         * lib/unictype/categ_Pd.h: Likewise.
60265         * lib/unictype/categ_Po.h: Likewise.
60266         * lib/unictype/categ_S.h: Likewise.
60267         * lib/unictype/categ_Sc.h: Likewise.
60268         * lib/unictype/categ_So.h: Likewise.
60269         * lib/unictype/categ_of.h: Likewise.
60270         * lib/unictype/combining.h: Likewise.
60271         * lib/unictype/ctype_alnum.h: Likewise.
60272         * lib/unictype/ctype_alpha.h: Likewise.
60273         * lib/unictype/ctype_graph.h: Likewise.
60274         * lib/unictype/ctype_lower.h: Likewise.
60275         * lib/unictype/ctype_print.h: Likewise.
60276         * lib/unictype/ctype_punct.h: Likewise.
60277         * lib/unictype/ctype_upper.h: Likewise.
60278         * lib/unictype/decdigit.h: Likewise.
60279         * lib/unictype/digit.h: Likewise.
60280         * lib/unictype/numeric.h: Likewise.
60281         * lib/unictype/pr_alphabetic.h: Likewise.
60282         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60283         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60284         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60285         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60286         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60287         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60288         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60289         * lib/unictype/pr_combining.h: Likewise.
60290         * lib/unictype/pr_composite.h: Likewise.
60291         * lib/unictype/pr_currency_symbol.h: Likewise.
60292         * lib/unictype/pr_dash.h: Likewise.
60293         * lib/unictype/pr_decimal_digit.h: Likewise.
60294         * lib/unictype/pr_deprecated.h: Likewise.
60295         * lib/unictype/pr_diacritic.h: Likewise.
60296         * lib/unictype/pr_extender.h: Likewise.
60297         * lib/unictype/pr_grapheme_base.h: Likewise.
60298         * lib/unictype/pr_grapheme_extend.h: Likewise.
60299         * lib/unictype/pr_grapheme_link.h: Likewise.
60300         * lib/unictype/pr_id_continue.h: Likewise.
60301         * lib/unictype/pr_id_start.h: Likewise.
60302         * lib/unictype/pr_ideographic.h: Likewise.
60303         * lib/unictype/pr_ignorable_control.h: Likewise.
60304         * lib/unictype/pr_logical_order_exception.h: Likewise.
60305         * lib/unictype/pr_lowercase.h: Likewise.
60306         * lib/unictype/pr_numeric.h: Likewise.
60307         * lib/unictype/pr_other_alphabetic.h: Likewise.
60308         * lib/unictype/pr_punctuation.h: Likewise.
60309         * lib/unictype/pr_sentence_terminal.h: Likewise.
60310         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60311         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60312         * lib/unictype/pr_unified_ideograph.h: Likewise.
60313         * lib/unictype/pr_uppercase.h: Likewise.
60314         * lib/unictype/pr_xid_continue.h: Likewise.
60315         * lib/unictype/pr_xid_start.h: Likewise.
60316         * lib/unictype/pr_zero_width.h: Likewise.
60317         * lib/unictype/scripts.h: Likewise.
60318         * lib/unictype/scripts_byname.gperf: Likewise.
60319         * lib/unictype/sy_java_ident.h: Likewise.
60320         * lib/unigbrk/gbrkprop.h: Likewise.
60321         * lib/unilbrk/lbrkprop1.h: Likewise.
60322         * lib/unilbrk/lbrkprop2.h: Likewise.
60323         * lib/unilbrk/lbrktables.h: Likewise.
60324         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
60325         LBP_CP. Implement rule LB30.
60326         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
60327         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
60328         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
60329         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
60330         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
60331         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
60332         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
60333         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
60334         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
60335         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
60336         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
60337         bits instead of 16 bits in the code1 and code2 of each composition
60338         rule.
60339         (uc_composition): Update for Unicode 5.2.0.
60340         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
60341         * lib/uninorm/decomposition-table2.h: Likewise.
60342         * lib/uniwbrk/wbrkprop.h: Likewise.
60343         * tests/unicase/test-cased.c: Likewise.
60344         * tests/unicase/test-ignorable.c: Likewise.
60345         * tests/unicase/test-uc_tolower.c: Likewise.
60346         * tests/unicase/test-uc_totitle.c: Likewise.
60347         * tests/unicase/test-uc_toupper.c: Likewise.
60348         * tests/unictype/test-categ_C.c: Likewise.
60349         * tests/unictype/test-categ_Cf.c: Likewise.
60350         * tests/unictype/test-categ_Cn.c: Likewise.
60351         * tests/unictype/test-categ_L.c: Likewise.
60352         * tests/unictype/test-categ_Ll.c: Likewise.
60353         * tests/unictype/test-categ_Lm.c: Likewise.
60354         * tests/unictype/test-categ_Lo.c: Likewise.
60355         * tests/unictype/test-categ_Lu.c: Likewise.
60356         * tests/unictype/test-categ_M.c: Likewise.
60357         * tests/unictype/test-categ_Mc.c: Likewise.
60358         * tests/unictype/test-categ_Mn.c: Likewise.
60359         * tests/unictype/test-categ_N.c: Likewise.
60360         * tests/unictype/test-categ_Nd.c: Likewise.
60361         * tests/unictype/test-categ_Nl.c: Likewise.
60362         * tests/unictype/test-categ_No.c: Likewise.
60363         * tests/unictype/test-categ_P.c: Likewise.
60364         * tests/unictype/test-categ_Pd.c: Likewise.
60365         * tests/unictype/test-categ_Po.c: Likewise.
60366         * tests/unictype/test-categ_S.c: Likewise.
60367         * tests/unictype/test-categ_Sc.c: Likewise.
60368         * tests/unictype/test-categ_So.c: Likewise.
60369         * tests/unictype/test-ctype_alnum.c: Likewise.
60370         * tests/unictype/test-ctype_alpha.c: Likewise.
60371         * tests/unictype/test-ctype_graph.c: Likewise.
60372         * tests/unictype/test-ctype_lower.c: Likewise.
60373         * tests/unictype/test-ctype_print.c: Likewise.
60374         * tests/unictype/test-ctype_punct.c: Likewise.
60375         * tests/unictype/test-ctype_upper.c: Likewise.
60376         * tests/unictype/test-decdigit.h: Likewise.
60377         * tests/unictype/test-digit.h: Likewise.
60378         * tests/unictype/test-numeric.h: Likewise.
60379         * tests/unictype/test-pr_alphabetic.c: Likewise.
60380         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60381         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60382         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60383         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60384         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60385         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60386         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60387         * tests/unictype/test-pr_combining.c: Likewise.
60388         * tests/unictype/test-pr_composite.c: Likewise.
60389         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60390         * tests/unictype/test-pr_dash.c: Likewise.
60391         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60392         * tests/unictype/test-pr_deprecated.c: Likewise.
60393         * tests/unictype/test-pr_diacritic.c: Likewise.
60394         * tests/unictype/test-pr_extender.c: Likewise.
60395         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60396         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60397         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60398         * tests/unictype/test-pr_id_continue.c: Likewise.
60399         * tests/unictype/test-pr_id_start.c: Likewise.
60400         * tests/unictype/test-pr_ideographic.c: Likewise.
60401         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60402         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60403         * tests/unictype/test-pr_lowercase.c: Likewise.
60404         * tests/unictype/test-pr_numeric.c: Likewise.
60405         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60406         * tests/unictype/test-pr_punctuation.c: Likewise.
60407         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60408         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60409         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60410         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60411         * tests/unictype/test-pr_uppercase.c: Likewise.
60412         * tests/unictype/test-pr_xid_continue.c: Likewise.
60413         * tests/unictype/test-pr_xid_start.c: Likewise.
60414         * tests/unictype/test-pr_zero_width.c: Likewise.
60415         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60416         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
60417         changed behaviour: line breaking is now disallowed between a letter
60418         or '=' and '('.
60419         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60420         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60421         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60422         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
60423         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60424         lib/uniwidth/width.c.
60425         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
60426         without comments, but with the original copyright notice.
60427         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60428         changes.
60429         * lib/unictype/categ_Cc.h: Likewise.
60430         * lib/unictype/categ_Co.h: Likewise.
60431         * lib/unictype/categ_Cs.h: Likewise.
60432         * lib/unictype/categ_Lt.h: Likewise.
60433         * lib/unictype/categ_Me.h: Likewise.
60434         * lib/unictype/categ_Pc.h: Likewise.
60435         * lib/unictype/categ_Pe.h: Likewise.
60436         * lib/unictype/categ_Pf.h: Likewise.
60437         * lib/unictype/categ_Pi.h: Likewise.
60438         * lib/unictype/categ_Ps.h: Likewise.
60439         * lib/unictype/categ_Sk.h: Likewise.
60440         * lib/unictype/categ_Sm.h: Likewise.
60441         * lib/unictype/categ_Z.h: Likewise.
60442         * lib/unictype/categ_Zl.h: Likewise.
60443         * lib/unictype/categ_Zp.h: Likewise.
60444         * lib/unictype/categ_Zs.h: Likewise.
60445         * lib/unictype/ctype_blank.h: Likewise.
60446         * lib/unictype/ctype_cntrl.h: Likewise.
60447         * lib/unictype/ctype_digit.h: Likewise.
60448         * lib/unictype/ctype_space.h: Likewise.
60449         * lib/unictype/ctype_xdigit.h: Likewise.
60450         * lib/unictype/mirror.h: Likewise.
60451         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60452         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60453         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60454         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60455         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60456         * lib/unictype/pr_bidi_control.h: Likewise.
60457         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60458         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60459         * lib/unictype/pr_bidi_pdf.h: Likewise.
60460         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60461         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60462         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60463         * lib/unictype/pr_format_control.h: Likewise.
60464         * lib/unictype/pr_hex_digit.h: Likewise.
60465         * lib/unictype/pr_hyphen.h: Likewise.
60466         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60467         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60468         * lib/unictype/pr_iso_control.h: Likewise.
60469         * lib/unictype/pr_join_control.h: Likewise.
60470         * lib/unictype/pr_left_of_pair.h: Likewise.
60471         * lib/unictype/pr_line_separator.h: Likewise.
60472         * lib/unictype/pr_math.h: Likewise.
60473         * lib/unictype/pr_non_break.h: Likewise.
60474         * lib/unictype/pr_not_a_character.h: Likewise.
60475         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60476         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60477         * lib/unictype/pr_other_id_continue.h: Likewise.
60478         * lib/unictype/pr_other_id_start.h: Likewise.
60479         * lib/unictype/pr_other_lowercase.h: Likewise.
60480         * lib/unictype/pr_other_math.h: Likewise.
60481         * lib/unictype/pr_other_uppercase.h: Likewise.
60482         * lib/unictype/pr_paired_punctuation.h: Likewise.
60483         * lib/unictype/pr_paragraph_separator.h: Likewise.
60484         * lib/unictype/pr_pattern_syntax.h: Likewise.
60485         * lib/unictype/pr_pattern_white_space.h: Likewise.
60486         * lib/unictype/pr_private_use.h: Likewise.
60487         * lib/unictype/pr_quotation_mark.h: Likewise.
60488         * lib/unictype/pr_radical.h: Likewise.
60489         * lib/unictype/pr_soft_dotted.h: Likewise.
60490         * lib/unictype/pr_space.h: Likewise.
60491         * lib/unictype/pr_titlecase.h: Likewise.
60492         * lib/unictype/pr_variation_selector.h: Likewise.
60493         * lib/unictype/pr_white_space.h: Likewise.
60494         * lib/unictype/sy_c_ident.h: Likewise.
60495         * lib/unictype/sy_c_whitespace.h: Likewise.
60496         * lib/unictype/sy_java_whitespace.h: Likewise.
60497         * modules/uni*/*: Bump version number of expected libunistring version.
60498         Reported by Simon Josefsson.
60500 2011-01-09  Karl Heuer  <kwzh@gnu.org>
60502         useless-if-before-free: fix typo in --help and make the internal,
60503         automatic version date update process work once again.
60504         --help output contained a NUL character instead of the
60505         backslash-zero that was intended.  Also, the "must lie within
60506         the first 8 lines" line is on line 9, and hence not getting
60507         automatically updated.
60508         * build-aux/useless-if-before-free: Fix the former by adding a
60509         backslash, and the latter by condensing the three lines of what-it-does
60510         to a single line, leaving one line of slack for the future.
60512 2011-01-09  Bruno Haible  <bruno@clisp.org>
60514         uniwidth/width: Fix width of U+1D173..U+1D17A.
60515         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
60516         symbolic_width, output_width_property_test): New functions.
60517         (main): Invoke output_nonspacing_property, output_width_property_test.
60518         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
60519         U+1D173..U+1D17A.
60520         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
60521         1.
60522         * modules/uniwidth/*: Bump version number of expected libunistring
60523         version.
60524         * modules/unilbrk/*: Likewise.
60526 2011-01-08  Bruno Haible  <bruno@clisp.org>
60528         uninorm tests: Preserve copyright of Unicode data file.
60529         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
60530         Mention modifications.
60532 2011-01-08  Bruno Haible  <bruno@clisp.org>
60534         gen-uni-tables: Prepare for Unicode 5.2.0.
60535         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
60536         (debug_output_lbp, output_lbp): Update.
60538 2011-01-08  Bruno Haible  <bruno@clisp.org>
60540         unilbrk: Clarify gen-uni-tables.c code.
60541         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
60542         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
60543         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
60545 2011-01-07  Bruno Haible  <bruno@clisp.org>
60547         strtod: Restore errno when successfully parsing Infinity or NaN.
60548         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
60549         restore the original errno.
60551 2011-01-07  Bruno Haible  <bruno@clisp.org>
60553         remove test: Avoid failure on HP-UX 11.
60554         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
60556 2011-01-07  Bruno Haible  <bruno@clisp.org>
60558         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
60559         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
60560         error code.
60562 2011-01-07  Pádraig Brady  <P@draigBrady.com>
60564         ignore-value: fixup comments, and add Eric Blake
60565         as an author since he rewrote the macros.
60566         * lib/ignore-value.h (ignore_value):  State that
60567         we now support aggregates.  Also specify exactly
60568         when the GCC warn_unused_result feature was added.
60570 2011-01-06  Eric Blake  <eblake@redhat.com>
60572         ignore-value: support aggregate types
60573         * lib/ignore-value.h (ignore_value): Provide separate gcc
60574         definition.
60575         * modules/ignore-value-tests: New test module.
60576         * tests/test-ignore-value.c: New test.
60578         maint.mk: improve sc_prohibit_strcmp regex
60579         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
60580         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
60581         definition of STRNEQ.
60583         signal: work around Haiku issue with SIGBUS
60584         * lib/siglist.h: Add comment.
60585         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
60586         strsignal's favoring of SIGSEGV.
60587         * tests/test-signal.c (main): Avoid test failure.
60588         * doc/posix-headers/signal.texi (signal.h): Document the issue.
60589         Reported by Scott McCreary.
60591         maint.mk: add pre-release check to ensure submodule commits are public
60592         * top/maint.mk (public-submodule-commit): New rule.
60593         (submodule-checks): New variable.
60594         (alpha beta stable): Depend on the variable.
60596 2011-01-05  Pádraig Brady  <P@draigBrady.com>
60597         and Jim Meyering  <meyering@redhat.com>
60599         ignore-value: make ignore_value more generic; deprecate ignore_ptr
60600         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
60601         (ATTRIBUTE_DEPRECATED): Define.
60602         (_ignore_case): New function.
60603         (ignore_value): New macro, to replace the old function.
60604         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
60605         * modules/ignore-value (Depends-on): Add stdint.
60607 2011-01-04  Eric Blake  <eblake@redhat.com>
60609         doc: regenerate INSTALL
60610         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
60611         @firstparagraphindent support, now that autoconf dropped it.
60612         (INSTALL_PRELUDE): Reinstate old macro.
60613         * doc/install.texi: Resync from autoconf.
60614         * doc/INSTALL: Reflect recent autoconf update.
60615         * doc/INSTALL.ISO: Likewise.
60616         * doc/INSTALL.UTF-8: Likewise.
60617         Reported by Karl Berry.
60619 2011-01-04  Bruce Korb  <address@hidden>
60621         git-version-gen: avoid a sub-shell
60622         * build-aux/git-version-gen: Redirect stderr in `...` via
60623         "exec 2>...", rather than via an added sub-shell.
60625 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
60627         git-version-gen: use (...) rather than sh -c '...'
60628         * build-aux/git-version-gen: Rather than hard-coding a shell's name
60629         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
60631 2011-01-03  Jim Meyering  <meyering@redhat.com>
60633         git-version-gen: convert leading TABs to spaces
60634         * build-aux/git-version-gen: Expand leading TABs.
60636         git-version-gen: handle failed "git rev-list"
60637         * build-aux/git-version-gen: Rather than leaking a "fatal" error
60638         from git and proceeding as if it had succeeded but printed no SHA1
60639         checksums, suppress the diagnostic and handle the failure.
60640         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
60642         git-version-gen: include command name in one more diagnostic
60643         * build-aux/git-version-gen: When the required .tarball-version file
60644         was missing or unreadable, you might see the diagnostic from "cat",
60645         but no trace of the name of the invoking script.  Now, you still see
60646         the diagnostic from cat, but also get one from "git-version-gen: ".
60647         Inspired by a patch from Bruce Korb.
60649         update-copyright: adjust test to match changed code
60650         * tests/test-update-copyright.sh: Change test's expected output
60651         to match new actual output.
60653 2011-01-02  Bruno Haible  <bruno@clisp.org>
60655         getlogin_r: Avoid test failure on HP-UX 11.
60656         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
60657         ERANGE when the second argument is zero.
60658         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
60659         portability problem.
60661 2011-01-02  Bruce Korb  <bkorb@gnu.org>
60663         * build-aux/update-copyright: doc Simon's changes
60665 2011-01-02  Simon Josefsson  <simon@josefsson.org>
60667         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
60668         environment variable.
60670 2011-01-02  Bruno Haible  <bruno@clisp.org>
60672         unigbrk: Avoid gcc warnings.
60673         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
60674         unused variable.
60675         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
60676         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
60677         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
60678         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
60679         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
60680         Change type of first argument to 'const char *'.
60681         (main): Remove unused variable.
60682         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
60683         type of first argument to 'const char *'.
60684         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
60685         Likewise.
60686         (main): Change type of variable 's'.
60687         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
60688         to 'int'.
60690 2011-01-02  Bruno Haible  <bruno@clisp.org>
60692         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
60693         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
60694         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
60695         bug.
60696         * lib/pwrite.c: Undo 2010-12-31 patch.
60697         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
60699 2011-01-02  Bruno Haible  <bruno@clisp.org>
60701         pread: Fix test whether it works.
60702         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
60704 2011-01-02  Bruno Haible  <bruno@clisp.org>
60706         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
60707         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
60708         ends in "6". Don't require a specific month name. Try also the locale
60709         names found on HP-UX 11 and Solaris 7.
60711 2011-01-02  Bruno Haible  <bruno@clisp.org>
60713         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
60714         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
60715         C linkage.
60716         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
60718 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60720         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
60721         for consistency, since the "cluster" term is not used elsewhere.
60722         * lib/unigbrk.in.h: Update name.
60723         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
60724         * lib/unigbrk/u16-grapheme-next.c: Update name.
60725         * lib/unigbrk/u16-grapheme-prev.c: Update name.
60726         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
60727         * lib/unigbrk/u32-grapheme-next.c: Update name.
60728         * lib/unigbrk/u32-grapheme-prev.c: Update name.
60729         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
60730         * lib/unigbrk/u8-grapheme-next.c: Update name.
60731         * lib/unigbrk/u8-grapheme-prev.c: Update name.
60732         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
60733         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
60734         Suggested by Bruno Haible.
60736 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60738         Remove module 'u8-grapheme-len' as too redundant with
60739         'u8-grapheme-next'.
60740         * modules/unigbrk/u8-grapheme-len: Delete file.
60741         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
60742         * lib/unigbrk.in.h: Remove prototype for deleted function.
60743         * lib/unigbrk/u8-grapheme-len.c: Delete file.
60744         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
60746         Remove module 'u16-grapheme-len' as too redundant with
60747         'u16-grapheme-next'.
60748         * modules/unigbrk/u16-grapheme-len: Delete file.
60749         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
60750         * lib/unigbrk.in.h: Remove prototype for deleted function.
60751         * lib/unigbrk/u16-grapheme-len.c: Delete file.
60752         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
60754         Remove module 'u32-grapheme-len' as too redundant with
60755         'u32-grapheme-next'.
60756         * modules/unigbrk/u32-grapheme-len: Delete file.
60757         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
60758         * lib/unigbrk.in.h: Remove prototype for deleted function.
60759         * lib/unigbrk/u32-grapheme-len.c: Delete file.
60760         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
60762         Suggested by Bruno Haible.
60764 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60766         * unigbrk.in.h: Fix typo: "ben" => "been".
60767         Reported by Bruno Haible.
60769 2011-01-01  Jim Meyering  <meyering@redhat.com>
60771         maint: update almost all copyright ranges to include 2011
60772         Run the new "make update-copyright" rule.
60774 2011-01-01  Jim Meyering  <meyering@redhat.com>
60776         maint: update-copyright: exempt doc/INSTALL*
60777         * Makefile (update-copyright): Also exclude doc/INSTALL*,
60778         since they are generated.  Suggested by Bruno Haible.
60780 2011-01-01  Jim Meyering  <meyering@redhat.com>
60782         maint: refine the update-copyright rule
60783         * Makefile (update-copyright): Also exclude any file that includes
60784         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
60785         code that merely generates the comment.
60787 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
60789         New module 'u8-grapheme-len'.
60790         * modules/unigbrk/u8-grapheme-len: New file.
60791         * modules/unigbrk/u8-grapheme-len-tests: New file.
60792         * lib/unigbrk.in.h: Add prototype for new function.
60793         * lib/unigbrk/u8-grapheme-len.c: New file.
60794         * tests/unigbrk/test-u8-grapheme-len.c: New file.
60796         New module 'u16-grapheme-len'.
60797         * modules/unigbrk/u16-grapheme-len: New file.
60798         * modules/unigbrk/u16-grapheme-len-tests: New file.
60799         * lib/unigbrk.in.h: Add prototype for new function.
60800         * lib/unigbrk/u16-grapheme-len.c: New file.
60801         * tests/unigbrk/test-u16-grapheme-len.c: New file.
60803         New module 'u32-grapheme-len'.
60804         * modules/unigbrk/u32-grapheme-len: New file.
60805         * modules/unigbrk/u32-grapheme-len-tests: New file.
60806         * lib/unigbrk.in.h: Add prototype for new function.
60807         * lib/unigbrk/u32-grapheme-len.c: New file.
60808         * tests/unigbrk/test-u32-grapheme-len.c: New file.
60810         New module 'u8-grapheme-next'.
60811         * modules/unigbrk/u8-grapheme-next: New file.
60812         * modules/unigbrk/u8-grapheme-next-tests: New file.
60813         * lib/unigbrk.in.h: Add prototype for new function.
60814         * lib/unigbrk/u8-grapheme-next.c: New file.
60815         * tests/unigbrk/test-u8-grapheme-next.c: New file.
60817         New module 'u16-grapheme-next'.
60818         * modules/unigbrk/u16-grapheme-next: New file.
60819         * modules/unigbrk/u16-grapheme-next-tests: New file.
60820         * lib/unigbrk.in.h: Add prototype for new function.
60821         * lib/unigbrk/u16-grapheme-next.c: New file.
60822         * tests/unigbrk/test-u16-grapheme-next.c: New file.
60824         New module 'u32-grapheme-next'.
60825         * modules/unigbrk/u32-grapheme-next: New file.
60826         * modules/unigbrk/u32-grapheme-next-tests: New file.
60827         * lib/unigbrk.in.h: Add prototype for new function.
60828         * lib/unigbrk/u32-grapheme-next.c: New file.
60829         * tests/unigbrk/test-u32-grapheme-next.c: New file.
60831         New module 'u8-grapheme-prev'.
60832         * modules/unigbrk/u8-grapheme-prev: New file.
60833         * modules/unigbrk/u8-grapheme-prev-tests: New file.
60834         * lib/unigbrk.in.h: Add prototype for new function.
60835         * lib/unigbrk/u8-grapheme-prev.c: New file.
60836         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
60838         New module 'u16-grapheme-prev'.
60839         * modules/unigbrk/u16-grapheme-prev: New file.
60840         * modules/unigbrk/u16-grapheme-prev-tests: New file.
60841         * lib/unigbrk.in.h: Add prototype for new function.
60842         * lib/unigbrk/u16-grapheme-prev.c: New file.
60843         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
60845         New module 'u32-grapheme-prev'.
60846         * modules/unigbrk/u32-grapheme-prev: New file.
60847         * modules/unigbrk/u32-grapheme-prev-tests: New file.
60848         * lib/unigbrk.in.h: Add prototype for new function.
60849         * lib/unigbrk/u32-grapheme-prev.c: New file.
60850         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
60852         New module 'u8-grapheme-breaks'.
60853         * modules/unigbrk/u8-grapheme-breaks: New file.
60854         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
60855         * lib/unigbrk.in.h: Add prototype for new function.
60856         * lib/unigbrk/u8-grapheme-breaks.c: New file.
60857         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
60859         New module 'u16-grapheme-breaks'.
60860         * modules/unigbrk/u16-grapheme-breaks: New file.
60861         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
60862         * lib/unigbrk.in.h: Add prototype for new function.
60863         * lib/unigbrk/u16-grapheme-breaks.c: New file.
60864         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
60866         New module 'u32-grapheme-breaks'.
60867         * modules/unigbrk/u32-grapheme-breaks: New file.
60868         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
60869         * lib/unigbrk.in.h: Add prototype for new function.
60870         * lib/unigbrk/u32-grapheme-breaks.c: New file.
60871         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
60873         New module 'ulc-grapheme-breaks'.
60874         * modules/unigbrk/ulc-grapheme-breaks: New file.
60875         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
60876         * m4/locale-ar.m4: New file.
60877         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
60878         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
60879         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
60881 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
60883         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
60884         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
60885         modified how this file was generated before I initially submitted
60886         the module, but failed to regenerate it.  This meant that several
60887         of the level2 entries were wrong.
60888         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
60889         Remove the division-by-2 that is folded into the table now that
60890         gbrkprop.h has been regenerated properly.  Now -1 entries are
60891         handled correctly.
60893         New module 'unigbrk/uc-gbrk-prop-tests'.
60894         * modules/unigbrk/uc-gbrk-prop-tests: New file.
60895         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
60896         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
60897         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
60899 2011-01-01  Bruno Haible  <bruno@clisp.org>
60901         Avoid use of hexadecimal escapes.
60902         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
60903         instead of hexadecimal escapes.
60905 2011-01-01  Jim Meyering  <meyering@redhat.com>
60907         maint: new rule to update copyright year ranges
60908         * Makefile (update-copyright): New rule.
60910         maint: indent with TABs in Makefile
60911         * Makefile: Expand leading sequences of spaces to TABs
60913         version-etc: update the copyright year it reports
60914         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
60916 2010-12-31  Bruno Haible  <bruno@clisp.org>
60918         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
60919         * lib/isfinite.c (zerof, zerod, zerol): New variables.
60920         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
60921         zero.
60923 2010-12-31  Bruno Haible  <bruno@clisp.org>
60925         pwrite: Work around HP-UX 11.11 bug.
60926         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
60927         works and set REPLACE_PWRITE if not.
60928         * lib/pwrite.c (pwrite): Add an implementation that uses the system
60929         function.
60930         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
60932 2010-12-31  Bruno Haible  <bruno@clisp.org>
60934         pread: Work around HP-UX 11 bugs.
60935         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
60936         and set REPLACE_PREAD if not.
60937         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
60939 2010-12-31  Eric Blake  <eblake@redhat.com>
60941         nl_langinfo: fix YESEXPR on Irix 6.5
60942         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
60943         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
60944         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
60945         it.
60947 2010-12-31  Bruno Haible  <bruno@clisp.org>
60949         iconv: Document HP-UX 11 bug.
60950         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
60952 2010-12-31  Bruno Haible  <bruno@clisp.org>
60954         ldexpl: Fix link error on HP-UX 11.
60955         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
60956         LDEXPL_LIBM, using $ISNANL_LIBM.
60958 2010-12-31  Eric Blake  <eblake@redhat.com>
60960         ftello: avoid compilation failure with SunStudio c89
60961         * lib/ftello.c (ftello): Use lseek, not llseek.
60963         tests: avoid failing coreutils tests on cygwin
60964         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
60965         (create_exe_shims_): Return 0 when skipping.
60967 2010-12-31  Bruno Haible  <bruno@clisp.org>
60969         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
60970         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
60972 2010-12-31  Bruno Haible  <bruno@clisp.org>
60974         waitpid: Fix link error in C++ mode.
60975         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
60977 2010-12-31  Bruno Haible  <bruno@clisp.org>
60979         isnan: Use GCC built-ins when possible.
60980         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
60981         __builtin_isnan.
60982         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
60983         (isnan): Define using GCC built-ins for GCC >= 4.0.
60985 2010-12-31  Bruno Haible  <bruno@clisp.org>
60987         isnand: Fix mistake.
60988         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
60989         __builtin_isnand.
60991 2010-12-31  Bruno Haible  <bruno@clisp.org>
60993         open: Avoid C++ error on HP-UX 11.
60994         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
60996 2010-12-31  Bruno Haible  <bruno@clisp.org>
60998         time_r: Add missing declarations on HP-UX 11.
60999         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
61000         instead of HAVE_LOCALTIME_R.
61001         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
61002         HAVE_LOCALTIME_R always.
61003         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
61004         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
61005         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
61006         HAVE_LOCALTIME_R.
61007         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
61008         * doc/posix-functions/localtime_r.texi: Likewise.
61010 2010-12-29  Eric Blake  <eblake@redhat.com>
61012         mountlist: tweak previous commit
61013         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
61014         Reported by Paul Eggert.
61016         mountlist: fix local drive detection on cygwin
61017         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
61018         that works for cygwin.
61020 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61022         ftoastr, snprintf: ftoastr + snprintf module
61023         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
61024         since the snprintf module now should be good enough here.
61025         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
61026         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
61027         and gl_MODULE_INDICATOR([snprintf]), but the former enables
61028         GNULIB_SNPRINTF only for the test directory, and the latter
61029         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
61030         seems to suffice by itself.
61032 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61034         alloca: one step towards thread-safety
61035         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
61036         need for a static variable.  All callers changed.  This does not
61037         make the alloca replacement thread-safe, but it's one step.
61039         tests: minor indenting change
61040         * tests/init.sh: Sync from coreutils housekeeping patch
61041         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
61042         to keep lines within 80 columns.
61044 2010-12-28  Jim Meyering  <meyering@redhat.com>
61046         regex: don't infloop on persistent failing calloc
61047         * lib/regexec.c (build_trtable): Return failure indication upon
61048         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
61049         In glibc, this was fixed for version 2.13:
61050         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
61052 2010-12-28  Bruno Haible  <bruno@clisp.org>
61053             Paul Eggert <eggert@cs.ucla.edu>
61055         linkat: Make implementation robust against system behaviour variations.
61056         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
61057         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
61058         way, and to -2 if it needs a generic runtime test.
61059         * lib/linkat.c (solaris_optimized_link_immediate,
61060         solaris_optimized_link_follow): New functions.
61061         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
61062         (check_same_link): Use it.
61064 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
61066         New module 'unigbrk/base'.
61067         * modules/unigbrk/base: New file.
61068         * lib/unigbrk.in.h: New file.
61070         New module 'unigbrk/uc-gbrk-prop'.
61071         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
61072         * modules/unigbrk/uc-gbrk-prop: New file.
61073         * lib/unigbrk/gbrkprop.h: New file.
61074         * lib/unigbrk/uc-gbrk-prop.c: New file.
61076         New module 'unigbrk/uc-is-grapheme-break'.
61077         * modules/unigbrk/uc-is-grapheme-break: New file.
61078         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
61079         * lib/unigbrk/uc-is-grapheme-break.c: New file.
61080         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
61081         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
61082         * tests/unigbrk/GraphemeBreakTest.txt: New file.
61084         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
61086 2010-12-27  Bruno Haible  <bruno@clisp.org>
61088         linkat test: Avoid failure on Solaris 11 2010-11.
61089         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
61091 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61093         utimens: work around glibc rounding bug on more platforms
61094         * lib/utimens.c (fdutimens): Work around rounding bug even if
61095         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
61096         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
61098 2010-12-27  Bruno Haible  <bruno@clisp.org>
61100         select tests: Improve comments.
61101         * tests/test-select.c (do_select): Add comments.
61103 2010-12-27  Bruno Haible  <bruno@clisp.org>
61105         select tests: Safer way of handling timeout.
61106         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
61107         at every invocation.
61109 2010-12-27  Bruno Haible  <bruno@clisp.org>
61111         select tests: Use 'bool' where appropriate.
61112         * tests/test-select.c (connect_to_socket): Change argument type to
61113         'bool'.
61115 2010-12-27  Bruno Haible  <bruno@clisp.org>
61117         select tests: Use existing modules.
61118         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
61119         (configure.ac): Don't test for unistd.h.
61120         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
61121         declared in <unistd.h>.
61123 2010-12-27  Bruno Haible  <bruno@clisp.org>
61125         mbrtowc: Work around a Solaris 7 bug.
61126         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
61127         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
61128         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
61129         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
61130         MBRTOWC_NULL_ARG1_BUG.
61131         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
61132         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
61133         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
61134         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
61136 2010-12-27  Jim Meyering  <meyering@redhat.com>
61138         read-file.c: tweak syntax
61139         * lib/read-file.c (fread_file): Remove space after "*" in function
61140         definitions.
61142 2010-12-27  Bruno Haible  <bruno@clisp.org>
61144         times test: Avoid gcc warnings on OSF/1.
61145         * tests/test-times.c (main): Cast printf arguments from clock_t to
61146         'long int'.
61148 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61150         utimens: work around glibc rounding bug on older Linux kernels
61151         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
61152         on Linux with a glibc whose utimes might not work, then work
61153         around a longstanding glibc bug involving rounding rather than
61154         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
61155         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
61157 2010-12-26  Bruno Haible  <bruno@clisp.org>
61159         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
61160         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
61161         _GL_CXXALIAS_SYS.
61162         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61164 2010-12-26  Bruno Haible  <bruno@clisp.org>
61166         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
61167         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
61168         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
61169         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
61170         looking for the declaration.
61171         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61172         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
61173         problem.
61174         * doc/posix-functions/inet_pton.texi: Likewise.
61176 2010-12-26  Bruno Haible  <bruno@clisp.org>
61178         arpa_inet: Use the common idioms with C++ support.
61179         * lib/arpa_inet.in.h: Include c++defs.h.
61180         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
61181         support.
61182         * modules/arpa_inet (Depends-on): Add c++defs.
61183         (Makefile.am): Substitute the contents of c++defs.h.
61184         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
61185         * modules/arpa_inet-c++-tests: New file.
61186         * tests/test-arpa_inet-c++.cc: New file.
61188 2010-12-25  Bruno Haible  <bruno@clisp.org>
61190         Fix more C++ link errors on Solaris 8.
61191         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
61192         $(LIB_EACCESS).
61193         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
61194         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
61195         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
61196         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
61197         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
61199 2010-12-25  Bruno Haible  <bruno@clisp.org>
61201         printf-posix: Fix link error when a non-GCC compiler is used.
61202         * lib/stdio.in.h (printf): When not using GCC, override printf
61203         correctly.
61204         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61206 2010-12-25  Bruno Haible  <bruno@clisp.org>
61208         strerror_r-posix: Update doc.
61209         * doc/posix-functions/strerror_r.texi: Update doc about the return
61210         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
61212 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61214         utimens: simplify the logic of the previous change
61215         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
61216         This should not affect whether the test succeeds or fails.
61218         utimens: configure better on hosts with NFS clock skew
61219         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
61220         uses the clock of the local host.  It might use the clock of the
61221         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
61222         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
61224 2010-12-25  Bruno Haible  <bruno@clisp.org>
61226         ptsname test: Avoid failure on Solaris.
61227         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
61228         open a pseudo-terminal; don't use BSD-style ptys.
61229         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
61231 2010-12-25  Bruno Haible  <bruno@clisp.org>
61233         ptsname: Avoid ERANGE failure on some systems.
61234         * lib/ptsname.c (buffer): Increase size.
61236 2010-12-25  Bruno Haible  <bruno@clisp.org>
61238         rename, renameat: Avoid test failures at NFS mounted locations.
61239         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
61240         so that subsequent mkdir calls succeed.
61242 2010-12-25  Bruno Haible  <bruno@clisp.org>
61244         iswblank: Fix C++ link error on Solaris 8.
61245         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
61246         _GL_FUNCDECL_SYS.
61248 2010-12-25  Bruno Haible  <bruno@clisp.org>
61250         unistd: Fix C++ link error on Solaris 8.
61251         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
61253 2010-12-25  Bruno Haible  <bruno@clisp.org>
61255         readlink doc: Mention an old glibc bug.
61256         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
61258 2010-12-25  Bruno Haible  <bruno@clisp.org>
61260         fcntl-h: Fix for use of C++ on glibc systems.
61261         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
61262         also on glibc systems in C++ mode.
61263         Reported by Gary V. Vaughan <gary@gnu.org>.
61265 2010-12-25  Bruno Haible  <bruno@clisp.org>
61267         roundl-ieee: Make it work on OSF/1 5.1 with cc.
61268         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
61270 2010-12-25  Bruno Haible  <bruno@clisp.org>
61272         truncl-ieee: Make it work on OSF/1 5.1 with cc.
61273         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
61274         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
61275         test whether truncl works according to ISO C 99 with IEC 60559.
61276         * m4/truncl-ieee.m4: New file.
61277         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
61278         m4/signbit.m4.
61279         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
61281 2010-12-25  Bruno Haible  <bruno@clisp.org>
61283         ceill-ieee: Make it work on OSF/1 5.1 with cc.
61284         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
61285         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
61286         test whether ceill works according to ISO C 99 with IEC 60559.
61287         * m4/ceill-ieee.m4: New file.
61288         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
61289         m4/signbit.m4.
61290         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
61292 2010-12-25  Bruno Haible  <bruno@clisp.org>
61294         Ensure all prerequisites of <wchar.h> are included.
61295         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
61296         before <wchar.h>.
61297         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
61298         gl_MBRLEN_NUL_RETVAL): Likewise.
61299         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61300         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
61301         AC_FUNC_MBRTOWC): Likewise.
61302         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61303         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61304         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61305         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
61306         Likewise.
61307         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61308         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
61309         (gl_WCHAR_H): Improve comments.
61310         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
61312 2010-12-25  Bruno Haible  <bruno@clisp.org>
61314         strtok_r: Fix C syntax error in autoconf macro.
61315         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
61316         characters in test program.
61318 2010-12-24  Bruno Haible  <bruno@clisp.org>
61320         ceil, trunc, round: Fix gcc warnings.
61321         * lib/ceil.c (MIN): Undefine before redefining.
61322         * lib/trunc.c (MIN): Likewise.
61323         * lib/round.c (MIN): Likewise.
61324         Include <math.h> first.
61326 2010-12-24  Bruno Haible  <bruno@clisp.org>
61328         select tests: Avoid failures on OSF/1 5.1.
61329         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
61330         failure of closing the last socket; it may fail with ECONNRESET.
61332 2010-12-24  Eric Blake  <eblake@redhat.com>
61334         stdint: avoid HP-UX 10.20 preprocessor bug
61335         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
61336         than #if.
61337         * tests/test-floor2.c (main): Likewise.
61338         Reported by Peter O'Gorman.
61340         pipe: make obsoletion transition easier
61341         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
61342         * modules/pipe (Files): Include revived file.
61343         (Include): Drop reference, to mirror getdate's behavior.
61345 2010-12-24  Bruno Haible  <bruno@clisp.org>
61347         sys_socket: Hide mismatch of declarations on NonStop Kernel.
61348         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
61349         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
61350         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61352 2010-12-24  Bruno Haible  <bruno@clisp.org>
61354         gethostname: Ensure declaration on NonStop Kernel.
61355         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
61356         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61358 2010-12-24  Bruno Haible  <bruno@clisp.org>
61360         sys_select: Ensure all necessary types on NonStop Kernel.
61361         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
61362         include <sys/time.h>.
61363         * doc/posix-headers/sys_select.texi: Mention that it's missing on
61364         NonStop Kernel.
61365         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61367 2010-12-24  Bruno Haible  <bruno@clisp.org>
61369         sys_select: Remove unneeded include.
61370         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
61371         have <sys/select.h>.
61373 2010-12-24  Bruno Haible  <bruno@clisp.org>
61375         gethostname: Provide a fallback for HOST_NAME_MAX.
61376         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
61377         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
61378         instead.
61379         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61381 2010-12-24  Bruno Haible  <bruno@clisp.org>
61383         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
61384         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
61385         (SA_RESTART): Likewise.
61386         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61388 2010-12-24  Bruno Haible  <bruno@clisp.org>
61390         signal: Define NSIG.
61391         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
61392         * tests/test-signal.c (nsig): New variable.
61393         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61395 2010-12-24  Bruno Haible  <bruno@clisp.org>
61397         rename, renameat: Avoid test failures on OSF/1 5.1.
61398         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
61399         alternative error codes.
61400         * tests/test-renameat.c (main): Likewise.
61402 2010-12-24  Bruno Haible  <bruno@clisp.org>
61404         *printf: Detect large precisions bug on Solaris 10/SPARC.
61405         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
61406         by Paul Eggert.
61407         * tests/test-snprintf-posix.h (test_function): Add this test code here
61408         too.
61409         * tests/test-sprintf-posix.h (test_function): Likewise.
61410         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61411         * tests/test-vasprintf-posix.c (test_function): Likewise.
61412         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
61413         around by gnulib.
61414         * doc/posix-functions/printf.texi: Likewise.
61415         * doc/posix-functions/snprintf.texi: Likewise.
61416         * doc/posix-functions/sprintf.texi: Likewise.
61417         * doc/posix-functions/vfprintf.texi: Likewise.
61418         * doc/posix-functions/vprintf.texi: Likewise.
61419         * doc/posix-functions/vsnprintf.texi: Likewise.
61420         * doc/posix-functions/vsprintf.texi: Likewise.
61421         * doc/posix-functions/dprintf.texi: Undo last commit.
61422         * doc/posix-functions/vdprintf.texi: Likewise.
61424 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61426         tests: port test-fdutimensat.c to Solaris 8
61427         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
61428         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
61429         On Solaris 8, it fails with errno == ENOSYS, because there is no
61430         futimens (so it can't use the fd), and there is no lutimens (so it
61431         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
61433         vsnprintf: make more consistent with snprintf; doc fixes
61435         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
61436         the byte count return problem was promoted from the snprintf-posix
61437         to the snprintf module.
61438         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
61439         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
61440         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
61441         * tests/test-snprintf.c (main): Check the byte count returned.
61442         * tests/test-vsnprintf.c (main): Likewise.
61444 2010-12-23  Eric Blake  <eblake@redhat.com>
61446         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
61447         * modules/sigpipe (License): Relax license.
61449 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61451         doc: document Solaris printf bug with large float precisions
61452         * doc/posix-functions/dprintf.texi (dprintf):
61453         * doc/posix-functions/fprintf.texi (fprintf):
61454         * doc/posix-functions/printf.texi (printf):
61455         * doc/posix-functions/snprintf.texi (snprintf):
61456         * doc/posix-functions/sprintf.texi (sprintf):
61457         * doc/posix-functions/vdprintf.texi (vdprintf):
61458         * doc/posix-functions/vfprintf.texi (vfprintf):
61459         * doc/posix-functions/vprintf.texi (vprintf):
61460         * doc/posix-functions/vsnprintf.texi (vsnprintf):
61461         * doc/posix-functions/vsprintf.texi (vsprintf):
61462         Mention that these functions mishandle large floating point
61463         precisions on Solaris 10.  The same bug is also present in Solaris
61464         8, and I assume earlier.  This causes "cd gnulib-tests; make
61465         check" to fail on Solaris 8 (and I assume, later) when building
61466         the latest coreutils, in test-vasprintf-posix's call to
61467         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
61468         the wide flavors (e.g., wprintf) so this patch just updates the
61469         documentation for the narrow ones.
61471         test-posixtm.c: add two tests
61472         * tests/test-posixtm.c: Add two tests, to highlight the
61473         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
61474         around this bug; this is merely to document it.
61476 2010-12-22  Bruno Haible  <bruno@clisp.org>
61478         getlogin_r: Work around portability problem on OSF/1.
61479         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
61480         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
61481         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
61482         test for a truncated result.
61483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
61484         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
61485         * modules/getlogin_r (Depends-on): Add memchr.
61486         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
61488 2010-12-22  Bruno Haible  <bruno@clisp.org>
61490         ptsname: Avoid test failure on OSF/1 5.1.
61491         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
61492         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
61493         (same_slave): New function.
61494         (main): Use it to compare ptsname's result with the expected file name.
61496 2010-12-22  Bruno Haible  <bruno@clisp.org>
61498         Port extended stdio modules to HP NonStop Kernel.
61499         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
61500         macros.
61501         * lib/fbufmode.c: Update comments.
61502         * lib/fflush.c: Likewise.
61503         * lib/fpurge.c: Likewise.
61504         * lib/freadable.c: Likewise.
61505         * lib/freadahead.c: Likewise.
61506         * lib/freading.c: Likewise.
61507         * lib/freadptr.c: Likewise.
61508         * lib/freadseek.c: Likewise.
61509         * lib/fseeko.c: Likewise.
61510         * lib/fseterr.c: Likewise.
61511         * lib/fwritable.c: Likewise.
61512         * lib/fwriting.c: Likewise.
61513         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61515 2010-12-22  Bruno Haible  <bruno@clisp.org>
61517         ttyname_r: Work around bug on OSF/1 5.1.
61518         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
61519         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
61520         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
61521         present.
61522         * lib/ttyname_r.c (ttyname_r): Update comments.
61524 2010-12-22  Bruno Haible  <bruno@clisp.org>
61526         round: Implement result sign according to IEEE 754.
61527         * lib/round.c (MIN, MINUS_ZERO): New macros.
61528         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
61529         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
61530         * tests/test-round-ieee.c (main): Likewise.
61531         * tests/test-roundl-ieee.c (main): Likewise.
61533         trunc: Implement result sign according to IEEE 754.
61534         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
61535         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
61536         * tests/test-trunc2.c: Include minus-zero.h.
61537         (MINUS_ZERO): New macro.
61538         (trunc_reference): Keep in sync with lib/trunc.c.
61539         * tests/test-truncf2.c: Include minus-zero.h.
61540         (MINUS_ZERO): New macro.
61541         (truncf_reference): Keep in sync with lib/trunc.c.
61542         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
61543         * tests/test-trunc-ieee.c (main): Likewise.
61544         * tests/test-truncl-ieee.c (main): Likewise.
61546         ceil: Implement result sign according to IEEE 754.
61547         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
61548         (FUNC): Return -0.0 for -1 < x < 0.
61549         * tests/test-ceil2.c: Include minus-zero.h.
61550         (MINUS_ZERO): New macro.
61551         (ceil_reference): Keep in sync with lib/ceil.c.
61552         * tests/test-ceilf2.c: Include minus-zero.h.
61553         (MINUS_ZERO): New macro.
61554         (ceilf_reference): Keep in sync with lib/ceil.c.
61555         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
61556         * tests/test-ceil-ieee.c (main): Likewise.
61557         * tests/test-ceill-ieee.c (main): Likewise.
61559         floor: Implement result sign according to IEEE 754.
61560         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
61561         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
61562         * tests/test-floorf2.c (floorf_reference): Likewise.
61563         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
61564         * tests/test-floor-ieee.c (main): Likewise.
61565         * tests/test-floorl-ieee.c (main): Likewise.
61567 2010-12-22  Bruno Haible  <bruno@clisp.org>
61569         getaddrinfo: Update doc.
61570         * doc/posix-functions/gai_strerror.texi: Return type is also different
61571         on AIX and HP-UX.
61573 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61575         getaddrinfo, inet_ntop: Update doc for Solaris.
61576         * doc/posix-functions/gai_strerror.texi: Return type is also an
61577         issue on Solaris 9 and earlier.
61578         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
61579         on Solaris 10 and earlier.
61581 2010-12-21  Bruno Haible  <bruno@clisp.org>
61583         New module 'roundl-ieee'.
61584         * modules/roundl-ieee: New file.
61585         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
61586         test whether roundl works according to ISO C 99 with IEC 60559.
61587         * m4/roundl-ieee.m4: New file.
61588         * modules/roundl-ieee-tests: New file.
61589         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
61590         * tests/test-roundl.c (main): Remove signbit tests.
61591         * modules/roundl-tests (Depends-on): Remove signbit.
61592         * doc/posix-functions/roundl.texi: Mention the new module.
61594 2010-12-21  Bruno Haible  <bruno@clisp.org>
61596         New module 'truncl-ieee'.
61597         * modules/truncl-ieee: New file.
61598         * modules/truncl-ieee-tests: New file.
61599         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
61600         * tests/test-truncl.c (main): Remove signbit tests.
61601         * modules/truncl-tests (Depends-on): Remove signbit.
61602         * doc/posix-functions/truncl.texi: Mention the new module.
61604 2010-12-21  Bruno Haible  <bruno@clisp.org>
61606         New module 'ceill-ieee'.
61607         * modules/ceill-ieee: New file.
61608         * modules/ceill-ieee-tests: New file.
61609         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
61610         * tests/test-ceill.c (main): Remove signbit tests.
61611         * modules/ceill-tests (Depends-on): Remove signbit.
61612         * doc/posix-functions/ceill.texi: Mention the new module.
61614 2010-12-21  Bruno Haible  <bruno@clisp.org>
61616         New module 'floorl-ieee'.
61617         * modules/floorl-ieee: New file.
61618         * modules/floorl-ieee-tests: New file.
61619         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
61620         * tests/test-floorl.c (main): Remove signbit tests.
61621         * modules/floorl-tests (Depends-on): Remove signbit.
61622         * doc/posix-functions/floorl.texi: Mention the new module.
61624 2010-12-21  Bruno Haible  <bruno@clisp.org>
61626         New module 'round-ieee'.
61627         * modules/round-ieee: New file.
61628         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
61629         whether round works according to ISO C 99 with IEC 60559.
61630         * m4/round-ieee.m4: New file.
61631         * modules/round-ieee-tests: New file.
61632         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
61633         * tests/test-round1.c (main): Remove signbit tests.
61634         * modules/round-tests (Depends-on): Remove 'signbit'.
61635         * doc/posix-functions/round.texi: Mention the new module.
61637 2010-12-21  Bruno Haible  <bruno@clisp.org>
61639         New module 'trunc-ieee'.
61640         * modules/trunc-ieee: New file.
61641         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
61642         whether trunc works according to ISO C 99 with IEC 60559.
61643         * m4/trunc-ieee.m4: New file.
61644         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
61645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
61646         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
61647         * modules/trunc-ieee-tests: New file.
61648         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
61649         * tests/test-trunc1.c (main): Remove signbit tests.
61650         * modules/trunc-tests (Depends-on): Remove 'signbit'.
61651         * doc/posix-functions/trunc.texi: Mention the new module.
61653 2010-12-21  Bruno Haible  <bruno@clisp.org>
61655         New module 'ceil-ieee'.
61656         * modules/ceil-ieee: New file.
61657         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
61658         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
61659         ISO C 99 with IEC 60559.
61660         * m4/ceil-ieee.m4: New file.
61661         * modules/ceil (Files): Add lib/ceil.c.
61662         (Depends-on): Add 'float'.
61663         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
61664         * lib/math.in.h (ceil): New declaration.
61665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
61666         REPLACE_CEIL.
61667         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
61668         * modules/ceil-ieee-tests: New file.
61669         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
61670         * tests/test-math-c++.cc: Check the signature of 'ceil'.
61671         * doc/posix-functions/ceil.texi: Mention the new module.
61673 2010-12-21  Bruno Haible  <bruno@clisp.org>
61675         New module 'floor-ieee'.
61676         * modules/floor-ieee: New file.
61677         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
61678         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
61679         ISO C 99 with IEC 60559.
61680         * m4/floor-ieee.m4: New file.
61681         * modules/floor (Files): Add lib/floor.c.
61682         (Depends-on): Add 'float'.
61683         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
61684         * lib/math.in.h (floor): New declaration.
61685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
61686         REPLACE_FLOOR.
61687         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
61688         * modules/floor-ieee-tests: New file.
61689         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
61690         * tests/test-math-c++.cc: Check the signature of 'floor'.
61691         * doc/posix-functions/floor.texi: Mention the new module.
61693 2010-12-21  Bruno Haible  <bruno@clisp.org>
61695         New module 'roundf-ieee'.
61696         * modules/roundf-ieee: New file.
61697         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
61698         test whether roundf works according to ISO C 99 with IEC 60559.
61699         * m4/roundf-ieee.m4: New file.
61700         * modules/roundf-ieee-tests: New file.
61701         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
61702         * tests/test-roundf1.c (main): Remove signbit tests.
61703         * modules/roundf-tests (Depends-on): Remove 'signbit'.
61704         * doc/posix-functions/roundf.texi: Mention the new module.
61706 2010-12-21  Bruno Haible  <bruno@clisp.org>
61708         New module 'truncf-ieee'.
61709         * modules/truncf-ieee: New file.
61710         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
61711         test whether truncf works according to ISO C 99 with IEC 60559.
61712         * m4/truncf-ieee.m4: New file.
61713         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
61714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
61715         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
61716         * modules/truncf-ieee-tests: New file.
61717         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
61718         * tests/test-truncf1.c (main): Remove signbit tests.
61719         * modules/truncf-tests (Depends-on): Remove 'signbit'.
61720         * doc/posix-functions/truncf.texi: Mention the new module.
61722 2010-12-21  Bruno Haible  <bruno@clisp.org>
61724         New module 'ceilf-ieee'.
61725         * modules/ceilf-ieee: New file.
61726         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
61727         test whether ceilf works according to ISO C 99 with IEC 60559.
61728         * m4/ceilf-ieee.m4: New file.
61729         * modules/ceilf-ieee-tests: New file.
61730         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
61731         * tests/test-ceilf1.c (main): Remove signbit tests.
61732         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
61733         * doc/posix-functions/ceilf.texi: Mention the new module.
61735 2010-12-21  Bruno Haible  <bruno@clisp.org>
61737         New module 'floorf-ieee'.
61738         * modules/floorf-ieee: New file.
61739         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
61740         test whether floorf works according to ISO C 99 with IEC 60559.
61741         * m4/floorf-ieee.m4: New file.
61742         * modules/floorf-ieee-tests: New file.
61743         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
61744         * tests/test-floorf1.c (main): Remove signbit tests.
61745         * modules/floorf-tests (Depends-on): Remove 'signbit'.
61746         * doc/posix-functions/floorf.texi: Mention the new module.
61748 2010-12-21  Bruno Haible  <bruno@clisp.org>
61750         Support for minus zero in autoconf macros.
61751         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
61752         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
61753         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
61754         * tests/minus-zero.h: Update comments.
61756 2010-12-21  Bruno Haible  <bruno@clisp.org>
61758         Tests for module 'ceil'.
61759         * modules/ceil-tests: New file.
61760         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
61761         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
61763 2010-12-21  Bruno Haible  <bruno@clisp.org>
61765         Tests for module 'floor'.
61766         * modules/floor-tests: New file.
61767         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
61768         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
61770 2010-12-21  Bruno Haible  <bruno@clisp.org>
61772         math: Fix indentation.
61773         * lib/math.in.h (floorf): Fix indentation.
61775 2010-12-21  Bruno Haible  <bruno@clisp.org>
61777         Fix cross-compilation guesses on Solaris.
61778         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
61779         not match "solaris2.10".
61780         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61781         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
61782         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
61784 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61786         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
61787         This fixes a problem observed with the latest coreutils snapshot
61788         that caused a test to fail on Solaris 8.  src/csplit.c's call
61789         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
61790         earlier, instead of returning the number of bytes that would have
61791         been generated; this causes csplit to incorrectly report memory
61792         exhaustion.
61793         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
61794         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
61795         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
61796         comments to match.
61797         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
61798         Fix typo in matching older versions of Solaris: "solaris2.10"
61799         is matched by the shell pattern "solaris2.[0-9]*".  This matters
61800         only for guessing while cross-compiling.
61801         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
61803 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
61805         ftoastr: fix comment again
61806         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
61807         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
61808         Also, simplify example a bit by using flags = 0.
61810 2010-12-20  Bruno Haible  <bruno@clisp.org>
61812         round*, trunc*: Update documentation regarding glibc.
61813         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
61814         * doc/posix-functions/round.texi: Likewise.
61815         * doc/posix-functions/roundl.texi: Likewise.
61816         * doc/posix-functions/truncf.texi: Likewise.
61817         * doc/posix-functions/trunc.texi: Likewise.
61818         * doc/posix-functions/truncl.texi: Likewise.
61820 2010-12-20  Bruno Haible  <bruno@clisp.org>
61822         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
61823         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
61824         * doc/posix-functions/round.texi: Likewise.
61825         * doc/posix-functions/roundl.texi: Likewise.
61827 2010-12-20  Bruno Haible  <bruno@clisp.org>
61829         ttyname_r: Add missing declaration on HP-UX 11.
61830         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
61831         HAVE_TTYNAME_R.
61832         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
61833         declared. Set HAVE_TTYNAME_R always.
61834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61835         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
61836         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
61837         HAVE_TTYNAME_R.
61838         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
61840 2010-12-20  Bruno Haible  <bruno@clisp.org>
61842         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
61843         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
61844         * doc/posix-functions/getlogin_r.texi: Likewise.
61845         * tests/test-getlogin.c: Include <errno.h>.
61846         (main): Avoid test failure on HP-UX 11.11.
61847         * tests/test-getlogin_r.c (main): Likewise.
61849 2010-12-20  Bruno Haible  <bruno@clisp.org>
61851         getlogin_r: Add missing declaration on HP-UX 11.
61852         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
61853         declared also when it exists as a function.
61854         * doc/posix-functions/getlogin_r.texi: Document this workaround.
61856 2010-12-20  Bruno Haible  <bruno@clisp.org>
61858         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
61859         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
61860         through wcrtomb.
61862 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61864         ftoastr: fix comment
61865         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
61866         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
61868 2010-12-19  Bruno Haible  <bruno@clisp.org>
61870         isnan: Ensure it is a macro.
61871         * lib/math.in.h (isnan): Define as a macro if not already a macro.
61872         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
61873         Solaris.
61875 2010-12-19  Bruno Haible  <bruno@clisp.org>
61877         ldexpl test: Fix link error on OSF/1 5.1.
61878         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
61880 2010-12-19  Bruno Haible  <bruno@clisp.org>
61882         wctype: Make it work in C++ mode on OSF/1 5.1.
61883         * lib/wctype.in.h (iswblank): Declare but not define here.
61884         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
61885         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
61886         * modules/wctype (Files): Add lib/iswblank.c.
61888 2010-12-19  Bruno Haible  <bruno@clisp.org>
61890         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
61891         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
61892         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
61894 2010-12-19  Bruno Haible  <bruno@clisp.org>
61896         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
61897         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
61898         _POSIX_PII_SOCKET.
61899         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
61900         * doc/posix-functions/recvfrom.texi: Likewise.
61901         * doc/posix-functions/send.texi: Likewise.
61902         * doc/posix-functions/sendto.texi: Likewise.
61904 2010-12-19  Bruno Haible  <bruno@clisp.org>
61906         tcgetsid: Add missing declaration on OSF/1 5.1.
61907         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
61908         HAVE_TCGETSID.
61909         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
61910         Don't set HAVE_TCGETSID.
61911         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
61912         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
61913         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
61914         HAVE_TCGETSID.
61915         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
61917 2010-12-19  Bruno Haible  <bruno@clisp.org>
61919         stdio: Fix problem with popen() declaration on OSF/1 5.1.
61920         * lib/stdio.in.h: During the include_next statement, let recursive
61921         includes of this file include only the system header file.
61923 2010-12-19  Bruno Haible  <bruno@clisp.org>
61925         iconv_open: Fix regression from 2010-12-04.
61926         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
61927         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
61929 2010-12-19  Bruno Haible  <bruno@clisp.org>
61931         stdbool test: Avoid a gcc warning.
61932         * tests/test-stdbool.c (main): Fail if e1 is false.
61933         Reported by Jim Meyering.
61935 2010-12-19  Jim Meyering  <meyering@redhat.com>
61937         setenv: restore to working order
61938         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
61939         mistakenly removed.
61940         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
61941         HAVE_SETENV.
61942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
61943         HAVE_SETENV.
61945 2010-12-19  Bruno Haible  <bruno@clisp.org>
61947         Document some different function declarations on OSF/1 5.1.
61948         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
61949         * doc/posix-functions/inet_ntop.texi: Likewise.
61950         * doc/posix-functions/gethostname.texi: Likewise.
61951         * lib/unistd.in.h (gethostname): Update comment.
61953 2010-12-19  Bruno Haible  <bruno@clisp.org>
61955         doc: Mention vasprintf-posix module.
61956         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
61957         the 'vasprintf-posix' module.
61958         * doc/glibc-functions/vasprintf.texi: Likewise.
61960 2010-12-19  Bruno Haible  <bruno@clisp.org>
61962         unsetenv: Add missing declaration on OSF/1 5.1.
61963         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
61964         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
61965         Don't set HAVE_UNSETENV. In the test program, set _BSD.
61966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
61967         not HAVE_UNSETENV.
61968         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
61969         HAVE_UNSETENV.
61970         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
61972 2010-12-19  Bruno Haible  <bruno@clisp.org>
61974         setenv: Add missing declaration on OSF/1 5.1.
61975         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
61976         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
61977         declared. Don't set HAVE_SETENV.
61978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
61979         not HAVE_SETENV.
61980         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
61981         HAVE_SETENV.
61982         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
61984 2010-12-19  Bruno Haible  <bruno@clisp.org>
61986         nl_langinfo tests: Avoid gcc warning.
61987         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
61989 2010-12-19  Bruno Haible  <bruno@clisp.org>
61991         mknod: Avoid error in C++ mode on OSF/1 with GCC.
61992         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
61993         _GL_CXXALIAS_SYS.
61995 2010-12-19  Bruno Haible  <bruno@clisp.org>
61997         stdbool: Relax test.
61998         * tests/test-stdbool.c (e): Don't require that casts from a variable's
61999         address to 'bool' work in static initializer, for compilers other than
62000         GCC.
62002 2010-12-19  Bruno Haible  <bruno@clisp.org>
62004         ftello: Add missing declaration on OSF/1 5.1.
62005         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
62006         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
62007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
62008         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
62009         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
62011 2010-12-19  Bruno Haible  <bruno@clisp.org>
62013         fseeko: Add missing declaration on OSF/1 5.1.
62014         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
62015         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
62016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
62017         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
62018         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
62020 2010-12-19  Bruno Haible  <bruno@clisp.org>
62022         fchdir: Add missing declaration on OSF/1 5.1.
62023         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
62024         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
62025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
62026         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
62027         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
62029 2010-12-19  Bruno Haible  <bruno@clisp.org>
62031         relocatable-prog-wrapper: Separate from relocatable-prog.
62032         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
62033         uninstall-relocwrapper rule here.
62034         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
62035         Reported by Ian Beckwith <ianb@erislabs.net>.
62037 2010-12-19  Bruno Haible  <bruno@clisp.org>
62039         unistr/u8-mbsnlen: Add missing dependency.
62040         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
62041         Reported by Ian Beckwith <ianb@erislabs.net>.
62043 2010-12-19  Bruno Haible  <bruno@clisp.org>
62045         iconv: Make it possible again to use this module without 'iconv-h'.
62046         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
62047         if it is not defined.
62048         Reported by Ian Beckwith <ianb@erislabs.net>.
62050 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62052         acl: port to Solaris 8 when copying from tmpfs to ufs
62053         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
62054         error number.  Problem observed on Solaris 8 with latest
62055         coreutils, with "mv A B", where A is on a tmpfs file system and B
62056         is on a ufs file system.  This caused coreutils' mv/part-symlink
62057         test to fail.
62059         tests: set fail=0 at start
62060         * tests/init.sh (setup_): Move fail=0 initialization here ...
62061         (mktempd_): ... from here, so that tests can rely on fail being
62062         set to 0 initially.  This fixes a problem in coreutils; see:
62063         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
62065 2010-12-18  Bruno Haible  <bruno@clisp.org>
62067         memmem-simple: Stylistic changes.
62068         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
62069         Fix preprocessor directive indentation.
62071 2010-12-15  Pádraig Brady  <P@draigBrady.com>
62073         memmem, memmem-simple: reorganize and expand empty needle check
62074         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
62075         functional checks to memmem-simple so that one has a fully functional
62076         memmem by using just this module.
62077         Restrict the performance only check to the memmem module.
62078         Also expand the empty needle check to ensure the correct
62079         pointer is returned, not just a non NULL pointer.
62080         * doc/glibc-functions/memmem.texi: Rearrange the portability
62081         documentation to correlate with the rearranged checks.
62082         Clarify exactly how the memmem and memmem-simple modules
62083         relate to each other.
62085 2010-12-15  Pádraig Brady  <P@draigBrady.com>
62086             Bruno Haible  <bruno@clisp.org>
62088         Improve cross-compilation guesses for uClibc.
62089         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
62090         that uClibc does not have the glibc bug.
62091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
62092         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
62094 2010-12-14  Eric Blake  <eblake@redhat.com>
62096         configmake: provide fallbacks for oldest supported autotools
62097         * m4/configmake.m4: New file.
62098         * modules/configmake (Files): Ship it.
62099         (configure.ac): Use it to guarantee fallbacks.
62101 2010-12-13  Pádraig Brady  <P@draigBrady.com>
62103         read-file: Improve handling of large files
62104         * lib/read-file.c (fread_file): Minimize realloc()s
62105         for regular files, and better manage sizes around SIZE_MAX.
62107 2010-12-13  Eric Blake  <eblake@redhat.com>
62109         cloexec, fcntl: relax license
62110         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
62111         consent from all contributors.
62112         * modules/fcntl (License): Likewise.
62114 2010-12-10  Bruno Haible  <bruno@clisp.org>
62116         Tests for module 'pipe-posix'.
62117         * modules/pipe-posix-tests: New file.
62118         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
62120 2010-12-10  Bruno Haible  <bruno@clisp.org>
62122         pipe-posix: Make it work in C++ mode.
62123         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
62124         (pipe): Use common idiom, not a macro definition.
62125         * lib/pipe.c: New file.
62126         * m4/pipe.m4: New file.
62127         * modules/pipe-posix (Description): Enhance.
62128         (Files): Add lib/pipe.c, m4/pipe.m4.
62129         (configure.ac): Invoke gl_FUNC_PIPE.
62130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
62131         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
62132         * tests/test-unistd-c++.cc: Check the signature of pipe.
62134 2010-12-10  Bruno Haible  <bruno@clisp.org>
62136         Rename module 'pipe' to 'spawn-pipe'.
62137         * modules/spawn-pipe: New file, renamed from modules/pipe.
62138         (Files, configure.ac, Makefile.am): Update.
62139         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
62140         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
62141         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
62142         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
62143         "spawn-pipe.h" instead of "pipe.h".
62144         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
62145         to gl_SPAWN_PIPE.
62146         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
62147         (Files, Makefile.am): Update.
62148         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
62149         Update.
62150         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
62151         Include "spawn-pipe.h" instead of "pipe.h".
62152         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
62153         * lib/javacomp.c: Likewise.
62154         * lib/javaversion.c: Likewise.
62155         * lib/pipe-filter-gi.c: Likewise.
62156         * lib/pipe-filter-ii.c: Likewise.
62157         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
62158         * modules/javacomp (Depends-on): Likewise.
62159         * modules/javaversion (Depends-on): Likewise.
62160         * modules/pipe-filter-gi (Depends-on): Likewise.
62161         * modules/pipe-filter-ii (Depends-on): Likewise.
62162         * MODULES.html.sh (Executing programs): Update.
62163         * NEWS: Mention the change.
62165 2010-12-10  Eric Blake  <eblake@redhat.com>
62167         pipe-posix: new module
62168         * modules/pipe-posix: New file.
62169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
62170         (gl_UNISTD_H): Check for declaration.
62171         * modules/unistd (Makefile.am): Substitute it.
62172         * lib/unistd.in.h (pipe): Provide it for mingw.
62173         * doc/posix-functions/pipe.texi (pipe): Update documentation.
62174         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
62176 2010-12-07  Bruno Haible  <bruno@clisp.org>
62178         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
62179         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
62180         u8_strcmp_gnu.
62181         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
62183 2010-12-06  Bruno Haible  <bruno@clisp.org>
62185         Update internal documentation.
62186         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
62188 2010-12-04  Bruno Haible  <bruno@clisp.org>
62190         Put more information about failed tests into the test return codes.
62191         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
62192         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
62193         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62194         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62195         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
62196         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62197         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62198         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
62199         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
62200         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62201         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
62202         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62203         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
62204         * m4/stdint.m4 (gl_STDINT_H): Likewise.
62205         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
62206         returns a bit mask.
62207         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
62208         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
62209         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
62210         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
62211         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
62212         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
62213         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62214         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
62215         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62216         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
62217         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
62218         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
62219         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
62220         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
62221         * m4/link.m4 (gl_FUNC_LINK): Likewise.
62222         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
62223         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
62224         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
62225         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62226         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
62227         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62228         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
62229         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
62230         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
62231         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62232         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
62233         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
62234         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
62235         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
62236         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
62237         gl_PRINTF_PRECISION): Likewise.
62238         * m4/regex.m4 (gl_REGEX): Likewise.
62239         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
62240         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
62241         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
62242         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
62243         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62244         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62245         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
62246         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
62247         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62248         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62249         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
62250         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
62251         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
62252         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62253         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
62254         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
62255         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
62256         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62257         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62258         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
62259         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
62260         enumerated value.
62261         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
62263 2010-12-04  Bruno Haible  <bruno@clisp.org>
62265         Update for Solaris 11 2010-11.
62266         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
62267         Express, released in November 2010.
62269 2010-12-04  Bruno Haible  <bruno@clisp.org>
62271         nproc: Relax license.
62272         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
62273         and Paul Eggert.
62274         Requested by Ludovic Courtès <ludo@gnu.org>.
62276 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62278         utimecmp: fine-grained src to nearby coarse-grained dest
62280         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
62281         and the source is on a file system with higher-resolution time
62282         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
62283         not work, and the time stamps are close together, the algorithm to
62284         determine the exact resolution from the read-back mtime was buggy:
62285         it had a "!=" where it should have had an "==".  This bug has been
62286         in the code ever since it was introduced to gnulib.
62287         Problem reported by Dan Jacobson in
62288         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
62290 2010-11-30  Bruno Haible  <bruno@clisp.org>
62292         strerror_r-posix: Fix autoconf test.
62293         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
62295 2010-11-28  Bruno Haible  <bruno@clisp.org>
62296             Paul Eggert  <eggert@cs.ucla.edu>
62298         Tests for module 'getdomainname'.
62299         * modules/getdomainname-tests: New file.
62300         * tests/test-getdomainname.c: New file, based on
62301         tests/test-gethostname.c.
62303 2010-11-28  Bruno Haible  <bruno@clisp.org>
62304             Paul Eggert  <eggert@cs.ucla.edu>
62306         getdomainname: Use the system function when possible.
62307         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
62308         (getdomainname): Replace if needed. Provide the declaration if it is
62309         missing. Don't use _GL_CXXALIAS_SYS_CAST.
62310         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
62311         (getdomainname): When the system has getdomainname, call the system
62312         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
62313         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
62314         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
62315         found in libnsl. Look for the declaration also in <netdb.h>. Replace
62316         the function if its second argument is of type 'int' or if it is found
62317         in libnsl.
62318         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
62319         <sys/systeminfo.h> and sysinfo().
62320         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
62321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62322         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
62323         HAVE_GETDOMAINNAME.
62324         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
62325         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
62326         * doc/glibc-functions/getdomainname.texi: Document the problems with
62327         the getdomainname declaration.
62329 2010-11-28  Bruno Haible  <bruno@clisp.org>
62331         sys_socket: Ensure ss_family field on AIX.
62332         * lib/sys_socket.in.h (ss_family): New macro definition.
62333         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
62334         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
62335         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
62336         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62337         * modules/sys_socket (Makefile.am): Substitute
62338         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62339         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
62341 2010-11-27  Bruno Haible  <bruno@clisp.org>
62343         readline: Improve configure output.
62344         * m4/readline.m4 (gl_FUNC_READLINE): Make the
62345         "checking for readline..." result understandable.
62347 2010-11-27  Bruno Haible  <bruno@clisp.org>
62349         *printf-posix: Detect a bug on Solaris 10/x86.
62350         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
62351         for floating-point output.
62352         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
62353         directive.
62354         * tests/test-snprintf-posix.h (test_function): Likewise.
62355         * tests/test-sprintf-posix.h (test_function): Likewise.
62356         * tests/test-vasprintf-posix.c (test_function): Likewise.
62357         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
62358         * doc/posix-functions/printf.texi: Likewise.
62359         * doc/posix-functions/snprintf.texi: Likewise.
62360         * doc/posix-functions/sprintf.texi: Likewise.
62361         * doc/posix-functions/vfprintf.texi: Likewise.
62362         * doc/posix-functions/vprintf.texi: Likewise.
62363         * doc/posix-functions/vsnprintf.texi: Likewise.
62364         * doc/posix-functions/vsprintf.texi: Likewise.
62365         * doc/glibc-functions/obstack_printf.texi: Likewise.
62366         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
62368 2010-11-27  Bruno Haible  <bruno@clisp.org>
62370         Fix link error when module libunistring-optional is in use.
62371         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
62372         * modules/striconveha-tests (Makefile.am): Likewise.
62374 2010-11-27  Bruno Haible  <bruno@clisp.org>
62376         regex: Mention link dependencies.
62377         * modules/regex (Link): New section.
62378         * modules/rpmatch (Link): Likewise.
62379         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
62381 2010-11-27  Bruno Haible  <bruno@clisp.org>
62383         ftoastr: Fix compilation error on Solaris.
62384         * lib/ftoastr.c: Include <config.h>.
62386 2010-11-27  Bruno Haible  <bruno@clisp.org>
62388         getloadavg: Update documentation.
62389         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
62391 2010-11-27  Bruno Haible  <bruno@clisp.org>
62393         sys_socket: Fix test whether the functions are declared.
62394         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
62395         not <sys/select.h>.
62397 2010-11-27  Bruno Haible  <bruno@clisp.org>
62399         getpass: Make sure to get system declaration on some platforms.
62400         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
62401         gl_USE_SYSTEM_EXTENSIONS.
62402         * modules/getpass (Depends-on): Add extensions.
62404 2010-11-26  Bruno Haible  <bruno@clisp.org>
62406         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
62407         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
62408         'iconv' module is present.
62409         (ICONV_CONST): New macro.
62410         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
62411         ICONV_CONST.
62412         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
62413         set ICONV_CONST.
62414         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
62415         here.
62416         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
62417         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
62418         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
62419         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
62420         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
62421         present.
62423 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62425         ftoastr: comment fix
62426         * lib/ftoastr.c: "little" -> "little or no" in comment
62428 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
62430         stdint: port to GCC 4.3 + OSX + Octave
62431         On this platform, stdint.h is buggy and defines int64_t to long
62432         long int.  The replacement defined it to long int, causing
62433         problems with C++ style name mangling.  Instead, trust the system
62434         definition if INT64_MAX is defined, and likewise for the unsigned
62435         variant.   Problem reported by Jarno Rajahalme in
62436         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
62437         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
62438         and don't mess with int64_t and INT64_MAX in this case.
62439         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
62441 2010-11-24  Bruno Haible  <bruno@clisp.org>
62443         doc: Corrections regarding MacOS X 10.4 and 10.5.
62444         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
62445         MacOS X.
62446         Reported by Simon Josefsson.
62448 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
62450         Uninstall ".bin" files installed by relocwrapper.
62451         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
62452         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
62453         unless it is already there.
62455 2010-11-21  Bruno Haible  <bruno@clisp.org>
62457         Update for NetBSD 5.0.
62458         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62459         NetBSD; the test fails on NetBSD 5.0.
62460         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62461         about NetBSD.
62463 2010-11-21  Bruno Haible  <bruno@clisp.org>
62465         Update for HP-UX 11.23 and HP-UX 11.31.
62466         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
62467         HP-UX.
62469 2010-11-21  Bruno Haible  <bruno@clisp.org>
62471         Update for MacOS X 10.5.
62472         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62473         MacOS X; the test fails on MacOS X 10.5.8.
62474         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62475         about MacOS X.
62477 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
62479         bootstrap: add bootstrap_sync option.
62480         See discussion at
62481         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
62482         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
62483         * build-aux/bootstrap: Accept --bootstrap-sync to update
62484         bootstrap if it is not identical to the local gnulib's
62485         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
62486         enable this by default.  Accept --no-bootstrap-sync to disable
62487         it.
62489 2010-11-20  Bruno Haible  <bruno@clisp.org>
62491         Ensure that <features.h> is included before __GLIBC__ is tested.
62492         * lib/printf-parse.h: Include <features.h>.
62493         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
62494         Reported by Mike Frysinger <vapier@gentoo.org>.
62496         Ensure that <features.h> is included before __GLIBC__ is tested.
62497         * lib/wchar.in.h: Include <features.h>.
62498         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
62499         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
62500         Reported by Mike Frysinger <vapier@gentoo.org>.
62502         Ensure that <features.h> is included before __GLIBC__ is tested.
62503         * lib/arpa_inet.in.h: Include <features.h>.
62504         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
62505         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
62506         Reported by Mike Frysinger <vapier@gentoo.org>.
62508         Ensure that <features.h> is included before __GLIBC__ is tested.
62509         * build-aux/link-warning.h: Include <features.h>.
62510         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
62511         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
62512         Reported by Mike Frysinger <vapier@gentoo.org>.
62514         Ensure that <features.h> is included before __GLIBC__ is tested.
62515         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
62516         Reported by Mike Frysinger <vapier@gentoo.org>.
62518 2010-11-20  Bruno Haible  <bruno@clisp.org>
62520         memmem: Fix autoconf test.
62521         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
62523 2010-11-20  Bruno Haible  <bruno@clisp.org>
62525         Port to uClibc.
62526         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
62527         * lib/fcntl.in.h: Likewise.
62528         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
62529         * lib/mbrtowc.c (mbrtowc): Likewise.
62530         * lib/relocatable.c (find_shared_library_fullname): Likewise.
62531         * lib/strerror_r.c: Likewise.
62532         * lib/unistr/u8-strnlen.c: Likewise.
62533         * lib/vasnprintf.c (decimal_point_char): Likewise.
62534         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62535         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
62536         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
62537         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
62538         * tests/test-sigaction.c (handler, main): Likewise.
62539         * lib/freading.h: Treat uClibc like a non-glibc platform.
62540         * lib/freading.c: Likewise.
62541         * lib/gettext.h: Likewise.
62542         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
62543         Likewise.
62544         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
62545         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62546         * lib/propername.c (proper_name_utf8): Likewise.
62547         * lib/spawn.in.h: Likewise.
62548         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
62549         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
62550         mem_cd_iconveh_internal): Likewise.
62551         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
62552         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
62553         strstr, strcasestr): Likewise.
62554         * lib/unicodeio.c (unicode_to_mb): Likewise.
62555         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
62556         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
62557         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
62558         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
62559         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
62560         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
62561         * lib/unistr/u8-stpncpy.c: Likewise.
62562         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62563         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
62564         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62565         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62566         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
62567         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
62568         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
62569         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
62570         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
62571         Likewise.
62572         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
62573         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62574         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
62575         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62576         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62577         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
62578         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62579         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
62580         * tests/test-getopt.h (OPTIND_MIN): Likewise.
62581         * tests/test-striconveha.c (main): Likewise.
62582         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62583         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
62584         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
62585         * doc/posix-functions/getline.texi: Likewise.
62586         Reported by Mike Frysinger <vapier@gentoo.org>.
62588 2010-11-20  Bruno Haible  <bruno@clisp.org>
62590         nproc: Fix condition.
62591         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
62592         HAVE_PTHREAD_AFFINITY_NP.
62594 2010-11-20  Bruno Haible  <bruno@clisp.org>
62596         Fix a comment.
62597         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
62599 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
62601         ftoastr: don't assume snprintf
62602         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
62603         Implement a subset of snprintf here, by using sprintf safely.
62604         * modules/ftoastr (Depends-on): Remove snprintf.
62606 2010-11-19  Jim Meyering  <meyering@redhat.com>
62608         test-rename.h: fix compilation failure
62609         * tests/test-rename.h (test_rename): Add omitted "}".
62611 2010-11-17  Jim Meyering  <meyering@redhat.com>
62613         maint.mk: add a URL discussing the no-@acronym policy
62614         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
62616 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
62618         ftoastr: depend on snprintf, improve comments
62619         * lib/ftoastr.c: Also mention Loitsch's draft.
62620         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
62621         needed in the current implementation, but it might simplify
62622         speeding up the code later.
62623         * modules/ftoastr: Depend on snprintf; this improves portability.
62624         Suggested by Bruno Haible in the same email.
62626         ftoastr: port to hosts lacking strtof and strtold
62627         Problem reported by Bruno Haible in
62628         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
62629         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
62630         environment and strtold (and presumably strtof) are not available.
62631         * modules/ftoastr (Files): Add m4/c-strtod.m4.
62632         (configure.ac): Require gl_C99_STRTOLD.
62634 2010-11-18  Bruno Haible  <bruno@clisp.org>
62636         c-strtold: Avoid link error on AIX 7.
62637         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
62638         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
62639         (gl_C_STRTOLD): Test whether strtold_l exists.
62640         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62642 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62644         intprops: new macro INT_BITS_STRLEN_BOUND
62645         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
62646         ftoastr.h.  This exposes an internal of intprops.h that was formerly
62647         not exposed.  Also, it uses a slightly tighter bound than before;
62648         though this makes no practical difference, we might as well be as
62649         tight as we easily can.
62651         ftoastr: new module, for lossless conversion of floats to short strings
62652         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
62653         * modules/ftoastr: New files.
62655 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62657         bootstrap: port to Solaris sed
62658         * build-aux/bootstrap (get_version): Port to Solaris sed.
62659         See Ralf Wildenhues's note in
62660         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
62662 2010-11-14  Jim Meyering  <meyering@redhat.com>
62664         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
62665         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
62666         and move definition closer to sole use.
62668 2010-11-13  Jim Meyering  <meyering@redhat.com>
62670         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
62671         Now we require at least autoconf-2.59, which means the work-around
62672         is no longer needed.
62673         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
62674         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62675         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62676         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62677         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62679 2010-11-13  Bruno Haible  <bruno@clisp.org>
62681         rename, renameat: Avoid test failures at NFS mounted locations.
62682         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
62683         functions.
62684         (test_rename): Use assert_nonexistent.
62685         * tests/test-rename.c: Include <dirent.h>.
62686         * tests/test-renameat.c: Likewise.
62687         Reported by Gary V. Vaughan <gary@gnu.org>.
62689         rename, renameat: Document Linux bug with NFS
62690         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
62691         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
62692         * doc/posix-functions/renameat.texi: Likewise.
62693         Suggested by Eric Blake.
62695 2010-11-13  Bruno Haible  <bruno@clisp.org>
62697         rename test: Add comments.
62698         * tests/test-rename.h (test_rename): Add structure and comments.
62700 2010-11-13  Eric Blake  <eblake@redhat.com>
62702         maintainer-makefile: cover a few more files
62703         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
62704         scripts generated within C files, for libvirt.
62706 2010-11-13  Bruno Haible  <bruno@clisp.org>
62708         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
62709         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
62710         character, return the number of bytes that belong together, not always
62711         1.
62712         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
62713         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
62714         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
62715         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
62716         number of bytes of an invalid character.
62717         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
62718         (main): Invoke it.
62719         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
62720         results.
62721         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
62722         malformed byte sequences.
62723         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
62724         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
62725         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
62726         Reported by Ben Pfaff and Paolo Bonzini.
62728 2010-11-13  Bruno Haible  <bruno@clisp.org>
62730         openat: Work around glibc bug with fchownat() and empty file names.
62731         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
62732         (gl_FUNC_FCHOWNAT): Invoke it.
62733         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
62734         * doc/posix-functions/fchownat.texi: Document the glibc bug.
62735         Reported by Gary V. Vaughan <gary@gnu.org>.
62737 2010-11-13  Bruno Haible  <bruno@clisp.org>
62739         openat: Ensure autoconf macro ordering.
62740         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
62741         gl_USE_SYSTEM_EXTENSIONS.
62742         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
62744 2010-11-13  Bruno Haible  <bruno@clisp.org>
62746         Update comments.
62747         * lib/unistr/u8-check.c: Update file name in comments.
62748         * lib/unistr/u8-mblen.c: Likewise.
62749         * lib/unistr/u8-prev.c: Likewise.
62750         * lib/unistr/u8-strmblen.c: Likewise.
62751         * lib/unistr/u8-strmbtouc.c: Likewise.
62753 2010-11-13  Jim Meyering  <meyering@redhat.com>
62755         tests: avoid test failure on Solaris 10 due to lack of PATH export
62756         * tests/test-update-copyright.sh: Don't forget to export PATH.
62758         init.sh: ensure that IFS is defined, just in case...
62759         * tests/init.sh (setup_): Ensure that IFS is defined,
62760         so that saving and restoring it works as expected.  This
62761         appears to be useful at least for an old version of dash
62762         from a long time ago (RH 6).  See here for details:
62763         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
62765         maint.mk: tighten "test a == b" check
62766         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
62767         test to files that contain something like #!/bin/sh.
62768         Without this, coreutils would get two false positives in
62769         the comments of C source files.
62771 2010-11-12  Eric Blake  <eblake@redhat.com>
62773         bootstrap: fix typo in previous attempt
62774         * build-aux/bootstrap (buildreq): Correct the grouping.
62775         Reported by Paul Eggert.
62777         maintainer-makefile: prohibit test x == x
62778         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
62779         Based on a report by Matthias Bolte.
62781         bootstrap: allow FreeBSD gzip
62782         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
62783         which has no '.' and goes to stderr.
62784         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
62785         Reported by Matthias Bolte.
62787         maintainer-makefile: check for i18n setup
62788         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
62789         will likely work.
62791 2010-11-12  Bruno Haible  <bruno@clisp.org>
62793         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
62794         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
62795         * lib/nanosleep.c (nanosleep): Likewise.
62797 2010-11-11  Bruno Haible  <bruno@clisp.org>
62799         fcntl-h: Fix for use of C++ on glibc systems.
62800         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62801         also on glibc systems in C++ mode.
62802         Reported by Gary V. Vaughan <gary@gnu.org>.
62804 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62806         mknod: avoid false failure with dash
62807         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
62809 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62811         unlink: Fix "is it should" typo in diagnostic.
62812         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
62813         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
62815 2010-11-11  Bruno Haible  <bruno@clisp.org>
62817         Tests for module 'strerror_r-posix'.
62818         * modules/strerror_r-posix-tests: New file.
62819         * tests/test-strerror_r.c: New file.
62820         * tests/test-string-c++.cc: Check the signature of strerror_r.
62822         New module 'strerror_r-posix'.
62823         * lib/string.in.h (strerror_r): New declaration.
62824         * lib/strerror_r.c: New file.
62825         * m4/strerror_r.m4: New file.
62826         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
62827         of strerror_r.
62828         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
62829         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
62830         * modules/strerror_r-posix: New file.
62831         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
62832         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
62833         * doc/posix-functions/strerror_r.texi: Mention the new module and the
62834         portability problems.
62836 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
62838         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
62839         line is also considered for output. Quoted function name in shell
62840         command, so temporary files for functions like MyClass::operator()
62841         are removed correctly without errors.
62843 2010-11-09  Bruno Haible  <bruno@clisp.org>
62845         * doc/posix-functions/strerror.texi: List more failing platforms.
62847         * doc/posix-functions/strerror.texi: Add a comment.
62849 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62851         fdopendir: fix bug on MacOS X when low on file descriptors
62853         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
62854         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
62855         All callers changed.
62856         (fdopendir): Invoke save_cwd at the top level, not after using
62857         multiple dup() calls to use up file descriptors.  Then retry
62858         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
62859         less than the maximum number of open file descriptors, because
62860         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
62861         on Mac OS X 10.6.4 for tar 1.24
62862         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
62863         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
62864         and for tar 1.25
62865         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
62867 2010-11-07  Bruno Haible  <bruno@clisp.org>
62869         vasnprintf: Support I flag on glibc systems.
62870         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
62871         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
62872         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
62873         snprintf function.
62874         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
62875         glibc systems.
62876         * tests/test-vasnprintf-posix3.c: New file.
62877         * modules/vasnprintf-posix-tests (Files): Add it.
62878         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
62880 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62882         [html] Fix copy/paste bug: Use unique name for compiler warnings.
62883         * MODULES.html.sh: For compiler warnings, use name
62884         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
62886 2010-11-05  Eric Blake  <eblake@redhat.com>
62888         ceil, floor: avoid spurious failure with icc
62889         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
62890         [denormals-as-zero] when optimizing without -mieee-fp option.
62891         * tests/test-floorf2.c (floorf_reference): Likewise.
62892         * tests/test-ceilf1.c (dummy): New function.
62893         (main): Use it to outsmart icc's optimization.
62894         * tests/test-floorf1.c (dummy, main): Likewise.
62896         tests: require working signbit
62897         * modules/ceilf-tests (Depends-on): Add signbit.
62898         * modules/ceill-tests (Depends-on): Likewise.
62899         * modules/floorf-tests (Depends-on): Likewise.
62900         * modules/floorl-tests (Depends-on): Likewise.
62901         * modules/round-tests (Depends-on): Likewise.
62902         * modules/roundf-tests (Depends-on): Likewise.
62903         * modules/roundl-tests (Depends-on): Likewise.
62904         * modules/trunc-tests (Depends-on): Likewise.
62905         * modules/truncf-tests (Depends-on): Likewise.
62906         * modules/truncl-tests (Depends-on): Likewise.
62908         strtod: work around icc bug
62909         * lib/strtod.c (minus_zero): Define to working value.
62910         (strtod): Use it to avoid icc bug.
62912         copysign: enhance tests
62913         * modules/copysign-tests (Files): Add minus-zero.h.
62914         * tests/test-copysign.c (main): Also test zeros.
62916 2010-11-04  Eric Blake  <eblake@redhat.com>
62918         ceil, floor, round, trunc: enhance tests of -0
62919         * tests/test-ceilf1.c (main): Ensure correct sign of result.
62920         * tests/test-ceill.c (main): Likewise.
62921         * tests/test-floorf1.c (main): Likewise.
62922         * tests/test-floorl.c (main): Likewise.
62923         * tests/test-round1.c (main): Likewise.
62924         * tests/test-roundf1.c (main): Likewise.
62925         * tests/test-roundl.c (main): Likewise.
62926         * tests/test-trunc1.c (main): Likewise.
62927         * tests/test-truncf1.c (main): Likewise.
62928         * tests/test-truncl.c (main): Likewise.
62930 2010-11-04  Eric Blake  <eblake@redhat.com>
62932         frexp, tests: work around ICC bug with -zero
62933         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
62934         works with more compilers.
62935         * tests/minus-zero.h: New file.
62936         * modules/ceilf-tests (Files): Include it.
62937         * modules/ceill-tests (Files): Likewise.
62938         * modules/floorf-tests (Files): Likewise.
62939         * modules/floorl-tests (Files): Likewise.
62940         * modules/frexp-nolibm-tests (Files): Likewise.
62941         * modules/frexp-tests (Files): Likewise.
62942         * modules/frexpl-nolibm-tests (Files): Likewise.
62943         * modules/frexpl-tests (Files): Likewise.
62944         * modules/isnan-tests (Files): Likewise.
62945         * modules/isnand-nolibm-tests (Files): Likewise.
62946         * modules/isnand-tests (Files): Likewise.
62947         * modules/isnanf-nolibm-tests (Files): Likewise.
62948         * modules/isnanf-tests (Files): Likewise.
62949         * modules/isnanl-nolibm-tests (Files): Likewise.
62950         * modules/isnanl-tests (Files): Likewise.
62951         * modules/round-tests (Files): Likewise.
62952         * modules/roundf-tests (Files): Likewise.
62953         * modules/roundl-tests (Files): Likewise.
62954         * modules/ldexpl-tests (Files): Likewise.
62955         * modules/signbit-tests (Files): Likewise.
62956         * modules/snprintf-posix-tests (Files): Likewise.
62957         * modules/sprintf-posix-tests (Files): Likewise.
62958         * modules/strtod-tests (Files): Likewise.
62959         * modules/trunc-tests (Files): Likewise.
62960         * modules/truncf-tests (Files): Likewise.
62961         * modules/truncl-tests (Files): Likewise.
62962         * modules/vsnprintf-posix-tests (Files): Likewise.
62963         * modules/vsprintf-posix-tests (Files): Likewise.
62964         * modules/vasnprintf-posix-tests (Files): Likewise.
62965         * modules/vasprintf-posix-tests (Files): Likewise.
62966         * tests/test-ceilf1.c (main): Use it.
62967         * tests/test-ceill.c (main): Likewise.
62968         * tests/test-floorf1.c (main): Likewise.
62969         * tests/test-floorl.c (main): Likewise.
62970         * tests/test-frexp.c (main): Likewise.
62971         * tests/test-frexpl.c (main): Likewise.
62972         * tests/test-isnan.c (main): Likewise.
62973         * tests/test-isnand.h (main): Likewise.
62974         * tests/test-isnanf.h (main): Likewise.
62975         * tests/test-isnanl.h (main): Likewise.
62976         * tests/test-ldexpl.c (main): Likewise.
62977         * tests/test-round.c (main): Likewise.
62978         * tests/test-roundf.c (main): Likewise.
62979         * tests/test-roundl.c (main): Likewise.
62980         * tests/test-signbit.c (test_signbitf, test_signbitd)
62981         (test_signbitl): Likewise.
62982         * tests/test-snprintf-posix.h (test_function): Likewise.
62983         * tests/test-sprintf-posix.h (test_function): Likewise.
62984         * tests/test-strtod.c (main): Likewise.
62985         * tests/test-trunc1.c (main): Likewise.
62986         * tests/test-truncf1.c (main): Likewise.
62987         * tests/test-truncl.c (main): Likewise.
62989         isnanl: work around icc bug
62990         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
62992 2010-11-03  Eric Blake  <eblake@redhat.com>
62994         tests: fix compiler warnings
62995         * tests/test-getopt.h (test_getopt): Fix condition.
62996         * tests/test-getopt_long.h (test_getopt_long): Likewise.
62997         * tests/test-pipe2.c (main): Likewise.
62998         * tests/test-quotearg-simple.c (main): Avoid icc warning.
63000         utimens: fix broken m4 test
63001         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
63003 2010-10-28  Bruno Haible  <bruno@clisp.org>
63005         posix_spawn*, getdtablesize: Relax license.
63006         * modules/posix_spawn (License): Change to LGPLv2+.
63007         * modules/posix_spawnp (License): Likewise.
63008         * modules/posix_spawn-internal (License): Likewise.
63009         * modules/posix_spawnattr_init (License): Likewise.
63010         * modules/posix_spawnattr_getflags (License): Likewise.
63011         * modules/posix_spawnattr_setflags (License): Likewise.
63012         * modules/posix_spawnattr_getpgroup (License): Likewise.
63013         * modules/posix_spawnattr_setpgroup (License): Likewise.
63014         * modules/posix_spawnattr_getschedparam (License): Likewise.
63015         * modules/posix_spawnattr_setschedparam (License): Likewise.
63016         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
63017         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
63018         * modules/posix_spawnattr_getsigdefault (License): Likewise.
63019         * modules/posix_spawnattr_setsigdefault (License): Likewise.
63020         * modules/posix_spawnattr_getsigmask (License): Likewise.
63021         * modules/posix_spawnattr_setsigmask (License): Likewise.
63022         * modules/posix_spawnattr_destroy (License): Likewise.
63023         * modules/posix_spawn_file_actions_init (License): Likewise.
63024         * modules/posix_spawn_file_actions_addclose (License): Likewise.
63025         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
63026         * modules/posix_spawn_file_actions_addopen (License): Likewise.
63027         * modules/posix_spawn_file_actions_destroy (License): Likewise.
63028         * modules/getdtablesize (License): Likewise.
63029         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
63031 2010-10-26  Bruno Haible  <bruno@clisp.org>
63033         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
63034         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
63035         Cygwin and mingw.
63036         Suggested by Eric Blake.
63038 2010-10-26  Bruno Haible  <bruno@clisp.org>
63040         stdio: Work around compilation error due to renameat() on Solaris 10.
63041         * lib/stdio.in.h: Include <unistd.h> on Solaris.
63042         * lib/renameat.c: Don't include <unistd.h> here.
63043         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
63044         Reported by Paul Eggert and Eric Blake.
63046 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63048         renameat: port to Solaris 10, which declares renameat in unistd.h
63050         * lib/renameat.c: Include unistd.h before stdio.h, because
63051         Solaris 10 declares renameat in unistd.h.  Problem encountered
63052         when building GNU tar 1.24 on Solaris 10.
63054 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63056         fdopendir: fix C89 compilation
63057         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
63058         compilers.
63060 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
63062         inttostr: simplify by removing unnecessary redundancy
63063         * lib/anytostr.c: Don't include verify.h.
63064         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
63065         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
63066         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
63067         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
63068         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
63069         Likewise.
63070         * modules/inttostr (Depends-on): Remove 'verify'.
63072 2010-10-23  Bruno Haible  <bruno@clisp.org>
63074         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
63075         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
63076         Reported by Eric Blake.
63078 2010-10-23  Bruno Haible  <bruno@clisp.org>
63080         Tests: Fix LOCALE_JA on MirBSD 10.
63081         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
63082         to an UTF-8 locale.
63083         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
63084         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63085         Reported by Eric Blake.
63087 2010-10-21  Bruno Haible  <bruno@clisp.org>
63089         nl_langinfo test: Avoid test failure on NetBSD 5.
63090         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
63091         Reported by Eric Blake.
63093 2010-10-21  Eric Blake  <eblake@redhat.com>
63095         c-stack: work around libsigsegv 2.8 bug
63096         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
63097         overflow on at least PowerPC64.
63099 2010-10-17  Bruno Haible  <bruno@clisp.org>
63101         userspec: Drop redundant file.
63102         * modules/userspec (Files): Remove lib/inttostr.h.
63104 2010-10-17  Bruno Haible  <bruno@clisp.org>
63106         nl_langinfo tests: Silence some warnings.
63107         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
63108         Reported by Jim Meyering.
63110 2010-10-17  Bruno Haible  <bruno@clisp.org>
63112         Make use of GCC's attribute __alloc_size__.
63113         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
63114         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
63115         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
63116         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
63117         __alloc_size__.
63118         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
63119         Suggested by Jim Meyering.
63121 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
63123         bootstrap: anchor .gitignore entries.
63124         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
63125         with...
63126         (insert_vc_ignore): ... this new function, which prepends `/' to
63127         all .gitignore entries before passing them to
63128         insert_sorted_if_absent.
63130 2010-10-16  Bruno Haible  <bruno@clisp.org>
63132         nextafter: Fix configure check.
63133         * modules/nextafter (configure.ac): Correct expected prototype.
63135 2010-10-16  Bruno Haible  <bruno@clisp.org>
63137         termios: Update documentation.
63138         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
63140 2010-10-16  Bruno Haible  <bruno@clisp.org>
63142         tests: Make them compile with TinyCC.
63143         * tests/test-strstr.c (main): Remove parentheses around array
63144         initializer.
63146 2010-10-15  Eric Blake  <eblake@redhat.com>
63148         ignore-value: make header idempotent
63149         * lib/ignore-value.h: Add double-inclusion guards.
63150         Reported by Stefan Berger.
63152 2010-10-15  Jim Meyering  <meyering@redhat.com>
63154         GNUmakefile: handle "stable" target, not "major"
63155         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
63156         lists in maint.mk and announce-gen.  Without this, "make stable"
63157         would fail to ensure that $(VERSION) is up to date.
63159 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
63161         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
63162         & co.
63164 2010-10-14  Bruno Haible  <bruno@clisp.org>
63166         vasnprintf: Don't set errno to 0.
63167         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
63168         block that sets it to 0.
63169         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
63171 2010-10-14  Bruno Haible  <bruno@clisp.org>
63173         socketlib: Fix.
63174         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
63175         gl_PREREQ_SYS_H_WINSOCK2.
63176         Reported by Ian Beckwith <ianb@erislabs.net>.
63178 2010-10-13  Jim Meyering  <meyering@redhat.com>
63180         test-select-stdin.c: avoid warn_unused_result warnings
63181         * tests/test-select-stdin.c: Include "macros.h".
63182         ASSERT that read and fflush succeed.
63184 2010-10-13  Jim Meyering  <meyering@redhat.com>
63186         git-version-gen: do require git-VC'd files in cwd
63187         * build-aux/git-version-gen: Reject a git version string
63188         if there are no commits associated with the current directory.
63189         This avoids an unlikely false-positive (unrelated dir whose parent
63190         repository also contains a tag matching v*), as pointed out
63191         by Giuseppe Scrivano in
63192         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
63194 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63196         argv-iter: omit nonconforming declaration
63197         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
63198         enum arg_iter_err declaration, which doesn't conform to C99.
63199         Solaris 10 cc warns about this.
63201 2010-10-13  Eric Blake  <eblake@redhat.com>
63203         termios: fix compilation on mingw
63204         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
63205         (gl_TERMIOS_H): Adjust it on mingw.
63206         * modules/termios (Makefile.am): Substitute new key.
63207         * lib/termios.in.h (includes): Make include_next conditional.
63208         * doc/posix-headers/termios.texi (termios.h): Update
63209         documentation.
63210         Reported by Daniel P. Berrange.
63212 2010-10-13  Jim Meyering  <meyering@redhat.com>
63214         git-version-gen: don't require that .git/ be in the current dir
63215         * build-aux/git-version-gen: Adjust this script so that it works
63216         when run from any working directory beneath the top-level .git/-
63217         containing directory.  Inspired by a patch from Giuseppe Scrivano,
63218         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
63220         test-select: avoid warn_unused_result warnings
63221         * tests/test-select.c: Include "macros.h".
63222         ASSERT that each call to read, write, and pipe succeeds.
63223         While not technically required, also check each "close".
63224         * modules/select-tests (Files): Add tests/macros.h.
63226         test-symlinkat: remove declaration of unused local
63227         * tests/test-symlinkat.c (main): Remove unused local, "buf".
63229         test-inttostr: avoid shadowing warnings
63230         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
63231         and use malloc rather than the stack for the same reason as
63232         mentioned in the comment justifying the other allocation.
63234 2010-10-11  Bruno Haible  <bruno@clisp.org>
63236         stdlib: Allow multiple gnulib generated replacements to coexist.
63237         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
63238         Reported by Sam Steingold <sds@gnu.org>.
63240 2010-10-11  Jim Meyering  <meyering@redhat.com>
63242         fix a documentation typo
63243         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
63245 2010-10-11  Eric Blake  <eblake@redhat.com>
63247         futimens: work around Solaris 11 bug
63248         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
63249         * tests/test-futimens.h (test_futimens): Enhance, rather than
63250         weaken test.
63251         * doc/posix-functions/futimens.texi (futimens): Document the bug.
63253 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63255         Indentation.
63256         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
63257         higher-level operators more to the left.
63259 2010-10-11  Jim Meyering  <meyering@redhat.com>
63261         test-futimens: avoid unwarranted test failure on Solaris 5.11
63262         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
63263         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
63264         because it tries to dereference the NULL name argument.
63266 2010-10-11  Bruno Haible  <bruno@clisp.org>
63268         Indentation.
63269         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
63270         indentation.
63272 2010-10-11  Jim Meyering  <meyering@redhat.com>
63274         spawn.in.h: make indentation consistent with parentheses
63275         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
63276         Make indentation consistent with parentheses.
63278 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
63280         Fix mismatched parens in previous commit
63281         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
63282         parens.
63284 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63286         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
63288         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
63289         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
63290         * lib/malloca.c: Include "verify.h".
63291         (verify1): Remove, replacing with a verify call.
63292         * lib/relocwrapper.c (verify1): Likewise.
63293         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
63294         Likewise.
63295         * modules/malloca (Depends-on): Add 'verify'.
63296         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
63297         * modules/vasnprintf (Depends-on): Add 'verify'.
63298         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63299         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63300         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63301         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63302         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63303         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63304         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63306         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
63308         Formerly the style was sometimes 2*X - 1, because the C standard
63309         was wrongly thought to disallow ?: in integral constant expressions.
63310         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
63311         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
63312         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
63313         * lib/stdint.in.h (_verify_intmax_size): Likewise.
63314         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
63315         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
63316         verify that time_t cannot be floating.
63318 2010-10-08  Eric Blake  <eblake@redhat.com>
63320         time: enforce recent POSIX ruling that time_t is integral
63321         * lib/time.in.h (__time_t_must_be_integral): Detect any
63322         problematic systems, allowing the rest of gnulib to assume POSIX.
63324 2010-10-08  Jim Meyering  <meyering@redhat.com>
63326         fdopendir: fix a bug on systems lacking openat and /proc support
63327         OpenBSD 4.7 is one such system.  The most noticeable effect was
63328         failure of any application making nontrivial use of fts: rm, du,
63329         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
63330           ./rm: traversal failed: `a': Bad file descriptor
63331         Debugging that, you see that even though FD 6 was closed just
63332         prior to the opendir call in fd_clone_opendir, its resulting
63333         dir->dd_fd was 8, rather than the expected value of 6:
63335         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
63336         93                close (fd);
63337         (gdb) n
63338         94                dir = fd_clone_opendir (dupfd);
63339         (gdb) n
63340         95                saved_errno = errno;
63341         (gdb) p dir->dd_fd
63342         $11 = 8
63344         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
63345         The problem is that on OpenBSD, fd_clone_opendir has to resort
63346         to using the old-style save/restore CWD mechanism, due to its
63347         lack of openat/proc support, and *that* would steal the FD (6)
63348         that opendir was supposed to use.
63350         The fix is to squirrel away the desired FD so that save_cwd uses a
63351         different one, and then free the dest FD right before calling opendir.
63352         That guarantees opendir will use the required file descriptor.
63354         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
63356 2010-10-08  Bruno Haible  <bruno@clisp.org>
63358         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
63359         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
63361 2010-10-08  Bruno Haible  <bruno@clisp.org>
63363         nanosleep: Make replacement POSIX compliant.
63364         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
63365         is out of range.
63366         Reported by Jim Meyering.
63368 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63370         bootstrap: add hook for altering gnulib.mk, for Bison
63371         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
63372         the Bison bootstrapping process can rewrite file names and variables
63373         in this file before later parts of 'bootstrap' use the file.
63374         Bison wants to include lib/gnulib.mk from the top-level makefile,
63375         so it needs the file names in this file to be relative to the top
63376         level, not relative to lib; plus it needs variable names to be
63377         rewritten.
63378         (slurp): Use the new function.
63380         bootstrap: reformat for readability
63381         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
63383 2010-10-08  Eric Blake  <eblake@redhat.com>
63385         docs: update cygwin progress
63386         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
63387         1.7.7.
63388         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
63389         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
63390         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
63391         * doc/posix-functions/carg.texi (carg): Likewise.
63392         * doc/posix-functions/cargf.texi (cargf): Likewise.
63393         * doc/posix-functions/casin.texi (casin): Likewise.
63394         * doc/posix-functions/casinf.texi (casinf): Likewise.
63395         * doc/posix-functions/casinh.texi (casinh): Likewise.
63396         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
63397         * doc/posix-functions/catan.texi (catan): Likewise.
63398         * doc/posix-functions/catanf.texi (catanf): Likewise.
63399         * doc/posix-functions/catanh.texi (catanh): Likewise.
63400         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
63401         * doc/posix-functions/ccos.texi (ccos): Likewise.
63402         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
63403         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
63404         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
63405         * doc/posix-functions/cexp.texi (cexp): Likewise.
63406         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
63407         * doc/posix-functions/cimag.texi (cimag): Likewise.
63408         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
63409         * doc/posix-functions/clog.texi (clog): Likewise.
63410         * doc/posix-functions/clogf.texi (clogf): Likewise.
63411         * doc/posix-functions/conj.texi (conj): Likewise.
63412         * doc/posix-functions/conjf.texi (conjf): Likewise.
63413         * doc/posix-functions/cpow.texi (cpow): Likewise.
63414         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
63415         * doc/posix-functions/cproj.texi (cproj): Likewise.
63416         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
63417         * doc/posix-functions/creal.texi (creal): Likewise.
63418         * doc/posix-functions/crealf.texi (crealf): Likewise.
63419         * doc/posix-functions/csin.texi (csin): Likewise.
63420         * doc/posix-functions/csinf.texi (csinf): Likewise.
63421         * doc/posix-functions/csinh.texi (csinh): Likewise.
63422         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
63423         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
63424         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
63425         * doc/posix-functions/ctan.texi (ctan): Likewise.
63426         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
63427         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
63428         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
63429         * doc/posix-headers/complex.texi (complex.h): Likewise.
63431 2010-10-07  Jim Meyering  <meyering@redhat.com>
63433         parse-datetime: avoid compilation failure on OpenBSD 4.7
63434         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
63435         This works around a compilation failure on OpenBSD 4.7:
63436         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
63438 2010-10-07  Eric Blake  <eblake@redhat.com>
63440         docs: update cygwin progress
63441         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
63442         1.7.6.
63443         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
63444         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
63445         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
63446         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
63447         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
63448         Likewise.
63449         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
63450         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
63451         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
63452         Likewise.
63453         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
63454         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
63455         Likewise.
63456         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
63457         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
63458         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
63459         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
63460         Likewise.
63461         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
63462         Likewise.
63463         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
63465         docs: update parse-datetime history
63466         * doc/parse-datetime.texi (Authors of parse_datetime): Better
63467         documentation of this function's history and alternatives.
63469         cygwin: use more robust version check
63470         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
63471         exclude an eventual cygwin 1.9.1.
63472         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63473         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63474         (gl_FUNC_STRCASESTR): Likewise.
63475         Reported by Bruno Haible.
63477 2010-10-06  Bruno Haible  <bruno@clisp.org>
63479         string, sys_select: Avoid #including large headers unless necessary.
63480         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
63481         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
63482         OSF/1, BeOS, Haiku.
63483         Reported by Jim Meyering.
63485 2010-10-05  Eric Blake  <eblake@redhat.com>
63487         memmem, strstr, strcasestr: fix bug with long periodic needle
63488         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
63489         periodic needle having false positive.
63490         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
63491         and cygwin 1.7.7.
63492         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
63493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63494         (gl_FUNC_STRCASESTR): Likewise.
63495         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63496         * tests/test-memmem.c (main): Expose the bug.
63497         * tests/test-strcasestr.c (main): Likewise.
63498         * tests/test-strstr.c (main): Likewise.
63499         * tests/test-c-strcasestr.c (main): Likewise.
63500         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
63501         * doc/posix-functions/strstr.texi (strstr): Likewise.
63502         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
63503         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
63505 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63507         parse-datetime: do some more renaming
63508         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
63509         parse_datetime, not get_date.  Mention the renaming.
63510         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
63511         in comments.
63512         * m4/bison.m4: Likewise.
63514 2010-10-05  Eric Blake  <eblake@redhat.com>
63516         parse-datetime: better name than get_date
63517         * NEWS: Reword the deprecation notice.
63518         * modules/get_date: Rename to modules/parse-datetime.
63519         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
63520         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
63521         * lib/get_date.y: Rename to lib/parse-datetime.y.
63522         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
63523         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
63524         * doc/getdate.texi: Provide fallback wrapper.
63525         * lib/getdate.h: Move guts, and wrap...
63526         * lib/parse-datetime.h: ...new file.
63527         * lib/parse-datetime.y (get_date): Rename...
63528         (parse_datetime): ...to this.
63529         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
63530         (gl_PARSE_DATETIME): ...to this.
63531         * doc/posix-functions/getdate.texi (get_date): Provide fallback
63532         documentation.
63533         * modules/getdate (Files): Provide fallback docs and header.
63534         (Notice, Depends-on): Update references.
63535         * tests/test-parse-datetime.c: Likewise.
63536         * DEPENDENCIES: Likewise.
63537         * MODULES.html.sh (Date and time <time.h>): Likewise.
63538         * doc/parse-datetime.texi (Date input formats)
63539         (Authors of parse_datetime): Likewise.
63540         * modules/parse-datetime (Files, configure.ac, Makefile.am)
63541         (Include): Likewise.
63542         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
63543         * gnulib-tool: Likewise.
63544         * m4/bison.m4 (gl_BISON): Likewise.
63545         Suggested by Bruno Haible.
63547 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63549         more ports to Solaris tr, which needs [] around ranges
63550         * gnulib-tool: Solaris tr needs [] around ranges.
63551         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63552         * tests/test-pipe-filter-gi1.c (main): Likewise.
63553         * tests/test-pipe-filter-ii1.c (main): Likewise.
63555 2010-10-05  Eric Blake  <eblake@redhat.com>
63557         bootstrap: fix Solaris regression
63558         * build-aux/bootstrap (check_versions): Solaris tr still needs []
63559         around ranges.
63560         Reported by Pádraig Brady.
63562         bootstrap: work with pkg-config
63563         * build-aux/bootstrap (check_versions): Also transliterate - in
63564         prerequisite name.
63565         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
63566         prerequisites that were already found, to avoid confusion.
63567         Reported by Justin Clift.
63569         faccessat: remove unused wrappers
63570         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
63571         presence of these wrappers dragged in -lgen on Solaris.
63572         Reported by Clemens Brogi; fix suggested by Paul Eggert.
63574 2010-10-05  Jim Meyering  <meyering@redhat.com>
63576         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
63577         * Makefile (sc_pragma_columns): New syntax-check rule.
63579 2010-10-04  Bruno Haible  <bruno@clisp.org>
63581         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
63582         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
63583         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
63584         Reported by Bruce Korb and Eric Blake.
63586 2010-10-04  Bruno Haible  <bruno@clisp.org>
63588         threadlib: Make option --with-libpth-prefix work.
63589         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
63590         use $LIBPTH, not just -lpth.
63592 2010-10-04  Bruno Haible  <bruno@clisp.org>
63594         Avoid line length limitation from HP NonStop system header files.
63595         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
63596         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
63597         * lib/ctype.in.h: Likewise.
63598         * lib/dirent.in.h: Likewise.
63599         * lib/errno.in.h: Likewise.
63600         * lib/fcntl.in.h: Likewise.
63601         * lib/float.in.h: Likewise.
63602         * lib/getopt.in.h: Likewise.
63603         * lib/iconv.in.h: Likewise.
63604         * lib/inttypes.in.h: Likewise.
63605         * lib/langinfo.in.h: Likewise.
63606         * lib/locale.in.h: Likewise.
63607         * lib/math.in.h: Likewise.
63608         * lib/netdb.in.h: Likewise.
63609         * lib/netinet_in.in.h: Likewise.
63610         * lib/poll.in.h: Likewise.
63611         * lib/pthread.in.h: Likewise.
63612         * lib/pty.in.h: Likewise.
63613         * lib/sched.in.h: Likewise.
63614         * lib/se-selinux.in.h: Likewise.
63615         * lib/search.in.h: Likewise.
63616         * lib/signal.in.h: Likewise.
63617         * lib/spawn.in.h: Likewise.
63618         * lib/stdarg.in.h: Likewise.
63619         * lib/stddef.in.h: Likewise.
63620         * lib/stdint.in.h: Likewise.
63621         * lib/stdio.in.h: Likewise.
63622         * lib/stdlib.in.h: Likewise.
63623         * lib/string.in.h: Likewise.
63624         * lib/strings.in.h: Likewise.
63625         * lib/sys_file.in.h: Likewise.
63626         * lib/sys_ioctl.in.h: Likewise.
63627         * lib/sys_select.in.h: Likewise.
63628         * lib/sys_socket.in.h: Likewise.
63629         * lib/sys_stat.in.h: Likewise.
63630         * lib/sys_time.in.h: Likewise.
63631         * lib/sys_times.in.h: Likewise.
63632         * lib/sys_utsname.in.h: Likewise.
63633         * lib/sys_wait.in.h: Likewise.
63634         * lib/sysexits.in.h: Likewise.
63635         * lib/termios.in.h: Likewise.
63636         * lib/time.in.h: Likewise.
63637         * lib/unistd.in.h: Likewise.
63638         * lib/wchar.in.h: Likewise.
63639         * lib/wctype.in.h: Likewise.
63640         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
63641         * modules/ctype (Makefile.am): Likewise.
63642         * modules/dirent (Makefile.am): Likewise.
63643         * modules/errno (Makefile.am): Likewise.
63644         * modules/fcntl-h (Makefile.am): Likewise.
63645         * modules/float (Makefile.am): Likewise.
63646         * modules/getopt-posix (Makefile.am): Likewise.
63647         * modules/iconv-h (Makefile.am): Likewise.
63648         * modules/inttypes (Makefile.am): Likewise.
63649         * modules/langinfo (Makefile.am): Likewise.
63650         * modules/locale (Makefile.am): Likewise.
63651         * modules/math (Makefile.am): Likewise.
63652         * modules/netdb (Makefile.am): Likewise.
63653         * modules/netinet_in (Makefile.am): Likewise.
63654         * modules/poll-h (Makefile.am): Likewise.
63655         * modules/pthread (Makefile.am): Likewise.
63656         * modules/pty (Makefile.am): Likewise.
63657         * modules/sched (Makefile.am): Likewise.
63658         * modules/search (Makefile.am): Likewise.
63659         * modules/selinux-h (Makefile.am): Likewise.
63660         * modules/signal (Makefile.am): Likewise.
63661         * modules/spawn (Makefile.am): Likewise.
63662         * modules/stdarg (Makefile.am): Likewise.
63663         * modules/stddef (Makefile.am): Likewise.
63664         * modules/stdint (Makefile.am): Likewise.
63665         * modules/stdio (Makefile.am): Likewise.
63666         * modules/stdlib (Makefile.am): Likewise.
63667         * modules/string (Makefile.am): Likewise.
63668         * modules/strings (Makefile.am): Likewise.
63669         * modules/sys_file (Makefile.am): Likewise.
63670         * modules/sys_ioctl (Makefile.am): Likewise.
63671         * modules/sys_select (Makefile.am): Likewise.
63672         * modules/sys_socket (Makefile.am): Likewise.
63673         * modules/sys_stat (Makefile.am): Likewise.
63674         * modules/sys_time (Makefile.am): Likewise.
63675         * modules/sys_times (Makefile.am): Likewise.
63676         * modules/sys_utsname (Makefile.am): Likewise.
63677         * modules/sys_wait (Makefile.am): Likewise.
63678         * modules/sysexits (Makefile.am): Likewise.
63679         * modules/termios (Makefile.am): Likewise.
63680         * modules/time (Makefile.am): Likewise.
63681         * modules/unistd (Makefile.am): Likewise.
63682         * modules/wchar (Makefile.am): Likewise.
63683         * modules/wctype (Makefile.am): Likewise.
63685 2010-10-04  Bruno Haible  <bruno@clisp.org>
63687         read-file tests: Avoid a test failure on NonStop Kernel.
63688         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
63689         a regular file.
63690         Reported by Joachim Schmitz <schmitz@hp.com>.
63692 2010-10-03  Bruno Haible  <bruno@clisp.org>
63694         gnulib-tool: Fixes for --create-testdir with --libtool.
63695         * gnulib-tool (func_get_automake_snippet): Don't augment
63696         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
63697         an executable.
63698         (func_create_testdir): Handle module 'alloca' like func_import.
63699         Reported by Bruce Korb <bruce.korb@gmail.com>.
63701 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63703         Avoid some lines longer than 80 characters.
63704         * lib/stdint.in.h: Break long comment lines.
63705         * lib/math.in.h: Likewise.
63706         (_GL_NUM_UINT_WORDS): New macro, for readability.
63707         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
63708         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
63709         * lib/stdlib.in.h: Likewise.
63710         * lib/spawn.in.h: Likewise.
63711         * lib/sys_socket.in.h: Update an URL.
63712         * lib/sys_stat.in.h: Break long line.
63714 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
63716         Improve pmccabe2html.
63717         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
63718         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
63719         when the sources change. Remove the line in the HTML about "Used
63720         ranges" (which implied that there might be other unused ranges),
63721         rename "Resume" to "Summary" (easier to understand for more users).
63722         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
63723         styles, and some unnecessary blank lines.
63725 2010-10-03  Bruno Haible  <bruno@clisp.org>
63726             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
63728         acl: Add support for ACLs on NonStop Kernel.
63729         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
63730         Check whether the function aclsort() exists.
63731         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
63732         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
63733         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63734         (acl_nontrivial [HAVE_ACLSORT]: New function.
63735         (file_has_acl): Implement for NonStop Kernel.
63736         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63737         (qset_acl): Implement for NonStop Kernel.
63738         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
63739         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63740         (main): Implement for NonStop Kernel.
63741         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
63742         Kernel. Handle this flavor.
63743         * tests/test-set-mode-acl.sh: Likewise.
63744         * tests/test-copy-acl.sh: Likewise.
63745         * tests/test-copy-file.sh: Likewise.
63747 2010-10-03  Bruno Haible  <bruno@clisp.org>
63749         Info about ACLs on NonStop Kernel.
63750         * doc/acl-resources.txt: Add info about NonStop Kernel.
63751         References by Joachim Schmitz <schmitz@hp.com>.
63753 2010-10-02  Bruno Haible  <bruno@clisp.org>
63755         Define missing EDQUOT on NonStop Kernel.
63756         * lib/errno.in.h (EDQUOT): Assign a value if missing.
63757         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
63758         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
63759         missing.
63760         * doc/posix-headers/errno.texi: Mention the NSK bug.
63761         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
63762         Reported by Joachim Schmitz <schmitz@hp.com>.
63764 2010-10-02  Bruno Haible  <bruno@clisp.org>
63766         Update doc for POSIX:2008.
63767         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
63768         Update URL of POSIX specification.
63770 2010-10-02  Bruno Haible  <bruno@clisp.org>
63772         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
63773         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
63774         from gnulib, not from Automake.
63776 2010-10-02  Bruno Haible  <bruno@clisp.org>
63778         New module 'system-posix'.
63779         * modules/system-posix: New file.
63780         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
63781         module is present.
63782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63783         GNULIB_SYSTEM_POSIX.
63784         * modules/stdlib (Depends-on): Remove sys_wait.
63785         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
63786         * doc/posix-functions/system.texi: Mention the new module.
63787         * doc/posix-headers/stdlib.texi: Likewise.
63788         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
63789         define test_sys_wait_macros to a no-op.
63790         Reported by Sam Steingold <sds@gnu.org>.
63792 2010-09-30  Bruno Haible  <bruno@clisp.org>
63794         More renaming from 'getdate' to 'get_date'.
63795         * doc/get_date.texi: Renamed from doc/getdate.texi.
63796         * modules/get_date (Files): Update.
63797         * MODULES.html.sh (Date and time <time.h>): Update.
63798         * DEPENDENCIES: Update.
63799         * gnulib-tool: Update comment.
63800         * m4/bison.m4 (gl_BISON): Likewise.
63801         * m4/get_date.m4 (gl_GET_DATE): Likewise.
63803 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
63805         bootstrap: support ACLOCAL_FLAGS during aclocal
63806         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
63807         can add additional -I dir for third-party .m4 files.
63809 2010-09-30  Eric Blake  <eblake@redhat.com>
63811         bootstrap: use glibtoolize on MacOS
63812         * build-aux/bootstrap (check_versions): Convert libtool into
63813         libtoolize.
63814         (tool search): Move libtool check earlier, and look for
63815         glibtoolize for MacOS.
63816         (gnulib_tool_options): Auto-add --libtool when appropriate.
63817         Reported by Justin Clift.
63819         poll: fix typo that broke test on MacOS
63820         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
63821         Reported by Justin Clift.
63823         getdate: rename to get_date
63824         Note: getdate.h is not renamed, to minimize client impact.
63825         * modules/getdate: Mark obsolete.  Move old contents...
63826         * modules/get_date: ...to new module name.
63827         * modules/getdate-tests: Move...
63828         * modules/get_date-tests: ...here.
63829         * m4/getdate.m4: Move...
63830         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
63831         * lib/getdate.y: Move...
63832         * lib/get_date.y: ...here.
63833         * tests/test-getdate.c: Move...
63834         * tests/test-get_date.c: ...here.
63835         * doc/posix-functions/getdate.texi (getdate): Update name.
63836         * NEWS: Mention the change.
63838 2010-09-29  Bruno Haible  <bruno@clisp.org>
63840         Separate the module 'waitpid' from the module 'sys_wait'.
63841         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
63842         present.
63843         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
63844         gl_MODULE_INDICATOR_FOR_TESTS.
63845         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
63846         * modules/sys_wait (Depends-on): Remove waitpid.
63847         (Makefile.am): Substitute GNULIB_WAITPID.
63848         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
63849         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
63850         signature only if the 'waitpid' module is present.
63851         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
63852         * NEWS: Mention the change.
63853         * modules/grantpt (Depends-on): Add waitpid.
63854         * modules/wait-process (Depends-on): Likewise.
63856 2010-09-29  Bruno Haible  <bruno@clisp.org>
63858         More tests for module 'sys_wait'.
63859         * modules/sys_wait-c++-tests: New file.
63860         * tests/test-sys_wait-c++.cc: New file.
63861         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
63862         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
63864 2010-09-29  Bruno Haible  <bruno@clisp.org>
63866         New module 'waitpid'.
63867         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
63868         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
63869         Don't include <process.h>.
63870         (waitpid): Declare only, using modern idiom.
63871         * m4/waitpid.m4: New file.
63872         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
63873         * modules/waitpid: New file.
63874         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
63875         (Makefile.am): Update.
63876         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
63878 2010-09-28  Bruno Haible  <bruno@clisp.org>
63880         poll: Assume ANSI C.
63881         * lib/poll.c (poll): Use an ANSI C declaration.
63883 2010-09-28  Bruno Haible  <bruno@clisp.org>
63885         poll-h: Create poll.h on all platforms.
63886         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
63887         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
63888         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
63889         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
63890         (gl_REPLACE_POLL_H): Don't set POLL_H.
63891         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
63892         * modules/poll-h (Depends-on): Add include_next.
63893         (Makefile.am): Create poll.h unconditionally. Substitute also
63894         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
63896 2010-09-28  Bruno Haible  <bruno@clisp.org>
63898         Tests for module 'poll-h'.
63899         * modules/poll-h-c++-tests: New file.
63900         * tests/test-poll-h-c++.cc: New file.
63902         Tests for module 'poll-h'.
63903         * modules/poll-h-tests: New file.
63904         * tests/test-poll-h.c: New file.
63906 2010-09-28  Bruno Haible  <bruno@clisp.org>
63908         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
63909         * modules/poll-h (Depends-on): Add 'extensions'.
63911 2010-09-28  Bruno Haible  <bruno@clisp.org>
63913         New module 'poll-h'.
63914         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
63915         (poll): Use modern idiom.
63916         * modules/poll-h: New file.
63917         * modules/poll (Files): Remove lib/poll.in.h.
63918         (Depends-on): Add poll-h.
63919         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
63920         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
63921         * m4/poll_h.m4: New file.
63922         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
63923         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
63924         and invoke gl_REPLACE_POLL_H.
63925         * lib/poll.c: Use common idiom.
63926         * tests/test-poll.c: Likewise.
63927         * doc/posix-headers/poll.texi: Mention the poll-h module.
63928         Suggested by Eric Blake.
63930 2010-09-26  Bruno Haible  <bruno@clisp.org>
63932         sys_wait: Implement WSTOPSIG.
63933         * lib/sys_wait.in.h (WSTOPSIG): New macro.
63934         Reported by Simon Josefsson.
63936 2010-09-26  Simon Josefsson  <simon@josefsson.org>
63938         stdlib, sys_wait: Avoid compilation error on mingw.
63939         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
63941 2010-09-26  Bruno Haible  <bruno@clisp.org>
63943         stdlib tests: Avoid code duplication.
63944         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
63945         * modules/sys_wait-tests (Files): Likewise.
63946         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
63947         * tests/test-stdlib.c: Include test-sys_wait.h.
63948         (main): Invoke test_sys_wait_macros.
63949         * tests/test-sys_wait.c: Include test-sys_wait.h.
63950         (main): Invoke test_sys_wait_macros.
63952 2010-09-25  Simon Josefsson  <simon@josefsson.org>
63954         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
63955         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
63956         sure Windows sockets are working before calling getaddrinfo.
63957         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
63958         * doc/gnulib.texi (Windows sockets): Fix typo.
63960 2010-09-25  Bruno Haible  <bruno@clisp.org>
63962         Tests for module 'regex-quote'.
63963         * modules/regex-quote-tests: New file.
63964         * tests/test-regex-quote.c: New file.
63966         New module 'regex-quote'.
63967         * lib/regex-quote.h: New file.
63968         * lib/regex-quote.c: New file.
63969         * modules/regex-quote: New file.
63970         Suggested by Reuben Thomas <rrt@sc3d.org>.
63972 2010-09-24  Bruno Haible  <bruno@clisp.org>
63974         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
63975         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
63977 2010-09-23  Bruno Haible  <bruno@clisp.org>
63979         setenv: Relax license.
63980         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
63981         Blake.
63982         Requested by Eric Blake.
63984 2010-09-22  Bruno Haible  <bruno@clisp.org>
63986         termios: Relax license.
63987         * modules/termios (License): Change to LGPLv2+.
63988         Requested by Eric Blake.
63990 2010-09-22  Bruno Haible  <bruno@clisp.org>
63992         threadlib: Allow the package to change the default to 'no'.
63993         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
63994         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
63995         Reported by Paul Eggert.
63997 2010-09-22  Pádraig Brady  <P@draigbrady.com>
63998             Bruno Haible  <bruno@clisp.org>
64000         Fix endless loop in mbmemcasecoll.
64001         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
64002         byte.
64003         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
64005 2010-09-22  Bruno Haible  <bruno@clisp.org>
64007         Tests for module 'memcoll'.
64008         * modules/memcoll-tests: New file.
64009         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
64011         memcoll, xmemcoll: Clarify size vs. length.
64012         * modules/memcoll.c (memcoll0): Clarify specification.
64013         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
64014         passed to collate_error.
64016 2010-09-22  Bruno Haible  <bruno@clisp.org>
64018         Tests for module 'memcasecmp'.
64019         * modules/memcasecmp-tests: New file.
64020         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
64022 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64024         * lib/pthread.in.h: Add split double-inclusion guard, and include
64025         system <pthread.h> if there is one.  Use @@-style as in other
64026         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
64027         pthread.h doesn't.
64028         (pthread_mutexattr_destroy, pthread_mutexattr_init):
64029         (pthread_mutexattr_settype, pthread_mutex_trylock):
64030         New static inline functions, if there's no system <pthread.h>.
64031         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
64032         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
64033         Approximate with mutexes if the system lacks spinlocks, as in
64034         MacOS.
64035         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
64036         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
64037         @@-style.  Check for spinlocks separately.
64038         (gl_PTHREAD_DEFAULTS): New macro.
64039         * modules/pthread: Redo to use a more typical style for in.h files.
64041 2010-09-21  Eric Blake  <eblake@redhat.com>
64043         net_if: enhance tests
64044         * tests/test-net_if.c (main): Move signature checks earlier.
64045         Print failures to stderr.
64046         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
64047         Document the bug that we do not yet fix.
64049 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64051         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
64052         about gnulib, not GSS.
64054 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64056         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
64057         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
64058         for Emacs.
64059         * build-aux/pmccabe2html: Make Makefile.am example code more
64060         cut-and-paste friendly.
64062 2010-09-21  Simon Josefsson  <simon@josefsson.org>
64064         * tests/test-net_if.c: New file.
64065         * modules/net_if-tests: New file.
64067 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64069         pthread: add pthread_spin_destroy
64070         * lib/pthread.in.h (pthread_spin_destroy): New function.
64072 2010-09-19  Bruno Haible  <bruno@clisp.org>
64074         gnulib-tool: Fix --help output.
64075         * gnulib-tool (func_usage): Fix help message.
64076         Reported by Reuben Thomas <rrt@sc3d.org>.
64078 2010-09-18  Jim Meyering  <meyering@redhat.com>
64080         maint.mk: avoid unexpanded \n in two diagnostics
64081         * top/maint.mk (sc_prohibit_always_true_header_tests):
64082         Don't use a literal \n in a halt=... assignment.  It would not be
64083         expanded, and the two \n bytes would appear in the diagnostic output
64084         rather than the desired newline.  Use halt=$$(printf ... instead.
64085         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
64087 2010-09-18  Bruno Haible  <bruno@clisp.org>
64089         netinet_in: Doc tweak.
64090         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
64091         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64093 2010-09-18  Jim Meyering  <meyering@redhat.com>
64095         init.sh: correct an outdated comment
64096         * tests/init.sh (create_exe_shims_):  s/function/alias/
64098         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
64099         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
64100         a file named "*.exe" is removed between the glob expansion and the
64101         processing of that oddly named file.
64103 2010-09-17  Eric Blake  <eblake@redhat.com>
64105         mirbsd: add some more support
64106         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
64107         in BSD family.
64108         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
64109         devices as OpenBSD.
64110         * m4/host-os.m4 (mirbsd): Add MirBSD.
64112         tests: fix unportable assumption on sys/wait.h
64113         * tests/test-sys_wait.c (main): Relax test.
64114         * tests/test-stdlib.c (main): Likewise.
64116         init.sh: accommodate directory with no .exes
64117         * tests/init.sh: Accomodate directory containing only scripts.
64119         tests: avoid compiler warning
64120         * tests/test-stdlib.c (main): Use the variable.
64122         fdutimens, fdutimensat: update signature, again
64123         * lib/utimens.h (gl_futimens): Delete, and move signature...
64124         (fdutimens): ...here.
64125         (fdutimensat): Rearrange signature.
64126         (lutimensat): Rename variable for clarity.
64127         * lib/fdutimensat.c (fdutimensat): Update signature.
64128         * lib/utimens.c (fdutimens): Likewise.
64129         (gl_futimens): Delete.
64130         (utimens, lutimens): Update callers.
64131         * lib/futimens.c (futimens): Likewise.
64132         * tests/test-fdutimensat.c: Likewise.
64133         * tests/test-utimens.c: Likewise.
64134         * tests/test-futimens.h: Update comment.
64135         * NEWS: Mention this.
64136         Suggested by Paul Eggert.
64138 2010-09-17  Bruno Haible  <bruno@clisp.org>
64140         Take over the maintenance of some older macros from Autoconf.
64141         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
64142         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
64143         GNU Autoconf.
64144         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
64145         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
64147 2010-09-17  Eric Blake  <eblake@redhat.com>
64149         fdutimensat: drop atflag validation
64150         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
64151         with valid fd, to close a race scenario where futimens is
64152         unsupported and FILE was replaced by a symlink.
64153         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
64154         accordingly.
64155         Suggested by Paul Eggert.
64157 2010-09-16  Bruno Haible  <bruno@clisp.org>
64159         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
64160         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
64162 2010-09-16  Bruno Haible  <bruno@clisp.org>
64164         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
64165         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
64166         login_tty exists.
64167         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64169 2010-09-16  Bruno Haible  <bruno@clisp.org>
64171         login_tty: Make the replacement code work on BSD systems.
64172         * lib/login_tty.c: Include <sys/ioctl.h>.
64173         (login_tty): Use ioctl TIOCSCTTY when available.
64174         * modules/login_tty (Depends-on): Add sys_ioctl.
64175         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64177 2010-09-16  Bruno Haible  <bruno@clisp.org>
64179         login_tty: Stricter unit test.
64180         * modules/login_tty-tests (Depends-on): Add tcgetsid.
64181         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
64182         and tcgetsid() after login_tty.
64183         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64185 2010-09-16  Bruno Haible  <bruno@clisp.org>
64187         New module 'tcgetsid'.
64188         * lib/tcgetsid.c: New file.
64189         * m4/tcgetsid.m4: New file.
64190         * modules/tcgetsid: New file.
64191         * modules/termios (Depends-on): Add c++defs, warn-on-use.
64192         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
64193         GNULIB_TCGETSID, HAVE_TCGETSID.
64194         * lib/termios.in.h: Include <sys/types.h>.
64195         (tcgetsid): New declaration.
64196         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
64197         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
64198         * doc/posix-functions/tcgetsid.texi: Mention the new module.
64199         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
64201 2010-09-16  Bruno Haible  <bruno@clisp.org>
64203         Tests for module 'termios'.
64204         * modules/termios-c++-tests: New file.
64205         * modules/termios-tests: New file.
64206         * tests/test-termios-c++.cc: New file.
64207         * tests/test-termios.c: New file.
64209         New module 'termios'.
64210         * modules/termios: New file.
64211         * lib/termios.in.h: New file.
64212         * m4/termios_h.m4: New file.
64213         * doc/posix-headers/termios.texi: Mention the new module.
64215 2010-09-16  Eric Blake  <eblake@redhat.com>
64217         fdutimensat: add an atflag parameter
64218         * lib/fdutimensat.c (fdutimensat): Add new parameter.
64219         * lib/utimens.h (fdutimensat): Update prototype.
64220         * tests/test-fdutimensat.c: Adjust test to match.
64221         * NEWS: Document the change.
64222         Suggested by Paul Eggert.
64224 2010-09-16  Bruno Haible  <bruno@clisp.org>
64226         Fix typos in comments.
64227         * lib/striconveh.h: Fix typo in comment.
64228         * lib/login_tty.c (login_tty): Likewise.
64230 2010-09-15  Bruno Haible  <bruno@clisp.org>
64232         stdlib: clarify MirBSD WEXITSTATUS bug
64233         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
64234         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
64236 2010-09-15  Eric Blake  <eblake@redhat.com>
64238         stdlib: work around MirBSD WEXITSTATUS bug
64239         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
64240         * modules/stdlib (Depends-on): Add sys_wait.
64241         * tests/test-sys_wait.c (main): Enhance test.
64242         * tests/test-stdlib.c (main): Likewise.
64243         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
64245         docs: mention MacOS issue with WEXITSTATUS(constant)
64246         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
64247         issue.
64248         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
64250         strnlen: add tests
64251         * modules/strnlen-tests: New file.
64252         * tests/test-strnlen.c: Likewise.
64254 2010-09-14  Bruno Haible  <bruno@clisp.org>
64256         unistr/base: Avoid link errors when module 'libunistring' is also used.
64257         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
64258         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
64259         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
64260         Declare also when HAVE_LIBUNISTRING is set.
64261         Reported by Pádraig Brady <P@draigbrady.com>.
64263 2010-09-14  Eric Blake  <eblake@redhat.com>
64265         test-rawmemchr: make more robust
64266         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
64267         (Depends-on, configure.ac): Add needed prerequisites to use it.
64268         * modules/memchr-tests (Files, Depends-on, configure.ac):
64269         Likewise, to avoid implicit reliance on memchr module prereqs.
64270         * tests/test-memchr.c (main): Ensure proper masking.
64271         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
64272         reads.
64274         memchr: detect glibc Alpha bug
64275         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
64276         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
64277         Alpha.
64278         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
64279         * tests/test-memchr.c (main): Enhance test.
64280         Reported by Nelson H. F. Beebe.
64282 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64284         fts, getcwd, glob: audit for dirfd returning -1
64285         * lib/fts.c (opendir): Remove #define; no longer used.
64286         (opendirat): New arg PDIR_FD.  All callers changed.
64287         (fts_build, _opendir2): Use new opendirat to avoid the need for
64288         dirfd, or for checking whether dirfd returns a negative value.
64289         Don't use opendir; always use openat followed by fdopendir.
64290         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
64291         it.
64292         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
64293         returns -1 here.
64294         * modules/fts (Depends-on): Remove dirfd.
64295         * modules/getcwd (Depends-on): Likewise.
64297 2010-09-13  Eric Blake  <eblake@redhat.com>
64299         float: fix broken MirBSD header
64300         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
64301         * doc/posix-headers/float.texi (float.h): Document it.
64303 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64305         fts: use O_NOFOLLOW to avoid race condition when opening a directory
64306         * lib/fts.c (opendirat): New arg extra_flags.
64307         (__opendir2): Use it to avoid following symlinks when opening
64308         a directory, if symlinks are not supposed to be followed.  See
64309         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
64311         fdopendir: preserve argument fd before returning
64312         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
64313         (fdopendir_with_dup, fd_clone_opendir): New static functions.
64314         (fdopendir): Use them, arranging for FD to be open to the same
64315         directory that it was when it started.  (It might be temporarily
64316         closed while fdopendir is running, so this not thread- or
64317         signal-safe.)  Be careful to do the right thing even when file
64318         descriptors are scarce and dup fails with errno == EMFILE.  See
64319         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
64321 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
64323         regex: Pass the system regex if its only problem is 32-bit regoff_t.
64324         * NEWS: Document change.
64325         * m4/regex.m4: Disable test for regoff_t size.
64327 2010-09-13  Jim Meyering  <meyering@redhat.com>
64329         fts: don't operate on an invalid file descriptor after failed dup
64330         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
64331         negative file descriptor.
64333 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64335         savedir: add streamsavedir, deprecate fdsavedir
64336         * NEWS: Mention deprecation of fdsavedir.
64337         * lib/savedir.c (streamsavedir): New extern function, whose name
64338         ends in "savedir" to be consistent with the others.  This differs
64339         from savedirstream in that it doesn't close its argument.  The
64340         next version of GNU tar will use this instead of fdsavedir, to
64341         avoid some race conditions and conserve file descriptors.
64342         (savedirstream): Reimplement as a wrapper around streamsavedir.
64343         (fdsavedir): Add a comment deprecating this function.  As far as
64344         I know, only GNU tar used it, and GNU tar doesn't need it any more.
64345         * lib/savedir.h (streamsavedir): New decl.
64346         (fdsavedir): Add a comment deprecating this.
64348 2010-09-10  Bruno Haible  <bruno@clisp.org>
64350         langinfo: Fix last commit.
64351         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
64352         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
64353         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64355 2010-09-10  Bruno Haible  <bruno@clisp.org>
64357         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
64358         * lib/progreloc.c (O_EXEC): Define fallback.
64360 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
64362         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
64363         * NEWS: Document recent changes to fcntl-h.
64364         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
64365         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
64366         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
64367         Similarly for O_SEARCH; this last was already true, but not documented.
64368         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
64369         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
64370         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
64371         Likewise.
64372         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
64373         is zero, not whether it is defined.
64374         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
64375         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
64376         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
64378 2010-09-10  Bruno Haible  <bruno@clisp.org>
64380         langinfo, nl_langinfo: Fix for IRIX 5.3.
64381         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
64382         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
64383         HAVE_LANGINFO_YESEXPR.
64384         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
64385         HAVE_LANGINFO_YESEXPR.
64386         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
64387         HAVE_LANGINFO_T_FMT_AMPM is 0.
64388         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
64389         HAVE_LANGINFO_YESEXPR is 0.
64390         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
64391         NOEXPR.
64392         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
64393         * doc/posix-functions/nl_langinfo.texi: Likewise.
64394         Reported by Eric Blake.
64396 2010-09-10  Bruno Haible  <bruno@clisp.org>
64398         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
64399         * doc/glibc-functions/login_tty.texi: Mention the include file problem
64400         on FreeBSD 8.0 and OpenBSD 4.6.
64401         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
64402         * m4/pty_h.m4 (gl_PTY_H): Likewise.
64403         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
64404         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
64405         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
64406         ac_includes_default.
64407         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64409 2010-09-09  Eric Blake  <eblake@redhat.com>
64411         strsignal: work around NetBSD bug
64412         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
64413         * lib/string.in.h (includes): Likewise.
64414         * doc/posix-functions/strsignal.texi (strsignal): Document the
64415         bug.
64416         Reported by Nelson H. F. Beebe.
64418         gnulib-tool: work with NetBSD /bin/sh
64419         * gnulib-tool (func_cache_var, func_cache_lookup_module)
64420         (func_get_description, func_get_comment, func_get_status)
64421         (func_get_notice, func_get_applicability, func_get_filelist)
64422         (func_get_dependencies, func_get_autoconf_early_snippet)
64423         (func_get_autoconf_snippet, func_get_automake_snippet)
64424         (func_get_include_directive, func_get_link_directive)
64425         (func_get_license, func_get_maintainer, func_import): Avoid
64426         shell syntax errors from parsing syntax extensions.
64428 2010-09-09  Bruno Haible  <bruno@clisp.org>
64430         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64431         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
64432         a reliable way to determine whether the 'alias' command works.
64434 2010-09-08  Jim Meyering  <meyering@redhat.com>
64436         init.sh: penalize a set-x-impaired shell; don't disqualify it
64437         * tests/init.sh: Too many shells corrupt application stderr when
64438         you set -x, so we can't afford to disqualify them, since at least
64439         on Irix-6.5, that would disqualify all bourne shells.
64440         Instead, use a two-pass approach.
64441         On the first pass, try to find a shell that meets the stricter
64442         condition that set -x does not corrupt stderr.
64443         If no shell meets the stricter condition, retest each candidate
64444         shell, but without that extra condition.  Finally, when
64445         VERBOSE=yes is requested and set -x might cause trouble, simply
64446         issue a warning and refrain from enabling debug output.
64448 2010-09-08  Eric Blake  <eblake@redhat.com>
64450         unsetenv: fix OpenBSD bug
64451         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
64452         * doc/posix-functions/unsetenv.texi (unsetenv): Update
64453         documentation.
64454         Reported by Jim Meyering.
64456         strtod: work around IRIX 6.5 bug
64457         * lib/strtod.c (strtod): Reparse number on shorter string if
64458         exponent parse was invalid.
64459         * tests/test-strtod.c (main): Add check for "0x1p 2".
64460         Reported by Tom G. Christensen.
64462         getopt: optimize previous patch
64463         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
64464         empty variable.  Speed up awk script.
64465         Reported by Paolo Bonzini.
64467 2010-09-08  Jim Meyering  <meyering@redhat.com>
64469         test.sh: disqualify shells for which set -x corrupts stderr
64470         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
64471         and OpenBSD 4.7.  They make it so with "set -x", environment settings
64472         appear in stderr output.  For example, this command:
64473             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
64474         prints "P=1" on those two systems:
64476 2010-09-08  Bruno Haible  <bruno@clisp.org>
64478         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64479         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
64480         commands, because some shells ignore redirections when there is an
64481         error in the command lookup.
64482         Reported by Eric Blake.
64484 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
64486         * lib/regex.h: Fix a mention of `regex_compile' (should be
64487         `re_compile_pattern').
64488         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
64489         (re_set_registers): Correct name of parameter in comment.
64491         * doc/regex.texi: Add documentation for missing syntax flags.
64492         Remove commented-out documentation of defunct syntax option
64493         RE_NO_EMPTY_ALTS.
64494         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
64495         Add documentation of re_set_registers.
64496         Document trick to re-use a pattern buffer by setting fastmap manually.
64497         Update documentation of struct re_pattern_buffer per public members.
64498         Uncomment documentation of equivalence class operators and
64499         collating symbol operators, since they are now implemented,
64500         Explain leftmost-longest matching in relation to alternatives.
64501         Tidy documentation of substring matching.
64502         Remove POSIX documentation, which is done better in
64503         glibc, and refer the reader there. Keep BSD API documentation, as
64504         that is not readily available elsewhere.
64506 2010-09-07  Eric Blake  <eblake@redhat.com>
64508         getopt: handle POSIXLY_CORRECT set but not exported
64509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
64510         export state of POSIXLY_CORRECT, due to bash set -o posix.
64511         Reported by Dustin J. Mitchell.
64513 2010-09-05  Bruno Haible  <bruno@clisp.org>
64515         gnulib-tool: Highlight the changed options.
64516         * gnulib-tool (func_usage): Display the --import, --add-import,
64517         --remove-import explanations in bold font.
64519 2010-09-06  Karl Berry  <karl@gnu.org>
64521         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
64523 2010-09-05  Bruno Haible  <bruno@clisp.org>
64525         uniwidth/width: Update comment.
64526         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
64527         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
64529 2010-09-05  Bruno Haible  <bruno@clisp.org>
64531         isinf, isnan: Relax license.
64532         * modules/isinf (License): Change from GPL to LGPL, with consent from
64533         Ben Pfaff.
64534         * modules/isnan (License): Likewise.
64535         Requested by Ludovic Courtès.
64537 2010-09-04  Bruno Haible  <bruno@clisp.org>
64539         gnulib-tool: Help migration from --import to --add-import or --update.
64540         * gnulib-tool: Emit a verbose error message when --import is used
64541         without any module name.
64543 2010-09-04  Bruno Haible  <bruno@clisp.org>
64545         Update doc about gnulib-tool.
64546         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
64547         'gnulib-tool --update' in more detail.
64548         Reported by Eric Blake.
64550 2010-09-04  Bruno Haible  <bruno@clisp.org>
64552         gnulib-tool: Change --import. New options --add/remove-import.
64553         * gnulib-tool: New options --add-import, --remove-import.
64554         (func_usage): Document them.
64555         (have_associative): Define always.
64556         (func_import): In import mode, don't merge the specified settings with
64557         the cached settings. Implement remove-import mode.
64558         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
64559         Explain when to use them versus --import.
64560         (Simple update): Use --add-import instead of --import.
64561         * NEWS: Mention the change.
64563 2010-09-04  Bruno Haible  <bruno@clisp.org>
64565         * doc/gnulib-tool.texi (Initial import): Update paragraph about
64566         separate gnulib.mk.
64568 2010-09-04  Bruno Haible  <bruno@clisp.org>
64570         gnulib-tool: Don't talk about CVS any more.
64571         * gnulib-tool (func_usage, func_import): Write "version control"
64572         instead of CVS.
64574 2010-09-04  Jim Meyering  <meyering@redhat.com>
64576         maint.mk: avoid obscure sc_copyright_check failure in coreutils
64577         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
64578         false positives (whose names may be ill-chosen) when searching
64579         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
64580         would cause a false-positive.
64582         avoid coreutils "make distcheck" failure
64583         Coreutils tests with an absolute build directory name that contains
64584         a space.  Not quoting this directory name caused a failure.
64585         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
64586         * tests/test-vc-list-files-cvs.sh: Likewise.
64588 2010-09-04  Bruno Haible  <bruno@clisp.org>
64590         gnulib-tool: Avoid error when run in a package without Makefile.am.
64591         * gnulib-tool: When collecting the m4dirs in a package that does not
64592         have a Makefile.am, eliminate those directories that contain no
64593         gnulib-cache.m4. Fix expression that counts these directories.
64595 2010-09-04  Bruno Haible  <bruno@clisp.org>
64597         update-copyright test: Improve output when perl is missing or too old.
64598         * tests/test-update-copyright.sh: Move test of Perl version down after
64599         the test whether Perl exists. Provide an explanation relating Perl's
64600         error message to Automake's SKIP: message.
64602 2010-09-04  Bruno Haible  <bruno@clisp.org>
64604         Don't augment PATH in TESTS_ENVIRONMENT.
64605         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
64606         set abs_aux_dir instead of augmenting PATH.
64607         * modules/vc-list-files-tests (Makefile.am): Likewise.
64608         * tests/test-update-copyright.sh: Augment PATH here.
64609         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
64610         path_prepend_.
64611         * tests/test-vc-list-files-git.sh: Likewise.
64613 2010-09-04  Jim Meyering  <meyering@redhat.com>
64615         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
64616         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
64618 2010-09-04  Bruno Haible  <bruno@clisp.org>
64620         strdup: Fix compilation error in C++ mode.
64621         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
64622         the macro.
64624 2010-09-04  Bruno Haible  <bruno@clisp.org>
64626         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
64627         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
64628         macro into a function.
64629         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64631 2010-09-04  Bruno Haible  <bruno@clisp.org>
64633         Set PATH_SEPARATOR the same way autoconf does.
64634         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
64635         the value of PATH_SEPARATOR the same way autoconf-generated configure
64636         scripts do.
64637         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
64638         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
64640 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
64642         Set PATH_SEPARATOR the same way autoconf does.
64643         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
64644         the same way autoconf-generated configure scripts do.
64645         * posix-modules: Likewise.
64647 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64649         hash: fix safe_hasher const typo
64650         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
64651         const; otherwise, there is a type error later.
64653 2010-09-02  Jim Meyering  <meyering@redhat.com>
64655         test-update-copyright.sh: require perl 5.8.0
64656         * tests/test-update-copyright.sh: Require 5.8.0,
64657         which Tom G. Christensen has confirmed is adequate,
64658         while 5.6.1 is not.
64660 2010-09-02  Eric Blake  <eblake@redhat.com>
64662         tests: init.sh improvements for re-exec'ing with zsh
64663         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
64664         -vx through shell re-exec.
64665         Reported by Tom G. Christensen.
64667         wctype: fix typo in previous commit
64668         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
64669         Reported by Ludovic Courtès.
64671 2010-09-02  Jim Meyering  <meyering@redhat.com>
64673         test-update-copyright.sh: skip test if Perl is too old
64674         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
64675         Reported by Tom G. Christensen.
64677 2010-09-02  Bruno Haible  <bruno@clisp.org>
64679         wctype: Avoid compilation error on IRIX 6.5.30.
64680         * lib/wctype.in.h (iswblank): Declare with a replacement if
64681         REPLACE_ISWBLANK is set.
64682         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
64683         declared. Set REPLACE_ISWBLANK.
64684         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
64685         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
64686         * doc/posix-headers/wctype.texi: Likewise.
64687         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64689 2010-09-01  Bruno Haible  <bruno@clisp.org>
64691         New module 'socketlib'.
64692         * modules/socketlib: New file.
64693         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
64694         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
64695         * modules/sockets (Depends-on): Add socketlib.
64696         Suggested by Sam Steingold <sds@gnu.org>.
64698 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64700         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
64702         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
64703         when one needs search access to a directory but not read access.
64704         On systems where it is available, it works in some cases where
64705         O_RDONLY does not, namely on directories that are searchable but
64706         not readable, and which need only to be searchable.  If O_SEARCH
64707         is not available, fall back to the traditional method of using
64708         O_RDONLY.
64710         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
64711         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
64712         when opening a directory that needs only to be searchable.
64713         * lib/chdir-safer.c (chdir_no_follow): Likewise.
64714         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
64715         * lib/openat-proc.c (openat_proc_name): Likewise.
64716         * lib/openat.c (openat_needs_fchdir): Likewise.
64717         * lib/save-cwd.c (save_cwd): Likewise.
64718         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
64720 2010-08-28  Bruno Haible  <bruno@clisp.org>
64722         New module 'host-cpu-c-abi'.
64723         * modules/host-cpu-c-abi: New file.
64724         * m4/host-cpu-c-abi.m4: New file, based on part of
64725         clisp/src/m4/general.m4.
64726         Requested by Sam Steingold <sds@gnu.org>.
64728 2010-08-31  Eric Blake  <eblake@redhat.com>
64729         and Jim Meyering  <meyering@redhat.com>
64731         hash: factor, and guard against misbehaving hasher function
64732         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
64733         of table->hasher's return value.  Also protect against a hash value
64734         so large that adding it to table->bucket results in a NULL pointer.
64735         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
64736         Use it in place of open-coded check-and-abort.
64738 2010-08-30  Bruno Haible  <bruno@clisp.org>
64740         hash: silence spurious clang warning
64741         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
64742         Reported by Eric Blake.
64744 2010-08-30  Eric Blake  <eblake@redhat.com>
64746         strstr, memmem, strcasestr: avoid leaked shell message
64747         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
64748         FreeBSD.
64749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64750         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64752         tests: silence clang warning
64753         * tests/test-malloca.c (do_allocation): Avoid dead store.
64755 2010-08-29  Bruno Haible  <bruno@clisp.org>
64757         gettext: Fix recent mistake.
64758         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
64760 2010-08-29  Bruno Haible  <bruno@clisp.org>
64762         selinux-h: Offer a --without-selinux option.
64763         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
64764         --without-selinux was specified, skip all tests and define
64765         HAVE_SELINUX_SELINUX_H to 0.
64766         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
64767         set LIB_SELINUX to empty.
64768         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
64769         gl_LIBSELINUX. If --without-selinux was specified, replace
64770         selinux/context.h.
64771         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
64773 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64774             Bruno Haible  <bruno@clisp.org>
64776         Make the module 'realloc-gnu' work again on AIX and OSF/1.
64777         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
64778         of HAVE_REALLOC.
64779         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
64780         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
64781         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
64782         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
64784 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64785             Bruno Haible  <bruno@clisp.org>
64787         Make the module 'calloc-gnu' work again on AIX and OSF/1.
64788         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
64789         HAVE_CALLOC.
64790         * lib/xmalloc.c: Update accordingly.
64791         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
64792         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
64793         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
64795 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64796             Bruno Haible  <bruno@clisp.org>
64798         Make the module 'malloc-gnu' work again on AIX and OSF/1.
64799         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
64800         HAVE_MALLOC.
64801         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
64802         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
64803         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
64805 2010-08-29  Bruno Haible  <bruno@clisp.org>
64807         Update modules list.
64808         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
64809         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
64810         (String handling <string.h>): Add astrxfrm.
64811         (File system functions): Add readlinkat.
64813 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64815         Tests for module 'realloc-gnu'.
64816         * modules/realloc-gnu-tests: New file.
64817         * tests/test-realloc-gnu.c: New file.
64819         Tests for module 'calloc-gnu'.
64820         * modules/calloc-gnu-tests: New file.
64821         * tests/test-calloc-gnu.c: New file.
64823         Tests for module 'malloc-gnu'.
64824         * modules/malloc-gnu-tests: New file.
64825         * tests/test-malloc-gnu.c: New file.
64827 2010-08-28  Bruno Haible  <bruno@clisp.org>
64829         Rename module 'realloc' -> 'realloc-gnu'.
64830         * modules/realloc-gnu: New file, copied from modules/realloc.
64831         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
64832         obsolete.
64833         * modules/mgetgroups (Depends-on): Update.
64834         * doc/posix-functions/realloc.texi: Update.
64835         * NEWS: Mention the change.
64837         Rename module 'calloc' -> 'calloc-gnu'.
64838         * modules/calloc-gnu: New file, copied from modules/calloc.
64839         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
64840         obsolete.
64841         * doc/posix-functions/calloc.texi: Update.
64842         * NEWS: Mention the change.
64844         Rename module 'malloc' -> 'malloc-gnu'.
64845         * modules/malloc-gnu: New file, copied from modules/malloc.
64846         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
64847         obsolete.
64848         * modules/argp (Depends-on): Update.
64849         * modules/regex (Depends-on): Update.
64850         * doc/posix-functions/malloc.texi: Update.
64851         * NEWS: Mention the change.
64853 2010-08-28  Eric Blake  <eblake@redhat.com>
64855         pread, pwrite: add missing dependency
64856         * modules/pread (Depends-on): Add extensions.
64857         * modules/pwrite (Depends-on): Likewise.
64859 2010-08-28  Bruno Haible  <bruno@clisp.org>
64861         unistr/u*-strchr: Fix tests dependencies.
64862         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
64863         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
64864         Reported by Ian Beckwith <ianb@erislabs.net>.
64866 2010-08-28  Bruno Haible  <bruno@clisp.org>
64868         read-file: Don't occupy too much unused memory.
64869         * lib/read-file.c (fread_file): Shrink the buffer at the end.
64871 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
64872             Eric Blake  <eblake@redhat.com>
64873             Bruno Haible  <bruno@clisp.org>
64875         read-file: Avoid memory reallocations with regular files.
64876         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
64877         (fread_file): With regular files, use the remaining length as the
64878         initial buffer size.  Check against overflow.
64879         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
64880         sys_stat.
64882 2010-08-28  Bruno Haible  <bruno@clisp.org>
64884         ftello: Relax license.
64885         * modules/ftello (License): Relax to LGPLv2+.
64886         Reported by Eric Blake.
64888 2010-08-28  Bruno Haible  <bruno@clisp.org>
64890         Avoid relocwrapper link errors due to gnulib replacement functions.
64891         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
64892         function.
64893         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64895 2010-08-28  Bruno Haible  <bruno@clisp.org>
64897         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
64898         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
64899         defined.
64900         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
64901         Suggested by Eric Blake.
64903 2010-08-28  Bruno Haible  <bruno@clisp.org>
64905         sys_socket, netdb: Ensure socklen_t gets defined.
64906         * modules/sys_socket (Depends-on): Add socklen.
64907         * modules/netdb (Depends-on): Likewise.
64908         * modules/getaddrinfo (Depends-on): Remove socklen.
64909         * modules/getsockopt (Depends-on): Likewise.
64910         * modules/setsockopt (Depends-on): Likewise.
64911         * tests/test-sys_socket.c: Check that socklen_t is defined.
64912         * tests/test-netdb.c: Likewise.
64913         * m4/socklen.m4: Update comments.
64914         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64916 2010-08-27  Eric Blake  <eblake@redhat.com>
64918         login_tty: add missing dependency
64919         * modules/login_tty (Depends-on): Add pty.
64921 2010-08-26  Eric Blake  <eblake@redhat.com>
64923         lib-symbol-versions: fix m4 quoting
64924         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
64925         format for AC_LINK_IFELSE.
64927         glob: fix compile test
64928         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
64930         btowc: fix missing file
64931         * modules/btowc (Files): Also ship locale-fr.m4.
64933         lseek: fix link test
64934         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
64935         AC_LINK_IFELSE.
64937         include_next: silence autoconf 2.68 warning
64938         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
64939         AC_COMPILE_IFELSE as special.
64940         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
64941         autoconf < 2.68.
64943         acl: fix compilation test
64944         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
64945         AC_COMPILE_IFELSE.
64947 2010-08-26  Bruno Haible  <bruno@clisp.org>
64949         Modernize AC_TRY_RUN invocations.
64950         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
64951         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
64952         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
64953         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
64954         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
64955         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
64956         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
64957         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64958         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
64959         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
64960         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
64961         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
64962         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
64963         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
64964         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
64965         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
64966         gl_MBRLEN_NUL_RETVAL): Likewise.
64967         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
64968         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
64969         Likewise.
64970         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
64971         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
64972         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
64973         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
64974         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
64975         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
64976         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
64977         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
64978         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
64979         Likewise.
64980         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
64981         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
64982         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64983         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
64984         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
64985         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
64986         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
64987         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
64988         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
64989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64991 2010-08-26  Bruno Haible  <bruno@clisp.org>
64993         Modernize AC_TRY_LINK invocations.
64994         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
64995         AC_TRY_LINK.
64996         * m4/argp.m4 (gl_ARGP): Likewise.
64997         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
64998         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
64999         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65000         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65001         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65002         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
65003         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
65004         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
65005         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65006         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
65007         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65008         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
65009         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
65010         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65011         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65012         * m4/hostent.m4 (gl_HOSTENT): Likewise.
65013         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
65014         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
65015         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
65016         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
65017         Likewise.
65018         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
65019         Likewise.
65020         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
65021         Likewise.
65022         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
65023         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
65024         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
65025         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
65026         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
65027         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
65028         * m4/servent.m4 (gl_SERVENT): Likewise.
65029         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
65030         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
65031         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
65032         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
65033         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65034         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
65035         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
65036         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65037         * modules/tsearch-tests (configure.ac): Likewise.
65039 2010-08-26  Bruno Haible  <bruno@clisp.org>
65041         Modernize AC_TRY_COMPILE invocations.
65042         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
65043         AC_TRY_COMPILE.
65044         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
65045         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
65046         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
65047         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65048         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
65049         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65050         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65051         * m4/lock.m4 (gl_LOCK): Likewise.
65052         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
65053         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65054         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
65055         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
65056         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
65057         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
65058         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
65059         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
65060         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
65061         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
65062         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
65063         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65064         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
65065         extraneous semicolon.
65067 2010-08-26  Jim Meyering  <meyering@redhat.com>
65069         stat-time: relax license LGPL
65070         * modules/stat-time (License): Change from GPL to LGPL,
65071         with consent from all contributors, for use in libguile.
65072         Requested by Ludovic Courtès.
65074 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
65076         poll: return immediately on POLLHUP.
65077         * lib/poll.c (poll): Always set timeout before wait_timeout is
65078         computed.
65080 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65082         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
65083         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
65084         rmdir ("dir/.//"), unlinkat.
65086 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65088         stdbool: avoid spurious failure with modern xlc
65089         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
65091 2010-08-24  Bruno Haible  <bruno@clisp.org>
65093         getloadavg: simplify code
65094         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
65095         gl_have_func. Update comments.
65097 2010-08-24  Eric Blake  <eblake@redhat.com>
65099         getloadavg: don't define SVR4 on cygwin
65100         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
65101         only define SVR4 when -lkvm is required.
65102         Reported by Yaakov Selkowitz.
65104 2010-08-24  Bruno Haible  <bruno@clisp.org>
65106         priv-set: fix comment
65107         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
65109 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65111         priv-set: fix comments
65112         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
65113         to match code, as suggested by David Bartley in:
65114         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
65116 2010-08-23  Eric Blake  <eblake@redhat.com>
65118         stdbool: avoid rejecting clang
65119         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
65120         * tests/test-stdbool.c: Enable more tests if using the system
65121         <stdbool.h> instead of the gnulib replacement.
65122         (main): Move xlc bug test to a runtime test for all compilers.
65123         Reported by Anders Kaseorg.
65125         argz: fix shell quoting issue
65126         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
65127         Reported by Charles Wilson.
65129 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
65130             Erik Faye-Lund <kusmabite@gmail.com>
65132         poll, select: handle ERROR_BROKEN_PIPE.
65133         * lib/poll.c (win32_compute_revents): Return POLLHUP when
65134         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
65135         * lib/select.c (win32_compute_revents): Do not mark a pipe
65136         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
65138 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
65140         fts: allow compilation with C++
65141         * lib/fts_.h: Specify extern "C" linkage with C++.
65143 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65145         Fix gnulib-tool sed script de-commentation for AIX sed.
65146         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
65147         sed.
65149 2010-08-17  Eric Blake  <eblake@redhat.com>
65151         test-stddef: test for (some) offsetof bugs
65152         * tests/test-stddef.c: Enhance test to ensure correct type of
65153         offsetof.
65154         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
65155         that we are not fixing at this time.
65157 2010-08-15  Bruno Haible  <bruno@clisp.org>
65159         stpncpy: Allow stpncpy to be defined as a macro.
65160         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
65161         if it's already correctly declared.
65162         * lib/string.in.h (stpncpy): Undefine before redefining.
65163         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
65165 2010-08-14  Bruno Haible  <bruno@clisp.org>
65167         Rename module 'memxfrm' to 'amemxfrm'.
65168         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
65169         (amemxfrm): Renamed from memxfrm.
65170         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
65171         (amemxfrm): Renamed from memxfrm.
65172         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
65173         * NEWS: Mention the change.
65174         * MODULES.html.sh (String handling <string.h>): Update.
65175         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
65176         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
65177         * lib/unicase/u16-casexfrm.c: Likewise.
65178         * lib/unicase/u32-casexfrm.c: Likewise.
65179         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
65180         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
65181         * lib/uninorm/u16-normxfrm.c: Likewise.
65182         * lib/uninorm/u32-normxfrm.c: Likewise.
65183         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
65184         memxfrm.
65185         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
65186         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
65187         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
65188         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
65189         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
65190         Suggested by Paul Eggert.
65192 2010-08-14  Bruno Haible  <bruno@clisp.org>
65194         Tests for module 'astrxfrm'.
65195         * modules/astrxfrm-tests: New file.
65196         * tests/test-astrxfrm.c: New file.
65198         New module 'astrxfrm'.
65199         * lib/astrxfrm.h: New file.
65200         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
65201         * modules/astrxfrm: New file.
65203 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
65205         regex: Tweak doc.
65206         * doc/regex.texi (Overview): Don't mention regex.c.
65207         (GNU Regular Expression Compiling): Likewise.
65208         (Match-end-of-line Operator): Mention 'not_eol'.
65210 2010-08-14  Brian Gough  <bjg@gnu.org>
65211             Bruno Haible  <bruno@clisp.org>
65213         git-merge-changelog: add doc relating to use with bzr and hg.
65214         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
65216 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
65218         pthread: fix pthread.h creation for srcdir != builddir
65219         * modules/pthread (Makefile.am): Fix the rule to work also in a
65220         non-srcdir build.
65222 2010-08-13  Karl Berry  <karl@gnu.org>
65224         * doc/regex.texi (Predefined Syntaxes): @smallexample.
65225         * doc/posix-*/*: force line break before @url of POSIX
65226         specifications.
65227         Suggested by Werner Lemberg.
65229 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65231         strtod: fix const diagnostic
65232         * lib/strtod.c (strtod): Don't assign const char * to char *,
65233         as this elicits a warning from GCC when warnings are enabled.
65235 2010-08-10  Pádraig Brady  <P@draigbrady.com>
65236         and Eric Blake  <eblake@redhat.com>
65238         copy-acl: ignore ENOTSUP on HP-UX
65239         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
65240         so that it is available for HP-UX.
65241         * lib/copy-acl.c (qcopy_acl): Use it.
65242         Reported by Patrick M. Callahan.
65244 2010-08-10  Eric Blake  <eblake@redhat.com>
65246         open, chown: relax license
65247         * modules/open (License): Change to LGPLv2+, with consent by all
65248         authors, for use in augeas.
65249         * modules/chown (License): Likewise.
65250         * modules/lchown (Likewise): Likewise.
65251         Requested by Adam Stokes.
65253 2010-08-09  Karl Berry  <karl@gnu.org>
65255         * build-aux/ar-lib: new file, import from Automake.
65256         * config/srclist.txt: autocheck for updates.
65258 2010-08-09  Eric Blake  <eblake@redhat.com>
65260         readlinkat: adjust client modules
65261         * modules/areadlinkat (Depends-on): Use readlinkat, not
65262         symlinkat.
65263         * modules/areadlinkat-with-size (Depends-on): Likewise.
65265         mknod: be more vocal about danger of running tests as root
65266         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
65267         root, since that is just asking for problems.
65268         Suggested by Bruno Haible, based on a report by Rainer Tammer.
65270         readlinkat: split into its own module
65271         * modules/symlinkat: Split readlinkat...
65272         * modules/readlinkat: ...into separate module.
65273         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
65274         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
65275         * lib/symlinkat.c (readlinkat): Move...
65276         * lib/readlinkat.c: ...into new file.
65277         * modules/symlinkat-tests: Split readlinkat test...
65278         * modules/readlinkat-tests: ...into separate module.
65279         * tests/test-symlinkat.c: Split...
65280         * tests/test-readlinkat.c: ...into new file.
65281         * NEWS: Document the split.
65282         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
65283         * lib/unistd.in.h (readlinkat): Likewise.
65284         Suggested by Bruno Haible.
65286 2010-08-08  Bruno Haible  <bruno@clisp.org>
65288         memxfrm: Speed up.
65289         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
65290         that usually only one call to strxfrm is necessary for each string
65291         part.
65292         Reported by Paul Eggert <eggert@cs.ucla.edu>.
65294 2010-08-07  Karl Berry  <karl@gnu.org>
65296         * doc/posix-headers/limits.texi,
65297         * doc/posix-functions/malloc.texi,
65298         * doc/posix-functions/strsignal.texi: missing @item.
65299         * doc/ld-version-script.texi: spurious leading i.
65300         * doc/regex.texi (Interval Operators): no commas inside @var.
65302 2010-08-01  Bruno Haible  <bruno@clisp.org>
65304         Integrate the regex documentation.
65305         * doc/gnulib.texi: Define 'cn' index.
65306         (Regular expressions): New a chapter that includes regex.texi and
65307         regexprops-generic.texi.
65308         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
65309         syntax.
65311         Whitespace cleanup.
65312         * doc/regex.texi: Remove trailing spaces.
65314         Add regex documentation.
65315         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
65316         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
65317         Written by Kathy A. Hargreaves and Karl Berry.
65319 2010-08-01  Bruno Haible  <bruno@clisp.org>
65321         link: Update documentation.
65322         * doc/posix-functions/link.texi: Update regarding Solaris.
65324 2010-07-31  Bruno Haible  <bruno@clisp.org>
65326         Update modules list.
65327         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
65328         (String handling <string.h>): Add memcmp2, memxfrm.
65329         (Container data structures): Add xlist, xsublist, xoset.
65330         (Core language properties): Add alignof, unused-parameter.
65331         (Process control, Numeric conversion functions <stdlib.h>): Renamed
65332         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
65333         (Unibyte characters <ctype.h>): New section.
65334         (String handling <string.h>): New section.
65335         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
65336         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
65337         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
65338         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
65339         tan, tanh, tanl, y0, y1, yn.
65340         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
65341         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
65342         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
65343         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
65344         unlockpt, vdprintf, vdprintf-posix.
65345         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
65346         (File system functions): Add concat-filename, sys_file, sys_ioctl,
65347         xconcat-filename.
65348         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
65349         getdtablesize, pipe2, pipe2-safer.
65350         (Security): New section.
65351         (Networking functions): Add accept4.
65352         (Signal handling): Add sigpipe.
65353         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
65354         mbmemcasecoll.
65355         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
65356         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
65357         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
65358         pipe-filter-ii.
65359         (Misc): Add argp-version-etc, login_tty, parse-duration.
65361 2010-07-31  Bruno Haible  <bruno@clisp.org>
65363         Improve doc in MODULES.html.
65364         * modules/linkat (Description): Add the word "function".
65365         * modules/mkfifo (Description): Likewise.
65366         * modules/mknod (Description): Likewise.
65367         * modules/remove (Description): Likewise.
65368         * modules/renameat (Description): Likewise.
65369         * modules/stat (Description): Likewise.
65370         * modules/symlink (Description): Likewise.
65371         * modules/unlink (Description): Likewise.
65373 2010-07-31  Bruno Haible  <bruno@clisp.org>
65375         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
65376         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
65377         option --enable/disable-c++ instead of --enable/disable-cxx.
65378         * NEWS: Mention the change.
65380 2010-07-31  Bruno Haible  <bruno@clisp.org>
65382         readlink, areadlink: Relax test a bit.
65383         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
65384         alternative to ENOTDIR.
65385         * tests/test-areadlink.h (test_areadlink): Likewise.
65386         Reported by Rainer Tammer.
65388 2010-07-31  Bruno Haible  <bruno@clisp.org>
65390         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
65391         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
65392         character, perform the search using U_STRCHR.
65393         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
65394         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
65395         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
65396         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
65397         Suggested by Paolo Bonzini.
65399 2010-07-31  Bruno Haible  <bruno@clisp.org>
65401         unistr/u*-strstr: Fix dependencies.
65402         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
65403         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
65404         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
65406 2010-07-31  Bruno Haible  <bruno@clisp.org>
65408         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
65409         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
65410         the beginning of the loop.
65411         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
65412         cases in 'switch' statement.
65414         unistr/u8-strchr: Fix several bugs.
65415         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
65416         the string. When not found, return NULL, not a pointer near the end.
65418         More tests for unistr/u8-strchr.
65419         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
65420         that the function does not read past the first occurrence of the byte
65421         being searched.
65422         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
65423         * tests/unistr/test-u16-strchr.c (main): New function.
65424         * tests/unistr/test-u32-strchr.c (main): New function.
65426 2010-07-31  Bruno Haible  <bruno@clisp.org>
65428         posix-modules: Ignore backup files of documentation files.
65429         * posix-modules: grep only through files named *.texi.
65431 2010-07-31  Bruno Haible  <bruno@clisp.org>
65433         symlinkat: Fix documentation.
65434         * doc/posix-functions/readlinkat.texi: Fix module name.
65436 2010-07-31  Bruno Haible  <bruno@clisp.org>
65438         fchownat: Replace also when chown has the trailing slash bug.
65439         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
65440         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
65441         introduced on 2010-04-10.
65442         Reported by Rainer Tammer.
65444 2010-07-31  Bruno Haible  <bruno@clisp.org>
65446         linkat: Work around AIX 7.1 bug.
65447         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
65448         whether linkat handles trailing slash correctly. If not, replace linkat
65449         and define LINKAT_TRAILING_SLASH_BUG.
65450         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
65451         check whether (fd1,file1) points to a directory if file1 or file2 ends
65452         in a slash. Code taken from lib/link.c.
65453         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
65454         Reported by Rainer Tammer.
65456 2010-07-31  Bruno Haible  <bruno@clisp.org>
65458         Correctly determine whether pow is available in libc on AIX 7 with xlc.
65459         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
65460         This disables an xlc optimization that was causing wrong test results.
65461         Reported by Rainer Tammer.
65463 2010-07-31  Bruno Haible  <bruno@clisp.org>
65465         iconv: Work around AIX 6.1..7.1 bug.
65466         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
65467         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
65468         cross-compiling, guess no on all versions of AIX.
65469         Reported by Rainer Tammer.
65471 2010-07-31  Bruno Haible  <bruno@clisp.org>
65473         readlink: Relax test a bit.
65474         * tests/test-readlink.h (test_readlink): Allow different errno value
65475         when readlink is called with a file name that ends in / and refers to
65476         a file.
65477         Suggested by Eric Blake.
65478         Reported by Rainer Tammer.
65480 2010-07-31  Bruno Haible  <bruno@clisp.org>
65482         copysign: Does not require -lm on glibc systems.
65483         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
65484         gl_COMMON_DOUBLE_MATHFUNC.
65485         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
65487 2010-07-31  Bruno Haible  <bruno@clisp.org>
65489         duplocale: Work around AIX 7.1 bug.
65490         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
65491         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
65492         * lib/duplocale.c (rpl_duplocale): Update comment.
65493         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
65494         Reported by Rainer Tammer.
65496 2010-07-30  Bruno Haible  <bruno@clisp.org>
65498         dirfd: Avoid link error on AIX 7.1.
65499         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
65500         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
65501         exist, set REPLACE_DIRFD.
65502         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
65503         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
65504         * doc/posix-functions/dirfd.texi: Update.
65505         Reported by Rainer Tammer.
65507 2010-07-30  Eric Blake  <eblake@redhat.com>
65509         strtod: next round of AIX fixes
65510         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
65511         exponent.
65512         * tests/test-strtod.c (main): Enhance tests.
65513         * doc/posix-functions/strtod.texi (strtod): Document next bug.
65514         Reported by Rainer Tammer.
65516         futimens: fix configure check
65517         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
65518         Reported by Bruno Haible.
65520 2010-07-30  Bruno Haible  <bruno@clisp.org>
65522         getline: Update regarding AIX.
65523         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
65524         Reported by Rainer Tammer.
65526 2010-07-30  Bruno Haible  <bruno@clisp.org>
65528         wcwidth: Drop replacement on AIX 7.
65529         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
65530         AIX 7.
65531         Reported by Rainer Tammer.
65533 2010-07-30  Bruno Haible  <bruno@clisp.org>
65535         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
65536         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
65537         a 'char *'.
65538         Reported by Rainer Tammer.
65540 2010-07-30  Bruno Haible  <bruno@clisp.org>
65542         unlink: Update regarding AIX.
65543         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
65544         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
65545         Reported by Rainer Tammer.
65547 2010-07-30  Bruno Haible  <bruno@clisp.org>
65549         symlink: Update regarding AIX.
65550         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
65551         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
65552         Reported by Rainer Tammer.
65554 2010-07-30  Bruno Haible  <bruno@clisp.org>
65556         strndup: Update regarding AIX.
65557         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
65558         AIX 7.
65559         Reported by Rainer Tammer.
65561 2010-07-30  Bruno Haible  <bruno@clisp.org>
65563         stat: Update regarding AIX.
65564         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
65565         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
65566         Reported by Rainer Tammer.
65568 2010-07-30  Bruno Haible  <bruno@clisp.org>
65570         truncl: Fix autoconf test.
65571         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
65572         whether truncl works.
65573         Reported by Rainer Tammer.
65575 2010-07-30  Bruno Haible  <bruno@clisp.org>
65577         round: Update regarding AIX.
65578         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
65579         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
65580         Reported by Rainer Tammer.
65582 2010-07-30  Bruno Haible  <bruno@clisp.org>
65584         rename: Update regarding AIX.
65585         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
65586         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
65587         Reported by Rainer Tammer.
65589 2010-07-30  Bruno Haible  <bruno@clisp.org>
65591         printf.m4: Update regarding AIX.
65592         * m4/printf.m4: Update comments regarding AIX.
65593         Reported by Rainer Tammer.
65595 2010-07-30  Bruno Haible  <bruno@clisp.org>
65597         iconv: Update regarding AIX.
65598         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
65599         AIX 7.
65600         Reported by Rainer Tammer.
65602 2010-07-30  Bruno Haible  <bruno@clisp.org>
65604         getopt: Update regarding AIX.
65605         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
65606         no on AIX.
65607         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
65608         Reported by Rainer Tammer.
65610 2010-07-30  Bruno Haible  <bruno@clisp.org>
65612         ldexpl; Update regarding AIX.
65613         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
65614         on AIX 7.
65615         Reported by Rainer Tammer.
65617 2010-07-30  Bruno Haible  <bruno@clisp.org>
65619         frexpl: Update regarding AIX.
65620         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
65621         on AIX 7.
65622         Reported by Rainer Tammer.
65624 2010-07-30  Bruno Haible  <bruno@clisp.org>
65626         open, fopen: Update regarding AIX.
65627         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
65628         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
65629         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
65630         * doc/posix-functions/fopen.texi: Likewise.
65631         Reported by Rainer Tammer.
65633 2010-07-30  Bruno Haible  <bruno@clisp.org>
65635         chown: Update doc regarding AIX.
65636         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
65637         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
65638         Reported by Rainer Tammer.
65640 2010-07-30  Eric Blake  <eblake@redhat.com>
65642         strtod: fix bug in replacement function on AIX
65643         * lib/strtod.c (strtod): Special case broken "0x" parse in
65644         underlying strtod.
65645         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
65646         * doc/posix-functions/strtod.texi (strtod): Likewise.
65647         Reported by Rainer Tammer.
65649 2010-07-30  Bruno Haible  <bruno@clisp.org>
65651         mbrlen: Fix cross-compilation guess for AIX.
65652         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
65653         guess. Leftover from 2008-12-22.
65655 2010-07-30  Bruno Haible  <bruno@clisp.org>
65657         mbrtowc: Fix cross-compilation guess for AIX.
65658         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
65659         guess. Leftover from 2008-12-21.
65661 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
65663         init.sh: work around trap limitation of some shells
65664         * tests/init.sh (setup_): Move exit trap outside of shell function.
65666 2010-07-29  Eric Blake  <eblake@redhat.com>
65668         strtod: aid debugging
65669         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
65670         understanding why strtod is rejected.
65672 2010-07-28  Bruno Haible  <bruno@clisp.org>
65674         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
65675         * lib/unistr/u8-chr.c: Include <string.h>.
65676         * tests/unistr/test-u8-chr.c: Likewise.
65677         * tests/unistr/test-u16-chr.c: Likewise.
65678         * tests/unistr/test-u32-chr.c: Likewise.
65679         * tests/unistr/test-u8-strchr.c: Likewise.
65680         * tests/unistr/test-u16-strchr.c: Likewise.
65681         * tests/unistr/test-u32-strchr.c: Likewise.
65682         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
65683         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
65684         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
65685         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
65687 2010-07-28  Bruno Haible  <bruno@clisp.org>
65689         Use spaces for indentation, not tabs.
65690         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
65692 2010-07-27  Bruno Haible  <bruno@clisp.org>
65694         mbspcasecmp: Fix function specification.
65695         * lib/string.in.h (mbspcasecmp): Fix specification comment.
65696         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
65697         Reported by Eric Blake <eblake@redhat.com>.
65699 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
65701         timespec: use cast and not conditional, as truncation isn't possible
65702         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
65703         instead of a conditional.  Comment about the situation in more detail.
65704         This undoes most of the 2009-10-29 patch.
65706 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
65708         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
65709         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
65710         * lib/unistr/u8-strchr.c: Likewise.
65711         * modules/unistr/u8-chr: Depend on memchr.
65713         unistr/u*-strchr: add tests
65714         * modules/unistr/u8-strchr-tests: New file.
65715         * modules/unistr/u16-strchr-tests: New file.
65716         * modules/unistr/u32-strchr-tests: New file.
65717         * tests/unistr/test-strchr.h: New file.
65718         * tests/unistr/test-u8-strchr.c: New file.
65719         * tests/unistr/test-u16-strchr.c: New file.
65720         * tests/unistr/test-u32-strchr.c: New file.
65722         unistr/u*-chr: test multibyte sequences more
65723         * tests/unistr/test-chr.h: Do complete testing of the characters in the
65724         test vector.
65725         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
65726         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
65727         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
65729         unistr/u*-chr: test multibyte sequences
65730         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
65732         unistr/u*-chr: prepare for multibyte tests
65733         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
65734         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
65735         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
65736         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
65737         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
65738         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
65740 2010-07-18  Bruno Haible  <bruno@clisp.org>
65742         unistr/u8-strchr: Optimize non-ASCII argument case.
65743         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
65744         because the first byte often matches anyway.
65745         Reported by Pádraig Brady <P@draigbrady.com>.
65747 2010-07-15  Karl Berry  <karl@gnu.org>
65749         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
65751 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
65753         getcwd: on Solaris, work better if ancestors are inaccessible
65754         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
65755         buffer and size, try again with a large buffer.  This works better
65756         on Solaris, since its getcwd succeeds even if the path to the root
65757         is inaccessible, and this is helpful in common cases such as .zfs
65758         hidden directories.  Problem reported by J Chapman Flack in
65759         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
65760         Use system getcwd if it's declared, not merely if it's partly
65761         working; use the partly-working test only to avoid needless effort
65762         if the system getcwd fails.
65763         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
65764         comment that was already obsolete and is now even more obsolete.
65765         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
65766         now might call strdup.
65768 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
65770         pthread: Add enough so that coreutils/src/sort.c compiles.
65771         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
65772         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
65773         gnulib. Include <sched.h> and <time.h>, as per POSIX.
65774         Include <sys/types.h>, in case it defines pthread_t.
65775         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
65776         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
65777         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
65778         (pthread_rwlockattr_t, pthread_spinlock_t):
65779         New typedefs, if HAVE_PTHREAD_T is not defined.
65780         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
65781         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
65782         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
65783         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
65784         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
65785         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
65786         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
65787         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
65788         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
65789         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
65790         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
65791         New macros.
65792         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
65793         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
65794         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
65795         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
65796         (pthread_spin_unlock): New dummy functions.
65797         (pthread_create): Return EAGAIN; don't set errno.
65798         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
65799         require AC_C_INLINE.
65800         * modules/pthread (Depends-on): Add sched, time.
65801         (pthread.h): Use AM_V_GEN.
65803 2010-07-13  Bruno Haible  <bruno@clisp.org>
65805         striconveh: Don't malloc memory if the result buffer is sufficient.
65806         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
65807         buffer if its size is sufficient.
65808         Reported by Ludovic Courtès <ludo@gnu.org>.
65810 2010-07-13  Bruno Haible  <bruno@clisp.org>
65812         strtod: Add safety check.
65813         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
65815 2010-07-12  Bruno Haible  <bruno@clisp.org>
65817         Unify tests that set gl_cv_func_ldexpl_no_libm.
65818         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
65819         gl_FUNC_LDEXPL.
65820         (gl_FUNC_LDEXPL): Invoke it.
65821         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65823 2010-07-12  Bruno Haible  <bruno@clisp.org>
65825         Unify tests that set gl_cv_func_ldexp_no_libm.
65826         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
65827         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
65828         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
65829         (configure.ac): Simply invoke gl_FUNC_LDEXP.
65830         * modules/strtod (Files): Add m4/ldexp.m4.
65832 2010-07-12  Bruno Haible  <bruno@clisp.org>
65834         Unify tests that set gl_cv_func_frexpl_no_libm.
65835         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
65836         gl_FUNC_FREXPL_NO_LIBM.
65837         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
65838         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65840 2010-07-12  Bruno Haible  <bruno@clisp.org>
65842         Unify tests that set gl_cv_func_frexp_no_libm.
65843         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
65844         gl_FUNC_FREXP_NO_LIBM.
65845         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
65846         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
65848 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
65850         memcoll: clarify sizes versus lengths, document better, and tweak perf
65851         * lib/memcoll.c (strcoll_loop, memcoll0):
65852         Improve quality of descriptive comments.  Name variables
65853         consistently as to whether they are lengths (which do not include
65854         terminating null) versus sizes (which do).
65855         * lib/xmemcoll.c (xmemcoll0): Likewise.
65856         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
65857         returned when s1size == 0; this is easier to compile and saves
65858         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
65860 2010-07-12  Bruno Haible  <bruno@clisp.org>
65862         Tests for module '_Exit'.
65863         * modules/_Exit-tests: New file.
65864         * tests/test-_Exit.sh: New file.
65865         * tests/test-_Exit.c: New file.
65867         New module '_Exit'.
65868         * lib/stdlib.in.h (__attribute__): New macro.
65869         (_Exit): New declaration.
65870         * lib/_Exit.c: New file.
65871         * m4/_Exit.m4: New file.
65872         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
65873         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
65874         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
65875         * modules/_Exit: New file.
65876         * tests/test-stdlib-c++.cc (_Exit): Check signature.
65877         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
65879 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
65881         strtod: make it more-accurate typically, and don't require libm
65882         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
65883         Include limits.h.  Don't include string.h.
65884         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
65885         (locale_isspace): New function, so that no casts are needed to
65886         check whether *s is a space.
65887         (ldexp): Provide an unused dummy if not available.
65888         (scale_radix_exp, parse_number, underlying_strtod): New functions.
65889         (strtod): Use them.  This implementation prefers to use the
65890         underlying strtod if available, falling back on our own code
65891         only to fix known bugs.  This is more likely to produce an
65892         accurate result.  Also, it avoids the use of libm functions.
65893         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
65894         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
65895         was absent, but it caused a test failure with coreutils.
65896         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
65897         with libm.
65898         * modules/strtod (Makefile.am, Link): libm is no longer needed.
65899         * modules/strtod-tests (Makefile.am): Likewise.
65901 2010-07-11  Pádraig Brady  <P@draigBrady.com>
65902             Bruno Haible  <bruno@clisp.org>
65904         unistr/u8-strchr: Optimize ASCII argument case.
65905         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
65907 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65909         (x)memcoll: minor tweaks
65910         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
65911         is after the type that it qualifies.
65912         (memcoll0): Likewise.
65913         * lib/memcoll.h (memcoll0): Likewise.
65914         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
65915         * lib/xmemcoll.h (xmemcoll0): Likewise.
65916         * lib/memcoll.c (memcoll0): Correct the comment.  This function
65917         differs from memcoll in that the NUL byte is part of the argument.
65918         Omit the abort-checks, as performance is a real issue here.  Plus,
65919         the checks were wrong anyway (an off-by-one error).  Omit local
65920         variable 'diff', as it's a bit clearer that way.
65921         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
65922         no longer needed.
65924 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
65926         (x)memcoll: speedup when input is known to be NUL delimited
65927         * lib/memcoll.c: Include stdlib.
65928         (memcoll0): New function.
65929         (strcoll_loop): New function, refactored for use in both memcoll
65930         and memcoll0.
65931         * lib/memcoll.h (memcoll0): Add prototype.
65932         * lib/xmemcoll.c (xmemcoll0): New function.
65933         (collate_error): New function, refactored for use in both xmemcoll
65934         and xmemcoll0.
65935         * lib/xmemcoll.h (xmemcoll0): Add prototype.
65936         * m4/memcoll.m4: add inline invocation.
65938 2010-07-06  Pádraig Brady  <P@draigBrady.com>
65940         * build-aux/bootstrap: Remove any local translations
65941         from the translation project synchronization directory,
65942         so that local only translations are not distributed.
65944 2010-07-04  Bruno Haible  <bruno@clisp.org>
65946         fsusage: Clarify which code applies to which platforms.
65947         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
65948         platform.
65949         * lib/fsusage.c (get_fs_usage): Likewise.
65951 2010-07-04  Bruno Haible  <bruno@clisp.org>
65953         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
65954         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
65955         Reported by Martin Lambers <marlam@marlam.de>.
65957 2010-07-04  Jim Meyering  <meyering@redhat.com>
65959         hash: once again explicitly disallow insertion of NULL
65960         * lib/hash.c (hash_insert0): Reinstate just-removed test:
65961         inserting a NULL pointer cannot work with these functions.
65962         Add a comment with details.
65963         This reverts part of the 2010-07-01 commit, 5bef1a35
65964         "hash: extend module to deal with non-pointer keys".
65966 2010-07-01  Bruno Haible  <bruno@clisp.org>
65968         stdbool: Update doc.
65969         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
65970         Info from Christian Weisgerber <naddy@mips.inka.de>.
65972 2010-07-01  Jim Meyering  <meyering@redhat.com>
65974         hash: extend module to deal with non-pointer keys
65975         * lib/hash.c (hash_insert0): New interface, much like hash_insert
65976         but that allows insertion of non-pointer entries.
65977         Do not disallow an ENTRY value of NULL.
65978         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
65979         * lib/hash.h (hash_insert0): Declare.
65981 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
65983         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
65984         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
65985         not present (i.e. with autoconf 2.59 and when using gettextize, not
65986         gnulib), require AC_GNU_SOURCE instead.
65988 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
65990         idpriv-drop: Fix tests.
65991         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
65992         not to the test-idpriv-droptemp program.
65994 2010-06-29  Bruno Haible  <bruno@clisp.org>
65996         string: Fix syntax error with g++ 2.96.
65997         * lib/string.in.h (__pure__): Remove definition.
65998         (_GL_ATTRIBUTE_PURE): New macro.
65999         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
66000         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
66001         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66003 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
66005         unitypes: Fix bug introduced on 2010-05-18.
66006         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
66008 2010-06-22  Eric Blake  <eblake@redhat.com>
66010         memmem: slight optimization
66011         * lib/str-two-way.h (critical_factorization): Update comments.
66012         Reduce work during factorization phase.
66013         Reported by Carlos Bueno <carlos@bueno.org>.
66015 2010-06-21  Bruno Haible  <bruno@clisp.org>
66017         Fix HAVE_CALLOC_POSIX misnomer.
66018         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
66019         !HAVE_CALLOC_POSIX.
66020         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
66021         HAVE_CALLOC_POSIX.
66022         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
66023         instead of HAVE_CALLOC_POSIX.
66024         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
66025         HAVE_CALLOC_POSIX.
66027         Use modern idiom for calloc() replacement.
66028         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
66029         AC_FUNC_CALLOC.
66030         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
66031         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
66032         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66033         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
66034         (gl_REPLACE_CALLOC): New macro.
66036 2010-06-21  Bruno Haible  <bruno@clisp.org>
66038         Fix HAVE_REALLOC_POSIX misnomer.
66039         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
66040         !HAVE_REALLOC_POSIX.
66041         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
66042         HAVE_REALLOC_POSIX.
66043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
66044         instead of HAVE_REALLOC_POSIX.
66045         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
66046         HAVE_REALLOC_POSIX.
66048         Use modern idiom for realloc() replacement.
66049         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
66050         AC_FUNC_REALLOC.
66051         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
66052         Autoconf's AC_FUNC_REALLOC.
66053         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66054         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
66055         (gl_REPLACE_REALLOC): New macro.
66056         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
66058 2010-06-21  Bruno Haible  <bruno@clisp.org>
66060         Fix HAVE_MALLOC_POSIX misnomer.
66061         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
66062         !HAVE_MALLOC_POSIX.
66063         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
66064         HAVE_MALLOC_POSIX.
66065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
66066         instead of HAVE_MALLOC_POSIX.
66067         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
66068         HAVE_MALLOC_POSIX.
66070         Use modern idiom for malloc() replacement.
66071         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
66072         AC_FUNC_MALLOC.
66073         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
66074         Autoconf's AC_FUNC_MALLOC.
66075         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66076         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
66077         (gl_REPLACE_MALLOC): New macro.
66078         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
66080 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
66082         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
66083         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
66084         This macro takes 3 arguments, not 4.
66086 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
66088         ipv6: fix detection under mingw
66089         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
66090         in6_addr.
66092 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
66094         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
66095         that strtod() works when cross-compiling to a glibc version known
66096         to work.
66098 2010-06-15  Bruno Haible  <bruno@clisp.org>
66100         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
66102 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
66104         select: Correct timeout.
66105         * lib/select.c (rpl_select): Compute wait_timeout correctly.
66107 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66109         git-version-gen: init shell var to avoid env var influence
66110         * build-aux/git-version-gen (v): Init shell var to empty.
66112 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
66114         priv-set: Don't assume that priv.h exists merely because getppriv does.
66115         See Jan Andersen's bug report about AIX 5L in
66116         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
66117         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
66118         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
66119         * lib/priv-set.h: Likewise.
66120         * tests/test-priv-set.c: Likewise.
66122 2010-06-13  Bruno Haible  <bruno@clisp.org>
66124         relocatable: Make it easier to test whether to install wrappers.
66125         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
66126         RELOCATABLE_VIA_WRAPPER.
66128 2010-06-13  Bruno Haible  <bruno@clisp.org>
66130         gnulib-tool: Display specified modules and dependencies differently.
66131         * gnulib-tool (func_show_module_list): New function.
66132         (func_import, func_create_testdir): Invoke it.
66133         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
66135 2010-06-13  Bruno Haible  <bruno@clisp.org>
66137         gnulib-tool: Align code of func_import and func_create_testdir.
66138         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
66139         specified_modules.
66141 2010-06-12  Jim Meyering  <meyering@redhat.com>
66143         test-inttostr: avoid spurious failure on Solaris 9
66144         * tests/test-inttostr.c (main): Skip the test when snprintf fails
66145         to accept "%ju".  Reported by Bruno Haible.
66147 2010-06-11  Jim Meyering  <meyering@redhat.com>
66149         test-sys_socket: mark variables as used more readably
66150         * tests/test-sys_socket.c (main): Mark otherwise unused variables
66151         as "used" explicitly via (void) statement casts.  This is more
66152         readable than using them in an artificial return expression.
66153         Suggestion from Bruno Haible.
66155 2010-06-11  Bruno Haible  <bruno@clisp.org>
66157         Avoid some more warnings from "gcc -Wwrite-strings".
66158         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
66159         to 'const char *'.
66160         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
66161         * tests/test-c-strcasestr.c (main): Likewise.
66162         * tests/test-mbscasestr1.c (main): Likewise.
66163         * tests/test-mbscasestr2.c (main): Likewise.
66164         * tests/test-memmem.c (main): Likewise.
66165         * tests/test-strstr.c (main): Likewise.
66166         * tests/test-strcasestr.c (main): Likewise.
66168 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66170         init.sh: change framework_failure_ to fail with status 99, not 1
66171         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
66172         automake's parallel-tests rule that this is an unexpected failure,
66173         even if the test is listed in XFAIL_TESTS.
66175 2010-06-11  Jim Meyering  <meyering@redhat.com>
66177         test-inttostr: avoid warnings about 4-6KB literal strings
66178         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
66179         Include "macros.h", for its definition of ASSERT.
66180         (CK): s/assert/ASSERT/
66181         * modules/inttostr-tests (Files): Add macros.h.
66183         init.sh: don't use $ME_ or skip_ before they are defined
66184         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
66185         their first uses.  Also hoist their companions: warn_, fail_,
66186         framework_failure_, $stderr_fileno.  Prompted by a patch from
66187         Stefano Lattarini.
66189         test-sys_socket: avoid set-but-not-used warnings from gcc
66190         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
66191         avoid warning about set-but-not-used variables.
66193         test-xvasprintf: avoid 'const' discard warnings
66194         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
66195         "const" when assigning from literal strings.
66196         (test_xasprintf): Add "void" in function argument list to placate
66197         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
66199         tests: avoid compilation warnings in argmatch and exclude tests...
66200         in packages that define ARGMATCH_DIE_DECL, like coreutils.
66201         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
66202         Since it always exits, declare with the "noreturn" attribute.
66203         * tests/test-argmatch.c: Likewise.
66205         tests: avoid 'const' discard warnings in mbsstr tests
66206         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
66207         * tests/test-mbsstr2.c (main): Likewise.
66209         test-verify: avoid warning from gcc's -Wmissing-declarations
66210         * tests/test-verify.c (function): Declare to be static.
66212         test-inttostr.c: include <string.h> for use of strcmp
66213         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
66215         test-linkat: avoid failed assertion on "other" architectures
66216         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
66217         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
66218         sparc: https://bugs.launchpad.net/bugs/591968
66220 2010-06-11  Jim Meyering  <meyering@redhat.com>
66222         printf.m4: avoid autoconf's "Expanded Before Required" warning
66223         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
66224         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
66225         autoconf warning.
66227 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
66229         Replacement header templates are now named with ".in", not "_".
66230         * doc/gnulib-intro.texi: Correct.
66232 2010-06-10  Jim Meyering  <meyering@redhat.com>
66234         inttostr-tests: depend on snprintf, not snprintf-posix
66235         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
66236         snprintf-posix, to avoid this aclocal failure:
66237           missing file gnulib-tests/vasnprintf.c
66238           configure.ac:45: error: expected source file, required through \
66239           AC_LIBSOURCES, not found
66241 2010-06-10  Jim Meyering  <meyering@redhat.com>
66243         inttostr: add a new function, inttostr, and tests
66244         The namesake function was not available.  The existence of the
66245         template file, inttostr.c makes its addition nontrivial.
66246         * lib/anytostr.c: Rename from inttostr.c.
66247         (anytostr): Rename from inttostr.
66248         * lib/inttostr.c: New file.
66249         * modules/inttostr (Files): Add anytostr.c.
66250         (Makefile.am): Set lib_SOURCES instead of ...
66251         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
66252         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
66253         * lib/offtostr.c: Likewise.
66254         * lib/uinttostr.c: Likewise.
66255         * lib/umaxtostr.c: Likewise.
66256         * modules/inttostr-tests: New file.
66257         * tests/test-inttostr.c: New file.  Test these functions.
66259 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
66260             Bruno Haible  <bruno@clisp.org>
66262         Add "Extending Gnulib" chapter to manual.
66263         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
66264         chapter.
66265         (Extending Gnulib): New chapter.
66266         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
66267         chapter.
66269 2010-06-09  Bruno Haible  <bruno@clisp.org>
66271         Avoid relocwrapper link errors due to gnulib replacement functions.
66272         * lib/areadlink.c: Use the system's malloc, realloc functions.
66273         (areadlink): Set errno to ENOMEM explicitly.
66274         * modules/areadlink (Depends-on): Remove malloc-posix.
66275         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66277 2010-06-09  Bruno Haible  <bruno@clisp.org>
66279         Avoid relocwrapper link errors due to gnulib replacement functions.
66280         * lib/canonicalize-lgpl.c: Use the system's malloc function.
66281         * lib/malloca.c: Likewise.
66282         * lib/relocatable.c: Likewise.
66283         * lib/progreloc.c: Use the system's malloc, sprintf functions.
66284         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
66285         * lib/setenv.c: Use the system's malloc, realloc functions.
66286         * lib/strerror.c: Use the system's sprintf function.
66287         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66289 2010-06-04  Bruno Haible  <bruno@clisp.org>
66291         Prefer documented low-level autoconf macro names.
66292         * m4/lib-link.m4: Use m4_translit instead of translit.
66293         * m4/environ.m4: Likewise.
66294         * m4/mathfunc.m4: Likewise.
66295         * m4/onceonly.m4: Likewise.
66296         * m4/stdint.m4: Likewise.
66297         Suggested by Eric Blake.
66299 2010-06-04  Martin Lambers  <marlam@marlam.de>
66300             Bruno Haible  <bruno@clisp.org>
66302         havelib: Allow library names with '+' characters.
66303         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66304         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
66306 2010-06-09  Bruno Haible  <bruno@clisp.org>
66308         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
66309         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
66310         realloc failed.
66312 2010-06-08  Peter Simons  <simons@cryp.to>
66314         maint.mk: make the news-check rule more configurable
66315         * top/maint.mk (news-check-lines-spec): New variable.
66316         (news-check): Use "sed -n 1,10p" in place of "head".
66318 2010-06-07  Jim Meyering  <meyering@redhat.com>
66320         do-release-commit-and-tag: fix typo in --help
66321         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
66323         regex: avoid new dead-code warning with gcc-4.6.0
66324         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
66325         if-block containing a while-loop.  It's been unused for at least
66326         5 years.
66328 2010-06-05  Bruno Haible  <bruno@clisp.org>
66330         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
66331         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
66333 2010-06-04  Bruno Haible  <bruno@clisp.org>
66335         Update to GNU gettext 0.18.1.
66336         * modules/gettext (configure.ac): Require gettext infrastructure from
66337         version 0.18.1.
66339 2010-06-03  Bruno Haible  <bruno@clisp.org>
66341         Don't use AC_LIBOBJ with file names in subdirectories.
66342         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
66343         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
66344         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
66345         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
66346         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
66347         gl_LIBUNISTRING_LIBSOURCE.
66348         (Makefile.am): Augment lib_SOURCES here, conditionally.
66349         * NEWS: Drop requirement for Automake option 'subdir-objects'.
66351 2010-06-03  Bruno Haible  <bruno@clisp.org>
66353         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
66354         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
66355         expansion does not end with a newline.
66356         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
66357         unnecessary newline.
66359 2010-06-03  Bruno Haible  <bruno@clisp.org>
66361         Reduce dependencies.
66362         * tests/test-quotearg.h: New file, extracted from
66363         tests/test-quotearg.c.
66364         * tests/test-quotearg-simple.c: New file, extracted from
66365         tests/test-quotearg.c.
66366         * tests/test-quotearg.c: Don't include <ctype.h>.
66367         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
66368         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
66369         use_quote_double_quotes, use_quotearg_colon): Moved to
66370         tests/test-quotearg.h.
66371         (results_g, flag_results, custom_quotes, custom_results): Moved
66372         to tests/test-quotearg-simple.c.
66373         (main): Moved the part that does not depend on gettext to
66374         tests/test-quotearg-simple.c. Return 77 if the test cannot be
66375         performed.
66376         * modules/quotearg-simple: New file.
66377         * modules/quotearg-simple-tests: New file.
66378         * modules/quotearg (Depends-on): Add quotearg-simple.
66379         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
66380         (Files): Add tests/test-quotearg.h.
66381         Reported by Paolo Bonzini.
66383 2010-06-03  Bruno Haible  <bruno@clisp.org>
66385         Reduce dependencies.
66386         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
66388 2010-06-03  Bruno Haible  <bruno@clisp.org>
66390         time: Undefine more broken macros.
66391         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
66392         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
66393         Reported by Eric Blake.
66395 2010-06-03  Bruno Haible  <bruno@clisp.org>
66397         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
66398         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
66399         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
66400         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
66401         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
66402         Reported by Ludovic Courtès <ludo@gnu.org>.
66404 2010-06-02  Eric Blake  <eblake@redhat.com>
66406         time: work with mingw + pthreads-win32 library
66407         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
66408         if timespec is defined only in pthread.h.
66409         * modules/time (Makefile.am): Substitute it.
66410         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
66411         <pthread.h>, when needed.
66412         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
66413         from the library.
66415 2010-05-31  Bruno Haible  <bruno@clisp.org>
66417         Avoid expanding two macros in the wrong order.
66418         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
66419         gl_LIBUNISTRING if it is defined.
66420         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
66421         autoconf >= 2.64.
66422         Reported by Ludovic Courtès <ludo@gnu.org>.
66424 2010-05-27  Jim Meyering  <meyering@redhat.com>
66426         maint.mk: also prohibit "#undef" of always-defined symbols
66427         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
66428         Allow more than one space before the symbol name.
66429         (sc_prohibit_always-defined_macros): Use grep's -E, now that
66430         the regexp uses alternation.
66432 2010-05-26  Eric Blake  <eblake@redhat.com>
66434         maint.mk: avoid echo -e
66435         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
66436         Convert all uses of echo -* to printf.
66437         Reported by Matthias Bolte.
66439 2010-05-25  Bruno Haible  <bruno@clisp.org>
66441         Update to GNU gettext 0.18, part 2.
66442         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
66443         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
66445 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66447         Add missing include in test-pwrite.c.
66448         * tests/test-pwrite.c: Include string.h, for strcmp.
66450 2010-05-24  Bruno Haible  <bruno@clisp.org>
66452         * NEWS: Mention requirement for Automake option 'subdir-objects'.
66454 2010-05-24  Bruno Haible  <bruno@clisp.org>
66456         Don't use conversion with transliteration in u{8,16,32}_strcoll.
66457         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
66458         iconveh_error argument.
66459         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
66460         U_STRCONV_TO_LOCALE.
66461         * lib/unistr/u16-strcoll.c: Likewise.
66462         * lib/unistr/u32-strcoll.c: Likewise.
66463         * modules/unistr/u8-strcoll (Depends-on): Add
66464         uniconv/u8-strconv-to-enc, localcharset. Remove
66465         uniconv/u8-strconv-to-locale.
66466         (configure.ac): Bump version number.
66467         * modules/unistr/u16-strcoll (Depends-on): Add
66468         uniconv/u16-strconv-to-enc, localcharset. Remove
66469         uniconv/u16-strconv-to-locale.
66470         (configure.ac): Bump version number.
66471         * modules/unistr/u32-strcoll (Depends-on): Add
66472         uniconv/u32-strconv-to-enc, localcharset. Remove
66473         uniconv/u32-strconv-to-locale.
66474         (configure.ac): Bump version number.
66476 2010-05-24  Bruno Haible  <bruno@clisp.org>
66478         Avoid a test failure on NetBSD 5.0.
66479         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
66480         an iconv() bug.
66482 2010-05-24  Bruno Haible  <bruno@clisp.org>
66484         Adjust #include directive style.
66485         * modules/regex (Includes): Recommend to write <regex.h>.
66487 2010-05-24  Bruno Haible  <bruno@clisp.org>
66489         regex: Don't require alloca.
66490         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
66491         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
66492         only inside if (0).
66494 2010-05-23  Jim Meyering  <meyering@redhat.com>
66496         test-renameat.c: include <sys/stat.h>
66497         * tests/test-renameat.c: Include <sys/stat.h>; required for
66498         definition of S_IS* macros.
66500 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
66502         Update maintainer documentation for 'relocatable-prog' module.
66503         * doc/relocatable-maint.texi: Update.
66504         Comments by Bruno Haible.
66506 2010-05-23  Bruno Haible  <bruno@clisp.org>
66508         git-merge-changelog: Enable --split-merged-entry by default.
66509         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
66510         (usage): Don't mention this option any more.
66511         Reported by Ralf Wildenhues.
66513 2010-05-23  Jim Meyering  <meyering@redhat.com>
66515         test-pwrite: do not leave behind a test file named "out"
66516         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
66517         The trivial-looking use of init.sh is really necessary.
66518         It ensures that the temporary file, "out", is created in
66519         a temporary directory, and removed upon termination.
66520         * tests/test-pwrite.sh: Re-add file.
66521         * modules/pwrite-tests: Reference it.
66523 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66525         Fix output redirection buglet in init.sh.
66526         * tests/init.sh: Fix redirection of stderr.
66528 2010-05-20  Simon Josefsson  <simon@josefsson.org>
66530         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
66532 2010-05-17  Simon Josefsson  <simon@josefsson.org>
66534         * modules/valgrind-tests: New file.
66535         * m4/valgrind-tests.m4: New file.
66536         * doc/valgrind-tests.texi: New file.
66537         * doc/gnulib.texi (Running self-tests under valgrind): New
66538         section.
66540 2010-05-19  Bruno Haible  <bruno@clisp.org>
66542         Clean up dead code in recent commit.
66543         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
66544         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
66545         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
66546         Suggested by Paolo Bonzini.
66548 2010-05-19  Bruno Haible  <bruno@clisp.org>
66550         Avoid valgrind error reports from libunistring.
66551         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
66552         * modules/libunistring (Files): Add it.
66553         * modules/libunistring-optional (Files): Likewise.
66555 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
66556             Bruno Haible  <bruno@clisp.org>
66558         New module 'libunistring-optional'.
66559         * modules/libunistring-optional: New file.
66560         * m4/libunistring-base.m4: New file.
66561         * m4/libunistring-optional.m4: New file.
66562         * lib/unicase.in.h: Renamed from lib/unicase.h.
66563         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
66564         * lib/unictype.in.h: Renamed from lib/unictype.h.
66565         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
66566         * lib/uniname.in.h: Renamed from lib/uniname.h.
66567         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
66568         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
66569         * lib/unistr.in.h: Renamed from lib/unistr.h.
66570         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
66571         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
66572         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
66573         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
66574         gl_LIBUNISTRING. If the library was found, determine the installed
66575         version and set LIBUNISTRING_VERSION.
66576         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
66577         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
66578         handle a configuration option --with-included-libunistring.
66579         * modules/libunistring (Files): Add m4/absolute-header.m4.
66580         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
66581         Add m4/libunistring-base.m4.
66582         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66583         (Makefile.am): Build unicase.h from unicase.in.h.
66584         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
66585         Add m4/libunistring-base.m4.
66586         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66587         (Makefile.am): Build uniconv.h from uniconv.in.h.
66588         * modules/unictype/base (Files): Use unictype.in.h instead of
66589         unictype.h. Add m4/libunistring-base.m4.
66590         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66591         (Makefile.am): Build unictype.h from unictype.in.h.
66592         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
66593         Add m4/libunistring-base.m4.
66594         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66595         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
66596         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
66597         Add m4/libunistring-base.m4.
66598         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66599         (Makefile.am): Build uniname.h from uniname.in.h.
66600         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
66601         Add m4/libunistring-base.m4.
66602         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66603         (Makefile.am): Build uninorm.h from uninorm.in.h.
66604         * modules/unistdio/base (Files): Use unistdio.in.h instead of
66605         unistdio.h. Add m4/libunistring-base.m4.
66606         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66607         (Makefile.am): Build unistdio.h from unistdio.in.h.
66608         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
66609         Add m4/libunistring-base.m4.
66610         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66611         (Makefile.am): Build unistr.h from unistr.in.h.
66612         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
66613         Add m4/libunistring-base.m4.
66614         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66615         (Makefile.am): Build unitypes.h from unitypes.in.h.
66616         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
66617         Add m4/libunistring-base.m4.
66618         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66619         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
66620         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
66621         uniwidth.h. Add m4/libunistring-base.m4.
66622         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66623         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
66624         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
66625         instead of augmenting lib_SOURCES.
66626         * modules/unicase/empty-suffix-context: Likewise.
66627         * modules/unicase/locale-language: Likewise.
66628         * modules/unicase/tolower: Likewise.
66629         * modules/unicase/totitle: Likewise.
66630         * modules/unicase/toupper: Likewise.
66631         * modules/unicase/u8-casecmp: Likewise.
66632         * modules/unicase/u8-casecoll: Likewise.
66633         * modules/unicase/u8-casefold: Likewise.
66634         * modules/unicase/u8-casexfrm: Likewise.
66635         * modules/unicase/u8-ct-casefold: Likewise.
66636         * modules/unicase/u8-ct-tolower: Likewise.
66637         * modules/unicase/u8-ct-totitle: Likewise.
66638         * modules/unicase/u8-ct-toupper: Likewise.
66639         * modules/unicase/u8-is-cased: Likewise.
66640         * modules/unicase/u8-is-casefolded: Likewise.
66641         * modules/unicase/u8-is-lowercase: Likewise.
66642         * modules/unicase/u8-is-titlecase: Likewise.
66643         * modules/unicase/u8-is-uppercase: Likewise.
66644         * modules/unicase/u8-prefix-context: Likewise.
66645         * modules/unicase/u8-suffix-context: Likewise.
66646         * modules/unicase/u8-tolower: Likewise.
66647         * modules/unicase/u8-totitle: Likewise.
66648         * modules/unicase/u8-toupper: Likewise.
66649         * modules/unicase/u16-casecmp: Likewise.
66650         * modules/unicase/u16-casecoll: Likewise.
66651         * modules/unicase/u16-casefold: Likewise.
66652         * modules/unicase/u16-casexfrm: Likewise.
66653         * modules/unicase/u16-ct-casefold: Likewise.
66654         * modules/unicase/u16-ct-tolower: Likewise.
66655         * modules/unicase/u16-ct-totitle: Likewise.
66656         * modules/unicase/u16-ct-toupper: Likewise.
66657         * modules/unicase/u16-is-cased: Likewise.
66658         * modules/unicase/u16-is-casefolded: Likewise.
66659         * modules/unicase/u16-is-lowercase: Likewise.
66660         * modules/unicase/u16-is-titlecase: Likewise.
66661         * modules/unicase/u16-is-uppercase: Likewise.
66662         * modules/unicase/u16-prefix-context: Likewise.
66663         * modules/unicase/u16-suffix-context: Likewise.
66664         * modules/unicase/u16-tolower: Likewise.
66665         * modules/unicase/u16-totitle: Likewise.
66666         * modules/unicase/u16-toupper: Likewise.
66667         * modules/unicase/u32-casecmp: Likewise.
66668         * modules/unicase/u32-casecoll: Likewise.
66669         * modules/unicase/u32-casefold: Likewise.
66670         * modules/unicase/u32-casexfrm: Likewise.
66671         * modules/unicase/u32-ct-casefold: Likewise.
66672         * modules/unicase/u32-ct-tolower: Likewise.
66673         * modules/unicase/u32-ct-totitle: Likewise.
66674         * modules/unicase/u32-ct-toupper: Likewise.
66675         * modules/unicase/u32-is-cased: Likewise.
66676         * modules/unicase/u32-is-casefolded: Likewise.
66677         * modules/unicase/u32-is-lowercase: Likewise.
66678         * modules/unicase/u32-is-titlecase: Likewise.
66679         * modules/unicase/u32-is-uppercase: Likewise.
66680         * modules/unicase/u32-prefix-context: Likewise.
66681         * modules/unicase/u32-suffix-context: Likewise.
66682         * modules/unicase/u32-tolower: Likewise.
66683         * modules/unicase/u32-totitle: Likewise.
66684         * modules/unicase/u32-toupper: Likewise.
66685         * modules/unicase/ulc-casecmp: Likewise.
66686         * modules/unicase/ulc-casecoll: Likewise.
66687         * modules/unicase/ulc-casexfrm: Likewise.
66688         * modules/uniconv/u8-conv-from-enc: Likewise.
66689         * modules/uniconv/u8-conv-to-enc: Likewise.
66690         * modules/uniconv/u8-strconv-from-enc: Likewise.
66691         * modules/uniconv/u8-strconv-from-locale: Likewise.
66692         * modules/uniconv/u8-strconv-to-enc: Likewise.
66693         * modules/uniconv/u8-strconv-to-locale: Likewise.
66694         * modules/uniconv/u16-conv-from-enc: Likewise.
66695         * modules/uniconv/u16-conv-to-enc: Likewise.
66696         * modules/uniconv/u16-strconv-from-enc: Likewise.
66697         * modules/uniconv/u16-strconv-from-locale: Likewise.
66698         * modules/uniconv/u16-strconv-to-enc: Likewise.
66699         * modules/uniconv/u16-strconv-to-locale: Likewise.
66700         * modules/uniconv/u32-conv-from-enc: Likewise.
66701         * modules/uniconv/u32-conv-to-enc: Likewise.
66702         * modules/uniconv/u32-strconv-from-enc: Likewise.
66703         * modules/uniconv/u32-strconv-from-locale: Likewise.
66704         * modules/uniconv/u32-strconv-to-enc: Likewise.
66705         * modules/uniconv/u32-strconv-to-locale: Likewise.
66706         * modules/unictype/bidicategory-byname: Likewise.
66707         * modules/unictype/bidicategory-name: Likewise.
66708         * modules/unictype/bidicategory-of: Likewise.
66709         * modules/unictype/bidicategory-test: Likewise.
66710         * modules/unictype/block-list: Likewise.
66711         * modules/unictype/block-test: Likewise.
66712         * modules/unictype/category-C: Likewise.
66713         * modules/unictype/category-Cc: Likewise.
66714         * modules/unictype/category-Cf: Likewise.
66715         * modules/unictype/category-Cn: Likewise.
66716         * modules/unictype/category-Co: Likewise.
66717         * modules/unictype/category-Cs: Likewise.
66718         * modules/unictype/category-L: Likewise.
66719         * modules/unictype/category-Ll: Likewise.
66720         * modules/unictype/category-Lm: Likewise.
66721         * modules/unictype/category-Lo: Likewise.
66722         * modules/unictype/category-Lt: Likewise.
66723         * modules/unictype/category-Lu: Likewise.
66724         * modules/unictype/category-M: Likewise.
66725         * modules/unictype/category-Mc: Likewise.
66726         * modules/unictype/category-Me: Likewise.
66727         * modules/unictype/category-Mn: Likewise.
66728         * modules/unictype/category-N: Likewise.
66729         * modules/unictype/category-Nd: Likewise.
66730         * modules/unictype/category-Nl: Likewise.
66731         * modules/unictype/category-No: Likewise.
66732         * modules/unictype/category-P: Likewise.
66733         * modules/unictype/category-Pc: Likewise.
66734         * modules/unictype/category-Pd: Likewise.
66735         * modules/unictype/category-Pe: Likewise.
66736         * modules/unictype/category-Pf: Likewise.
66737         * modules/unictype/category-Pi: Likewise.
66738         * modules/unictype/category-Po: Likewise.
66739         * modules/unictype/category-Ps: Likewise.
66740         * modules/unictype/category-S: Likewise.
66741         * modules/unictype/category-Sc: Likewise.
66742         * modules/unictype/category-Sk: Likewise.
66743         * modules/unictype/category-Sm: Likewise.
66744         * modules/unictype/category-So: Likewise.
66745         * modules/unictype/category-Z: Likewise.
66746         * modules/unictype/category-Zl: Likewise.
66747         * modules/unictype/category-Zp: Likewise.
66748         * modules/unictype/category-Zs: Likewise.
66749         * modules/unictype/category-and: Likewise.
66750         * modules/unictype/category-and-not: Likewise.
66751         * modules/unictype/category-byname: Likewise.
66752         * modules/unictype/category-name: Likewise.
66753         * modules/unictype/category-none: Likewise.
66754         * modules/unictype/category-of: Likewise.
66755         * modules/unictype/category-or: Likewise.
66756         * modules/unictype/category-test: Likewise.
66757         * modules/unictype/combining-class: Likewise.
66758         * modules/unictype/ctype-alnum: Likewise.
66759         * modules/unictype/ctype-alpha: Likewise.
66760         * modules/unictype/ctype-blank: Likewise.
66761         * modules/unictype/ctype-cntrl: Likewise.
66762         * modules/unictype/ctype-digit: Likewise.
66763         * modules/unictype/ctype-graph: Likewise.
66764         * modules/unictype/ctype-lower: Likewise.
66765         * modules/unictype/ctype-print: Likewise.
66766         * modules/unictype/ctype-punct: Likewise.
66767         * modules/unictype/ctype-space: Likewise.
66768         * modules/unictype/ctype-upper: Likewise.
66769         * modules/unictype/ctype-xdigit: Likewise.
66770         * modules/unictype/decimal-digit: Likewise.
66771         * modules/unictype/digit: Likewise.
66772         * modules/unictype/mirror: Likewise.
66773         * modules/unictype/numeric: Likewise.
66774         * modules/unictype/property-alphabetic: Likewise.
66775         * modules/unictype/property-ascii-hex-digit: Likewise.
66776         * modules/unictype/property-bidi-arabic-digit: Likewise.
66777         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
66778         * modules/unictype/property-bidi-block-separator: Likewise.
66779         * modules/unictype/property-bidi-boundary-neutral: Likewise.
66780         * modules/unictype/property-bidi-common-separator: Likewise.
66781         * modules/unictype/property-bidi-control: Likewise.
66782         * modules/unictype/property-bidi-embedding-or-override: Likewise.
66783         * modules/unictype/property-bidi-eur-num-separator: Likewise.
66784         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
66785         * modules/unictype/property-bidi-european-digit: Likewise.
66786         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
66787         * modules/unictype/property-bidi-left-to-right: Likewise.
66788         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
66789         * modules/unictype/property-bidi-other-neutral: Likewise.
66790         * modules/unictype/property-bidi-pdf: Likewise.
66791         * modules/unictype/property-bidi-segment-separator: Likewise.
66792         * modules/unictype/property-bidi-whitespace: Likewise.
66793         * modules/unictype/property-byname: Likewise.
66794         * modules/unictype/property-combining: Likewise.
66795         * modules/unictype/property-composite: Likewise.
66796         * modules/unictype/property-currency-symbol: Likewise.
66797         * modules/unictype/property-dash: Likewise.
66798         * modules/unictype/property-decimal-digit: Likewise.
66799         * modules/unictype/property-default-ignorable-code-point: Likewise.
66800         * modules/unictype/property-deprecated: Likewise.
66801         * modules/unictype/property-diacritic: Likewise.
66802         * modules/unictype/property-extender: Likewise.
66803         * modules/unictype/property-format-control: Likewise.
66804         * modules/unictype/property-grapheme-base: Likewise.
66805         * modules/unictype/property-grapheme-extend: Likewise.
66806         * modules/unictype/property-grapheme-link: Likewise.
66807         * modules/unictype/property-hex-digit: Likewise.
66808         * modules/unictype/property-hyphen: Likewise.
66809         * modules/unictype/property-id-continue: Likewise.
66810         * modules/unictype/property-id-start: Likewise.
66811         * modules/unictype/property-ideographic: Likewise.
66812         * modules/unictype/property-ids-binary-operator: Likewise.
66813         * modules/unictype/property-ids-trinary-operator: Likewise.
66814         * modules/unictype/property-ignorable-control: Likewise.
66815         * modules/unictype/property-iso-control: Likewise.
66816         * modules/unictype/property-join-control: Likewise.
66817         * modules/unictype/property-left-of-pair: Likewise.
66818         * modules/unictype/property-line-separator: Likewise.
66819         * modules/unictype/property-logical-order-exception: Likewise.
66820         * modules/unictype/property-lowercase: Likewise.
66821         * modules/unictype/property-math: Likewise.
66822         * modules/unictype/property-non-break: Likewise.
66823         * modules/unictype/property-not-a-character: Likewise.
66824         * modules/unictype/property-numeric: Likewise.
66825         * modules/unictype/property-other-alphabetic: Likewise.
66826         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
66827         * modules/unictype/property-other-grapheme-extend: Likewise.
66828         * modules/unictype/property-other-id-continue: Likewise.
66829         * modules/unictype/property-other-id-start: Likewise.
66830         * modules/unictype/property-other-lowercase: Likewise.
66831         * modules/unictype/property-other-math: Likewise.
66832         * modules/unictype/property-other-uppercase: Likewise.
66833         * modules/unictype/property-paired-punctuation: Likewise.
66834         * modules/unictype/property-paragraph-separator: Likewise.
66835         * modules/unictype/property-pattern-syntax: Likewise.
66836         * modules/unictype/property-pattern-white-space: Likewise.
66837         * modules/unictype/property-private-use: Likewise.
66838         * modules/unictype/property-punctuation: Likewise.
66839         * modules/unictype/property-quotation-mark: Likewise.
66840         * modules/unictype/property-radical: Likewise.
66841         * modules/unictype/property-sentence-terminal: Likewise.
66842         * modules/unictype/property-soft-dotted: Likewise.
66843         * modules/unictype/property-space: Likewise.
66844         * modules/unictype/property-terminal-punctuation: Likewise.
66845         * modules/unictype/property-test: Likewise.
66846         * modules/unictype/property-titlecase: Likewise.
66847         * modules/unictype/property-unassigned-code-value: Likewise.
66848         * modules/unictype/property-unified-ideograph: Likewise.
66849         * modules/unictype/property-uppercase: Likewise.
66850         * modules/unictype/property-variation-selector: Likewise.
66851         * modules/unictype/property-white-space: Likewise.
66852         * modules/unictype/property-xid-continue: Likewise.
66853         * modules/unictype/property-xid-start: Likewise.
66854         * modules/unictype/property-zero-width: Likewise.
66855         * modules/unictype/scripts: Likewise.
66856         * modules/unictype/syntax-c-ident: Likewise.
66857         * modules/unictype/syntax-c-whitespace: Likewise.
66858         * modules/unictype/syntax-java-ident: Likewise.
66859         * modules/unictype/syntax-java-whitespace: Likewise.
66860         * modules/unilbrk/u8-possible-linebreaks: Likewise.
66861         * modules/unilbrk/u8-width-linebreaks: Likewise.
66862         * modules/unilbrk/u16-possible-linebreaks: Likewise.
66863         * modules/unilbrk/u16-width-linebreaks: Likewise.
66864         * modules/unilbrk/u32-possible-linebreaks: Likewise.
66865         * modules/unilbrk/u32-width-linebreaks: Likewise.
66866         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
66867         * modules/unilbrk/ulc-width-linebreaks: Likewise.
66868         * modules/uniname/uniname: Likewise.
66869         * modules/uninorm/canonical-decomposition: Likewise.
66870         * modules/uninorm/composition: Likewise.
66871         * modules/uninorm/decomposing-form: Likewise.
66872         * modules/uninorm/decomposition: Likewise.
66873         * modules/uninorm/filter: Likewise.
66874         * modules/uninorm/nfc: Likewise.
66875         * modules/uninorm/nfd: Likewise.
66876         * modules/uninorm/nfkc: Likewise.
66877         * modules/uninorm/nfkd: Likewise.
66878         * modules/uninorm/u8-normalize: Likewise.
66879         * modules/uninorm/u8-normcmp: Likewise.
66880         * modules/uninorm/u8-normcoll: Likewise.
66881         * modules/uninorm/u8-normxfrm: Likewise.
66882         * modules/uninorm/u16-normalize: Likewise.
66883         * modules/uninorm/u16-normcmp: Likewise.
66884         * modules/uninorm/u16-normcoll: Likewise.
66885         * modules/uninorm/u16-normxfrm: Likewise.
66886         * modules/uninorm/u32-normalize: Likewise.
66887         * modules/uninorm/u32-normcmp: Likewise.
66888         * modules/uninorm/u32-normcoll: Likewise.
66889         * modules/uninorm/u32-normxfrm: Likewise.
66890         * modules/unistdio/u8-asnprintf: Likewise.
66891         * modules/unistdio/u8-asprintf: Likewise.
66892         * modules/unistdio/u8-snprintf: Likewise.
66893         * modules/unistdio/u8-sprintf: Likewise.
66894         * modules/unistdio/u8-u8-asnprintf: Likewise.
66895         * modules/unistdio/u8-u8-asprintf: Likewise.
66896         * modules/unistdio/u8-u8-snprintf: Likewise.
66897         * modules/unistdio/u8-u8-sprintf: Likewise.
66898         * modules/unistdio/u8-u8-vasnprintf: Likewise.
66899         * modules/unistdio/u8-u8-vasprintf: Likewise.
66900         * modules/unistdio/u8-u8-vsnprintf: Likewise.
66901         * modules/unistdio/u8-u8-vsprintf: Likewise.
66902         * modules/unistdio/u8-vasnprintf: Likewise.
66903         * modules/unistdio/u8-vasprintf: Likewise.
66904         * modules/unistdio/u8-vsnprintf: Likewise.
66905         * modules/unistdio/u8-vsprintf: Likewise.
66906         * modules/unistdio/u16-asnprintf: Likewise.
66907         * modules/unistdio/u16-asprintf: Likewise.
66908         * modules/unistdio/u16-snprintf: Likewise.
66909         * modules/unistdio/u16-sprintf: Likewise.
66910         * modules/unistdio/u16-u16-asnprintf: Likewise.
66911         * modules/unistdio/u16-u16-asprintf: Likewise.
66912         * modules/unistdio/u16-u16-snprintf: Likewise.
66913         * modules/unistdio/u16-u16-sprintf: Likewise.
66914         * modules/unistdio/u16-u16-vasnprintf: Likewise.
66915         * modules/unistdio/u16-u16-vasprintf: Likewise.
66916         * modules/unistdio/u16-u16-vsnprintf: Likewise.
66917         * modules/unistdio/u16-u16-vsprintf: Likewise.
66918         * modules/unistdio/u16-vasnprintf: Likewise.
66919         * modules/unistdio/u16-vasprintf: Likewise.
66920         * modules/unistdio/u16-vsnprintf: Likewise.
66921         * modules/unistdio/u16-vsprintf: Likewise.
66922         * modules/unistdio/u32-asnprintf: Likewise.
66923         * modules/unistdio/u32-asprintf: Likewise.
66924         * modules/unistdio/u32-snprintf: Likewise.
66925         * modules/unistdio/u32-sprintf: Likewise.
66926         * modules/unistdio/u32-u32-asnprintf: Likewise.
66927         * modules/unistdio/u32-u32-asprintf: Likewise.
66928         * modules/unistdio/u32-u32-snprintf: Likewise.
66929         * modules/unistdio/u32-u32-sprintf: Likewise.
66930         * modules/unistdio/u32-u32-vasnprintf: Likewise.
66931         * modules/unistdio/u32-u32-vasprintf: Likewise.
66932         * modules/unistdio/u32-u32-vsnprintf: Likewise.
66933         * modules/unistdio/u32-u32-vsprintf: Likewise.
66934         * modules/unistdio/u32-vasnprintf: Likewise.
66935         * modules/unistdio/u32-vasprintf: Likewise.
66936         * modules/unistdio/u32-vsnprintf: Likewise.
66937         * modules/unistdio/u32-vsprintf: Likewise.
66938         * modules/unistdio/ulc-asnprintf: Likewise.
66939         * modules/unistdio/ulc-asprintf: Likewise.
66940         * modules/unistdio/ulc-fprintf: Likewise.
66941         * modules/unistdio/ulc-snprintf: Likewise.
66942         * modules/unistdio/ulc-sprintf: Likewise.
66943         * modules/unistdio/ulc-vasnprintf: Likewise.
66944         * modules/unistdio/ulc-vasprintf: Likewise.
66945         * modules/unistdio/ulc-vfprintf: Likewise.
66946         * modules/unistdio/ulc-vsnprintf: Likewise.
66947         * modules/unistdio/ulc-vsprintf: Likewise.
66948         * modules/unistr/u8-check: Likewise.
66949         * modules/unistr/u8-chr: Likewise.
66950         * modules/unistr/u8-cmp: Likewise.
66951         * modules/unistr/u8-cmp2: Likewise.
66952         * modules/unistr/u8-cpy: Likewise.
66953         * modules/unistr/u8-cpy-alloc: Likewise.
66954         * modules/unistr/u8-endswith: Likewise.
66955         * modules/unistr/u8-mblen: Likewise.
66956         * modules/unistr/u8-mbsnlen: Likewise.
66957         * modules/unistr/u8-mbtouc: Likewise.
66958         * modules/unistr/u8-mbtouc-unsafe: Likewise.
66959         * modules/unistr/u8-mbtoucr: Likewise.
66960         * modules/unistr/u8-move: Likewise.
66961         * modules/unistr/u8-next: Likewise.
66962         * modules/unistr/u8-prev: Likewise.
66963         * modules/unistr/u8-set: Likewise.
66964         * modules/unistr/u8-startswith: Likewise.
66965         * modules/unistr/u8-stpcpy: Likewise.
66966         * modules/unistr/u8-stpncpy: Likewise.
66967         * modules/unistr/u8-strcat: Likewise.
66968         * modules/unistr/u8-strchr: Likewise.
66969         * modules/unistr/u8-strcmp: Likewise.
66970         * modules/unistr/u8-strcoll: Likewise.
66971         * modules/unistr/u8-strcpy: Likewise.
66972         * modules/unistr/u8-strcspn: Likewise.
66973         * modules/unistr/u8-strdup: Likewise.
66974         * modules/unistr/u8-strlen: Likewise.
66975         * modules/unistr/u8-strmblen: Likewise.
66976         * modules/unistr/u8-strmbtouc: Likewise.
66977         * modules/unistr/u8-strncat: Likewise.
66978         * modules/unistr/u8-strncmp: Likewise.
66979         * modules/unistr/u8-strncpy: Likewise.
66980         * modules/unistr/u8-strnlen: Likewise.
66981         * modules/unistr/u8-strpbrk: Likewise.
66982         * modules/unistr/u8-strrchr: Likewise.
66983         * modules/unistr/u8-strspn: Likewise.
66984         * modules/unistr/u8-strstr: Likewise.
66985         * modules/unistr/u8-strtok: Likewise.
66986         * modules/unistr/u8-to-u16: Likewise.
66987         * modules/unistr/u8-to-u32: Likewise.
66988         * modules/unistr/u8-uctomb: Likewise.
66989         * modules/unistr/u16-check: Likewise.
66990         * modules/unistr/u16-chr: Likewise.
66991         * modules/unistr/u16-cmp: Likewise.
66992         * modules/unistr/u16-cmp2: Likewise.
66993         * modules/unistr/u16-cpy: Likewise.
66994         * modules/unistr/u16-cpy-alloc: Likewise.
66995         * modules/unistr/u16-endswith: Likewise.
66996         * modules/unistr/u16-mblen: Likewise.
66997         * modules/unistr/u16-mbsnlen: Likewise.
66998         * modules/unistr/u16-mbtouc: Likewise.
66999         * modules/unistr/u16-mbtouc-unsafe: Likewise.
67000         * modules/unistr/u16-mbtoucr: Likewise.
67001         * modules/unistr/u16-move: Likewise.
67002         * modules/unistr/u16-next: Likewise.
67003         * modules/unistr/u16-prev: Likewise.
67004         * modules/unistr/u16-set: Likewise.
67005         * modules/unistr/u16-startswith: Likewise.
67006         * modules/unistr/u16-stpcpy: Likewise.
67007         * modules/unistr/u16-stpncpy: Likewise.
67008         * modules/unistr/u16-strcat: Likewise.
67009         * modules/unistr/u16-strchr: Likewise.
67010         * modules/unistr/u16-strcmp: Likewise.
67011         * modules/unistr/u16-strcoll: Likewise.
67012         * modules/unistr/u16-strcpy: Likewise.
67013         * modules/unistr/u16-strcspn: Likewise.
67014         * modules/unistr/u16-strdup: Likewise.
67015         * modules/unistr/u16-strlen: Likewise.
67016         * modules/unistr/u16-strmblen: Likewise.
67017         * modules/unistr/u16-strmbtouc: Likewise.
67018         * modules/unistr/u16-strncat: Likewise.
67019         * modules/unistr/u16-strncmp: Likewise.
67020         * modules/unistr/u16-strncpy: Likewise.
67021         * modules/unistr/u16-strnlen: Likewise.
67022         * modules/unistr/u16-strpbrk: Likewise.
67023         * modules/unistr/u16-strrchr: Likewise.
67024         * modules/unistr/u16-strspn: Likewise.
67025         * modules/unistr/u16-strstr: Likewise.
67026         * modules/unistr/u16-strtok: Likewise.
67027         * modules/unistr/u16-to-u32: Likewise.
67028         * modules/unistr/u16-to-u8: Likewise.
67029         * modules/unistr/u16-uctomb: Likewise.
67030         * modules/unistr/u32-check: Likewise.
67031         * modules/unistr/u32-chr: Likewise.
67032         * modules/unistr/u32-cmp: Likewise.
67033         * modules/unistr/u32-cmp2: Likewise.
67034         * modules/unistr/u32-cpy: Likewise.
67035         * modules/unistr/u32-cpy-alloc: Likewise.
67036         * modules/unistr/u32-endswith: Likewise.
67037         * modules/unistr/u32-mblen: Likewise.
67038         * modules/unistr/u32-mbsnlen: Likewise.
67039         * modules/unistr/u32-mbtouc: Likewise.
67040         * modules/unistr/u32-mbtouc-unsafe: Likewise.
67041         * modules/unistr/u32-mbtoucr: Likewise.
67042         * modules/unistr/u32-move: Likewise.
67043         * modules/unistr/u32-next: Likewise.
67044         * modules/unistr/u32-prev: Likewise.
67045         * modules/unistr/u32-set: Likewise.
67046         * modules/unistr/u32-startswith: Likewise.
67047         * modules/unistr/u32-stpcpy: Likewise.
67048         * modules/unistr/u32-stpncpy: Likewise.
67049         * modules/unistr/u32-strcat: Likewise.
67050         * modules/unistr/u32-strchr: Likewise.
67051         * modules/unistr/u32-strcmp: Likewise.
67052         * modules/unistr/u32-strcoll: Likewise.
67053         * modules/unistr/u32-strcpy: Likewise.
67054         * modules/unistr/u32-strcspn: Likewise.
67055         * modules/unistr/u32-strdup: Likewise.
67056         * modules/unistr/u32-strlen: Likewise.
67057         * modules/unistr/u32-strmblen: Likewise.
67058         * modules/unistr/u32-strmbtouc: Likewise.
67059         * modules/unistr/u32-strncat: Likewise.
67060         * modules/unistr/u32-strncmp: Likewise.
67061         * modules/unistr/u32-strncpy: Likewise.
67062         * modules/unistr/u32-strnlen: Likewise.
67063         * modules/unistr/u32-strpbrk: Likewise.
67064         * modules/unistr/u32-strrchr: Likewise.
67065         * modules/unistr/u32-strspn: Likewise.
67066         * modules/unistr/u32-strstr: Likewise.
67067         * modules/unistr/u32-strtok: Likewise.
67068         * modules/unistr/u32-to-u16: Likewise.
67069         * modules/unistr/u32-to-u8: Likewise.
67070         * modules/unistr/u32-uctomb: Likewise.
67071         * modules/uniwbrk/u8-wordbreaks: Likewise.
67072         * modules/uniwbrk/u16-wordbreaks: Likewise.
67073         * modules/uniwbrk/u32-wordbreaks: Likewise.
67074         * modules/uniwbrk/ulc-wordbreaks: Likewise.
67075         * modules/uniwbrk/wordbreak-property: Likewise.
67076         * modules/uniwidth/u8-strwidth: Likewise.
67077         * modules/uniwidth/u8-width: Likewise.
67078         * modules/uniwidth/u16-strwidth: Likewise.
67079         * modules/uniwidth/u16-width: Likewise.
67080         * modules/uniwidth/u32-strwidth: Likewise.
67081         * modules/uniwidth/u32-width: Likewise.
67082         * modules/uniwidth/width: Likewise.
67083         * modules/unicase/cased-tests (Makefile.am): Link all test programs
67084         with $(LIBUNISTRING).
67085         * modules/unicase/ignorable-tests: Likewise.
67086         * modules/unicase/locale-language-tests: Likewise.
67087         * modules/unicase/tolower-tests: Likewise.
67088         * modules/unicase/totitle-tests: Likewise.
67089         * modules/unicase/toupper-tests: Likewise.
67090         * modules/unicase/u8-casecmp-tests: Likewise.
67091         * modules/unicase/u8-casecoll-tests: Likewise.
67092         * modules/unicase/u8-casefold-tests: Likewise.
67093         * modules/unicase/u8-is-cased-tests: Likewise.
67094         * modules/unicase/u8-is-casefolded-tests: Likewise.
67095         * modules/unicase/u8-is-lowercase-tests: Likewise.
67096         * modules/unicase/u8-is-titlecase-tests: Likewise.
67097         * modules/unicase/u8-is-uppercase-tests: Likewise.
67098         * modules/unicase/u8-tolower-tests: Likewise.
67099         * modules/unicase/u8-totitle-tests: Likewise.
67100         * modules/unicase/u8-toupper-tests: Likewise.
67101         * modules/unicase/u16-casecmp-tests: Likewise.
67102         * modules/unicase/u16-casecoll-tests: Likewise.
67103         * modules/unicase/u16-casefold-tests: Likewise.
67104         * modules/unicase/u16-is-cased-tests: Likewise.
67105         * modules/unicase/u16-is-casefolded-tests: Likewise.
67106         * modules/unicase/u16-is-lowercase-tests: Likewise.
67107         * modules/unicase/u16-is-titlecase-tests: Likewise.
67108         * modules/unicase/u16-is-uppercase-tests: Likewise.
67109         * modules/unicase/u16-tolower-tests: Likewise.
67110         * modules/unicase/u16-totitle-tests: Likewise.
67111         * modules/unicase/u16-toupper-tests: Likewise.
67112         * modules/unicase/u32-casecmp-tests: Likewise.
67113         * modules/unicase/u32-casecoll-tests: Likewise.
67114         * modules/unicase/u32-casefold-tests: Likewise.
67115         * modules/unicase/u32-is-cased-tests: Likewise.
67116         * modules/unicase/u32-is-casefolded-tests: Likewise.
67117         * modules/unicase/u32-is-lowercase-tests: Likewise.
67118         * modules/unicase/u32-is-titlecase-tests: Likewise.
67119         * modules/unicase/u32-is-uppercase-tests: Likewise.
67120         * modules/unicase/u32-tolower-tests: Likewise.
67121         * modules/unicase/u32-totitle-tests: Likewise.
67122         * modules/unicase/u32-toupper-tests: Likewise.
67123         * modules/unicase/ulc-casecmp-tests: Likewise.
67124         * modules/unicase/ulc-casecoll-tests: Likewise.
67125         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
67126         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
67127         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
67128         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
67129         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
67130         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
67131         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
67132         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
67133         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
67134         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
67135         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
67136         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
67137         * modules/unictype/bidicategory-byname-tests: Likewise.
67138         * modules/unictype/bidicategory-name-tests: Likewise.
67139         * modules/unictype/bidicategory-of-tests: Likewise.
67140         * modules/unictype/bidicategory-test-tests: Likewise.
67141         * modules/unictype/block-list-tests: Likewise.
67142         * modules/unictype/block-of-tests: Likewise.
67143         * modules/unictype/block-test-tests: Likewise.
67144         * modules/unictype/category-C-tests: Likewise.
67145         * modules/unictype/category-Cc-tests: Likewise.
67146         * modules/unictype/category-Cf-tests: Likewise.
67147         * modules/unictype/category-Cn-tests: Likewise.
67148         * modules/unictype/category-Co-tests: Likewise.
67149         * modules/unictype/category-Cs-tests: Likewise.
67150         * modules/unictype/category-L-tests: Likewise.
67151         * modules/unictype/category-Ll-tests: Likewise.
67152         * modules/unictype/category-Lm-tests: Likewise.
67153         * modules/unictype/category-Lo-tests: Likewise.
67154         * modules/unictype/category-Lt-tests: Likewise.
67155         * modules/unictype/category-Lu-tests: Likewise.
67156         * modules/unictype/category-M-tests: Likewise.
67157         * modules/unictype/category-Mc-tests: Likewise.
67158         * modules/unictype/category-Me-tests: Likewise.
67159         * modules/unictype/category-Mn-tests: Likewise.
67160         * modules/unictype/category-N-tests: Likewise.
67161         * modules/unictype/category-Nd-tests: Likewise.
67162         * modules/unictype/category-Nl-tests: Likewise.
67163         * modules/unictype/category-No-tests: Likewise.
67164         * modules/unictype/category-P-tests: Likewise.
67165         * modules/unictype/category-Pc-tests: Likewise.
67166         * modules/unictype/category-Pd-tests: Likewise.
67167         * modules/unictype/category-Pe-tests: Likewise.
67168         * modules/unictype/category-Pf-tests: Likewise.
67169         * modules/unictype/category-Pi-tests: Likewise.
67170         * modules/unictype/category-Po-tests: Likewise.
67171         * modules/unictype/category-Ps-tests: Likewise.
67172         * modules/unictype/category-S-tests: Likewise.
67173         * modules/unictype/category-Sc-tests: Likewise.
67174         * modules/unictype/category-Sk-tests: Likewise.
67175         * modules/unictype/category-Sm-tests: Likewise.
67176         * modules/unictype/category-So-tests: Likewise.
67177         * modules/unictype/category-Z-tests: Likewise.
67178         * modules/unictype/category-Zl-tests: Likewise.
67179         * modules/unictype/category-Zp-tests: Likewise.
67180         * modules/unictype/category-Zs-tests: Likewise.
67181         * modules/unictype/category-and-not-tests: Likewise.
67182         * modules/unictype/category-and-tests: Likewise.
67183         * modules/unictype/category-byname-tests: Likewise.
67184         * modules/unictype/category-name-tests: Likewise.
67185         * modules/unictype/category-none-tests: Likewise.
67186         * modules/unictype/category-of-tests: Likewise.
67187         * modules/unictype/category-or-tests: Likewise.
67188         * modules/unictype/category-test-withtable-tests: Likewise.
67189         * modules/unictype/combining-class-tests: Likewise.
67190         * modules/unictype/ctype-alnum-tests: Likewise.
67191         * modules/unictype/ctype-alpha-tests: Likewise.
67192         * modules/unictype/ctype-blank-tests: Likewise.
67193         * modules/unictype/ctype-cntrl-tests: Likewise.
67194         * modules/unictype/ctype-digit-tests: Likewise.
67195         * modules/unictype/ctype-graph-tests: Likewise.
67196         * modules/unictype/ctype-lower-tests: Likewise.
67197         * modules/unictype/ctype-print-tests: Likewise.
67198         * modules/unictype/ctype-punct-tests: Likewise.
67199         * modules/unictype/ctype-space-tests: Likewise.
67200         * modules/unictype/ctype-upper-tests: Likewise.
67201         * modules/unictype/ctype-xdigit-tests: Likewise.
67202         * modules/unictype/decimal-digit-tests: Likewise.
67203         * modules/unictype/digit-tests: Likewise.
67204         * modules/unictype/mirror-tests: Likewise.
67205         * modules/unictype/numeric-tests: Likewise.
67206         * modules/unictype/property-alphabetic-tests: Likewise.
67207         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
67208         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
67209         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
67210         * modules/unictype/property-bidi-block-separator-tests: Likewise.
67211         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
67212         * modules/unictype/property-bidi-common-separator-tests: Likewise.
67213         * modules/unictype/property-bidi-control-tests: Likewise.
67214         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
67215         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
67216         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
67217         * modules/unictype/property-bidi-european-digit-tests: Likewise.
67218         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
67219         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
67220         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
67221         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
67222         * modules/unictype/property-bidi-pdf-tests: Likewise.
67223         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
67224         * modules/unictype/property-bidi-whitespace-tests: Likewise.
67225         * modules/unictype/property-byname-tests: Likewise.
67226         * modules/unictype/property-combining-tests: Likewise.
67227         * modules/unictype/property-composite-tests: Likewise.
67228         * modules/unictype/property-currency-symbol-tests: Likewise.
67229         * modules/unictype/property-dash-tests: Likewise.
67230         * modules/unictype/property-decimal-digit-tests: Likewise.
67231         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
67232         * modules/unictype/property-deprecated-tests: Likewise.
67233         * modules/unictype/property-diacritic-tests: Likewise.
67234         * modules/unictype/property-extender-tests: Likewise.
67235         * modules/unictype/property-format-control-tests: Likewise.
67236         * modules/unictype/property-grapheme-base-tests: Likewise.
67237         * modules/unictype/property-grapheme-extend-tests: Likewise.
67238         * modules/unictype/property-grapheme-link-tests: Likewise.
67239         * modules/unictype/property-hex-digit-tests: Likewise.
67240         * modules/unictype/property-hyphen-tests: Likewise.
67241         * modules/unictype/property-id-continue-tests: Likewise.
67242         * modules/unictype/property-id-start-tests: Likewise.
67243         * modules/unictype/property-ideographic-tests: Likewise.
67244         * modules/unictype/property-ids-binary-operator-tests: Likewise.
67245         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
67246         * modules/unictype/property-ignorable-control-tests: Likewise.
67247         * modules/unictype/property-iso-control-tests: Likewise.
67248         * modules/unictype/property-join-control-tests: Likewise.
67249         * modules/unictype/property-left-of-pair-tests: Likewise.
67250         * modules/unictype/property-line-separator-tests: Likewise.
67251         * modules/unictype/property-logical-order-exception-tests: Likewise.
67252         * modules/unictype/property-lowercase-tests: Likewise.
67253         * modules/unictype/property-math-tests: Likewise.
67254         * modules/unictype/property-non-break-tests: Likewise.
67255         * modules/unictype/property-not-a-character-tests: Likewise.
67256         * modules/unictype/property-numeric-tests: Likewise.
67257         * modules/unictype/property-other-alphabetic-tests: Likewise.
67258         * modules/unictype/property-other-default-ignorable-code-point-tests:
67259         Likewise.
67260         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
67261         * modules/unictype/property-other-id-continue-tests: Likewise.
67262         * modules/unictype/property-other-id-start-tests: Likewise.
67263         * modules/unictype/property-other-lowercase-tests: Likewise.
67264         * modules/unictype/property-other-math-tests: Likewise.
67265         * modules/unictype/property-other-uppercase-tests: Likewise.
67266         * modules/unictype/property-paired-punctuation-tests: Likewise.
67267         * modules/unictype/property-paragraph-separator-tests: Likewise.
67268         * modules/unictype/property-pattern-syntax-tests: Likewise.
67269         * modules/unictype/property-pattern-white-space-tests: Likewise.
67270         * modules/unictype/property-private-use-tests: Likewise.
67271         * modules/unictype/property-punctuation-tests: Likewise.
67272         * modules/unictype/property-quotation-mark-tests: Likewise.
67273         * modules/unictype/property-radical-tests: Likewise.
67274         * modules/unictype/property-sentence-terminal-tests: Likewise.
67275         * modules/unictype/property-soft-dotted-tests: Likewise.
67276         * modules/unictype/property-space-tests: Likewise.
67277         * modules/unictype/property-terminal-punctuation-tests: Likewise.
67278         * modules/unictype/property-test-tests: Likewise.
67279         * modules/unictype/property-titlecase-tests: Likewise.
67280         * modules/unictype/property-unassigned-code-value-tests: Likewise.
67281         * modules/unictype/property-unified-ideograph-tests: Likewise.
67282         * modules/unictype/property-uppercase-tests: Likewise.
67283         * modules/unictype/property-variation-selector-tests: Likewise.
67284         * modules/unictype/property-white-space-tests: Likewise.
67285         * modules/unictype/property-xid-continue-tests: Likewise.
67286         * modules/unictype/property-xid-start-tests: Likewise.
67287         * modules/unictype/property-zero-width-tests: Likewise.
67288         * modules/unictype/scripts-tests: Likewise.
67289         * modules/unictype/syntax-c-ident-tests: Likewise.
67290         * modules/unictype/syntax-c-whitespace-tests: Likewise.
67291         * modules/unictype/syntax-java-ident-tests: Likewise.
67292         * modules/unictype/syntax-java-whitespace-tests: Likewise.
67293         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
67294         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
67295         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
67296         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
67297         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
67298         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
67299         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
67300         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
67301         * modules/uniname/uniname-tests: Likewise.
67302         * modules/uninorm/canonical-decomposition-tests: Likewise.
67303         * modules/uninorm/compat-decomposition-tests: Likewise.
67304         * modules/uninorm/composition-tests: Likewise.
67305         * modules/uninorm/decomposing-form-tests: Likewise.
67306         * modules/uninorm/decomposition-tests: Likewise.
67307         * modules/uninorm/filter-tests: Likewise.
67308         * modules/uninorm/nfc-tests: Likewise.
67309         * modules/uninorm/nfd-tests: Likewise.
67310         * modules/uninorm/nfkc-tests: Likewise.
67311         * modules/uninorm/nfkd-tests: Likewise.
67312         * modules/uninorm/u8-normcmp-tests: Likewise.
67313         * modules/uninorm/u8-normcoll-tests: Likewise.
67314         * modules/uninorm/u16-normcmp-tests: Likewise.
67315         * modules/uninorm/u16-normcoll-tests: Likewise.
67316         * modules/uninorm/u32-normcmp-tests: Likewise.
67317         * modules/uninorm/u32-normcoll-tests: Likewise.
67318         * modules/unistdio/u8-asnprintf-tests: Likewise.
67319         * modules/unistdio/u8-vasnprintf-tests: Likewise.
67320         * modules/unistdio/u8-vasprintf-tests: Likewise.
67321         * modules/unistdio/u8-vsnprintf-tests: Likewise.
67322         * modules/unistdio/u8-vsprintf-tests: Likewise.
67323         * modules/unistdio/u16-asnprintf-tests: Likewise.
67324         * modules/unistdio/u16-vasnprintf-tests: Likewise.
67325         * modules/unistdio/u16-vasprintf-tests: Likewise.
67326         * modules/unistdio/u16-vsnprintf-tests: Likewise.
67327         * modules/unistdio/u16-vsprintf-tests: Likewise.
67328         * modules/unistdio/u32-asnprintf-tests: Likewise.
67329         * modules/unistdio/u32-vasnprintf-tests: Likewise.
67330         * modules/unistdio/u32-vasprintf-tests: Likewise.
67331         * modules/unistdio/u32-vsnprintf-tests: Likewise.
67332         * modules/unistdio/u32-vsprintf-tests: Likewise.
67333         * modules/unistdio/ulc-asnprintf-tests: Likewise.
67334         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
67335         * modules/unistdio/ulc-vasprintf-tests: Likewise.
67336         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
67337         * modules/unistdio/ulc-vsprintf-tests: Likewise.
67338         * modules/unistr/u8-check-tests: Likewise.
67339         * modules/unistr/u8-chr-tests: Likewise.
67340         * modules/unistr/u8-cmp-tests: Likewise.
67341         * modules/unistr/u8-cmp2-tests: Likewise.
67342         * modules/unistr/u8-cpy-alloc-tests: Likewise.
67343         * modules/unistr/u8-cpy-tests: Likewise.
67344         * modules/unistr/u8-mblen-tests: Likewise.
67345         * modules/unistr/u8-mbsnlen-tests: Likewise.
67346         * modules/unistr/u8-mbtouc-tests: Likewise.
67347         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
67348         * modules/unistr/u8-mbtoucr-tests: Likewise.
67349         * modules/unistr/u8-move-tests: Likewise.
67350         * modules/unistr/u8-next-tests: Likewise.
67351         * modules/unistr/u8-prev-tests: Likewise.
67352         * modules/unistr/u8-set-tests: Likewise.
67353         * modules/unistr/u8-stpcpy-tests: Likewise.
67354         * modules/unistr/u8-stpncpy-tests: Likewise.
67355         * modules/unistr/u8-strcat-tests: Likewise.
67356         * modules/unistr/u8-strcmp-tests: Likewise.
67357         * modules/unistr/u8-strcoll-tests: Likewise.
67358         * modules/unistr/u8-strcpy-tests: Likewise.
67359         * modules/unistr/u8-strdup-tests: Likewise.
67360         * modules/unistr/u8-strlen-tests: Likewise.
67361         * modules/unistr/u8-strmblen-tests: Likewise.
67362         * modules/unistr/u8-strmbtouc-tests: Likewise.
67363         * modules/unistr/u8-strncat-tests: Likewise.
67364         * modules/unistr/u8-strncmp-tests: Likewise.
67365         * modules/unistr/u8-strncpy-tests: Likewise.
67366         * modules/unistr/u8-strnlen-tests: Likewise.
67367         * modules/unistr/u8-to-u16-tests: Likewise.
67368         * modules/unistr/u8-to-u32-tests: Likewise.
67369         * modules/unistr/u8-uctomb-tests: Likewise.
67370         * modules/unistr/u16-check-tests: Likewise.
67371         * modules/unistr/u16-chr-tests: Likewise.
67372         * modules/unistr/u16-cmp-tests: Likewise.
67373         * modules/unistr/u16-cmp2-tests: Likewise.
67374         * modules/unistr/u16-cpy-alloc-tests: Likewise.
67375         * modules/unistr/u16-cpy-tests: Likewise.
67376         * modules/unistr/u16-mblen-tests: Likewise.
67377         * modules/unistr/u16-mbsnlen-tests: Likewise.
67378         * modules/unistr/u16-mbtouc-tests: Likewise.
67379         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
67380         * modules/unistr/u16-mbtoucr-tests: Likewise.
67381         * modules/unistr/u16-move-tests: Likewise.
67382         * modules/unistr/u16-next-tests: Likewise.
67383         * modules/unistr/u16-prev-tests: Likewise.
67384         * modules/unistr/u16-set-tests: Likewise.
67385         * modules/unistr/u16-stpcpy-tests: Likewise.
67386         * modules/unistr/u16-stpncpy-tests: Likewise.
67387         * modules/unistr/u16-strcat-tests: Likewise.
67388         * modules/unistr/u16-strcmp-tests: Likewise.
67389         * modules/unistr/u16-strcoll-tests: Likewise.
67390         * modules/unistr/u16-strcpy-tests: Likewise.
67391         * modules/unistr/u16-strdup-tests: Likewise.
67392         * modules/unistr/u16-strlen-tests: Likewise.
67393         * modules/unistr/u16-strmblen-tests: Likewise.
67394         * modules/unistr/u16-strmbtouc-tests: Likewise.
67395         * modules/unistr/u16-strncat-tests: Likewise.
67396         * modules/unistr/u16-strncmp-tests: Likewise.
67397         * modules/unistr/u16-strncpy-tests: Likewise.
67398         * modules/unistr/u16-strnlen-tests: Likewise.
67399         * modules/unistr/u16-to-u32-tests: Likewise.
67400         * modules/unistr/u16-to-u8-tests: Likewise.
67401         * modules/unistr/u16-uctomb-tests: Likewise.
67402         * modules/unistr/u32-check-tests: Likewise.
67403         * modules/unistr/u32-chr-tests: Likewise.
67404         * modules/unistr/u32-cmp-tests: Likewise.
67405         * modules/unistr/u32-cmp2-tests: Likewise.
67406         * modules/unistr/u32-cpy-alloc-tests: Likewise.
67407         * modules/unistr/u32-cpy-tests: Likewise.
67408         * modules/unistr/u32-mblen-tests: Likewise.
67409         * modules/unistr/u32-mbsnlen-tests: Likewise.
67410         * modules/unistr/u32-mbtouc-tests: Likewise.
67411         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
67412         * modules/unistr/u32-mbtoucr-tests: Likewise.
67413         * modules/unistr/u32-move-tests: Likewise.
67414         * modules/unistr/u32-next-tests: Likewise.
67415         * modules/unistr/u32-prev-tests: Likewise.
67416         * modules/unistr/u32-set-tests: Likewise.
67417         * modules/unistr/u32-stpcpy-tests: Likewise.
67418         * modules/unistr/u32-stpncpy-tests: Likewise.
67419         * modules/unistr/u32-strcat-tests: Likewise.
67420         * modules/unistr/u32-strcmp-tests: Likewise.
67421         * modules/unistr/u32-strcoll-tests: Likewise.
67422         * modules/unistr/u32-strcpy-tests: Likewise.
67423         * modules/unistr/u32-strdup-tests: Likewise.
67424         * modules/unistr/u32-strlen-tests: Likewise.
67425         * modules/unistr/u32-strmblen-tests: Likewise.
67426         * modules/unistr/u32-strmbtouc-tests: Likewise.
67427         * modules/unistr/u32-strncat-tests: Likewise.
67428         * modules/unistr/u32-strncmp-tests: Likewise.
67429         * modules/unistr/u32-strncpy-tests: Likewise.
67430         * modules/unistr/u32-strnlen-tests: Likewise.
67431         * modules/unistr/u32-to-u16-tests: Likewise.
67432         * modules/unistr/u32-to-u8-tests: Likewise.
67433         * modules/unistr/u32-uctomb-tests: Likewise.
67434         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
67435         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
67436         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
67437         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
67438         * modules/uniwidth/u8-strwidth-tests: Likewise.
67439         * modules/uniwidth/u8-width-tests: Likewise.
67440         * modules/uniwidth/u16-strwidth-tests: Likewise.
67441         * modules/uniwidth/u16-width-tests: Likewise.
67442         * modules/uniwidth/u32-strwidth-tests: Likewise.
67443         * modules/uniwidth/u32-width-tests: Likewise.
67444         * modules/uniwidth/width-tests: Likewise.
67446 2010-05-18  Richard Jones  <rjones@redhat.com>
67448         doc: users.txt: list hivex
67449         * users.txt: Add hivex.
67451 2010-05-18  Richard Jones  <rjones@redhat.com>
67453         doc: users.txt: list febootstrap
67454         * users.txt: Add febootstrap.
67456 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
67458         bootstrap: fix an error when gnulib is not used as a git submodule
67459         * build-aux/bootstrap (gnulib_path): If its length is zero then
67460         assign "gnulib" to it.
67461         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
67463 2010-05-16  Bruno Haible  <bruno@clisp.org>
67465         Avoid autoconf warnings about AM_ICONV.
67466         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
67467         2.64.
67469 2010-05-16  Bruno Haible  <bruno@clisp.org>
67471         absolute-header: Make the macro usable in more situations.
67472         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
67473         from gl_ABSOLUTE_HEADER.
67474         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
67476 2010-05-16  James Youngman  <jay@gnu.org>
67478         doc: update users.txt
67479         * users.txt: Add CSSC.
67481 2010-05-16  Jim Meyering  <meyering@redhat.com>
67483         init.sh: fix an error in the previous change; add more comments
67484         * tests/init.sh: Compare exit code in loop against 9, not 2.
67485         Patch by Bruno Haible.
67486         Make the two tests more similar by adding an empty "then" clause.
67487         Add comments.
67489         init.sh: avoid unnecessary shell re-exec
67490         * tests/init.sh: Improve the re-exec-required check to first test the
67491         current shell.  If it passes the test, do not search for a shell that
67492         does pass, and do not re-exec.  This test is particularly contorted to
67493         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
67494         of $(...) evokes a syntax error and causes immediate shell exit with
67495         status 2.  Bruno Haible reported that the re-exec made it impossible
67496         to single-step through any init.sh-using script.
67498 2010-05-16  Bruno Haible  <bruno@clisp.org>
67500         Fix collision between gnulib's and libintl's printf replacements.
67501         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
67502         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
67503         (printf): When using GNU C, map the __printf__ function to rpl_printf
67504         via __asm__. When not using GNU C, define rpl_printf instead of
67505         __printf__.
67506         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
67507         commit.
67508         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
67509         commit.
67510         * m4/asm-underscore.m4: New file.
67511         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
67512         * modules/stdio (Files): Add m4/asm-underscore.m4.
67513         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
67514         Reported by Ben Pfaff.
67516 2010-05-16  Bruno Haible  <bruno@clisp.org>
67518         verify: Avoid skipping the test on openSUSE 11.0.
67519         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
67521 2010-05-13  Bruno Haible  <bruno@clisp.org>
67523         Avoid useless warnings from G++.
67524         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
67525         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
67526         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67528 2010-05-11  Jim Meyering  <meyering@redhat.com>
67530         maint.mk: tweak preceding change
67531         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
67532         regexps tighter by anchoring at EOL, and make the new group "shy"
67533         for slightly decreased overhead.
67535 2010-05-11  Eric Blake  <eblake@redhat.com>
67537         maint.mk: gnulib doesn't guarantee NSIG
67538         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
67540 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67542         test-pwrite.c: Remove unused variable declaration.
67543         * tests/test-pwrite.c (main): Remove read_buf declaration.
67545         Remove useless test-pwrite.sh file.
67546         * tests/test-pwrite.sh: Delete file.
67547         * modules/pwrite-tests: Remove references.
67548         Reported by Bruno Haible.
67550 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67552         init.sh: fix a typo
67553         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
67555 2010-05-10  Jim Meyering  <meyering@redhat.com>
67557         maint.mk: avoid using a temporary file in the always-defined-macros check
67558         * top/maint.mk (.re-defmac): Remove rule.
67559         (gl_trap_): Remove definition.
67560         (sc_prohibit_always-defined_macros): Rewrite not to create and
67561         depend on a temporary file.  Instead, depend on GNU grep's ability
67562         to read a list of regular expressions from stdin when given "-f -".
67564 2010-05-09  Bruno Haible  <bruno@clisp.org>
67566         Update to GNU gettext 0.18, part 1.
67567         * m4/gettext.m4: Update to GNU gettext 0.18.
67568         * m4/intl.m4: Likewise.
67569         * m4/po.m4: Likewise.
67570         * modules/gettext (Files): Add m4/fcntl-o.m4.
67571         (configure.ac): Require gettext infrastructure from version 0.18.
67573 2010-05-09  Jim Meyering  <meyering@redhat.com>
67575         init.sh: enable MALLOC_PERTURB_
67576         * tests/init.sh: Enable glibc's malloc-perturbing option.
67578         maint.mk: improve sc_cross_check_PATH_usage_in_tests
67579         With my recent change in init.sh from the two-line form:
67580             -#   : ${srcdir=.}
67581             -#   . "$srcdir/init.sh"; path_prepend_ .
67582             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
67583         I noticed that using the one-line form would cause this test
67584         to fail with a false-positive, or to stop working altogether,
67585         depending on whether help-version changed or all the tests did.
67586         * top/maint.mk (_hv_regex): Remove this definition.
67587         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
67588         (_hv_regex_strong): Use a stronger regex to check for conformance.
67589         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
67590         Give a separate diagnostic for lack of conforming use.
67592         maint.mk: prohibit definition of symbols defined by gnulib
67593         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
67594         definition of symbols defined by gnulib.
67596 2010-05-09  Bruno Haible  <bruno@clisp.org>
67598         acl: Avoid test failure on Cygwin-hosted mingw.
67599         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
67601 2010-05-09  Bruno Haible  <bruno@clisp.org>
67603         error: Use system's fcntl function.
67604         * lib/error.c (fcntl): Undefine.
67606 2010-05-09  Jim Meyering  <meyering@redhat.com>
67608         verify: adjust formatting to be more consistent
67609         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
67610         argument-list '('s, and after one comma.
67612 2010-05-09  Bruno Haible  <bruno@clisp.org>
67614         error: More reliable output on mingw.
67615         * lib/error.c: Include <windows.h>.
67616         (is_open): New function.
67617         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
67618         defined.
67620 2010-05-09  Bruno Haible  <bruno@clisp.org>
67622         vasnprintf: Fix syntax errors in libintl build on mingw.
67623         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
67624         pad_ourselves and prec_ourselves after use.
67626 2010-05-08  Bruno Haible  <bruno@clisp.org>
67628         * lib/config.charset: Update comments for Cygwin 1.7.
67629         * lib/localcharset.c: Likewise.
67631 2010-05-07  Jim Meyering  <meyering@redhat.com>
67633         init.sh: improve comments
67634         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
67635         . "${srcdir=.}/init.sh"; path_prepend_ .
67636         Add a note about path_prepend_ and the alternative of using
67637         TESTS_ENVIRONMENT.
67639 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
67641         exclude: Unescape hashed patterns in wildcard mode.
67642         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
67643         to the hash list.
67644         * tests/test-exclude8.sh: New test case.
67645         * modules/exclude-tests: Add new test.
67647 2010-05-05  Eric Blake  <eblake@redhat.com>
67649         verify: automate tests
67650         * modules/verify-tests: New module.
67651         * tests/test-verify.sh: New file.
67652         * tests/test-verify.c: Guard each negative test with a unique id.
67653         Also avoid warning about unused left hand of comma expressions.
67655 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67657         Further improvements to verify.h, suggested by Eric Blake.
67658         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
67659         the GL_* versions, to avoid collision with OpenGL.
67660         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
67661         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
67662         than testing merely whether it's defined.
67664         Modify verify.h to pacify gcc -Wredundant_decls.
67665         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
67666         These use the prefix "GL_" since they're likely to be useful elsewhere.
67667         We may need to break them out into a different .h file.
67668         (__COUNTER__): Define to 0 if the compiler doesn't support it.
67669         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
67670         of verify_function__.
67672 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67674         Tests for module pwrite.
67675         * modules/pwrite-tests: New file.
67676         * tests/test-pwrite.sh: New file.
67677         * tests/test-pwrite.c: New file.
67679         New module pwrite.
67680         * lib/unistd.in.h (pwrite): New declaration.
67681         * lib/pwrite.c: New file, from glibc with modifications.
67682         * m4/pwrite.m4: New file.
67683         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
67684         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
67685         REPLACE_PWRITE.
67686         * modules/pwrite: New file.
67687         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
67688         REPLACE_PWRITE.
67689         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
67690         * doc/posix-functions/pwrite.texi: Mention the new module.
67692 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67694         pread: Update documentation.
67695         * doc/posix-functions/pread.texi: Mention the 'pread' module.
67697 2010-05-04  Eric Blake  <eblake@redhat.com>
67699         docs: update cygwin progress
67700         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
67701         this bug.
67702         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
67703         Added in cygwin 1.7.2.
67704         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
67705         Likewise.
67706         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
67707         Likewise.
67708         * doc/glibc-functions/dup3.texi (dup3): Likewise.
67709         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
67710         * doc/glibc-functions/accept4.texi (accept4): Likewise.
67711         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
67712         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
67713         Mention nproc module.
67714         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
67715         bug in cygwin 1.7.5 addition.
67716         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
67717         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
67718         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
67719         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
67720         1.7.5.
67721         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
67722         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
67723         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
67724         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
67725         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
67726         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
67727         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
67728         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
67729         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
67730         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
67731         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
67732         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
67733         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
67734         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
67735         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
67736         Likewise.
67737         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
67738         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
67739         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
67740         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
67741         Likewise.
67742         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
67743         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
67744         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
67745         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
67746         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
67747         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
67748         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
67749         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
67750         Likewise.
67751         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
67752         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
67753         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
67754         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
67755         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
67756         Likewise.
67757         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
67758         Likewise.
67759         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
67760         Likewise.
67761         * doc/glibc-functions/xdrrec_endofrecord.texi
67762         (xdrrec_endofrecord): Likewise.
67763         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
67764         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
67765         Likewise.
67766         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
67767         Likewise.
67769 2010-05-04  Jim Meyering  <meyering@redhat.com>
67771         gendocs.sh: make its "-s FILE" option more useful
67772         * build-aux/gendocs.sh: When honoring the -s FILE option, update
67773         $PACKAGE to reflect the probably-different basename of "FILE".
67775 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67777         bootstrap: don't ignore download_po_files failure
67778         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
67779         failure.
67781 2010-05-03  Jim Meyering  <meyering@redhat.com>
67783         maint.mk: allow to pass options to gendocs.sh
67784         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
67785         (gendocs_options_): New overridable variable.
67787         gnu-web-doc-update: don't ignore configure or build failure
67788         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
67790         announce-gen: backslash-escape '@'s in --help output
67791         * build-aux/announce-gen: Fix syntax errors.
67793         maint.mk, announce-gen: allow project-specific announcement mail headers
67794         * top/maint.mk (translation_project_): Define default.
67795         (announcement_Cc_, announcement_mail_headers_): Likewise.
67796         (announcement): Invoke announce-gen with new --mail-headers option.
67797         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
67799         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
67800         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
67801         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
67802         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
67803         line in the "err2" output file when running "make check" in verbose
67804         mode (i.e., with set -x enabled).
67806 2010-05-03  Bruno Haible  <bruno@clisp.org>
67808         wctob: Fix for weird platforms.
67809         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
67810         argument value.
67812 2010-05-03  Jim Meyering  <meyering@redhat.com>
67814         maint.mk: prohibit unwarranted use of <strings.h>
67815         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
67816         strings.h in a file that does not also use strcasecmp, strncasecmp,
67817         ffs or ffsll.
67819         maint.mk: remove obsolete comments
67820         * top/maint.mk: Remove stale, commented-out rules.
67822 2010-05-02  Bruno Haible  <bruno@clisp.org>
67824         wcwidth: Declare also when it's aliased.
67825         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
67826         macro.
67828 2010-05-02  Bruno Haible  <bruno@clisp.org>
67830         Fix regression from 2010-04-25.
67831         * gnulib-tool (func_modules_transitive_closure): Check the status of
67832         all modules, not only of the tests that are of the form foo-tests where
67833         foo is a module.
67835 2010-05-02  Bruno Haible  <bruno@clisp.org>
67837         wctob: Work around nasty Cygwin 1.7.2 bug.
67838         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
67839         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
67841 2010-05-01  Bruno Haible  <bruno@clisp.org>
67843         fpurge: Sharper test.
67844         * tests/test-fpurge.c (main): Add one more ftell check.
67845         * modules/fpurge-tests (Depends-on): Add ftell.
67846         Suggested by Eric Blake.
67848 2010-05-01  Bruno Haible  <bruno@clisp.org>
67850         ftello: Another test.
67851         * tests/test-ftello3.c: New file.
67852         * modules/ftello-tests (Files): Add it.
67853         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
67854         MOSTLYCLEANFILES.
67856         ftell: Another test.
67857         * tests/test-ftell3.c: New file.
67858         * modules/ftell-tests (Files): Add it.
67859         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
67860         MOSTLYCLEANFILES.
67862 2010-05-01  Bruno Haible  <bruno@clisp.org>
67864         ftell, ftello: Work around Solaris bug.
67865         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
67866         * lib/ftello.c: Include stdio-impl.h.
67867         (ftello): On Solaris, when _IOWRT is set, compute the result without
67868         looking at _IOREAD.
67869         * modules/ftello (Files): Add lib/stdio-impl.h.
67870         * doc/posix-functions/ftell.texi: Mention Solaris bug.
67871         * doc/posix-functions/ftello.texi: Likewise.
67872         Reported by Eric Blake.
67874 2010-05-01  Bruno Haible  <bruno@clisp.org>
67876         freading: Adapt to special meaning of _IOREAD flag on Solaris.
67877         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
67878         the _IOWRT flag is also set.
67880 2010-05-01  Bruno Haible  <bruno@clisp.org>
67882         Fix doc about a HP-UX stdio bug.
67883         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
67884         * doc/posix-functions/ftello.texi: Likewise.
67886 2010-05-01  Bruno Haible  <bruno@clisp.org>
67888         lseek test: Fix failure on Solaris.
67889         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
67890         output.
67892 2010-04-30  Jim Meyering  <meyering@redhat.com>
67894         bootstrap: don't ignore failure to generate po*/Makevars
67895         * build-aux/bootstrap (with_gettext): Don't ignore failure
67896         to create po/Makevars or runtime-po/Makevars.
67898 2010-04-29  Eric Blake  <eblake@redhat.com>
67900         headers: relax license to LGPLv2+
67901         * modules/fcntl-h (License): Relax license.
67902         * modules/getopt-posix (License): Likewise.
67903         * modules/locale (License): Likewise.
67904         * modules/math (License): Likewise.
67905         * modules/pty (License): Likewise.
67906         * modules/sched (License): Likewise.
67907         * modules/search (License): Likewise.
67908         * modules/spawn (License): Likewise.
67909         * modules/stdarg (License): Likewise.
67910         * modules/sysexits (License): Likewise.
67912 2010-04-29  Jim Meyering  <meyering@redhat.com>
67914         inttypes: relax license to LGPLv2+
67915         * modules/inttypes (License): Relax license.
67917 2010-04-29  Simon Josefsson  <simon@josefsson.org>
67919         * top/maint.mk (indent): Run twice to produce idempotent results.
67921 2010-04-28  Bruno Haible  <bruno@clisp.org>
67923         getdate: Generate getdate.c in the source directory.
67924         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
67925         MOSTLYCLEANFILES.
67926         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
67928 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
67930         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
67931         is not declared as a const *; avoid warnings in that case.
67933 2010-04-28  Eric Blake  <eblake@redhat.com>
67935         canonicalize-lgpl: avoid compiler warning
67936         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
67937         declaration' / 'extraneous semicolon' warning with some compilers.
67938         Reported by Andreas Gruenbacher.
67940 2010-04-28  Jim Meyering  <meyering@redhat.com>
67942         init.sh: ensure a more reliable exit status when exiting via trap
67943         * tests/init.sh (setup_): Don't rely on $? in signal handler.
67944         Inspired by patches from Dmitry V. Levin.
67945         Also trap on signal 3 (SIGQUIT).
67947 2010-04-27  Bruno Haible  <bruno@clisp.org>
67949         Update doc about utimes().
67950         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
67951         'utimens' module.
67952         Reported by Andreas Gruenbacher <agruen@suse.de>.
67954 2010-04-27  Eric Blake  <eblake@redhat.com>
67956         full-read, full-write: relax license
67957         * modules/full-read (License): Drop to LGPLv2+.
67958         * modules/full-write (License): Likewise.
67959         * modules/safe-read (License): Likewise.
67960         * modules/safe-write (License): Likewise.
67962         pthread: mention library for linking
67963         * modules/pthread (Link): Mention $(LIB_PTHREAD).
67965 2010-04-27  Jim Meyering  <meyering@redhat.com>
67967         maint.mk: fix a bug introduced in last change
67968         * top/maint.mk (gl_assured_headers_): Now that all names are on
67969         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
67970         is not anchored to end of word, it should be adequate.
67972         maint.mk: avoid side-effect in latest syntax-check
67973         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
67974         to run commands via $(shell...), and hence to incur cost only when
67975         the new rule is actually run.
67977         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
67978         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
67979         and use that to create a regexp used to detect all #if HAVE_..._H uses.
67980         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
67981         (gl_assured_headers_, az_, AZ_): Define.
67982         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
67984 2010-04-26  Jim Meyering  <jim@meyering.net>
67985             Bruno Haible  <bruno@clisp.org>
67987         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
67988         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
67989         Prompted by an exchange with Gilles Espinasse.
67991 2010-04-26  Jim Meyering  <meyering@redhat.com>
67993         git-version-gen: aesthetic tweak
67994         * build-aux/git-version-gen: Use "$nl" rather than a literal,
67995         so that the command remains on a single line.
67997 2010-04-26  Eric Blake  <eblake@redhat.com>
67999         git-version-gen: allow use on EBCDIC hosts
68000         * build-aux/git-version-gen (dirty): Use literal rather than tying
68001         ourselves to ascii.
68002         Reported by Steve Goetze.
68004 2010-04-25  Bruno Haible  <bruno@clisp.org>
68006         netdb: Add support for GNULIB_POSIXCHECK.
68007         * lib/netdb.in.h: Include warn-on-use.h.
68008         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
68009         functions are used when GNULIB_POSIXCHECK is defined and the
68010         getaddrinfo module is not in use.
68011         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
68012         freeaddrinfo, gai_strerror, getnameinfo are declared.
68013         * modules/netdb (Depends-on): Add warn-on-use.
68014         (Makefile.am): Include warn-on-use.h in netdb.h.
68016 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
68018         build: avoid "make check" failure without .git/ directory
68019         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
68020         there is no .git/ directory.
68022 2010-04-25  Bruno Haible  <bruno@clisp.org>
68024         ptsname: Fix misuse of ttyname_r.
68025         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
68026         of errno.
68028 2010-04-25  Bruno Haible  <bruno@clisp.org>
68030         ttyname_r: Make it work on Solaris 10.
68031         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
68032         if the system function has the POSIX declaration. Test whether the
68033         function fails if the buffer is less than 128 bytes large.
68034         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
68035         system's ttyname_r function. Provide a reasonably large buffer.
68036         * modules/ttyname_r (Depends-on): Add extensions.
68037         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
68039 2010-04-25  Bruno Haible  <bruno@clisp.org>
68041         Use the 'extensions' module for some more functions on Solaris.
68042         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
68043         module.
68044         * doc/posix-functions/ctime_r.texi: Likewise.
68045         * doc/posix-functions/getgrgid_r.texi: Likewise.
68046         * doc/posix-functions/getgrnam_r.texi: Likewise.
68047         * doc/posix-functions/getpwnam_r.texi: Likewise.
68048         * doc/posix-functions/getpwuid_r.texi: Likewise.
68049         * doc/posix-functions/readdir_r.texi: Likewise.
68050         * doc/posix-functions/sigwait.texi: Likewise.
68051         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
68052         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
68054 2010-04-25  Bruno Haible  <bruno@clisp.org>
68056         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
68057         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
68058         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
68059         * lib/ttyname_r.c: Include <limits.h>.
68060         (ttyname_r): Define using the system's ttyname_r function, if it exists
68061         and not on Solaris.
68062         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
68063         set.
68064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
68065         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
68066         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
68067         Reported by Simon Josefsson.
68069 2010-04-25  Bruno Haible  <bruno@clisp.org>
68071         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
68072         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
68073         * doc/posix-functions/ctime_r.texi: Likewise.
68074         * doc/posix-functions/getgrgid_r.texi: Likewise.
68075         * doc/posix-functions/getgrnam_r.texi: Likewise.
68076         * doc/posix-functions/getlogin_r.texi: Likewise.
68077         * doc/posix-functions/getpwnam_r.texi: Likewise.
68078         * doc/posix-functions/getpwuid_r.texi: Likewise.
68079         * doc/posix-functions/readdir_r.texi: Likewise.
68080         * doc/posix-functions/sigwait.texi: Likewise.
68081         * doc/posix-functions/ttyname_r.texi: Likewise.
68082         Reported by Simon Josefsson.
68084 2010-04-25  Bruno Haible  <bruno@clisp.org>
68086         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
68087         * gnulib-tool (func_usage): Document that --with-*-tests options apply
68088         also to --create-testdir.
68089         (func_acceptable): Don't consider the status of *-tests modules here.
68090         (func_modules_transitive_closure): Consider it here, before including a
68091         test module.
68092         (func_import, func_create_testdir): Set inc_all_direct_tests,
68093         inc_all_indirect_tests.
68094         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
68095         --create-testdir and --create-megatestdir.
68097 2010-04-25  Bruno Haible  <bruno@clisp.org>
68099         gnulib-tool: Add --without-*-tests options.
68100         * gnulib-tool (func_usage): Document the --without-*-tests options.
68101         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
68102         excl_unportable_tests): New variables.
68103         Fail if they are specified with --import or --update.
68104         (func_acceptable): Respect the excl_*_tests variables.
68105         (func_import): Set the excl_*_tests variables to empty.
68107 2010-04-25  Simon Josefsson  <simon@josefsson.org>
68108             Bruno Haible  <bruno@clisp.org>
68110         Work around a MacOS X 10.4 bug with openpty.
68111         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
68112         * tests/test-openpty.c (main): Close the master side explicitly.
68114 2010-04-25  Bruno Haible  <bruno@clisp.org>
68116         strnlen: Fix a C++ test error on MacOS X and Solaris.
68117         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
68118         the function is not declared.
68119         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
68120         Simon Josefsson.
68122 2010-04-24  Bruno Haible  <bruno@clisp.org>
68124         Avoid a gcc warning.
68125         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
68126         of correct type for %08lx directive.
68127         Reported by Eric Blake.
68129 2010-04-24  Bruno Haible  <bruno@clisp.org>
68131         vasnprintf: Correct errno value in case of out-of-memory.
68132         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
68133         or sprintf. Use the errno value from SNPRINTF or sprintf.
68134         Reported by Ian Beckwith <ianb@erislabs.net>.
68136 2010-04-24  Bruno Haible  <bruno@clisp.org>
68138         ansi-c++-opt: Find correct compiler when cross-compiling.
68139         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
68140         AC_CHECK_PROGS.
68141         Reported by Simon Josefsson.
68143 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
68145         vc-list-files: Add support for subversion
68146         * build-aux/vc-list-files: Use "svn list" to generate the list of
68147         files controlled by subversion.
68149 2010-04-23  Jim Meyering  <meyering@redhat.com>
68151         vc-list-files tests: convert to use init.sh
68152         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
68153         path_prepend_.
68154         Use Exit, not exit.
68155         Use skip_ rather than open coding it.
68156         Remove trap set-up and compare definitions.
68157         * tests/test-vc-list-files-git.sh: Likewise.
68158         * modules/vc-list-files-tests (Files): Add tests/init.sh.
68160 2010-04-22  Simon Josefsson  <simon@josefsson.org>
68162         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
68163         backup files.
68165 2010-04-21  Simon Josefsson  <simon@josefsson.org>
68167         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
68169 2010-04-20  Eric Blake  <eblake@redhat.com>
68171         tests: be robust to ignored SIGPIPE
68172         * tests/test-select-in.sh: Consume all output.
68173         * tests/test-lseek.sh: Check correct exit status, while avoiding
68174         EPIPE.
68176 2010-04-20  Simon Josefsson  <simon@josefsson.org>
68177             Bruno Haible  <bruno@clisp.org>
68179         visibility: Don't use -fvisibility if it leads to a warning.
68180         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
68181         yes, don't pretend that visibility works if it leads to a warning.
68182         Reported by Mike Gran <spk121@yahoo.com>.
68184 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
68186         * build-aux/bootstrap: Use "git -h" for testing for supported options
68187         instead of "git --help".  The short-form option only shows a summary,
68188         and doesn't layout the full man page.  Grep for the full option name
68189         in the summary, too.
68191 2010-04-19  Bruno Haible  <bruno@clisp.org>
68193         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
68194         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
68195         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
68196         mention of RELOCATABLE_STRIP.
68197         Reported by Sylvain Beucler <beuc@beuc.net>.
68199 2010-04-19  Bruno Haible  <bruno@clisp.org>
68201         * lib/diffseq.h: Fix typo in comment.
68202         Reported by Eric Blake.
68204 2010-04-19  Bruno Haible  <bruno@clisp.org>
68206         ioctl: Move autoconf macro to a .m4 file.
68207         * m4/ioctl.m4: New file, extracted from modules/ioctl.
68208         * modules/ioctl (Files): Add it.
68209         (configure.ac): Simply invoke gl_FUNC_IOCTL.
68210         Reported by Ian Beckwith <ianb@erislabs.net>.
68212 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
68213             Bruno Haible  <bruno@clisp.org>
68215         diffseq: Accommodate use-case with abstract arrays.
68216         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
68217         is not defined.
68218         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
68219         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
68221 2010-04-18  Bruno Haible  <bruno@clisp.org>
68223         * doc/posix-headers/stdbool.texi: More precise wording.
68225 2010-04-17  Jim Meyering  <meyering@redhat.com>
68227         maint.mk: use gnu-style indentation in an embedded perl script
68228         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
68229         Rename variable: s/two/last_two_bytes/
68231 2010-04-16  Eric Blake  <eblake@redhat.com>
68233         test-stdbool: skip test that fails with Solaris CC
68234         * tests/test-stdbool.c (f): Skip test that causes compilation
68235         error under buggy C++ compiler.
68236         * lib/stdbool.in.h: Document the limitation.
68237         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
68239         setenv: allow compilation with C++
68240         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
68241         register keyword.
68243         stdint: allow test to pass with C++
68244         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
68246         getopt: allow compilation with C++
68247         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
68248         struct.
68249         * lib/getopt.c (_getopt_internal_r): Use correct type.
68250         Reported by Dagobert Michelson, via Joel E. Denny.
68252 2010-04-16  Bruno Haible  <bruno@clisp.org>
68254         Override netdb.h always.
68255         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
68256         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
68257         Reported by Ludovic Courtès <ludo@gnu.org>.
68259 2010-04-15  Bruno Haible  <bruno@clisp.org>
68261         openpty: Fix mistake from 2010-03-21.
68262         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
68263         Reported by Simon Josefsson.
68265 2010-04-15  Eric Blake  <eblake@redhat.com>
68267         test-forkpty: fix expected signature
68268         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
68269         Reported by Simon Josefsson.
68271 2010-04-15  Jim Meyering  <meyering@redhat.com>
68273         maint.mk: texinfo_suffix_re_: correct the default regexp
68274         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
68276         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
68277         make it configurable via texinfo_suffix_re_.
68279 2010-04-14  Eric Blake  <eblake@redhat.com>
68281         strtok_r: relax license to LGPLv2+
68282         * modules/strtok_r (License): Relax license.
68283         Reported by Matthias Bolte.
68285 2010-04-14  Simon Josefsson  <simon@josefsson.org>
68287         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
68288         version 1.4.4 by default instead of requiring the libgcrypt
68289         version used during build.  This makes it possible to use the
68290         application with older but still binary compatible libgcrypt
68291         versions.
68293 2010-04-13  Eric Blake  <eblake@redhat.com>
68295         getopt-gnu: match recent glibc fixes and posix ruling
68296         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
68297         '+' handling, when requesting extensions.
68298         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
68299         'W;' handling.
68300         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
68301         * doc/posix-functions/getopt.texi (getopt): Document this.
68302         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68303         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68304         Likewise.
68306         getopt: merge bug fixes from glibc
68307         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
68308         diagnostics.  Honor '+:' correctly.  Reject ';'.
68310         getopt-posix: detect MacOS bug
68311         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
68312         optind when missing a required argument.
68313         * doc/posix-functions/getopt.texi (getopt): Document the bug.
68314         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68315         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68316         Likewise.
68318         getopt-posix: avoid spurious failure on Solaris
68319         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
68320         an indicator that setting optind=1 is sufficient for reset.
68322         getopt-posix: avoid spurious failure on FreeBSD
68323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
68324         in POSIX mode, since the m4 test uses it.
68326         gnulib-tool: silence warning on BSD sh
68327         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
68329 2010-04-13  Jim Meyering  <meyering@redhat.com>
68331         doc: users.txt: GNU patch now uses gnulib
68332         * users.txt: Add patch.
68334 2010-04-12  Jim Meyering  <meyering@redhat.com>
68336         maint.mk: generate more concise timing data for syntax-check rules
68337         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
68338         " done" from each line that reports a syntax-check test duration.
68340 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
68342         git-version-gen: use "git update-index..." rather than "git status"
68343         * build-aux/git-version-gen: Use git update-index --refresh, not
68344         "git status".  With some versions of git, "git status" would fail
68345         to update the index and result in an unwarranted "-dirty" suffix.
68347 2010-04-11  Jim Meyering  <meyering@redhat.com>
68349         openat: correct formatting (no semantic change)
68350         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
68351         Suggested by Bruno Haible.
68353 2010-04-11  Bruno Haible  <bruno@clisp.org>
68355         Stricter declaration checking in testdirs.
68356         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68357         If for_tests is true, augment AM_CPPFLAGS to define
68358         GNULIB_STRICT_CHECKING.
68359         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
68360         GNULIB_STRICT_CHECKING is defined, verify that the function is
68361         declared.
68363 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
68364             Bruno Haible  <bruno@clisp.org>
68366         libunistring: Improve configure output.
68367         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
68368         Don't say "consider installing GNU libunistring" when checking again
68369         with libiconv.
68371 2010-04-11  Bruno Haible  <bruno@clisp.org>
68373         libunistring: Correct value of $LTLIBUNISTRING.
68374         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
68375         correct the value of $LTLIBUNISTRING.
68377 2010-04-11  Bruno Haible  <bruno@clisp.org>
68379         havelib: Add static libraries to LIBS in the right order.
68380         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
68381         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
68383 2010-04-11  Bruno Haible  <bruno@clisp.org>
68385         libunistring: Detect libunistring also when it depends on libiconv.
68386         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
68387         the second AC_LIB_HAVE_LINKFLAGS invocation.
68389 2010-04-11  James Youngman  <jay@gnu.org>
68391         close-stream: declare local scalars to be "const"
68392         * lib/close-stream.c (close_stream): Make boolean variables const
68393         to document the fact that we set but do not change them.
68395 2010-04-11  Bruno Haible  <bruno@clisp.org>
68397         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
68399 2010-04-11  Jim Meyering  <meyering@redhat.com>
68401         maint.mk: don't include dist-check.mk
68402         * top/maint.mk: Remove bogus include directive.
68404         maint.mk: improve empty-line-at-EOF check
68405         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
68406         solution, rather than tail+Perl-based one.  The latter would read
68407         a few kilobytes from the end of each file, and did not handle empty
68408         files properly.
68410         maint.mk: print the elapsed time for each syntax-check rule
68411         * top/maint.mk (sc_m_rules_): Save start time in a file.
68412         (sc_z_rules_): New rules: remove temp file and print elapsed time.
68413         (local-check): Interpose the .z rules
68415 2010-04-11  Jim Meyering  <meyering@redhat.com>
68417         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
68418         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
68419         empty file with one that ends in an empty line.
68421 2010-04-10  Bruno Haible  <bruno@clisp.org>
68423         mkdir: Make it work on mingw64.
68424         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
68425         * lib/mkdir.c: Update comment.
68426         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
68428 2010-04-10  Bruno Haible  <bruno@clisp.org>
68430         Don't override improved macro from newer autoconf.
68431         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
68432         autoconf >= 2.62.
68433         Reported by Joel E. Denny <jdenny@clemson.edu>.
68435 2010-04-10  Jim Meyering  <meyering@redhat.com>
68437         maint.mk: new syntax-check rule: prohibit empty lines at end of file
68438         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
68440         maint.mk: correct a diagnostic
68441         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
68442         in diagnostic; now use $prohibit.
68444 2010-04-10  Bruno Haible  <address@hidden>
68446         fchownat: Fix a C++ test error on Solaris 8.
68447         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
68448         the function does not exist.
68450 2010-04-10  Bruno Haible  <bruno@clisp.org>
68452         vasnprintf: Add more tests.
68453         * tests/test-vasnprintf-posix.c: Include <errno.h>.
68454         (test_function): Test converting an invalid wide string.
68456         vasnprintf: Correct handling of unconvertible wide string arguments.
68457         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
68458         VASNPRINTF.
68459         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
68460         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
68461         smaller than the expected maximum need for the directive. Set errno to
68462         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
68463         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
68464         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
68465         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
68466         * modules/vasnprintf (Files): Add m4/printf.m4.
68467         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68469 2010-04-10  Bruno Haible  <bruno@clisp.org>
68471         vasnprintf: Fix crash in %ls directive.
68472         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
68473         string is passed as argument to %ls, with no precision and no width.
68474         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68476 2010-04-10  Bruno Haible  <bruno@clisp.org>
68478         vasnprintf: Fix multiple test failures on mingw.
68479         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
68480         _snprintf, or snwprintf, not _snwprintf.
68482 2010-04-10  Bruno Haible  <bruno@clisp.org>
68484         write: Fix a C++ test error on mingw.
68485         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
68487 2010-04-10  Bruno Haible  <bruno@clisp.org>
68489         vasnprintf test: Reduce code duplication.
68490         * tests/test-vasnprintf.c (test_function): New function, extracted from
68491         test_vasnprintf.
68492         (test_vasnprintf, test_asnprintf): Invoke it.
68494 2010-04-10  Bruno Haible  <bruno@clisp.org>
68496         strnlen: Fix warning in C++ mode on MacOS X.
68497         * lib/string.in.h (strnlen): Use the modern idiom.
68498         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
68499         defining strnlen as a macro already in <config.h>.
68500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68501         REPLACE_STRNLEN.
68502         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
68503         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68505 2010-04-08  James Youngman  <jay@gnu.org>
68507         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
68508         the example.
68510 2010-04-09  Jim Meyering  <meyering@redhat.com>
68512         maint.mk: print better diagnostic when there is no $(_hv_file)
68513         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
68514         announce that when $(_hv_file) (aka help-version) does not exist.
68516         init.sh: run tr in the "C" locale to avoid multibyte interpretation
68517         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
68518         not try to interpret its random input bytes.  Jarno Rajahalme reported
68519         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
68520         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
68521         (mktempd_): Likewise, just in case.
68523         ftruncate: add two years to projected module removal date: 2012
68524         * m4/ftruncate.m4: Adjust comments.
68526         ftruncate: mark module as obsolete; even MinGW provides it, now
68527         * modules/ftruncate (Status): Obsolete.
68528         (Notice): Say that.
68529         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
68530         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
68532 2010-04-08  Bruno Haible  <bruno@clisp.org>
68534         Fix side effects from tests-related modules.
68535         * modules/dprintf-posix (Comment): New section.
68536         * modules/fprintf-posix (Comment): Likewise.
68537         * modules/obstack-printf-posix (Comment): Likewise.
68538         * modules/printf-posix (Comment): Likewise.
68539         * modules/snprintf-posix (Comment): Likewise.
68540         * modules/sprintf-posix (Comment): Likewise.
68541         * modules/vasnprintf-posix (Comment): Likewise.
68542         * modules/vasprintf-posix (Comment): Likewise.
68543         * modules/vdprintf-posix (Comment): Likewise.
68544         * modules/vfprintf-posix (Comment): Likewise.
68545         * modules/vprintf-posix (Comment): Likewise.
68546         * modules/vsnprintf-posix (Comment): Likewise.
68547         * modules/vsprintf-posix (Comment): Likewise.
68548         * modules/xprintf-posix (Comment): Likewise.
68549         * modules/xvasprintf-posix (Comment): Likewise.
68550         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
68551         * modules/floorf-tests (Depends-on): Likewise.
68552         * modules/round-tests (Depends-on): Likewise.
68553         * modules/roundf-tests (Depends-on): Likewise.
68554         * modules/trunc-tests (Depends-on): Likewise.
68555         * modules/truncf-tests (Depends-on): Likewise.
68556         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
68557         'fprintf-posix' module is not present.
68558         * tests/test-floorf2.c (check): Likewise.
68559         * tests/test-trunc2.c (check): Likewise.
68560         * tests/test-truncf2.c (check): Likewise.
68561         * tests/test-round2.c (equal): Likewise.
68562         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68564 2010-04-07  Karl Berry  <karl@gnu.org>
68566         * config/srclist.txt,
68567         * config/srclistvars.sh,
68568         * config/srclist-update: doc fixes.
68570 2010-04-07  Jim Meyering  <meyering@redhat.com>
68572         maint.mk: add a PATH crosschecking syntax-check rule
68573         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
68574         Useful if you use a test like the one in help-version (coreutils,
68575         diffutils, grep, gzip) that ensures $(VERSION) matches what is
68576         printed by prog --version.
68578 2010-04-06  Bruno Haible  <bruno@clisp.org>
68580         Fix link error on mingw.
68581         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
68582         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
68584 2010-04-06  Bruno Haible  <bruno@clisp.org>
68586         Assume rmdir exists.
68587         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
68589 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
68591         doc: update users.txt
68592         * users.txt: Add gcal.
68594 2010-04-06  Jim Meyering  <meyering@redhat.com>
68596         init.sh: simply unset TMPDIR rather than risking env -i
68597         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
68598         although it probably works fine on all Unix-based systems, some
68599         systems (Cygwin?) cannot tolerate a totally cleared environment.
68600         Suggestion from Eric Blake.
68602 2010-04-06  Jim Meyering  <meyering@redhat.com>
68604         init.sh: portability fix: use env's POSIX-specified -i option not -u
68605         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
68606         than unportable env -u.  Solaris 5.11's env lacks support for -u.
68608 2010-04-05  Bruno Haible  <bruno@clisp.org>
68610         btowc: Work around Cygwin 1.7.2 bug.
68611         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
68612         does not map NUL to 0.
68613         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
68615 2010-04-05  Bruno Haible  <bruno@clisp.org>
68617         Make the multithread modules work on Cygwin 1.7.2.
68618         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
68619         imported symbols can be declared weak, so that it returns "no" on
68620         Cygwin 1.7.2.
68622 2010-04-05  Bruno Haible  <bruno@clisp.org>
68624         Use the module 'strncat'.
68625         * modules/unistr/u8-strncat (Depends-on): Add strncat.
68627         Tests for module 'strncat'.
68628         * modules/strncat-tests: New file.
68629         * tests/test-strncat.c: New file.
68631         New module 'strncat'.
68632         * lib/string.in.h (strncat): New declaration.
68633         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
68634         * m4/strncat.m4: New file, based on m4/memchr.m4.
68635         * modules/strncat: New file.
68636         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
68637         is declared.
68638         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
68639         REPLACE_STRNCAT.
68640         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
68641         REPLACE_STRNCAT.
68642         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
68643         module.
68644         * tests/test-string-c++.cc: Check signature of strncat.
68646 2010-04-05  Jim Meyering  <meyering@redhat.com>
68648         xstrtoumax-tests: convert to use init.sh
68649         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
68650         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68651         Use Exit, not exit.
68652         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68654         xstrtoimax-tests: convert to use init.sh
68655         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
68656         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68657         Use Exit, not exit.
68658         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68660 2010-04-05  Bruno Haible  <bruno@clisp.org>
68662         sys_socket: Avoid #define replacements in C++ mode.
68663         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
68664         warning to the function if possible, rather than #defining the symbol
68665         to a dysfunctional alias.
68667 2010-04-05  Bruno Haible  <bruno@clisp.org>
68669         fseeko: Fix C++ test error on mingw.
68670         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
68671         gl_FUNC_FSEEKO.
68672         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
68673         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
68674         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
68675         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
68677 2010-04-05  Bruno Haible  <bruno@clisp.org>
68679         duplocale: Improve test output.
68680         * tests/test-duplocale.c (main): Print reason for skipped test.
68682 2010-04-05  Bruno Haible  <bruno@clisp.org>
68684         Assume rmdir exists.
68685         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
68686         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
68688 2010-04-05  Bruno Haible  <bruno@clisp.org>
68690         Fix link error on Solaris 8 with cc.
68691         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
68693 2010-04-05  Bruno Haible  <bruno@clisp.org>
68695         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
68696         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
68698 2010-04-05  Bruno Haible  <bruno@clisp.org>
68700         vasprintf: Update documentation.
68701         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
68703 2010-04-05  Bruno Haible  <bruno@clisp.org>
68705         ptsname: Improve test.
68706         * tests/test-ptsname.c (main): Also try the various master names of BSD
68707         systems.
68709 2010-04-05  Bruno Haible  <bruno@clisp.org>
68711         memchr: Avoid a possible C++ test error.
68712         * lib/string.in.h (memchr): Provide declaration if function is missing.
68713         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
68714         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
68715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
68716         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
68718 2010-04-05  Bruno Haible  <bruno@clisp.org>
68720         strtok_r: Improve idiom.
68721         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
68722         AC_LIBOBJ is used.
68724 2010-04-05  Bruno Haible  <bruno@clisp.org>
68726         strdup: Improve idiom.
68727         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
68728         AC_LIBOBJ is used.
68729         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
68730         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
68731         when AC_LIBOBJ is used.
68733 2010-04-05  Bruno Haible  <bruno@clisp.org>
68735         mbsinit, mbrtowc, wcrtomb: Improve idioms.
68736         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
68737         don't set REPLACE_MBSINIT to 1.
68738         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
68739         don't set REPLACE_MBRTOWC to 1.
68740         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
68741         exist, don't set REPLACE_MBSRTOWCS to 1.
68742         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
68743         exist, don't set REPLACE_MBSNRTOWCS to 1.
68744         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
68745         don't set REPLACE_WCRTOMB to 1.
68746         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
68747         exist, don't set REPLACE_WCSRTOMBS to 1.
68748         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
68749         exist, don't set REPLACE_WCSNRTOMBS to 1.
68751 2010-04-05  Bruno Haible  <bruno@clisp.org>
68753         ldexpl: Improve idiom.
68754         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
68755         make sure to set HAVE_DECL_LDEXPL to 0.
68757 2010-04-05  Jim Meyering  <meyering@redhat.com>
68759         xstrtol-tests: convert to use init.sh
68760         * modules/xstrtol-tests (Files): Add tests/init.sh.
68761         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68762         Use Exit, not exit.
68763         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68765         atexit-tests: convert to use init.sh
68766         * modules/atexit-tests (Files): Add tests/init.sh.
68767         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68768         Use Exit, not exit.
68769         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68771         init.sh: fix typo
68772         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
68774         init.sh: make it easier for a test script to write to the tty, ...
68775         when using automake's parallel-tests mode.
68776         * tests/init.sh (stderr_fileno_): Define overridable variable.
68777         (warn_): New function, to use it.
68778         (fail_, skip_, framework_failure_): Use warn_.
68780 2010-04-04  Bruno Haible  <bruno@clisp.org>
68782         btowc: Avoid warning.
68783         * lib/btowc.c: Include <stdlib.h>.
68784         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
68786 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68787             Bruno Haible  <bruno@clisp.org>
68789         wchar: Port to NetBSD 1.5.
68790         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
68791         * lib/wctype.in.h (WEOF): Likewise.
68793 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68794             Bruno Haible  <bruno@clisp.org>
68796         Port extended stdio to NetBSD 1.5.
68797         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
68798         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
68799         older.
68801 2010-04-04  Bruno Haible  <bruno@clisp.org>
68803         string: Remove unused substitution.
68804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68805         HAVE_DECL_STRERROR.
68806         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
68808 2010-04-04  Bruno Haible  <bruno@clisp.org>
68810         strtod: Avoid a possible C++ test error.
68811         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
68812         set REPLACE_STRTOD.
68814 2010-04-04  Bruno Haible  <bruno@clisp.org>
68816         strerror: Update documentation.
68817         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
68819 2010-04-04  Bruno Haible  <bruno@clisp.org>
68821         stdio: Fix some C++ test errors on Solaris 8 with GCC.
68822         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
68823         _GL_CXXALIAS_SYS_CAST.
68825 2010-04-04  Bruno Haible  <bruno@clisp.org>
68827         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
68828         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
68829         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
68830         REPLACE_FREXPL to 1.
68831         * doc/posix-functions/frexpl.texi: Update documentation.
68833 2010-04-04  Bruno Haible  <bruno@clisp.org>
68835         math: Fix some C++ test errors on Solaris 8 and Cygwin.
68836         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
68838 2010-04-04  Bruno Haible  <bruno@clisp.org>
68840         Implement nanosleep for native Windows.
68841         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
68843 2010-04-04  Bruno Haible  <bruno@clisp.org>
68845         math: Fix some C++ test errors on Solaris 8.
68846         * lib/math.in.h (truncf, trunc): Use simpler idiom.
68848 2010-04-04  Bruno Haible  <bruno@clisp.org>
68850         math: Fix some C++ test errors on Cygwin.
68851         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
68852         truncl): Provide declaration if the system does not have it.
68853         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
68854         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
68855         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
68856         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
68857         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
68858         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
68859         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
68860         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
68861         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
68862         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
68863         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
68864         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
68865         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
68866         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
68867         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
68868         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
68869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
68870         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
68871         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
68872         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
68873         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
68874         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
68876 2010-04-04  Bruno Haible  <bruno@clisp.org>
68878         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
68879         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
68880         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
68881         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
68882         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
68883         * m4/isinf.m4 (gl_ISINF): Likewise.
68884         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
68886 2010-04-04  Bruno Haible  <bruno@clisp.org>
68888         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
68889         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
68891 2010-04-04  Bruno Haible  <bruno@clisp.org>
68893         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
68894         * modules/tmpfile (configure.ac): Update.
68896         tmpfile: Fix C++ test error on mingw.
68897         * lib/stdio.in.h (tmpfile): New declaration.
68898         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
68899         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
68900         * modules/tmpfile (Depends-on): Add stdio.
68901         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68902         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
68903         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
68904         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
68905         REPLACE_TMPFILE.
68906         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
68908 2010-04-04  Bruno Haible  <bruno@clisp.org>
68910         ioctl: Fix C++ test error on mingw.
68911         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
68912         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
68913         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
68915 2010-04-03  Bruno Haible  <bruno@clisp.org>
68917         wcwidth: Fix C++ test error on mingw.
68918         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
68919         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
68920         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
68922 2010-04-03  Bruno Haible  <bruno@clisp.org>
68924         nanosleep: Fix C++ test error on mingw.
68925         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
68926         * lib/time.in.h (nanosleep): Use modern idiom.
68927         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
68928         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
68929         REPLACE_NANOSLEEP to 1.
68930         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
68931         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
68933 2010-04-03  Bruno Haible  <bruno@clisp.org>
68935         strptime: Fix C++ test error on mingw.
68936         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
68937         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
68938         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
68939         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
68940         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
68941         not REPLACE_STRPTIME.
68942         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
68943         REPLACE_STRPTIME.
68945 2010-04-03  Bruno Haible  <bruno@clisp.org>
68947         timegm: Fix C++ test error on mingw.
68948         * lib/time.in.h (timegm): Use modern idiom.
68949         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
68950         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
68951         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
68952         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
68954 2010-04-03  Bruno Haible  <bruno@clisp.org>
68956         timegm: Assume declaration if function exists.
68957         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
68958         if it exists. Don't clobber ac_cv_func_timegm.
68960 2010-04-03  Bruno Haible  <bruno@clisp.org>
68962         time_r: Fix C++ test error on mingw.
68963         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
68964         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
68965         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
68966         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
68967         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
68969 2010-04-03  Bruno Haible  <bruno@clisp.org>
68971         time_r: Minor updates.
68972         * modules/time_r (Description): Mention the provided functions.
68973         * lib/time_r.c: Don't include <string.h>.
68974         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
68975         * doc/posix-functions/localtime_r.texi: Likewise.
68977 2010-04-03  Bruno Haible  <bruno@clisp.org>
68979         time: Fix regression introduced on 2010-03-08.
68980         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
68981         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
68983 2010-04-03  Jim Meyering  <meyering@redhat.com>
68985         maint.mk: don't silently disable project-specific syntax-check rules
68986         * top/maint.mk (_prohibit_regexp): Define, to help people realize
68987         that they need to convert their project-specific syntax-check rules
68988         to use the new _sc_search_regexp.
68990 2010-04-03  Bruno Haible  <bruno@clisp.org>
68992         fchdir: Fix regression introduced on 2010-03-08.
68993         * lib/unistd.in.h (fchdir): Fix declaration.
68994         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
68995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
68996         REPLACE_FCHDIR.
68997         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
68998         REPLACE_FCHDIR.
69000 2010-04-03  Bruno Haible  <bruno@clisp.org>
69002         getpagesize: Fix C++ test error on mingw.
69003         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
69004         system does not declare the function.
69005         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
69006         declared.
69007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69008         HAVE_DECL_GETPAGESIZE.
69009         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
69011 2010-04-03  Bruno Haible  <bruno@clisp.org>
69013         stdio: Make C++ tests work on mingw.
69014         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
69015         does not declare the function.
69017 2010-04-03  Bruno Haible  <bruno@clisp.org>
69019         ftello: Fix C++ test error on mingw.
69020         * lib/stdio.in.h (ftello): Use modern idiom.
69021         * lib/ftello.c (ftello): Renamed from rpl_ftello.
69022         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
69023         is missing and that it needs to be replaced.
69024         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
69025         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
69026         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
69028 2010-04-03  Bruno Haible  <bruno@clisp.org>
69030         fseeko: Fix C++ test error on mingw.
69031         * lib/stdio.in.h (fseeko): Use modern idiom.
69032         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
69033         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
69034         is missing and that it needs to be replaced.
69035         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
69036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
69037         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
69039 2010-04-03  Bruno Haible  <bruno@clisp.org>
69041         mkstemp: Fix C++ test error on mingw.
69042         * lib/stdlib.in.h (mkstemp): Use modern idiom.
69043         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
69044         function is missing and that it needs to be replaced.
69045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
69046         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
69048 2010-04-03  Bruno Haible  <bruno@clisp.org>
69050         stpncpy: Fix C++ test error on mingw.
69051         * lib/string.in.h (stpncpy): Use modern idiom.
69052         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
69053         function is missing and that it needs to be replaced.
69054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69055         REPLACE_STPNCPY.
69056         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
69058 2010-04-03  Bruno Haible  <bruno@clisp.org>
69060         sys_stat: Fix C++ test error on mingw.
69061         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
69062         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
69064 2010-04-03  Bruno Haible  <bruno@clisp.org>
69066         pty: Update doc.
69067         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
69069 2010-04-03  Bruno Haible  <bruno@clisp.org>
69071         unistd: Fix C++ test error on mingw.
69072         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
69074 2010-04-03  Bruno Haible  <bruno@clisp.org>
69076         Update doc regarding mingw.
69077         * doc/glibc-functions/openpty.texi: Update regarding mingw.
69078         * doc/glibc-functions/login_tty.texi: Likewise.
69079         * doc/glibc-functions/forkpty.texi: Likewise.
69081 2010-04-03  Bruno Haible  <bruno@clisp.org>
69083         stdlib: Avoid compilation failure of c-strtold on mingw.
69084         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
69086 2010-04-03  Bruno Haible  <bruno@clisp.org>
69088         locale: Make C++ tests work on Cygwin and mingw.
69089         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
69090         cannot provide the function.
69091         Reported by Simon Josefsson.
69093 2010-04-03  Bruno Haible  <bruno@clisp.org>
69095         localename: Port to MacOS X 10.6.
69096         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
69097         memory layout of the locales in MacOS X 10.6 as well.
69098         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
69100 2010-04-02  Bruno Haible  <bruno@clisp.org>
69102         gnulib-tool: Ensure that long-running tests are executed last.
69103         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
69104         running tests after the one for the other tests.
69106 2010-04-02  Bruno Haible  <bruno@clisp.org>
69108         gnulib-tool: Ensure the tests in the main directory are executed first.
69109         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
69110         start with the current directory.
69112 2010-04-02  Bruno Haible  <bruno@clisp.org>
69114         Tests for module 'havelib', moved here from GNU gettext.
69115         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
69116         modifications.
69117         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
69118         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
69119         with modifications.
69120         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
69121         modifications.
69122         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
69123         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
69124         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
69125         with modifications.
69126         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
69127         with modifications.
69128         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
69129         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
69130         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
69131         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
69132         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
69133         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
69134         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
69135         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
69136         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
69137         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
69138         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
69139         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
69140         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
69141         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
69142         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
69143         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
69144         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
69145         with modifications.
69146         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
69147         with modifications.
69148         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
69149         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
69150         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
69151         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
69152         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
69153         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
69154         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
69155         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
69156         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
69157         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
69158         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
69159         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
69160         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
69161         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
69162         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
69163         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
69164         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
69165         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
69166         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
69167         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
69168         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
69169         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
69170         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
69171         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
69172         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
69173         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
69174         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
69175         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
69176         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
69177         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
69178         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
69179         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
69180         * tests/havelib/rpathx/rpathx.c: New file, from
69181         gettext/autoconf-lib-link.
69182         * tests/havelib/rpathx/Makefile.am: New file, from
69183         gettext/autoconf-lib-link.
69184         * tests/havelib/rpathx/configure.ac: New file, from
69185         gettext/autoconf-lib-link with modifications.
69186         * tests/havelib/rpathy/rpathy.c: New file, from
69187         gettext/autoconf-lib-link.
69188         * tests/havelib/rpathy/Makefile.am: New file, from
69189         gettext/autoconf-lib-link.
69190         * tests/havelib/rpathy/configure.ac: New file, from
69191         gettext/autoconf-lib-link with modifications.
69192         * tests/havelib/rpathz/rpathz.c: New file, from
69193         gettext/autoconf-lib-link.
69194         * tests/havelib/rpathz/Makefile.am: New file, from
69195         gettext/autoconf-lib-link.
69196         * tests/havelib/rpathz/configure.ac: New file, from
69197         gettext/autoconf-lib-link with modifications.
69198         * tests/havelib/rpathlx/usex.c: New file, from
69199         gettext/autoconf-lib-link.
69200         * tests/havelib/rpathlx/Makefile.am: New file, from
69201         gettext/autoconf-lib-link.
69202         * tests/havelib/rpathlx/configure.ac: New file, from
69203         gettext/autoconf-lib-link with modifications.
69204         * tests/havelib/rpathly/usey.c: New file, from
69205         gettext/autoconf-lib-link.
69206         * tests/havelib/rpathly/Makefile.am: New file, from
69207         gettext/autoconf-lib-link.
69208         * tests/havelib/rpathly/configure.ac: New file, from
69209         gettext/autoconf-lib-link with modifications.
69210         * tests/havelib/rpathlz/usez.c: New file, from
69211         gettext/autoconf-lib-link.
69212         * tests/havelib/rpathlz/Makefile.am: New file, from
69213         gettext/autoconf-lib-link.
69214         * tests/havelib/rpathlz/configure.ac: New file, from
69215         gettext/autoconf-lib-link with modifications.
69216         * tests/havelib/rpathlyx/usey.c: New file, from
69217         gettext/autoconf-lib-link.
69218         * tests/havelib/rpathlyx/Makefile.am: New file, from
69219         gettext/autoconf-lib-link.
69220         * tests/havelib/rpathlyx/configure.ac: New file, from
69221         gettext/autoconf-lib-link with modifications.
69222         * tests/havelib/rpathlzyx/usez.c: New file, from
69223         gettext/autoconf-lib-link.
69224         * tests/havelib/rpathlzyx/Makefile.am: New file, from
69225         gettext/autoconf-lib-link.
69226         * tests/havelib/rpathlzyx/configure.ac: New file, from
69227         gettext/autoconf-lib-link with modifications.
69228         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
69229         with modifications.
69231 2010-04-02  Bruno Haible  <bruno@clisp.org>
69233         gnulib-tool: Create distributed built sources also for the tests.
69234         * gnulib-tool (func_create_testdir): Also generate distributed built
69235         sources in the tests directory.
69237 2010-04-02  Bruno Haible  <bruno@clisp.org>
69239         gnulib-tool: Obey user's environment variables.
69240         * gnulib-tool (func_create_testdir): When creating built sources,
69241         respect the environment variables for autoconf, automake, etc. given by
69242         the user.
69244 2010-04-02  Bruno Haible  <bruno@clisp.org>
69246         gnulib-tool: Provide the value of --m4-base to modules.
69247         * gnulib-tool (func_import, func_create_testdir): Emit a definition
69248         of gl_m4_base.
69250 2010-04-02  Eric Blake  <eblake@redhat.com>
69252         maint.mk: fix some fallout
69253         * NEWS: Document the incompatible change, and its effect on cfg.mk.
69254         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
69256 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
69258         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
69259         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
69260         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
69261         (sc_cast_of_x_alloc_return_value): Likewise.
69262         (sc_cast_of_alloca_return_value): Likewise.
69263         (sc_space_tab): Likewise.
69264         (sc_prohibit_atoi_atof): Likewise.
69265         (sc_prohibit_magic_number_exit): Likewise.
69266         (sc_error_exit_success): Likewise.
69267         (sc_file_system): Likewise.
69268         (sc_prohibit_have_config_h): Likewise.
69269         (sc_require_config_h): Likewise.
69270         (sc_prohibit_HAVE_MBRTOWC): Likewise.
69271         (sc_obsolete_symbols): Likewise.
69272         (sc_changelog): Likewise.
69273         (sc_program_name): Likewise.
69274         (sc_the_the): Likewise.
69275         (sc_trailing_blank): Likewise.
69276         (sc_two_space_separator_in_usage): Likewise.
69277         (sc_useless_cpp_parens): Likewise.
69278         (sc_GPL_version): Likewise.
69279         (sc_GFDL_version): Likewise.
69280         (sc_texinfo_acronym): Likewise.
69281         (sc_prohibit_cvs_keyword): Likewise.
69282         (sc_prohibit_stat_st_blocks): Likewise.
69283         (sc_prohibit_S_IS_definition): Likewise.
69284         (sc_redundant_const): Likewise.
69285         (sc_makefile_TAB_only_indentation): Likewise.
69286         (sc_m4_quote_check): Likewise.
69287         (sc_makefile_path_separator_check): Likewise.
69288         (sc_copyright_check): Likewise.
69289         (sc_Wundef_boolean): Likewise.
69290         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
69292         maint.mk: match 0 or more whitespace-before-function-call '('
69293         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
69294         that have zero or two-and-more spaces between the function name
69295         and the open parenthesis.
69296         (sc_error_message_warn_fatal): Likewise.
69297         (sc_error_message_uppercase): Likewise.
69298         (sc_error_message_period): Likewise.
69300 2010-03-31  Eric Blake  <eblake@redhat.com>
69302         maint.mk: check for [ as well as test
69303         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
69304         Based on a libvirt report by Matthias Bolte.
69306         gnumakefile: don't squelch _version output
69307         * top/GNUmakefile (_version): Create one-shot dependency rather
69308         than using $(shell) when version must be regenerated.
69309         (_autoreconf): Run verbosely, by default.
69311         sys_time: avoid compiler warnings
69312         * lib/sys_time.in.h (includes): Ensure gcc pragma is
69313         unconditional, fixing regression from 2010-03-29.
69314         Reported by Simon Josefsson.
69316 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
69318         maint.mk: s/_header_without_use/_sc_header_without_use/
69319         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
69320         (sc_prohibit_assert_without_use): Use the new name.
69321         (sc_prohibit_close_stream_without_use): Likewise.
69322         (sc_prohibit_getopt_without_use): Likewise.
69323         (sc_prohibit_quotearg_without_use): Likewise.
69324         (sc_prohibit_quote_without_use): Likewise.
69325         (sc_prohibit_long_options_without_use): Likewise.
69326         (sc_prohibit_inttostr_without_use): Likewise.
69327         (sc_prohibit_ignore_value_without_use): Likewise.
69328         (sc_prohibit_error_without_use): Likewise.
69329         (sc_prohibit_xalloc_without_use): Likewise.
69330         (sc_prohibit_hash_without_use): Likewise.
69331         (sc_prohibit_hash_pjw_without_use): Likewise.
69332         (sc_prohibit_safe_read_without_use): Likewise.
69333         (sc_prohibit_argmatch_without_use): Likewise.
69334         (sc_prohibit_canonicalize_without_use): Likewise.
69335         (sc_prohibit_root_dev_ino_without_use): Likewise.
69336         (sc_prohibit_openat_without_use): Likewise.
69337         (sc_prohibit_c_ctype_without_use): Likewise.
69338         (sc_prohibit_signal_without_use): Likewise.
69339         (sc_prohibit_intprops_without_use): Likewise.
69341 2010-03-30  Eric Blake  <eblake@redhat.com>
69343         maint: improve module indicators
69344         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
69345         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
69346         columns, and avoid extra macro expansion.
69348         fdopendir: work around FreeBSD bug
69349         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
69350         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
69351         * modules/dirent (Makefile.am): Substitute it.
69352         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
69353         declaration.
69354         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
69355         fix.
69356         Reported by Christian Weisgerber <naddy@mips.inka.de>.
69358 2010-03-29  Bruno Haible  <bruno@clisp.org>
69360         Emit #pragma system_header after the inclusion guard, not before.
69361         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
69362         guard that spans the entire file, not before. This enables an
69363         optimization in GCC's preprocessor.
69364         * lib/ctype.in.h: Likewise.
69365         * lib/dirent.in.h: Likewise.
69366         * lib/errno.in.h: Likewise.
69367         * lib/float.in.h: Likewise.
69368         * lib/getopt.in.h: Likewise.
69369         * lib/iconv.in.h: Likewise.
69370         * lib/langinfo.in.h: Likewise.
69371         * lib/locale.in.h: Likewise.
69372         * lib/math.in.h: Likewise.
69373         * lib/netdb.in.h: Likewise.
69374         * lib/netinet_in.in.h: Likewise.
69375         * lib/pty.in.h: Likewise.
69376         * lib/sched.in.h: Likewise.
69377         * lib/se-selinux.in.h: Likewise.
69378         * lib/search.in.h: Likewise.
69379         * lib/spawn.in.h: Likewise.
69380         * lib/stdarg.in.h: Likewise.
69381         * lib/stdint.in.h: Likewise.
69382         * lib/string.in.h: Likewise.
69383         * lib/strings.in.h: Likewise.
69384         * lib/sys_file.in.h: Likewise.
69385         * lib/sys_ioctl.in.h: Likewise.
69386         * lib/sys_time.in.h: Likewise.
69387         * lib/sys_times.in.h: Likewise.
69388         * lib/sys_utsname.in.h: Likewise.
69389         * lib/sys_wait.in.h: Likewise.
69390         * lib/sysexits.in.h: Likewise.
69391         * lib/wctype.in.h: Likewise.
69393 2010-03-28  James Youngman  <jay@gnu.org>
69395         save-cwd: don't leak a file descriptor when the caller execs.
69396         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
69397         saved file descriptor.
69398         * modules/save-cwd (Depends-on): Depend on cloexec.
69400 2010-03-29  Bruno Haible  <bruno@clisp.org>
69402         Remove vestiges of fts-lgpl module.
69403         * lib/fts_.h: Assume GNULIB_FTS is 1.
69404         * lib/fts.c: Likewise.
69405         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69407 2010-03-28  Bruno Haible  <bruno@clisp.org>
69409         Fix definition of tests witness macro.
69410         * gnulib-tool (func_import): Fix definition of witness macro.
69412 2010-03-28  Bruno Haible  <bruno@clisp.org>
69414         Fix ioctl's protoype on glibc systems.
69415         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
69416         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
69417         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
69418         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
69419         signature. If not, arrange to replace the ioctl function.
69420         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
69421         REPLACE_IOCTL.
69422         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
69423         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
69424         Reported by Ludovic Courtès <ludo@gnu.org>.
69426 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
69428         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
69429         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
69430         made it so grep -r --include=GLOB* ... did not work.
69432 2010-03-26  Jim Meyering  <meyering@redhat.com>
69433             Eric Blake  <eblake@redhat.com>
69435         maint.mk: prohibit use of test's -o and -a operators
69436         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
69438 2010-03-28  Bruno Haible  <bruno@clisp.org>
69440         Remove unused GNULIB_XYZ macro definitions.
69441         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
69442         invocation.
69444 2010-03-28  Bruno Haible  <bruno@clisp.org>
69446         Mark privileged tests modules.
69447         * modules/idpriv-drop-tests (Status): New section.
69448         * modules/idpriv-droptemp-tests (Status): New section.
69450 2010-03-28  Bruno Haible  <bruno@clisp.org>
69452         Split C++ tests into separate tests modules.
69453         * modules/dirent-c++-tests: New file, extracted from
69454         modules/dirent-tests.
69455         * modules/dirent-tests: Depend on it.
69456         * modules/fcntl-h-c++-tests: New file, extracted from
69457         modules/fcntl-h-tests.
69458         * modules/fcntl-h-tests: Depend on it.
69459         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
69460         * modules/glob-tests: Depend on it.
69461         * modules/iconv-h-c++-tests: New file, extracted from
69462         modules/iconv-h-tests.
69463         * modules/iconv-h-tests: Depend on it.
69464         * modules/langinfo-c++-tests: New file, extracted from
69465         modules/langinfo-tests.
69466         * modules/langinfo-tests: Depend on it.
69467         * modules/locale-c++-tests: New file, extracted from
69468         modules/locale-tests.
69469         * modules/locale-tests: Depend on it.
69470         * modules/math-c++-tests: New file, extracted from modules/math-tests.
69471         * modules/math-tests: Depend on it.
69472         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
69473         * modules/pty-tests: Depend on it.
69474         * modules/search-c++-tests: New file, extracted from
69475         modules/search-tests.
69476         * modules/search-tests: Depend on it.
69477         * modules/signal-c++-tests: New file, extracted from
69478         modules/signal-tests.
69479         * modules/signal-tests: Depend on it.
69480         * modules/spawn-c++-tests: New file, extracted from
69481         modules/spawn-tests.
69482         * modules/spawn-tests: Depend on it.
69483         * modules/stdio-c++-tests: New file, extracted from
69484         modules/stdio-tests.
69485         * modules/stdio-tests: Depend on it.
69486         * modules/stdlib-c++-tests: New file, extracted from
69487         modules/stdlib-tests.
69488         * modules/stdlib-tests: Depend on it.
69489         * modules/string-c++-tests: New file, extracted from
69490         modules/string-tests.
69491         * modules/string-tests: Depend on it.
69492         * modules/sys_ioctl-c++-tests: New file, extracted from
69493         modules/sys_ioctl-tests.
69494         * modules/sys_ioctl-tests: Depend on it.
69495         * modules/sys_select-c++-tests: New file, extracted from
69496         modules/sys_select-tests.
69497         * modules/sys_select-tests: Depend on it.
69498         * modules/sys_socket-c++-tests: New file, extracted from
69499         modules/sys_socket-tests.
69500         * modules/sys_socket-tests: Depend on it.
69501         * modules/sys_stat-c++-tests: New file, extracted from
69502         modules/sys_stat-tests.
69503         * modules/sys_stat-tests: Depend on it.
69504         * modules/sys_time-c++-tests: New file, extracted from
69505         modules/sys_time-tests.
69506         * modules/sys_time-tests: Depend on it.
69507         * modules/time-c++-tests: New file, extracted from modules/time-tests.
69508         * modules/time-tests: Depend on it.
69509         * modules/unistd-c++-tests: New file, extracted from
69510         modules/unistd-tests.
69511         * modules/unistd-tests: Depend on it.
69512         * modules/wchar-c++-tests: New file, extracted from
69513         modules/wchar-tests.
69514         * modules/wchar-tests: Depend on it.
69515         * modules/wctype-c++-tests: New file, extracted from
69516         modules/wctype-tests.
69517         * modules/wctype-tests: Depend on it.
69518         Reported by Simon Josefsson.
69520 2010-03-28  Bruno Haible  <bruno@clisp.org>
69522         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
69523         * gnulib-tool (func_exists_module): New function, extracted from
69524         func_verify_module.
69525         (func_verify_module): Use it.
69526         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
69527         'foo' only if 'foo' exists.
69528         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
69529         module.
69531 2010-03-28  Bruno Haible  <bruno@clisp.org>
69533         gnulib-tool: Add support for special categories of tests.
69534         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
69535         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
69536         (func_usage): Document them.
69537         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
69538         inc_unportable_tests, inc_all_tests): New variables.
69539         (func_acceptable): Consider these variables.
69540         (func_modules_transitive_closure): Make it work when the 'Status' field
69541         consists of multiple words.
69542         (func_import): Store and restore the values of inc_cxx_tests,
69543         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
69544         inc_all_tests in gnulib-comp.m4.
69545         (func_create_testdir): Set inc_all_tests to true.
69546         * doc/gnulib.texi (Extra tests modules): New section.
69547         Suggested by Jim Meyering.
69549 2010-03-28  Bruno Haible  <bruno@clisp.org>
69551         ansi-c++-opt: Allow turning off the C++ build by default.
69552         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
69553         gl_CXX_CHOICE_DEFAULT_NO is defined.
69554         Requested by Eric Blake.
69556 2010-03-28  Bruno Haible  <bruno@clisp.org>
69558         unistd: Avoid #define replacements in C++ mode.
69559         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
69560         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
69561         setsockopt, shutdown, select): In C++, attach a warning to the function
69562         if possible, rather than #defining the symbol to a dysfunctional alias.
69563         Reported by John W. Eaton <jwe@gnu.org>.
69565 2010-03-28  Bruno Haible  <bruno@clisp.org>
69567         Fix link errors on mingw.
69568         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
69569         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
69570         $(LIBSOCKET).
69571         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
69572         $(LIBSOCKET).
69574 2010-03-28  Bruno Haible  <bruno@clisp.org>
69575             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69577         lib-ignore: Determine different options for different compilers.
69578         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
69579         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
69580         Add comments.
69581         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
69582         * NEWS: Mention the change.
69584 2010-03-27  Bruno Haible  <bruno@clisp.org>
69586         Remove unused GNULIB_XYZ macro definitions.
69587         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69588         * modules/fseek (configure.ac): Likewise.
69589         * modules/ioctl (configure.ac): Likewise.
69590         * modules/open (configure.ac): Likewise.
69591         * modules/stdlib-safer (configure.ac): Likewise.
69593 2010-03-27  Bruno Haible  <bruno@clisp.org>
69595         Add a remark about certain modules.
69596         * modules/malloc (Comment): New section.
69597         * modules/realloc (Comment): Likewise.
69598         * modules/sigpipe (Comment): Likewise.
69600 2010-03-27  Bruno Haible  <bruno@clisp.org>
69602         Resolve conflict between the two kinds of module indicators.
69603         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
69604         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
69605         * modules/canonicalize (configure.ac): Invoke
69606         gl_MODULE_INDICATOR_FOR_TESTS.
69607         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
69608         GNULIB_XYZ.
69609         * tests/test-dirent-c++.cc: Likewise.
69610         * tests/test-dirent-safer.c: Likewise.
69611         * tests/test-dup2.c: Likewise.
69612         * tests/test-fchdir.c: Likewise.
69613         * tests/test-fcntl-h-c++.cc: Likewise.
69614         * tests/test-getopt.c: Likewise.
69615         * tests/test-getopt.h: Likewise.
69616         * tests/test-langinfo-c++.cc: Likewise.
69617         * tests/test-locale-c++.cc: Likewise.
69618         * tests/test-math-c++.cc: Likewise.
69619         * tests/test-pty-c++.cc: Likewise.
69620         * tests/test-search-c++.cc: Likewise.
69621         * tests/test-signal-c++.cc: Likewise.
69622         * tests/test-spawn-c++.cc: Likewise.
69623         * tests/test-stdio-c++.cc: Likewise.
69624         * tests/test-stdlib-c++.cc: Likewise.
69625         * tests/test-string-c++.cc: Likewise.
69626         * tests/test-sys_ioctl-c++.cc: Likewise.
69627         * tests/test-sys_select-c++.cc: Likewise.
69628         * tests/test-sys_socket-c++.cc: Likewise.
69629         * tests/test-sys_stat-c++.cc: Likewise.
69630         * tests/test-sys_time-c++.cc: Likewise.
69631         * tests/test-time-c++.cc: Likewise.
69632         * tests/test-unistd-c++.cc: Likewise.
69633         * tests/test-wchar-c++.cc: Likewise.
69634         * tests/uninorm/test-u8-nfc.c: Likewise.
69635         * tests/uninorm/test-u8-nfd.c: Likewise.
69636         * tests/uninorm/test-u8-nfkc.c: Likewise.
69637         * tests/uninorm/test-u8-nfkd.c: Likewise.
69638         * tests/uninorm/test-u16-nfc.c: Likewise.
69639         * tests/uninorm/test-u16-nfd.c: Likewise.
69640         * tests/uninorm/test-u16-nfkc.c: Likewise.
69641         * tests/uninorm/test-u16-nfkd.c: Likewise.
69642         * tests/uninorm/test-u32-nfc.c: Likewise.
69643         * tests/uninorm/test-u32-nfc-big.c: Likewise.
69644         * tests/uninorm/test-u32-nfd.c: Likewise.
69645         * tests/uninorm/test-u32-nfd-big.c: Likewise.
69646         * tests/uninorm/test-u32-nfkc.c: Likewise.
69647         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
69648         * tests/uninorm/test-u32-nfkd.c: Likewise.
69649         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
69650         * tests/uninorm/test-u32-normalize-big.c: Likewise.
69652 2010-03-27  Bruno Haible  <bruno@clisp.org>
69654         Distinguish two kinds of module indicators.
69655         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
69656         gl_MODULE_INDICATOR.
69657         (gl_MODULE_INDICATOR): New macro.
69658         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
69659         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
69660         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
69661         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
69662         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
69663         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
69664         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69665         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69666         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69667         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69668         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69669         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69670         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69671         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69672         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69673         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69674         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69675         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69676         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69677         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69678         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69679         * modules/cloexec (configure.ac): Likewise.
69680         * modules/getopt-gnu (configure.ac): Likewise.
69681         * modules/uninorm/u8-normalize (configure.ac): Likewise.
69682         * modules/uninorm/u16-normalize (configure.ac): Likewise.
69683         * modules/uninorm/u32-normalize (configure.ac): Likewise.
69684         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
69686 2010-03-27  Bruno Haible  <bruno@clisp.org>
69688         New module description field 'Comment'.
69689         * gnulib-tool: New option --extract-comment.
69690         (func_usage): Document it.
69691         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
69692         (func_get_comment): New function.
69693         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
69695 2010-03-27  Bruno Haible  <bruno@clisp.org>
69697         Addendum to 2010-02-07 commit.
69698         * gnulib-tool (func_usage): Document --extract-applicability option.
69700 2010-03-27  Bruno Haible  <bruno@clisp.org>
69702         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
69703         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
69704         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
69705         rather than link errors.
69707 2010-03-27  Bruno Haible  <bruno@clisp.org>
69709         Avoid side effects from tests-related modules on the compilation of lib.
69710         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
69711         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
69712         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
69713         parameter. Emit into AM_CPPFLAGS a definition of the designated C
69714         macro.
69715         (func_import): Define a witness macro. Assign it a value that depends
69716         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
69717         tests-related modules.
69718         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
69719         Reported by Jim Meyering.
69721 2010-03-27  Bruno Haible  <bruno@clisp.org>
69723         Factorize common .m4 code.
69724         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
69725         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
69726         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
69727         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
69728         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
69729         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
69730         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
69731         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
69732         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
69733         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
69734         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
69735         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69736         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69737         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69738         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69739         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
69740         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69741         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69742         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69743         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
69744         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
69745         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69746         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69747         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69748         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69749         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69750         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
69751         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
69752         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
69753         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69754         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69755         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69757 2010-03-27  Bruno Haible  <bruno@clisp.org>
69759         Fix a compilation error on Cygwin with g++ >= 4.3.
69760         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
69761         if it is undefined or if we alias it to chmod.
69762         (lstat): Don't warn about the use of this function if it is undefined
69763         or if we alias it to stat.
69764         Reported by Simon Josefsson.
69766 2010-03-27  Bruno Haible  <bruno@clisp.org>
69768         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
69769         * modules/getlogin (configure.ac): Update.
69771         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
69772         * modules/getlogin_r (configure.ac): Update.
69774         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
69775         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
69776         * modules/inet_ntop (configure.ac): Update.
69778         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
69779         * modules/inet_pton (configure.ac): Update.
69781         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
69782         * modules/mbslen (configure.ac): Update.
69784         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
69785         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
69786         * modules/forkpty (configure.ac): Update.
69787         * modules/openpty (configure.ac): Update.
69789 2010-03-26  Simon Josefsson  <simon@josefsson.org>
69791         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
69792         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
69794 2010-03-25  Eric Blake  <eblake@redhat.com>
69796         maint: use pragma consistently across replacement headers
69797         * lib/ctype.in.h (system_header): Hoist for consistent placement.
69798         * lib/dirent.in.h (system_header): Likewise.
69799         * lib/errno.in.h (system_header): Likewise.
69800         * lib/float.in.h (system_header): Likewise.
69801         * lib/getopt.in.h (system_header): Likewise.
69802         * lib/iconv.in.h (system_header): Likewise.
69803         * lib/inttypes.in.h (system_header): Likewise.
69804         * lib/langinfo.in.h (system_header): Likewise.
69805         * lib/locale.in.h (system_header): Likewise.
69806         * lib/math.in.h (system_header): Likewise.
69807         * lib/netdb.in.h (system_header): Likewise.
69808         * lib/netinet_in.in.h (system_header): Likewise.
69809         * lib/pty.in.h (system_header): Likewise.
69810         * lib/sched.in.h (system_header): Likewise.
69811         * lib/se-selinux.in.h (system_header): Likewise.
69812         * lib/search.in.h (system_header): Likewise.
69813         * lib/spawn.in.h (system_header): Likewise.
69814         * lib/stdarg.in.h (system_header): Likewise.
69815         * lib/stdint.in.h (system_header): Likewise.
69816         * lib/string.in.h (system_header): Likewise.
69817         * lib/strings.in.h (system_header): Likewise.
69818         * lib/sys_file.in.h (system_header): Likewise.
69819         * lib/sys_ioctl.in.h (system_header): Likewise.
69820         * lib/sys_socket.in.h (system_header): Likewise.
69821         * lib/sys_times.in.h (system_header): Likewise.
69822         * lib/sys_utsname.in.h (system_header): Likewise.
69823         * lib/sys_wait.in.h (system_header): Likewise.
69824         * lib/sysexits.in.h (system_header): Likewise.
69825         * lib/unistd.in.h (system_header): Likewise.
69826         * lib/wctype.in.h (system_header): Likewise.
69828         arpa/inet: fix mingw compilation warning
69829         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
69830         Reported by Matthew Bolte.
69832 2010-03-25  Bruno Haible  <bruno@clisp.org>
69834         Avoid collision between gnulib wrapper and libintl wrapper.
69835         * lib/printf.c (printf): Don't define if a printf wrapper is already
69836         defined in intl/printf.c.
69837         Reported by Michel Boaventura <michel@michelboaventura.com>.
69839 2010-03-25  Bruno Haible  <bruno@clisp.org>
69841         Use ANSI C.
69842         * lib/readutmp.h (getutent): Provide ANSI C prototype.
69844 2010-03-25  Bruno Haible  <bruno@clisp.org>
69846         Minor formatting changes.
69847         * lib/acosl.c: Insert space before function argument list.
69848         * lib/argz.c: Likewise.
69849         * lib/asinl.c: Likewise.
69850         * lib/expl.c: Likewise.
69851         * lib/gen-uni-tables.c: Likewise.
69852         * lib/gettext.h: Likewise.
69853         * lib/glthread/lock.h: Likewise.
69854         * lib/tanl.c: Likewise.
69855         * lib/uniname/uniname.c: Likewise.
69856         * tests/test-idpriv-drop.c: Likewise.
69857         * tests/test-idpriv-droptemp.c: Likewise.
69858         * tests/test-lock.c: Likewise.
69859         * tests/test-tls.c: Likewise.
69860         * lib/argp-help.c: Insert space before function-like macro argument
69861         list.
69862         * lib/memcmp.c: Likewise.
69863         * tests/test-base64.c: Likewise.
69864         * lib/localename.c: Insert space before sizeof's argument list.
69865         * lib/safe-alloc.h: Likewise.
69866         * lib/file-set.h: Insert space before macro argument list.
69867         * tests/test-argp.c: Likewise.
69868         * lib/argp-namefrob.h: Insert space before function parameter list.
69869         * lib/getaddrinfo.c: Likewise.
69870         * lib/netdb.in.h: Likewise.
69871         * lib/parse-duration.h: Likewise.
69872         * lib/parse-duration.c: Likewise.
69873         * lib/poll.c: Likewise.
69874         * lib/select.c: Likewise.
69875         * lib/trim.h: Likewise.
69876         * tests/test-usleep.c: Likewise.
69877         * lib/ldexpl.c: Insert space before function parameter list and before
69878         function argument list.
69879         * lib/logl.c: Likewise.
69880         * lib/sqrtl.c: Likewise.
69881         * lib/trim.c: Likewise.
69882         * lib/cosl.c: Use GNU style indentation. Insert space before function
69883         argument list.
69884         * lib/sinl.c: Likewise.
69885         * lib/tsearch.c: Insert space after 'for'.
69886         Reported by Jim Meyering.
69888 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
69890         * maint.mk (sc_Wundef_boolean): Check for the presence of the
69891         config header before grepping, as it's not present before
69892         autoreconf/configure are run.  Reported by Simon Josefsson.
69894 2010-03-23  Bruno Haible  <bruno@clisp.org>
69896         pt_chown: Make it work with automake < 1.11.
69897         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
69898         Reported by Simon Josefsson.
69900 2010-03-23  Bruno Haible  <bruno@clisp.org>
69902         pt_chown: Don't depend on GPLed modules.
69903         * lib/pt_chown.c: Don't include idpriv.h.
69904         (main): Don't drop privileges.
69905         * modules/pt_chown (Depends-on): Remove idpriv-drop.
69906         Reported by Simon Josefsson.
69908 2010-03-24  Simon Josefsson  <simon@josefsson.org>
69910         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
69911         suggestions from karl@freefriends.org (Karl Berry).
69913 2010-03-22  Eric Blake  <eblake@redhat.com>
69915         gethostname: further tweaks
69916         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
69917         are overriding gethostname.
69918         Suggested by Bruno Haible.
69920 2010-03-21  Bruno Haible  <bruno@clisp.org>
69922         Fix comments.
69923         * lib/forkpty.c (rpl_forkpty): Fix comment.
69924         * lib/openpty.c (rpl_openpty): Likewise.
69925         Reported by Eric Blake.
69927 2010-03-22  Eric Blake  <eblake@redhat.com>
69929         gethostname: fix build on mingw
69930         * lib/unistd.in.h (includes): Work around fact that mingw
69931         <winsock2.h> re-includes <unistd.h>, by avoiding any
69932         redeclarations if we are being included by <winsock2.h>.
69933         Reported by Matthias Bolte.
69935 2010-03-21  Bruno Haible  <bruno@clisp.org>
69937         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
69938         * lib/forkpty.c (forkpty): New replacement function, from glibc with
69939         modifications.
69940         * lib/pty.in.h (forkpty): Update declaration. Add comments.
69941         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
69942         provide the replacement.
69943         * modules/forkpty (Depends-on): Add openpty, login_tty.
69944         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
69945         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
69946         * doc/glibc-functions/forkpty.texi: More supported platforms.
69947         * config/srclist.txt: Add forkpty.c (commented).
69949 2010-03-21  Bruno Haible  <bruno@clisp.org>
69951         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
69952         (Makefile.am): Verify that PTY_LIB is defined.
69954         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
69956 2010-03-21  Bruno Haible  <bruno@clisp.org>
69958         Tests for module 'login_tty'.
69959         * modules/login_tty-tests: New file.
69960         * tests/test-login_tty.c: New file.
69962         New module 'login_tty'.
69963         * lib/login_tty.c: New file.
69964         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
69965         * modules/login_tty: New file.
69966         * doc/glibc-functions/login_tty.texi: Mention the new module.
69968 2010-03-21  Bruno Haible  <bruno@clisp.org>
69970         login_tty: Documentation.
69971         * doc/glibc-functions/login_tty.texi: New file.
69972         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
69974 2010-03-21  Bruno Haible  <bruno@clisp.org>
69976         pty: Consistent macro naming.
69977         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
69978         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
69979         * modules/pty (configure.ac): Update.
69981 2010-03-21  Bruno Haible  <bruno@clisp.org>
69983         Tests for openpty: Make stricter.
69984         * tests/test-openpty.c (main): Add test of canonical processing and
69985         erase.
69986         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
69988         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
69989         * lib/openpty.c (openpty): New replacement function.
69990         * lib/pty.in.h: Include <termios.h>.
69991         (openpty): Update declaration. Add comments.
69992         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
69993         is not declared, arrange to provide the replacement. Check for _getpty
69994         and posix_openpt.
69995         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
69996         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
69997         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
69998         * modules/pty-tests (test_pty_c___LDADD): New variable.
69999         * doc/glibc-functions/openpty.texi: More supported platforms.
70001 2010-03-21  Bruno Haible  <bruno@clisp.org>
70003         setenv: Tweaks.
70004         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
70005         the test program.
70006         * doc/posix-functions/setenv.texi: Update platforms list.
70008 2010-03-21  Bruno Haible  <bruno@clisp.org>
70010         New module 'unlockpt'.
70011         * lib/unlockpt.c: New file, from glibc with modifications.
70012         * m4/unlockpt.m4: New file.
70013         * modules/unlockpt: New file.
70014         * lib/stdlib.in.h (unlockpt): New declaration.
70015         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
70016         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
70017         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
70018         HAVE_UNLOCKPT.
70019         * doc/posix-functions/unlockpt.texi: Mention the new module.
70020         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
70021         * config/srclist.txt: Add unlockpt.c (commented).
70023 2010-03-21  Jim Meyering  <meyering@redhat.com>
70025         maint.mk: prohibit inclusion of "intprops.h" without use
70026         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
70028 2010-03-21  Bruno Haible  <bruno@clisp.org>
70030         New module 'grantpt'.
70031         * lib/grantpt.c: New file, from glibc with modifications.
70032         * m4/grantpt.m4: New file.
70033         * modules/grantpt: New file.
70034         * lib/stdlib.in.h (grantpt): New declaration.
70035         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
70036         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
70037         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
70038         HAVE_GRANTPT.
70039         * doc/posix-functions/grantpt.texi: Mention the new module.
70040         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
70041         * config/srclist.txt: Add grantpt.c (commented).
70043 2010-03-21  Bruno Haible  <bruno@clisp.org>
70045         New module 'pt_chown'.
70046         * lib/pt_chown.c: New file, from glibc with modifications.
70047         * lib/pty-private.h: New file, from glibc with modifications.
70048         * modules/pt_chown: New file.
70049         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
70051 2010-03-21  Bruno Haible  <bruno@clisp.org>
70053         Tests for module 'ptsname'.
70054         * modules/ptsname-tests: New file.
70055         * tests/test-ptsname.c: New file.
70057         New module 'ptsname'.
70058         * lib/ptsname.c: New file, from glibc with modifications.
70059         * m4/ptsname.m4: New file.
70060         * modules/ptsname: New file.
70061         * lib/stdlib.in.h (ptsname): New declaration.
70062         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
70063         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
70064         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
70065         HAVE_PTSNAME.
70066         * doc/posix-functions/ptsname.texi: Mention the new module.
70067         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
70068         * config/srclist.txt: Add ptsname.c (commented).
70070 2010-03-21  Bruno Haible  <bruno@clisp.org>
70072         Tests for module 'ttyname_r'.
70073         * modules/ttyname_r-tests: New file.
70074         * tests/test-ttyname_r.c: New file.
70076         New module 'ttyname_r'.
70077         * lib/ttyname_r.c: New file.
70078         * m4/ttyname_r.m4: New file.
70079         * modules/ttyname_r: New file.
70080         * lib/unistd.in.h (ttyname_r): New declaration.
70081         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
70082         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
70083         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
70084         HAVE_TTYNAME_R.
70085         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
70086         * doc/posix-functions/ttyname_r.texi: Mention the new module.
70088 2010-03-20  Bruno Haible  <bruno@clisp.org>
70090         signal: Undefine macro definitions in C++ mode.
70091         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
70092         sigfillset): Undefine macro definitions from the system header in C++
70093         mode.
70094         Reported by John W. Eaton <jwe@gnu.org>.
70096 2010-03-20  Bruno Haible  <bruno@clisp.org>
70098         Ensure no #include statements inside extern "C" { ... }.
70099         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
70100         contain #include statements.
70101         * lib/time.in.h: Likewise.
70103 2010-03-20  Bruno Haible  <bruno@clisp.org>
70105         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
70106         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
70107         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
70108         Reported by John W. Eaton <jwe@gnu.org>.
70110 2010-03-20  Bruno Haible  <bruno@clisp.org>
70112         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
70113         Reported by Jim Meyering.
70115 2010-03-20  Bruno Haible  <bruno@clisp.org>
70117         pipe: Set errno upon failure.
70118         * lib/pipe.h: Specify that when -1 is returned, errno is set.
70119         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
70120         errno value in error message.
70122 2010-03-20  Bruno Haible  <bruno@clisp.org>
70123             Jim Meyering  <meyering@redhat.com>
70125         lchown: Avoid "unused variable" warning.
70126         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
70128 2010-03-20  Bruno Haible  <bruno@clisp.org>
70130         Work around unlink() bug on MacOS X 10.5.6.
70131         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
70132         attempting to unlink a parent directory.
70133         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
70134         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
70135         activate for the replacement function.
70136         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
70138 2010-03-20  Bruno Haible  <bruno@clisp.org>
70140         Fix link errors on Solaris 8.
70141         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
70142         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
70144 2010-03-19  Jim Meyering  <meyering@redhat.com>
70146         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
70147         The _LIBC implementation of build_range_exp correctly honors the
70148         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
70149         However, the non-_LIBC implementation would ignore that syntax-bit
70150         flag and return REG_ERANGE unconditionally.
70151         This change makes it honor that flag.
70152         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
70153         Make two pointer parameters "const".
70154         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
70155         (parse_bracket_exp): Update caller.
70157         regex.m4: correct the reversed range endpoint ([b-a]) test
70158         * m4/regex.m4: When requiring that [b-a] evoke failure,
70159         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
70160         test pass once again for x86-based systems.
70162 2010-03-19  Bruno Haible  <bruno@clisp.org>
70164         scandir: Fix link error on Solaris 8.
70165         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
70166         macros.
70168 2010-03-19  Bruno Haible  <bruno@clisp.org>
70170         getusershell: Fix documentation.
70171         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
70172         module.
70173         * doc/glibc-functions/setusershell.texi: Likewise.
70175         getusershell: Provide declaration, missing on Solaris 9.
70176         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
70177         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
70178         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
70179         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
70180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70181         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
70182         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
70183         HAVE_GETUSERSHELL.
70184         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
70186 2010-03-19  Bruno Haible  <bruno@clisp.org>
70188         wctype: Provide iswblank function.
70189         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
70190         exists and is fine.
70191         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
70192         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
70193         * tests/test-wctype.c (main): Re-enable the iswblank tests.
70194         * doc/posix-functions/iswblank.texi: Update.
70196 2010-03-19  Bruno Haible  <bruno@clisp.org>
70198         Tests of module 'pty' in C++ mode.
70199         * modules/pty-tests: New file.
70200         * tests/test-pty-c++.cc: New file.
70201         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70203 2010-03-19  Eric Blake  <eblake@redhat.com>
70205         logb: fix documentation
70206         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
70207         1.5 declaration bug.
70209         forkpty, openpty: prefer glibc's const-safe prototype
70210         * lib/forkpty.c (rpl_forkpty): New file.
70211         * lib/openpty.c (rpl_openpty): Likewise.
70212         * modules/forkpty (Files): Distribute it.
70213         * modules/openpty (Files): Likewise.
70214         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
70215         check...
70216         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
70217         replacement for non-const BSD signature.
70218         * modules/pty (Makefile.am): Substitute witnesses.
70219         * lib/pty.in.h (forkpty, openpty): Declare replacements.
70220         * tests/test-forkpty.c: Update signature check.
70221         * tests/test-openpty.c: Likewise.
70222         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
70223         * doc/glibc-functions/openpty.texi (openpty): Likewise.
70225         forkpty, openpty: split functions into new modules
70226         * modules/pty (Makefile.am): Substitute new witnesses.
70227         (Libraries): Move library detection...
70228         * modules/forkpty: ...into new module.
70229         * modules/openpty: Another new module.
70230         * modules/pty-tests: Rename and split...
70231         * modules/forkpty-tests: ...to this...
70232         * modules/openpty-tests: ...and this.
70233         * tests/test-pty.c: Rename and split...
70234         * tests/test-forkpty.c: ...to this...
70235         * tests/test-openpty.c: ...and this.
70236         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
70237         (gl_PTY): Split library searching...
70238         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
70239         (gl_FORKPTY, gl_OPENPTY): New macros.
70240         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
70241         * NEWS: Mention the split.
70242         * MODULES.html.sh (Misc): Document the modules.
70243         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
70244         * doc/glibc-functions/openpty.texi (openpty): Likewise.
70246         pty: improve replacement header
70247         * lib/pty.in.h: New file.
70248         * modules/pty (Files): Ship it.
70249         (Makefile.am): Always build replacement.
70250         * m4/pty.m4: Rename...
70251         * m4/pty_h.m4: ...to this.
70252         (gl_PTY): Modernize setting of witness macros; update check of
70253         forkpty to take proper advantage of cache.
70254         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
70256         getopt: avoid compiler warning
70257         * lib/getopt.c (attribute_hidden): Remove unused macro.
70259 2010-03-18  Bruno Haible  <bruno@clisp.org>
70261         Fix link errors on Solaris 8.
70262         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
70263         * modules/search-tests (test_search_c___LDADD): Likewise.
70264         * modules/signal-tests (test_signal_c___LDADD): Likewise.
70265         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
70266         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
70267         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
70268         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
70269         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
70270         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
70272 2010-03-18  Bruno Haible  <bruno@clisp.org>
70274         Fix bug introduced on 2010-03-14.
70275         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
70276         (gl_SPAWN_H): Require it.
70277         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
70278         Reported by Simon Josefsson.
70280 2010-03-18  Bruno Haible  <bruno@clisp.org>
70282         Fix typo introduced on 2009-12-31.
70283         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
70284         posix_spawn_file_actions_adddup2.
70286 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
70287         and Eric Blake  <eblake@redhat.com>
70289         test-vc-list-files-git: make more robust
70290         * tests/test-vc-list-files-git.sh: Unset problematic environment
70291         variables.  Chain commands together.
70293 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
70295         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
70296         `AC_CHECK_DECL' invocation.
70298 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
70300         * lib/inttostr.c (inttostr): Make sure the invocation of verify
70301         appears before executable statements. Suggested by Petr Sumbera
70302         <Petr.Sumbera@Sun.COM>.
70304 2010-03-14  Bruno Haible  <bruno@clisp.org>
70306         * tests/test-flock.c (test_exclusive): Comment out a test that causes
70307         portability problems. Instead use a simpler test.
70308         (main): Check that invalid arguments are rejected only on Linux.
70310 2010-03-14  Bruno Haible  <bruno@clisp.org>
70312         Fix bug introduced on 2009-12-31.
70313         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
70314         gl_PREREQ_SYS_H_WINSOCK2 always.
70315         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
70316         SYS_SOCKET_H variable.
70317         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
70318         Update comments.
70319         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
70320         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70321         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70322         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
70323         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
70325 2010-03-14  Bruno Haible  <bruno@clisp.org>
70327         Fix values returned by sinl, cosl.
70328         * lib/trigl.h: Add specification comments.
70329         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
70330         that combines the values from the precomputed table with the values of
70331         the Chebyshev polynomials.
70333 2010-03-14  Bruno Haible  <bruno@clisp.org>
70335         Fix compilation error when modules 'posix_spawn[p]' are not used.
70336         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
70337         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
70339 2010-03-14  Bruno Haible  <bruno@clisp.org>
70341         Fix compilation error on mingw when module 'time_r' is not used.
70342         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
70343         is 1.
70344         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
70345         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70346         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
70347         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
70349 2010-03-14  Bruno Haible  <bruno@clisp.org>
70351         Fix compilation error with Sun C.
70352         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
70353         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
70354         instead of GCC specific ULONG_LONG_MAX.
70355         * lib/xstrtoll.c: Likewise.
70356         * lib/xstrtoull.c: Likewise.
70358 2010-03-13  Bruno Haible  <bruno@clisp.org>
70360         Allow the user to disable C++ code and tests.
70361         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
70362         (gl_PROG_ANSI_CXX): Require it.
70364 2010-03-13  Bruno Haible  <bruno@clisp.org>
70366         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
70367         cases.
70369 2010-03-13  Bruno Haible  <bruno@clisp.org>
70371         Test that gnulib does not break the standard C++ headers.
70372         * tests/test-locale-c++2.cc: New file.
70373         * modules/locale-tests (Files): Add it.
70374         (Makefile.am): Compile it for test-locale-c++.
70375         * tests/test-math-c++2.cc: New file.
70376         * modules/math-tests (Files): Add it.
70377         (Makefile.am): Compile it for test-math-c++.
70378         * tests/test-signal-c++2.cc: New file.
70379         * modules/signal-tests (Files): Add it.
70380         (Makefile.am): Compile it for test-signal-c++.
70381         * tests/test-stdio-c++2.cc: New file.
70382         * modules/stdio-tests (Files): Add it.
70383         (Makefile.am): Compile it for test-stdio-c++.
70384         * tests/test-stdlib-c++2.cc: New file.
70385         * modules/stdlib-tests (Files): Add it.
70386         (Makefile.am): Compile it for test-stdlib-c++.
70387         * tests/test-string-c++2.cc: New file.
70388         * modules/string-tests (Files): Add it.
70389         (Makefile.am): Compile it for test-string-c++.
70390         * tests/test-time-c++2.cc: New file.
70391         * modules/time-tests (Files): Add it.
70392         (Makefile.am): Compile it for test-time-c++.
70393         Reported by John W. Eaton <jwe@gnu.org>.
70395 2010-03-13  Bruno Haible  <bruno@clisp.org>
70397         * gnulib-tool (func_usage): Clarify which options are available for
70398         --create-testdir and --create-megatestdir.
70400 2010-03-13  Bruno Haible  <bruno@clisp.org>
70402         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
70403         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
70404         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
70405         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
70406         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
70407         when appropriate.
70408         Reported by Jim Meyering.
70410 2010-03-12  Simon Josefsson  <simon@josefsson.org>
70412         * gnulib-tool (func_import): Explain origin of code.
70414 2010-03-12  Bruno Haible  <bruno@clisp.org>
70416         Fix problem with automake's definition of CXXLINK.
70417         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
70418         Reported by Simon Josefsson and Ludovic Courtès.
70420 2010-03-12  Bruno Haible  <bruno@clisp.org>
70422         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
70423         stable releases.
70425 2010-03-11  Bruno Haible  <bruno@clisp.org>
70427         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
70428         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
70429         whether the system provides one variant or multiple variants of the
70430         function.
70431         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
70432         C++ compilers.
70433         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
70434         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
70435         Reported by Jim Meyering.
70437 2010-03-09  Simon Josefsson  <simon@josefsson.org>
70439         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
70441 2010-03-08  Bruno Haible  <bruno@clisp.org>
70443         gnulib-tool: Add support for --libtool in --create-testdir.
70444         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
70445         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
70447 2010-03-08  Eric Blake  <eblake@redhat.com>
70449         gnulib-tool.texi: mention possibility of git submodule
70450         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
70451         submodules.
70452         * doc/.gitignore: Ignore another generated file.
70454 2010-03-08  Karl Berry  <karl@gnu.org>
70456         * doc/gnulib-tool.texi (VCS Issues): Mention third option
70457         of committing gnulib files while skipping others.
70459 2010-03-07  Bruno Haible  <bruno@clisp.org>
70461         Tests of module 'wctype' in C++ mode.
70462         * tests/test-wctype-c++.cc: New file.
70463         * modules/wctype-tests (Files): Add it and tests/signature.h.
70464         (Depends-on): Add ansi-c++-opt.
70465         (Makefile.am): Arrange to compile and run test-wctype-c++.
70467         Tests of module 'wchar' in C++ mode.
70468         * tests/test-wchar-c++.cc: New file.
70469         * modules/wchar-tests (Files): Add it and tests/signature.h.
70470         (Depends-on): Add ansi-c++-opt.
70471         (Makefile.am): Arrange to compile and run test-wchar-c++.
70472         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
70473         gl_MODULE_INDICATOR.
70475         Tests of module 'unistd' in C++ mode.
70476         * tests/test-unistd-c++.cc: New file.
70477         * modules/unistd-tests (Files): Add it and tests/signature.h.
70478         (Depends-on): Add ansi-c++-opt.
70479         (Makefile.am): Arrange to compile and run test-unistd-c++.
70480         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
70481         gl_MODULE_INDICATOR.
70483         Tests of module 'time' in C++ mode.
70484         * tests/test-time-c++.cc: New file.
70485         * modules/time-tests (Files): Add it and tests/signature.h.
70486         (Depends-on): Add ansi-c++-opt.
70487         (Makefile.am): Arrange to compile and run test-time-c++.
70488         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70490         Tests of module 'sys_time' in C++ mode.
70491         * tests/test-sys_time-c++.cc: New file.
70492         * modules/sys_time-tests (Files): Add it and tests/signature.h.
70493         (Depends-on): Add ansi-c++-opt.
70494         (Makefile.am): Arrange to compile and run test-sys_time-c++.
70495         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
70496         gl_MODULE_INDICATOR.
70498         Tests of module 'sys_stat' in C++ mode.
70499         * tests/test-sys_stat-c++.cc: New file.
70500         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
70501         (Depends-on): Add ansi-c++-opt.
70502         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
70503         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
70504         gl_MODULE_INDICATOR.
70506         Tests of module 'sys_socket' in C++ mode.
70507         * tests/test-sys_socket-c++.cc: New file.
70508         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
70509         (Depends-on): Add ansi-c++-opt.
70510         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
70511         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
70512         gl_MODULE_INDICATOR.
70514         Tests of module 'sys_select' in C++ mode.
70515         * tests/test-sys_select-c++.cc: New file.
70516         * modules/sys_select-tests (Files): Add it and tests/signature.h.
70517         (Depends-on): Add ansi-c++-opt.
70518         (Makefile.am): Arrange to compile and run test-sys_select-c++.
70519         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
70520         gl_MODULE_INDICATOR.
70522         Tests of module 'sys_ioctl' in C++ mode.
70523         * tests/test-sys_ioctl-c++.cc: New file.
70524         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
70525         (Depends-on): Add ansi-c++-opt.
70526         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
70527         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
70528         gl_MODULE_INDICATOR.
70530         Tests of module 'string' in C++ mode.
70531         * tests/test-string-c++.cc: New file.
70532         * modules/string-tests (Files): Add it and tests/signature.h.
70533         (Depends-on): Add ansi-c++-opt.
70534         (Makefile.am): Arrange to compile and run test-string-c++.
70535         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
70536         gl_MODULE_INDICATOR.
70538         Tests of module 'stdlib' in C++ mode.
70539         * tests/test-stdlib-c++.cc: New file.
70540         * modules/stdlib-tests (Files): Add it and tests/signature.h.
70541         (Depends-on): Add ansi-c++-opt.
70542         (Makefile.am): Arrange to compile and run test-stdlib-c++.
70543         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
70544         gl_MODULE_INDICATOR.
70546         Tests of module 'stdio' in C++ mode.
70547         * tests/test-stdio-c++.cc: New file.
70548         * modules/stdio-tests (Files): Add it and tests/signature.h.
70549         (Depends-on): Add ansi-c++-opt.
70550         (Makefile.am): Arrange to compile and run test-stdio-c++.
70551         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
70552         gl_MODULE_INDICATOR.
70554         Tests of module 'spawn' in C++ mode.
70555         * tests/test-spawn-c++.cc: New file.
70556         * modules/spawn-tests (Files): Add it and tests/signature.h.
70557         (Depends-on): Add ansi-c++-opt.
70558         (Makefile.am): Arrange to compile and run test-spawn-c++.
70559         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
70560         gl_MODULE_INDICATOR.
70562         Tests of module 'signal' in C++ mode.
70563         * tests/test-signal-c++.cc: New file.
70564         * modules/signal-tests (Files): Add it and tests/signature.h.
70565         (Depends-on): Add ansi-c++-opt.
70566         (Makefile.am): Arrange to compile and run test-signal-c++.
70567         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
70568         gl_MODULE_INDICATOR.
70570         Tests of module 'search' in C++ mode.
70571         * tests/test-search-c++.cc: New file.
70572         * modules/search-tests (Files): Add it and tests/signature.h.
70573         (Depends-on): Add ansi-c++-opt.
70574         (Makefile.am): Arrange to compile and run test-search-c++.
70575         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
70576         gl_MODULE_INDICATOR.
70578         Tests of module 'math' in C++ mode.
70579         * tests/test-math-c++.cc: New file.
70580         * modules/math-tests (Files): Add it and tests/signature.h.
70581         (Depends-on): Add ansi-c++-opt.
70582         (Makefile.am): Arrange to compile and run test-math-c++.
70583         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70585         Tests of module 'locale' in C++ mode.
70586         * tests/test-locale-c++.cc: New file.
70587         * modules/locale-tests (Files): Add it and tests/signature.h.
70588         (Depends-on): Add ansi-c++-opt.
70589         (Makefile.am): Arrange to compile and run test-locale-c++.
70590         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
70591         gl_MODULE_INDICATOR.
70593         Tests of module 'langinfo' in C++ mode.
70594         * tests/test-langinfo-c++.cc: New file.
70595         * modules/langinfo-tests (Files): Add it and tests/signature.h.
70596         (Depends-on): Add ansi-c++-opt.
70597         (Makefile.am): Arrange to compile and run test-langinfo-c++.
70598         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
70599         gl_MODULE_INDICATOR.
70601         Tests of module 'iconv-h' in C++ mode.
70602         * tests/test-iconv-h-c++.cc: New file.
70603         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
70604         (Depends-on): Add ansi-c++-opt.
70605         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
70607         Tests of module 'glob' in C++ mode.
70608         * tests/test-glob-c++.cc: New file.
70609         * modules/glob-tests (Files): Add it.
70610         (Depends-on): Add ansi-c++-opt.
70611         (Makefile.am): Arrange to compile and run test-glob-c++.
70613         Tests of module 'fcntl-h' in C++ mode.
70614         * tests/test-fcntl-h-c++.cc: New file.
70615         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
70616         (Depends-on): Add ansi-c++-opt.
70617         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
70618         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
70619         gl_MODULE_INDICATOR.
70621         Tests of module 'dirent' in C++ mode.
70622         * tests/test-dirent-c++.cc: New file.
70623         * modules/dirent-tests (Files): Add it and tests/signature.h.
70624         (Depends-on): Add ansi-c++-opt.
70625         (Makefile.am): Arrange to compile and run test-dirent-c++.
70626         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
70627         gl_MODULE_INDICATOR.
70629         New module 'ansi-c++-opt'.
70630         * modules/ansi-c++-opt: New file.
70631         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
70633         Document C++ namespace mode.
70634         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
70636         wctype: Avoid #define replacements in C++ mode.
70637         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
70638         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
70639         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
70640         In C++, define a namespaced alias symbol.
70641         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
70642         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
70643         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
70644         rule.
70646         wchar: Avoid #define replacements in C++ mode.
70647         * lib/wchar.in.h: Include c++defs.h.
70648         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
70649         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
70650         symbol.
70651         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
70652         * modules/wchar (Depends-on): Add c++defs.
70653         (Makefile.am): Update wchar.h rule.
70655         unistd: Avoid #define replacements in C++ mode.
70656         * lib/unistd.in.h: Include c++defs.h.
70657         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
70658         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
70659         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
70660         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
70661         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
70662         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
70663         symbol.
70664         (environ): Update.
70665         * modules/unistd (Depends-on): Add c++defs.
70666         (Makefile.am): Update unistd.h rule.
70668         time: Avoid #define replacements in C++ mode.
70669         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
70670         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
70671         define a namespaced alias symbol.
70672         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
70673         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
70674         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
70675         * modules/time (Depends-on): Add c++defs, warn-on-use.
70676         (Makefile.am): Update time.h rule.
70677         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70678         * modules/nanosleep (configure.ac): Likewise.
70679         * modules/strptime (configure.ac): Likewise.
70680         * modules/timegm (configure.ac): Likewise.
70682         sys_time: Avoid #define replacements in C++ mode.
70683         * lib/sys_time.in.h: Include c++defs.h.
70684         (gettimeofday): In C++, define a namespaced alias symbol.
70685         * modules/sys_time (Depends-on): Add c++defs.
70686         (Makefile.am): Update sys/time.h rule.
70688         sys_stat: Avoid #define replacements in C++ mode.
70689         * lib/sys_stat.in.h: Include c++defs.h.
70690         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
70691         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
70692         namespaced alias symbol.
70693         In C++, define a namespaced alias symbol.
70694         * modules/sys_stat (Depends-on): Add c++defs.
70695         (Makefile.am): Update sys/stat.h rule.
70697         sys_socket: Avoid #define replacements in C++ mode.
70698         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
70699         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
70700         definitions also when the system has a <sys/socket.h>.
70701         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
70702         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
70703         In C++, define a namespaced alias symbol.
70704         * modules/sys_socket (Depends-on): Add c++defs.
70705         (Makefile.am): Update sys/socket.h rule.
70707         sys_select: Avoid #define replacements in C++ mode.
70708         * lib/sys_select.in.h: Include c++defs.h. Enable the function
70709         definitions also when the system has a <sys/select.h>.
70710         (select): In C++, define a namespaced alias symbol.
70711         * modules/sys_select (Depends-on): Add c++defs.
70712         (Makefile.am): Update sys/select.h rule.
70714         sys_ioctl: Avoid #define replacements in C++ mode.
70715         * lib/sys_ioctl.in.h: Include c++defs.h.
70716         (ioctl): In C++, define a namespaced alias symbol.
70717         * modules/sys_ioctl (Depends-on): Add c++defs.
70718         (Makefile.am): Update sys/ioctl.h rule.
70720         string: Avoid #define replacements in C++ mode.
70721         * lib/string.in.h: Include c++defs.h.
70722         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
70723         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
70724         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
70725         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
70726         strsignal, strverscmp): In C++, define a namespaced alias symbol.
70727         * modules/string (Depends-on): Add c++defs.
70728         (Makefile.am): Update string.h rule.
70730         stdlib: Avoid #define replacements in C++ mode.
70731         * lib/stdlib.in.h: Include c++defs.h.
70732         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
70733         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
70734         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
70735         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
70736         symbol.
70737         * modules/stdlib (Depends-on): Add c++defs.
70738         (Makefile.am): Update stdlib.h rule.
70740         stdio: Avoid #define replacements in C++ mode.
70741         * lib/stdio.in.h: Include c++defs.h.
70742         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
70743         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
70744         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
70745         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
70746         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
70747         namespaced alias symbol.
70748         * modules/stdio (Depends-on): Add c++defs.
70749         (Makefile.am): Update stdio.h rule.
70751         spawn: Avoid #define replacements in C++ mode.
70752         * lib/spawn.in.h: Include c++defs.h.
70753         (posix_spawn, posix_spawnp, posix_spawnattr_init,
70754         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
70755         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
70756         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
70757         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
70758         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
70759         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
70760         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
70761         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
70762         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
70763         In C++, define a namespaced alias symbol.
70764         * modules/spawn (Depends-on): Add c++defs.
70765         (Makefile.am): Update spawn.h rule.
70767         signal: Avoid #define replacements in C++ mode.
70768         * lib/signal.in.h: Include c++defs.h.
70769         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
70770         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
70771         namespaced alias symbol.
70772         * modules/signal (Depends-on): Add c++defs.
70773         (Makefile.am): Update signal.h rule.
70775         search: Avoid #define replacements in C++ mode.
70776         * lib/search.in.h: Include c++defs.h.
70777         (_gl_search_compar_fn, _gl_search_action_fn): New types.
70778         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
70779         symbol.
70780         * modules/search (Depends-on): Add c++defs.
70781         (Makefile.am): Update search.h rule.
70783         math: Avoid #define replacements in C++ mode.
70784         * lib/math.in.h: Include c++defs.h.
70785         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
70786         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
70787         trunc, truncl): In C++, define a namespaced alias symbol.
70788         * modules/math (Depends-on): Add c++defs.
70789         (Makefile.am): Update math.h rule.
70791         locale: Avoid #define replacements in C++ mode.
70792         * lib/locale.in.h: Include c++defs.h.
70793         (duplocale): In C++, define a namespaced alias symbol.
70794         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
70795         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
70796         * modules/locale (Depends-on): Add c++defs.
70797         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
70799         langinfo: Avoid #define replacements in C++ mode.
70800         * lib/langinfo.in.h: Include c++defs.h.
70801         (nl_langinfo): In C++, define a namespaced alias symbol.
70802         * modules/langinfo (Depends-on): Add c++defs.
70803         (Makefile.am): Update langinfo.h rule.
70805         iconv-h: Avoid #define replacements in C++ mode.
70806         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
70807         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
70808         symbol.
70809         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
70810         whenever iconv is present.
70811         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
70812         (Makefile.am): Update iconv.h rule.
70814         glob: Avoid #define replacements in C++ mode.
70815         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
70816         (_gl_glob_errfunc_fn): New type.
70817         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
70818         symbol.
70819         * modules/glob (Depends-on): Add c++defs, warn-on-use.
70820         (Makefile.am): Update glob.h rule.
70822         fcntl-h: Avoid #define replacements in C++ mode.
70823         * lib/fcntl.in.h: Include c++defs.h.
70824         (fcntl, open, openat): In C++, define a namespaced alias symbol.
70825         * modules/fcntl-h (Depends-on): Add c++defs.
70826         (Makefile.am): Update fcntl.h rule.
70828         dirent: Avoid #define replacements in C++ mode.
70829         * lib/dirent.in.h: Include c++defs.h.
70830         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
70831         namespaced alias symbol.
70832         (dirfd): Update declaration.
70833         * modules/dirent (Depends-on): Add c++defs.
70834         (Makefile.am): Update dirent.h rule.
70836         ctype: Make it usable in C++ code.
70837         * lib/ctype.in.h: Include c++defs.h.
70838         (isblank): Declare as extern "C".
70839         * modules/ctype (Depends-on): Add c++defs.
70840         (Makefile.am): Update ctype.h rule.
70842         New module 'c++defs'.
70843         * modules/c++defs: New file.
70844         * build-aux/c++defs.h: New file.
70845         Reported by John W. Eaton <jwe@gnu.org>.
70847 2010-03-07  Bruno Haible  <bruno@clisp.org>
70849         logb: Provide missing declaration for Cygwin.
70850         * lib/math.in.h (logb): New declaration.
70851         * m4/logb.m4: New file.
70852         * modules/logb (Files): Add m4/logb.m4.
70853         (Depends-on): Add math.
70854         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
70855         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
70856         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
70857         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
70858         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
70860 2010-03-07  Bruno Haible  <bruno@clisp.org>
70862         Fix test-cond link error.
70863         * tests/test-cond.c: Include <stdio.h>.
70865 2010-03-07  Bruno Haible  <bruno@clisp.org>
70867         Fix test-dirent-safer link error.
70868         * modules/dirent-safer-tests (Makefile.am): Define
70869         test_dirent_safer_LDADD.
70871 2010-03-07  Bruno Haible  <bruno@clisp.org>
70873         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
70874         among default module list.
70876 2010-03-07  Bruno Haible  <bruno@clisp.org>
70878         Fix link error on platforms with GNU libiconv.
70879         * modules/unistr/u8-strcoll-tests (Makefile): Define
70880         test_u8_strcoll_LDADD.
70881         * modules/unistr/u16-strcoll-tests (Makefile): Define
70882         test_u16_strcoll_LDADD.
70883         * modules/unistr/u32-strcoll-tests (Makefile): Define
70884         test_u32_strcoll_LDADD.
70886 2010-03-07  Bruno Haible  <bruno@clisp.org>
70888         Use POSIX declarations for socket functions.
70889         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
70890         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
70891         rpl_sendto): Change declaration to match POSIX.
70892         * lib/connect.c (rpl_connect): Likewise.
70893         * lib/accept.c (rpl_accept): Likewise.
70894         * lib/bind.c (rpl_bind): Likewise.
70895         * lib/getpeername.c (rpl_getpeername): Likewise.
70896         * lib/getsockname.c (rpl_getsockname): Likewise.
70897         * lib/recv.c (rpl_recv): Likewise.
70898         * lib/send.c (rpl_send): Likewise.
70899         * lib/recvfrom.c (rpl_recvfrom): Likewise.
70900         * lib/sendto.c (rpl_sendto): Likewise.
70902 2010-03-06  Bruno Haible  <bruno@clisp.org>
70904         Clarify access, euidaccess, faccessat.
70905         * doc/posix-functions/faccessat.texi: Mention security problem under
70906         "Other problems", not "Portability problems".
70907         * doc/posix-functions/access.texi: Likewise. Mention a related security
70908         problem.
70909         * doc/glibc-functions/euidaccess.texi: Mention security problems.
70910         * lib/euidaccess.c: Add comments about platforms.
70911         * lib/unistd.in.h (access, euidaccess): Add warnings.
70913 2010-03-07  Bruno Haible  <bruno@clisp.org>
70915         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
70916         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
70917         (POSIX_SPAWN_SETSCHEDULER): Likewise.
70918         (POSIX_SPAWN_USEVFORK): Define in a way that works when
70919         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
70920         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
70921         declare when POSIX_SPAWN_SETSCHEDULER is zero.
70922         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
70923         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
70924         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
70925         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
70926         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
70927         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
70928         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
70929         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
70930         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
70931         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
70932         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
70933         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
70934         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
70935         Likewise.
70936         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
70937         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
70938         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
70939         Likewise.
70940         * tests/test-spawn.c (main): Make it work when
70941         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
70943 2010-03-07  Bruno Haible  <bruno@clisp.org>
70945         Fix incorrect Makefile.am generation in German locale.
70946         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70947         Execute sed command with character range in C locale.
70949 2010-03-06  Bruno Haible  <bruno@clisp.org>
70951         Tests for module 'iconv-h'.
70952         * modules/iconv-h-tests: New file.
70953         * tests/test-iconv-h.c: New file.
70955         New module 'iconv-h'.
70956         * modules/iconv-h: New file.
70957         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
70958         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
70959         (configure.ac): Remove gl_ICONV_H.
70960         (Makefile.am): Remove rule for iconv.h.
70962 2010-03-06  Bruno Haible  <bruno@clisp.org>
70964         More consistent naming of *.m4 files.
70965         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
70966         * modules/wctype (Files): Update.
70968         More consistent naming of *.m4 files.
70969         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
70970         * modules/wchar (Files): Update.
70972 2010-03-06  Jim Meyering  <meyering@redhat.com>
70974         euidaccess: relax license to LGPLv2+
70975         * modules/euidaccess (License): Relax to LGPLv2+.
70977 2010-03-06  Bruno Haible  <bruno@clisp.org>
70979         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
70980         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
70981         (Makefile.am): Augment lib_SOURCES instead.
70983 2010-03-04  Jim Meyering  <meyering@redhat.com>
70985         utime: remove obsolete module
70986         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
70987         unnecessary for years, and has been marked as obsolete for 10 months.
70988         * modules/utime: Remove file.
70989         * lib/utime.c: Remove file.
70990         * m4/utime.m4: Remove file.
70991         * m4/utimes-null.m4: Remove file.
70992         * doc/posix-functions/utime.texi (utime): Remove reference to
70993         the module.  Move the sole "fixed by gnulib" item into the
70994         "problems not fixed by Gnulib" list.
70995         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
70997 2010-03-05  Simon Josefsson  <simon@josefsson.org>
70999         * modules/exit (License): Relax license to LGPLv2+.
71000         (Status): Mark as obsolete.
71001         * NEWS: Mention deprecated 'exit' module.
71002         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
71003         of now obsolete 'exit'.
71005 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71007         fts-lgpl: remove unused module
71008         * modules/fts-lgpl: Remove.
71009         * MODULES.html.sh (func_all_modules): Adjust.
71010         * check-module (find_included_lib_files): Adjust.
71011         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
71013 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
71015         copy-acl: enhance Solaris ACL error handling
71016         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
71017         * lib/set-mode-acl.c (qset_acl): Likewise.
71019 2010-03-02  Bruno Haible  <bruno@clisp.org>
71021         spawn: Don't override the system defined values on FreeBSD 8.
71022         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
71023         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
71024         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
71025         if HAVE_POSIX_SPAWN is 1.
71026         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
71028 2010-03-01  Bruno Haible  <bruno@clisp.org>
71030         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
71031         regarding Automake.
71033 2010-02-25  Bruno Haible  <bruno@clisp.org>
71035         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
71036         * gnulib-tool: Define 'echo' as a function only before the ksh alias
71037         setting, not afterwards.
71038         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
71040 2010-02-24  Eric Blake  <eblake@redhat.com>
71042         bootstrap, git-version-gen: use timestamp
71043         * build-aux/git-version-gen (scriptversion): Force UTC.
71044         * build-aux/bootstrap (scriptversion): New variable.
71046         bootstrap: allow older git
71047         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
71048         older than 1.6.4.  Requested by the libvirt project.
71050 2010-02-23  Eric Blake  <eblake@redhat.com>
71052         warn-on-use: work with old autoconf
71053         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
71054         AS_VAR semantics of autoconf 2.60.
71055         Reported by Bruno Haible.
71057         bootstrap: improve some comments
71058         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
71059         clarification comments.
71061         gettimeofday: provide correct function
71062         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
71063         when replacement is declared, otherwise provide gettimeofday.
71064         Reported by Michael Goffioul.
71066 2010-02-23  Jim Meyering  <meyering@redhat.com>
71068         lib-ignore: relax license to "unlimited", not LGPLv2+
71069         * modules/lib-ignore (License): Relax to "unlimited".
71071 2010-02-23  Jim Meyering  <meyering@redhat.com>
71073         lib-ignore: relax license to LGPLv2+
71074         * modules/lib-ignore (License): Relax to LGPLv2+.
71076 2010-02-22  Eric Blake  <eblake@redhat.com>
71078         lseek: avoid bash 3.2 broken pipe bug
71079         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
71080         warning from bash 3.2.
71081         Reported by Ben Pfaff, with analysis from Bruno Haible.
71083         bootstrap: support non-FSF copyright holder
71084         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
71085         bootstrap.conf override of COPYRIGHT_HOLDER.
71086         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
71088         bootstrap: interoperate with gettext 0.14.1
71089         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
71091         bootstrap: allow for alternate submodule location
71092         * build-aux/bootstrap (gnulib_path): New variable; use instead of
71093         hardcoding submodule location.
71094         (gnulib_mk): Allow direct use of Makefile.am.
71096         bootstrap: use GNULIB_SRCDIR to reduce disk usage
71097         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
71098         rather than reconfiguring where the submodule points.
71100         gettimeofday: restore support for platforms that lack function
71101         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
71102         replacement if function is missing.
71103         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
71104         * modules/sys_time (Makefile.am): Substitute it.
71105         * lib/sys_time.in.h (gettimeofday): Check it.
71106         Reported by Michael Goffioul.
71108 2010-02-21  Bruno Haible  <bruno@clisp.org>
71110         * lib/stdio.in.h (obstack_printf): Fix typo.
71112 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
71114         vc-list-files: use bzr ls's -R option
71115         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
71116         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
71118 2010-02-21  Jim Meyering  <meyering@redhat.com>
71120         init.sh: fix EXEEXT shims to work also for names like test-prog
71121         * tests/init.sh: Re-exec a better shell, when needed.
71122         If the current shell lacks support for posix $(...), an init.sh-using
71123         test will now try to find a shell that supports that.  If EXEEXT is
71124         nonempty, we also require support for hyphen-in-alias-name and shell
71125         substitutions like ${var#glob}.  Failure to find such a shell results
71126         in a skipped test.
71128 2010-02-21  Bruno Haible  <bruno@clisp.org>
71130         Really work around "broken pipe" error message from bash 3.2.
71131         * gnulib-tool (func_reset_sigpipe): Remove function.
71132         (echo): In bash 3.2, define to a function that uses printf.
71133         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
71135 2010-02-20  Bruno Haible  <bruno@clisp.org>
71137         Restore support for automake 1.9.6 with autoconf 2.61.
71138         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
71139         Reported by James Youngman <jay@gnu.org>.
71141 2010-02-20  Bruno Haible  <bruno@clisp.org>
71143         Improve *printf warning condition.
71144         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
71145         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
71146         and the function is overridden due to SIGPIPE emulation.
71148 2010-02-20  Bruno Haible  <bruno@clisp.org>
71150         * lib/stdio.in.h: Tweak comments.
71152 2010-02-19  Bruno Haible  <bruno@clisp.org>
71154         Make it easier to find modules. New gnulib-tool option '--find'.
71155         * gnulib-tool: New option --find.
71156         (func_usage): Document it.
71157         (func_sanitize_modulelist): New function, extracted from
71158         func_all_modules.
71159         (func_all_modules): Invoke it.
71160         * doc/gnulib-tool.texi (Which modules?): New node.
71162 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
71164         * lib/sys_select.in.h: Provide select replacement even if
71165         sys/select.h exists on a system, for Interix.
71167 2010-02-18  Jim Meyering  <meyering@redhat.com>
71169         init.sh: don't use $(...) just yet
71170         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
71171         to accommodate e.g., Solaris' /bin/sh.
71173 2010-02-17  Bruno Haible  <bruno@clisp.org>
71175         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
71176         Reported by Ludovic Courtès <ludo@gnu.org>.
71178 2010-02-16  Simon Josefsson  <simon@josefsson.org>
71180         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
71181         linking with -lintl.
71183 2010-02-17  Simon Josefsson  <simon@josefsson.org>
71185         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
71186         if not provided by the system's netdb.h.  Reported by
71187         ludo@gnu.org (Ludovic Courtès).
71189 2010-02-15  Jim Meyering  <meyering@redhat.com>
71191         init.sh: improve portability and efficiency
71192         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
71193         "dummy" in a for loop.
71194         Use '!', not '^' to select the complement of a character set used
71195         in a "case" statement.
71196         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
71197         Suggestions from Eric Blake.
71199         init.sh: automatically accommodate programs with the .exe suffix
71200         Automatically arrange for an invocation of "prog" to execute the
71201         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
71202         may use the simpler "prog", yet still work when built on a system
71203         that requires specifying the added suffix.
71204         Do this by constructing a function named "prog" that invokes
71205         "prog.exe" for each .exe file in selected directories.
71206         * tests/init.sh (find_exe_basenames_): New function.
71207         (create_exe_shim_functions_): New function.
71208         (path_prepend_): Use it.
71210         maint.mk: mark syntax-check sc_*.m rules as .PHONY
71211         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
71212         "make -t syntax-check" doesn't create a ton of sc_*.m files.
71214 2010-02-14  Jim Meyering  <meyering@redhat.com>
71216         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
71217         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
71218         (sc_prohibit_hash_pjw_without_use): New rule.
71220         maint.mk: allow the default upload destination dir to be overridden
71221         * top/maint.mk (upload_dest_dir_): Define with a default that
71222         preserves the status quo.
71223         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
71224         Reported by Peter Simons.
71226         maint.mk: prohibit inclusion of "hash.h" without_use
71227         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
71229 2010-02-10  Jim Meyering  <meyering@redhat.com>
71231         maint.mk: prohibit inclusion of "ignore-value.h" without_use
71232         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
71234 2010-02-09  Eric Blake  <ebb9@byu.net>
71235         and Bruno Haible  <bruno@clisp.org>
71237         obstack-printf-posix: ensure declaration
71238         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
71239         extracted from gl_FUNC_OBSTACK_PRINTF.
71240         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
71241         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
71242         Likewise.
71243         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
71244         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
71245         0.
71247 2010-02-08  Bruno Haible  <bruno@clisp.org>
71249         gnulib-tool: Fix typo in 2010-02-07 commit.
71250         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
71251         Reported by Eric Blake.
71253 2010-02-07  Bruno Haible  <bruno@clisp.org>
71255         gnulib-tool: Fix up caching patches.
71256         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
71257         option --no-cache. Use associative arrays when supported by the shell.
71258         (sed_comments): New variable.
71259         (modcache): Renamed from do_cache.
71260         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
71261         abbreviate unnecessarily.
71262         (have_associative): New variable.
71263         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
71264         way also for ksh and zsh.
71265         (func_init_sed_convert_to_cache_statements): New function, extracted
71266         from func_cache_lookup_module. Add support for associative arrays.
71267         Don't set the c_MODULE_cached variable here. Ignore all lines before
71268         the first field header. Remove only the final newline, not all trailing
71269         newlines. Support empty fields correctly. Limit the use of 'eval' to
71270         assignments.
71271         (func_get_description, func_get_status, func_get_notice,
71272         func_get_applicability, func_get_filelist, func_get_dependencies,
71273         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
71274         func_get_automake_snippet, func_get_include_directive,
71275         func_get_link_directive, func_get_license, func_get_maintainer):
71276         Update documentation. List the unoptimized code first. Add support for
71277         associative arrays. Limit the use of 'eval' to assignments.
71278         (func_get_applicability): Undo stylistic pessimisations.
71279         (func_get_automake_snippet, func_get_include_directive): Reduce code
71280         duplication.
71281         (func_modules_transitive_closure, func_modules_add_dummy,
71282         func_modules_notice, func_modules_to_filelist, func_add_file,
71283         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
71284         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
71285         func_create_testdir, func_create_megatestdir): Update documentation.
71287 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71289         * gnulib-tool (func_cache_lookup_module): Store the module name
71290         belonging to the cache variable; error out if two different
71291         module names map to the same cache variable name.
71293 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71295         gnulib-tool: Make caching optional.
71296         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
71297         Update matching short versions of --no-changelog.
71298         (func_usage): Update.
71299         (sed_extract_cache_prog): Renamed from ...
71300         (sed_extract_prog): ... this; revert to old extraction script.
71301         (func_get_description, func_get_status)
71302         (func_get_notice, func_get_applicability, func_get_filelist)
71303         (func_get_dependencies, func_get_autoconf_early_snippet)
71304         (func_get_autoconf_snippet, func_get_automake_snippet)
71305         (func_get_include_directive, func_get_link_directive)
71306         (func_get_license, func_get_maintainer): If $do_cache is false,
71307         use old, non-caching extraction scripts.
71308         Suggestion by Bruno Haible.
71310 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71312         gnulib-tool: cache module metainformation.
71313         * gnulib-tool (sed_extract_prog): Match newline before each
71314         header, and rewrite header to a shell variable suffix.
71315         (func_cache_var, func_cache_lookup_module): New functions,
71316         to turn a module name into a cache variable prefix, and to
71317         look up and cache module metainformation.
71318         (func_get_description, func_get_status)
71319         (func_get_notice, func_get_applicability, func_get_filelist)
71320         (func_get_dependencies, func_get_autoconf_early_snippet)
71321         (func_get_autoconf_snippet, func_get_automake_snippet)
71322         (func_get_include_directive, func_get_link_directive)
71323         (func_get_license, func_get_maintainer): Use
71324         func_cache_lookup_module.
71326 2010-02-07  Bruno Haible  <bruno@clisp.org>
71328         fnctl: Fix missing dependency.
71329         * modules/fcntl (Depends-on): Add getdtablesize.
71330         Reported by John W. Eaton <jwe@gnu.org>.
71332 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71334         Argp: fix recognition of short alias options.
71336         * lib/argp-parse.c (convert_options): Fix improper use of
71337         `|' between character values.
71338         * tests/test-argp.c (group1_option): New alias option
71339         --read (-r).
71340         (group1_parser): Special handling for 'r'.
71341         (test15): New test case.
71342         (test_fun): Add test15.
71343         * tests/test-argp-2.sh: Update expected --help and --usage
71344         outputs.
71346 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71348         * tests/test-argp.c: Fix indentation.
71350 2010-02-04  Eric Blake  <ebb9@byu.net>
71352         gettimeofday: expose type of second argument
71353         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
71354         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
71355         * tests/test-gettimeofday.c: Use it to silence warning.
71356         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
71357         the issue.
71359 2010-02-03  Jim Meyering  <meyering@redhat.com>
71361         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
71362         * lib/regcomp.c (TYPE_SIGNED): Define.
71363         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
71365         regcomp.c: avoid a new -Wshadow warning
71366         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
71368 2010-02-01  Jim Meyering  <meyering@redhat.com>
71370         removing useless parentheses in cpp #define directives
71371         For motivation, see commit c0221df4, "define STREQ(a,b)
71372         consistently, removing useless parentheses"
71373         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
71374         * lib/mountlist.c (MNT_IGNORE): Likewise.
71375         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
71377 2010-02-01  Eric Blake  <ebb9@byu.net>
71379         sys_time: use link-warning
71380         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
71381         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
71382         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
71383         * modules/sys_time (Depends-on): Add warn-on-use.
71384         (Makefile.am): Always build replacement.
71385         (configure.ac): Update substitutions.
71386         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
71387         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
71388         bother with SYS_TIME_H.
71389         * modules/gettimeofday (configure.ac): Declare indicator.
71390         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
71391         in use.
71393         closein-tests: silence compiler warning
71394         * tests/test-closein.c (main): Ignore fread result.
71395         * modules/closein-tests (Depends-on): Add ignore-value.
71397         tests: silence warning about system return
71398         * tests/test-areadlink-with-size.c (main): Ignore system result.
71399         * tests/test-areadlink.c (main): Likewise.
71400         * tests/test-areadlinkat-with-size.c (main): Likewise.
71401         * tests/test-areadlinkat.c (main): Likewise.
71402         * tests/test-canonicalize-lgpl.c (main): Likewise.
71403         * tests/test-canonicalize.c (main): Likewise.
71404         * tests/test-chown.c (main): Likewise.
71405         * tests/test-fchownat.c (main): Likewise.
71406         * tests/test-fdutimensat.c (main): Likewise.
71407         * tests/test-fstatat.c (main): Likewise.
71408         * tests/test-futimens.c (main): Likewise.
71409         * tests/test-lchown.c (main): Likewise.
71410         * tests/test-link.c (main): Likewise.
71411         * tests/test-linkat.c (main): Likewise.
71412         * tests/test-lstat.c (main): Likewise.
71413         * tests/test-mkdir.c (main): Likewise.
71414         * tests/test-mkdirat.c (main): Likewise.
71415         * tests/test-mkfifo.c (main): Likewise.
71416         * tests/test-mkfifoat.c (main): Likewise.
71417         * tests/test-mknod.c (main): Likewise.
71418         * tests/test-readlink.c (main): Likewise.
71419         * tests/test-remove.c (main): Likewise.
71420         * tests/test-rename.c (main): Likewise.
71421         * tests/test-renameat.c (main): Likewise.
71422         * tests/test-rmdir.c (main): Likewise.
71423         * tests/test-symlink.c (main): Likewise.
71424         * tests/test-symlinkat.c (main): Likewise.
71425         * tests/test-unlink.c (main): Likewise.
71426         * tests/test-unlinkat.c (main): Likewise.
71427         * tests/test-utimens.c (main): Likewise.
71428         * tests/test-utimensat.c (main): Likewise.
71429         * modules/areadlink-tests (Depends-on): Add ignore-value.
71430         * modules/areadlink-with-size-tests (Depends-on): Likewise.
71431         * modules/areadlinkat-tests (Depends-on): Likewise.
71432         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
71433         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
71434         * modules/canonicalize-tests (Depends-on): Likewise.
71435         * modules/chown-tests (Depends-on): Likewise.
71436         * modules/fdutimensat-tests (Depends-on): Likewise.
71437         * modules/futimens-tests (Depends-on): Likewise.
71438         * modules/lchown-tests (Depends-on): Likewise.
71439         * modules/link-tests (Depends-on): Likewise.
71440         * modules/linkat-tests (Depends-on): Likewise.
71441         * modules/lstat-tests (Depends-on): Likewise.
71442         * modules/mkdir-tests (Depends-on): Likewise.
71443         * modules/mkfifo-tests (Depends-on): Likewise.
71444         * modules/mkfifoat-tests (Depends-on): Likewise.
71445         * modules/mknod-tests (Depends-on): Likewise.
71446         * modules/openat-tests (Depends-on): Likewise.
71447         * modules/readlink-tests (Depends-on): Likewise.
71448         * modules/remove-tests (Depends-on): Likewise.
71449         * modules/rename-tests (Depends-on): Likewise.
71450         * modules/renameat-tests (Depends-on): Likewise.
71451         * modules/rmdir-tests (Depends-on): Likewise.
71452         * modules/symlink-tests (Depends-on): Likewise.
71453         * modules/symlinkat-tests (Depends-on): Likewise.
71454         * modules/unlink-tests (Depends-on): Likewise.
71455         * modules/utimens-tests (Depends-on): Likewise.
71456         * modules/utimensat-tests (Depends-on): Likewise.
71458 2010-01-31  Bruno Haible  <bruno@clisp.org>
71460         Perform the same test for many <math.h> functions.
71461         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
71462         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
71463         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
71464         of gl_MATHFUNC.
71465         * modules/acos (configure.ac): Likewise.
71466         * modules/asin (configure.ac): Likewise.
71467         * modules/atan (configure.ac): Likewise.
71468         * modules/atan2 (configure.ac): Likewise.
71469         * modules/cbrt (configure.ac): Likewise.
71470         * modules/copysign (configure.ac): Likewise.
71471         * modules/cos (configure.ac): Likewise.
71472         * modules/cosh (configure.ac): Likewise.
71473         * modules/erf (configure.ac): Likewise.
71474         * modules/erfc (configure.ac): Likewise.
71475         * modules/exp (configure.ac): Likewise.
71476         * modules/fmod (configure.ac): Likewise.
71477         * modules/hypot (configure.ac): Likewise.
71478         * modules/j0 (configure.ac): Likewise.
71479         * modules/j1 (configure.ac): Likewise.
71480         * modules/jn (configure.ac): Likewise.
71481         * modules/lgamma (configure.ac): Likewise.
71482         * modules/log (configure.ac): Likewise.
71483         * modules/log10 (configure.ac): Likewise.
71484         * modules/log1p (configure.ac): Likewise.
71485         * modules/pow (configure.ac): Likewise.
71486         * modules/remainder (configure.ac): Likewise.
71487         * modules/sin (configure.ac): Likewise.
71488         * modules/sinh (configure.ac): Likewise.
71489         * modules/tan (configure.ac): Likewise.
71490         * modules/tanh (configure.ac): Likewise.
71491         * modules/y0 (configure.ac): Likewise.
71492         * modules/y1 (configure.ac): Likewise.
71493         * modules/yn (configure.ac): Likewise.
71494         Suggested by Paolo Bonzini.
71496 2010-01-31  Bruno Haible  <bruno@clisp.org>
71498         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
71500 2010-01-31  Bruno Haible  <bruno@clisp.org>
71502         Work around getdelim() bug on FreeBSD 8.0.
71503         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
71504         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
71505         not work.
71506         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
71507         is 1.
71508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
71509         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
71510         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
71511         a non-zero size.
71512         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
71514 2010-01-31  Bruno Haible  <bruno@clisp.org>
71516         Work around getline() bug on FreeBSD 8.0.
71517         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
71518         and a non-zero size.
71519         * tests/test-getline.c (main): Likewise.
71520         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
71521         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
71523 2010-01-28  Eric Blake  <ebb9@byu.net>
71525         regex: fix build failure
71526         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
71527         platforms.
71529 2010-01-28  Jim Meyering  <meyering@redhat.com>
71531         regex: do not ignore memory allocation failure
71532         * lib/regex_internal.c (create_cd_newstate): Detect
71533         re_node_set_init_copy failure.   Extracted from glibc commit
71534         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71536         regex: sync more white-space changes from libc
71537         * lib/regex_internal.c: White-space only changes.
71538         * lib/regexec.c: Likewise.
71540         regex: add many uses of __attribute_warn_unused_result__
71541         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
71542         * lib/regexec.c: Likewise.
71543         Extracted from a messy glibc commit.
71545         regcomp.c: spelling and merge-artifact from glibc
71546         * lib/regcomp.c: Merge remainder of glibc's
71547         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71549         regcomp.c: sync white-space changes from glibc
71550         * lib/regcomp.c: Merge to accommodate white space
71551         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71553         regcomp.c: do not ignore internal return values
71554         * lib/regcomp.c: Do not ignore internal return values.
71555         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
71556         but without its white-space changes and spelling fixes.
71558         regex_internal.h: define __attribute_warn_unused_result__
71559         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
71561         maint: add a syntax-check rule to check for vulnerable Makefile.in
71562         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
71564 2010-01-27  Jim Meyering  <meyering@redhat.com>
71566         ncftpput-ftp: clean up spaces
71567         * build-aux/ncftpput-ftp: Make Copyright line consistent.
71568         Remove trailing blanks.
71570 2010-01-27  Simon Josefsson  <simon@josefsson.org>
71572         * build-aux/git-version-gen: Fix copyright statement.
71573         * build-aux/gnupload: Likewise.
71574         * tests/test-arcfour.c: Likewise.
71575         * tests/test-arctwo.c: Likewise.
71576         * tests/test-count-one-bits.c: Likewise.
71577         * tests/test-crc.c: Likewise.
71578         * tests/test-des.c: Likewise.
71579         * tests/test-gc-arcfour.c: Likewise.
71580         * tests/test-gc-arctwo.c: Likewise.
71581         * tests/test-gc-des.c: Likewise.
71582         * tests/test-gc-hmac-md5.c: Likewise.
71583         * tests/test-gc-hmac-sha1.c: Likewise.
71584         * tests/test-gc-md2.c: Likewise.
71585         * tests/test-gc-md4.c: Likewise.
71586         * tests/test-gc-md5.c: Likewise.
71587         * tests/test-gc-pbkdf2-sha1.c: Likewise.
71588         * tests/test-gc-rijndael.c: Likewise.
71589         * tests/test-gc-sha1.c: Likewise.
71590         * tests/test-gc.c: Likewise.
71591         * tests/test-gethostname.c: Likewise.
71592         * tests/test-gettimeofday.c: Likewise.
71593         * tests/test-hash.c: Likewise.
71594         * tests/test-hmac-md5.c: Likewise.
71595         * tests/test-hmac-sha1.c: Likewise.
71596         * tests/test-md2.c: Likewise.
71597         * tests/test-md4.c: Likewise.
71598         * tests/test-md5.c: Likewise.
71599         * tests/test-memchr.c: Likewise.
71600         * tests/test-memchr2.c: Likewise.
71601         * tests/test-memcmp.c: Likewise.
71602         * tests/test-memmem.c: Likewise.
71603         * tests/test-memrchr.c: Likewise.
71604         * tests/test-rawmemchr.c: Likewise.
71605         * tests/test-read-file.c: Likewise.
71606         * tests/test-rijndael.c: Likewise.
71607         * tests/test-sockets.c: Likewise.
71608         * tests/test-strchrnul.c: Likewise.
71609         * tests/test-strstr.c: Likewise.
71610         * tests/test-strtod.c: Likewise.
71611         * build-aux/ncftpput-ftp: Likewise.
71613 2010-01-26  Eric Blake  <ebb9@byu.net>
71615         ignore-value: update recommended header name
71616         * modules/ignore-value (Include): Only use <> for headers that
71617         exist in glibc.
71619 2010-01-26  Jim Meyering  <meyering@redhat.com>
71621         test-userspec.c: avoid compiler warnings
71622         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
71623         and "initialization discards qualifiers..." warnings.
71624         Put the first "uid" in its own scope, and make char* members "const".
71626 2010-01-25  Bruno Haible  <bruno@clisp.org>
71628         gnulib-tool: Make warning diagnostics consistent.
71629         * gnulib-tool (func_warning): New function.
71630         Use it everywhere where gnulib-tool produces output to stderr and it is
71631         not a fatal error.
71633 2010-01-25  Bruno Haible  <bruno@clisp.org>
71635         Fix test dependencies.
71636         * modules/xstrtol-tests (Depends-on): Add inttypes.
71637         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
71639 2010-01-25  Pádraig Brady  <P@draigBrady.com>
71641         syntax-check: detect incorrect boolean macro values in config.h
71642         * modules/maintainer-makefile (configure.ac): Parameterize the location
71643         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
71644         The logic is from Eric Blake and the location indicated by Jim Meyering.
71645         Note the more natural CONFIG_HEADER name is prohibited by automake
71646         for backwards compatibility reasons.
71647         * top/maint.mk (sc_Wundef_boolean): New rule.
71649 2010-01-25  Jim Meyering  <meyering@redhat.com>
71651         bootstrap: detect MacOS 10.6's shasum, too
71652         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
71653         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
71655 2010-01-23  Jim Meyering  <meyering@redhat.com>
71657         xstrtoll: new module
71658         * modules/xstrtoll: New file.
71659         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
71660         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
71661         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
71662         ./configure fails if you use this module and lack "long long".
71663         * modules/xstrtoll-tests: New module.
71664         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
71665         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
71666         new init.sh-based test framework.
71668 2010-01-24  Bruno Haible  <bruno@clisp.org>
71670         Tests for module 'yn'.
71671         * modules/yn-tests: New file.
71672         * tests/test-yn.c: New file.
71674         Tests for module 'y1'.
71675         * modules/y1-tests: New file.
71676         * tests/test-y1.c: New file.
71678         Tests for module 'y0'.
71679         * modules/y0-tests: New file.
71680         * tests/test-y0.c: New file.
71682         Tests for module 'tanh'.
71683         * modules/tanh-tests: New file.
71684         * tests/test-tanh.c: New file.
71686         Tests for module 'tan'.
71687         * modules/tan-tests: New file.
71688         * tests/test-tan.c: New file.
71690         Tests for module 'sqrt'.
71691         * modules/sqrt-tests: New file.
71692         * tests/test-sqrt.c: New file.
71694         Tests for module 'sinh'.
71695         * modules/sinh-tests: New file.
71696         * tests/test-sinh.c: New file.
71698         Tests for module 'sin'.
71699         * modules/sin-tests: New file.
71700         * tests/test-sin.c: New file.
71702         Tests for module 'rint'.
71703         * modules/rint-tests: New file.
71704         * tests/test-rint.c: New file.
71706         Tests for module 'remainder'.
71707         * modules/remainder-tests: New file.
71708         * tests/test-remainder.c: New file.
71710         Tests for module 'pow'.
71711         * modules/pow-tests: New file.
71712         * tests/test-pow.c: New file.
71714         Tests for module 'nextafter'.
71715         * modules/nextafter-tests: New file.
71716         * tests/test-nextafter.c: New file.
71718         Tests for module 'modf'.
71719         * modules/modf-tests: New file.
71720         * tests/test-modf.c: New file.
71722         Tests for module 'logb'.
71723         * modules/logb-tests: New file.
71724         * tests/test-logb.c: New file.
71726         Tests for module 'log1p'.
71727         * modules/log1p-tests: New file.
71728         * tests/test-log1p.c: New file.
71730         Tests for module 'log10'.
71731         * modules/log10-tests: New file.
71732         * tests/test-log10.c: New file.
71734         Tests for module 'log'.
71735         * modules/log-tests: New file.
71736         * tests/test-log.c: New file.
71738         Tests for module 'lgamma'.
71739         * modules/lgamma-tests: New file.
71740         * tests/test-lgamma.c: New file.
71742         Tests for module 'ldexp'.
71743         * modules/ldexp-tests: New file.
71744         * tests/test-ldexp.c: New file.
71746         Tests for module 'jn'.
71747         * modules/jn-tests: New file.
71748         * tests/test-jn.c: New file.
71750         Tests for module 'j1'.
71751         * modules/j1-tests: New file.
71752         * tests/test-j1.c: New file.
71754         Tests for module 'j0'.
71755         * modules/j0-tests: New file.
71756         * tests/test-j0.c: New file.
71758         Tests for module 'hypot'.
71759         * modules/hypot-tests: New file.
71760         * tests/test-hypot.c: New file.
71762         Tests for module 'fmod'.
71763         * modules/fmod-tests: New file.
71764         * tests/test-fmod.c: New file.
71766         Tests for module 'fabs'.
71767         * modules/fabs-tests: New file.
71768         * tests/test-fabs.c: New file.
71770         Tests for module 'exp'.
71771         * modules/exp-tests: New file.
71772         * tests/test-exp.c: New file.
71774         Tests for module 'erfc'.
71775         * modules/erfc-tests: New file.
71776         * tests/test-erfc.c: New file.
71778         Tests for module 'erf'.
71779         * modules/erf-tests: New file.
71780         * tests/test-erf.c: New file.
71782         Tests for module 'cosh'.
71783         * modules/cosh-tests: New file.
71784         * tests/test-cosh.c: New file.
71786         Tests for module 'cos'.
71787         * modules/cos-tests: New file.
71788         * tests/test-cos.c: New file.
71790         Tests for module 'copysign'.
71791         * modules/copysign-tests: New file.
71792         * tests/test-copysign.c: New file.
71794         Tests for module 'cbrt'.
71795         * modules/cbrt-tests: New file.
71796         * tests/test-cbrt.c: New file.
71798         Tests for module 'atan2'.
71799         * modules/atan2-tests: New file.
71800         * tests/test-atan2.c: New file.
71802         Tests for module 'atan'.
71803         * modules/atan-tests: New file.
71804         * tests/test-atan.c: New file.
71806         Tests for module 'asin'.
71807         * modules/asin-tests: New file.
71808         * tests/test-asin.c: New file.
71810         Tests for module 'acos'.
71811         * modules/acos-tests: New file.
71812         * tests/test-acos.c: New file.
71814 2010-01-24  Bruno Haible  <bruno@clisp.org>
71816         Fix tests for common <math.h> functions.
71817         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
71818         code snippet that references the function pointer, rather than merely
71819         calling the function. Substitute the FUNC_LIBM variable.
71820         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
71821         * modules/acos (configure.ac): Likewise.
71822         * modules/asin (configure.ac): Likewise.
71823         * modules/atan (configure.ac): Likewise.
71824         * modules/atan2 (configure.ac): Likewise.
71825         * modules/cbrt (configure.ac): Likewise.
71826         * modules/copysign (configure.ac): Likewise.
71827         * modules/cos (configure.ac): Likewise.
71828         * modules/cosh (configure.ac): Likewise.
71829         * modules/erf (configure.ac): Likewise.
71830         * modules/erfc (configure.ac): Likewise.
71831         * modules/exp (configure.ac): Likewise.
71832         * modules/fabs (configure.ac): Likewise.
71833         * modules/fmod (configure.ac): Likewise.
71834         * modules/hypot (configure.ac): Likewise.
71835         * modules/j0 (configure.ac): Likewise.
71836         * modules/j1 (configure.ac): Likewise.
71837         * modules/jn (configure.ac): Likewise.
71838         * modules/ldexp (configure.ac): Likewise.
71839         * modules/lgamma (configure.ac): Likewise.
71840         * modules/log (configure.ac): Likewise.
71841         * modules/log10 (configure.ac): Likewise.
71842         * modules/log1p (configure.ac): Likewise.
71843         * modules/logb (configure.ac): Likewise.
71844         * modules/modf (configure.ac): Likewise.
71845         * modules/nextafter (configure.ac): Likewise.
71846         * modules/pow (configure.ac): Likewise.
71847         * modules/remainder (configure.ac): Likewise.
71848         * modules/rint (configure.ac): Likewise.
71849         * modules/sin (configure.ac): Likewise.
71850         * modules/sinh (configure.ac): Likewise.
71851         * modules/tan (configure.ac): Likewise.
71852         * modules/tanh (configure.ac): Likewise.
71853         * modules/y0 (configure.ac): Likewise.
71854         * modules/y1 (configure.ac): Likewise.
71855         * modules/yn (configure.ac): Likewise.
71857 2010-01-24  Bruno Haible  <bruno@clisp.org>
71859         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
71860         * tests/test-acosl.c (x): New variable.
71861         (main): Store argument in x and fetch it from x.
71862         * tests/test-asinl.c (x): New variable.
71863         (main): Store argument in x and fetch it from x.
71864         * tests/test-atanl.c (x): New variable.
71865         (main): Store argument in x and fetch it from x.
71866         * tests/test-cosl.c (x): New variable.
71867         (main): Store argument in x and fetch it from x.
71868         * tests/test-expl.c (x): New variable.
71869         (main): Store argument in x and fetch it from x.
71870         * tests/test-logl.c (x): New variable.
71871         (main): Store argument in x and fetch it from x.
71872         * tests/test-sinl.c (x): New variable.
71873         (main): Store argument in x and fetch it from x.
71874         * tests/test-sqrtl.c (x): New variable.
71875         (main): Store argument in x and fetch it from x.
71876         * tests/test-tanl.c (x): New variable.
71877         (main): Store argument in x and fetch it from x.
71879 2010-01-24  Bruno Haible  <bruno@clisp.org>
71881         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
71882         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
71883         assignments to the initial TESTS_ENVIRONMENT.
71884         * doc/gnulib.texi (Unit test modules): Document it.
71885         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
71886         TESTS_ENVIRONMENT.
71887         * modules/btowc-tests (Makefile.am): Likewise.
71888         * modules/c-stack-tests (Makefile.am): Likewise.
71889         * modules/c-strcase-tests (Makefile.am): Likewise.
71890         * modules/copy-file-tests (Makefile.am): Likewise.
71891         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
71892         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
71893         * modules/mbrtowc-tests (Makefile.am): Likewise.
71894         * modules/mbscasecmp-tests (Makefile.am): Likewise.
71895         * modules/mbscasestr-tests (Makefile.am): Likewise.
71896         * modules/mbschr-tests (Makefile.am): Likewise.
71897         * modules/mbscspn-tests (Makefile.am): Likewise.
71898         * modules/mbsinit-tests (Makefile.am): Likewise.
71899         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
71900         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
71901         * modules/mbspbrk-tests (Makefile.am): Likewise.
71902         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
71903         * modules/mbsrchr-tests (Makefile.am): Likewise.
71904         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
71905         * modules/mbsspn-tests (Makefile.am): Likewise.
71906         * modules/mbsstr-tests (Makefile.am): Likewise.
71907         * modules/nl_langinfo-tests (Makefile.am): Likewise.
71908         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
71909         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
71910         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
71911         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
71912         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
71913         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
71914         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
71915         * modules/wcrtomb-tests (Makefile.am): Likewise.
71916         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
71917         * modules/wcsrtombs-tests (Makefile.am): Likewise.
71918         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
71919         assignments from TESTS_ENVIRONMENT.
71920         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
71921         augmentation.
71922         * modules/argp-version-etc-tests (Makefile.am): Likewise.
71923         * modules/atexit-tests (Makefile.am): Likewise.
71924         * modules/binary-io-tests (Makefile.am): Likewise.
71925         * modules/closein-tests (Makefile.am): Likewise.
71926         * modules/dprintf-posix-tests (Makefile.am): Likewise.
71927         * modules/exclude-tests (Makefile.am): Likewise.
71928         * modules/fflush-tests (Makefile.am): Likewise.
71929         * modules/fpending-tests (Makefile.am): Likewise.
71930         * modules/fprintf-posix-tests (Makefile.am): Likewise.
71931         * modules/freadahead-tests (Makefile.am): Likewise.
71932         * modules/freadptr-tests (Makefile.am): Likewise.
71933         * modules/freadseek-tests (Makefile.am): Likewise.
71934         * modules/fseek-tests (Makefile.am): Likewise.
71935         * modules/fseeko-tests (Makefile.am): Likewise.
71936         * modules/ftell-tests (Makefile.am): Likewise.
71937         * modules/ftello-tests (Makefile.am): Likewise.
71938         * modules/idpriv-drop-tests (Makefile.am): Likewise.
71939         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
71940         * modules/lseek-tests (Makefile.am): Likewise.
71941         * modules/parse-duration-tests (Makefile.am): Likewise.
71942         * modules/perror-tests (Makefile.am): Likewise.
71943         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
71944         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
71945         * modules/pipe-tests (Makefile.am): Likewise.
71946         * modules/pread-tests (Makefile.am): Likewise.
71947         * modules/printf-posix-tests (Makefile.am): Likewise.
71948         * modules/select-tests (Makefile.am): Likewise.
71949         * modules/sigpipe-tests (Makefile.am): Likewise.
71950         * modules/tsearch-tests (Makefile.am): Likewise.
71951         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
71952         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
71953         * modules/uniname/uniname-tests (Makefile.am): Likewise.
71954         * modules/uniwidth/width-tests (Makefile.am): Likewise.
71955         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
71956         * modules/version-etc-tests (Makefile.am): Likewise.
71957         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
71958         * modules/vprintf-posix-tests (Makefile.am): Likewise.
71959         * modules/xalloc-die-tests (Makefile.am): Likewise.
71960         * modules/xprintf-posix-tests (Makefile.am): Likewise.
71961         * modules/xstrtoimax-tests (Makefile.am): Likewise.
71962         * modules/xstrtol-tests (Makefile.am): Likewise.
71963         * modules/xstrtoumax-tests (Makefile.am): Likewise.
71964         * modules/yesno-tests (Makefile.am): Likewise.
71965         Suggested by Jim Meyering.
71967 2010-01-24  Bruno Haible  <bruno@clisp.org>
71969         More documentation.
71970         * doc/gnulib.texi (Writing modules): New chapter.
71971         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
71972         the new chapter.
71974 2010-01-24  Jim Meyering  <meyering@redhat.com>
71976         maint.mk: do not prepend "./" after filtering
71977         * top/maint.mk (_prepend_srcdir_prefix): New variable
71978         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
71979         "./" when $(srcdir) is ".".
71981         define STREQ(a,b) consistently, removing useless parentheses
71982         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
71983         since the only risk is that "a" or "b" contains an unparenthesized
71984         comma, but if either did that, STREQ would have 3 or more arguments.
71985         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
71986         * lib/fts.c (STREQ): Remove unnecessary parentheses.
71987         * lib/hash-triple.c (STREQ): Likewise.
71988         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
71989         * lib/getugroups.c (STREQ): Likewise.
71991 2010-01-23  Jim Meyering  <meyering@redhat.com>
71993         maint.mk: fix syntax-check in a non-srcdir build directory
71994         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
71995         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
71997 2010-01-22  Jim Meyering  <meyering@redhat.com>
71999         userspec: add unit tests
72000         * tests/test-userspec.c: New file.
72001         * modules/userspec-tests: Likewise.
72003 2010-01-21  Jim Meyering  <meyering@redhat.com>
72005         maint.mk: handle source file names containing "." robustly
72006         * top/maint.mk (_dot_escaped_srcdir): Define.
72007         (VC_LIST): Use it in LHS of sed substitution.
72009 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
72011         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
72012         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
72013         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
72014         from a non-srcdir build.
72016 2010-01-20  Eric Blake  <ebb9@byu.net>
72018         warn-on-use: use instead of link-warning
72019         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
72020         * modules/unistd (Depends-on, Makefile.am): Likewise.
72021         * modules/arpa_inet (Depends-on): Replace link-warning with
72022         warn-on-use.
72023         (Makefile.am): Update rules accordingly.
72024         * modules/ctype (Depends-on, Makefile.am): Likewise.
72025         * modules/dirent (Depends-on, Makefile.am): Likewise.
72026         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
72027         * modules/inttypes (Depends-on, Makefile.am): Likewise.
72028         * modules/langinfo (Depends-on, Makefile.am): Likewise.
72029         * modules/locale (Depends-on, Makefile.am): Likewise.
72030         * modules/math (Depends-on, Makefile.am): Likewise.
72031         * modules/search (Depends-on, Makefile.am): Likewise.
72032         * modules/signal (Depends-on, Makefile.am): Likewise.
72033         * modules/spawn (Depends-on, Makefile.am): Likewise.
72034         * modules/stdlib (Depends-on, Makefile.am): Likewise.
72035         * modules/string (Depends-on, Makefile.am): Likewise.
72036         * modules/strings (Depends-on, Makefile.am): Likewise.
72037         * modules/sys_file (Depends-on, Makefile.am): Likewise.
72038         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
72039         * modules/sys_select (Depends-on, Makefile.am): Likewise.
72040         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
72041         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
72042         * modules/sys_times (Depends-on, Makefile.am): Likewise.
72043         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
72044         * modules/wchar (Depends-on, Makefile.am): Likewise.
72045         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
72046         should be poisoned.
72047         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
72048         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
72049         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
72050         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
72051         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
72052         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
72053         * m4/math_h.m4 (gl_MATH_H): Likewise.
72054         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
72055         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
72056         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
72057         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
72058         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
72059         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
72060         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
72061         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
72062         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
72063         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72064         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
72065         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
72066         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
72067         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
72068         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
72069         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
72070         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
72071         GL_LINK_WARNING.
72072         * lib/ctype.in.h: Likewise.
72073         * lib/dirent.in.h: Likewise.
72074         * lib/fcntl.in.h: Likewise.
72075         * lib/inttypes.in.h: Likewise.
72076         * lib/langinfo.in.h: Likewise.
72077         * lib/locale.in.h: Likewise.
72078         * lib/math.in.h: Likewise.
72079         * lib/search.in.h: Likewise.
72080         * lib/signal.in.h: Likewise.
72081         * lib/spawn.in.h: Likewise.
72082         * lib/stdio.in.h: Likewise.
72083         * lib/stdlib.in.h: Likewise.
72084         * lib/string.in.h: Likewise.
72085         * lib/strings.in.h: Likewise.
72086         * lib/sys_file.in.h: Likewise.
72087         * lib/sys_ioctl.in.h: Likewise.
72088         * lib/sys_select.in.h: Likewise.
72089         * lib/sys_socket.in.h: Likewise.
72090         * lib/sys_stat.in.h: Likewise.
72091         * lib/sys_times.in.h: Likewise.
72092         * lib/sys_utsname.in.h: Likewise.
72093         * lib/unistd.in.h: Likewise.
72094         * lib/wchar.in.h: Likewise.
72096 2010-01-20  Bruno Haible  <bruno@clisp.org>
72098         Avoid duplicate -lm.
72099         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
72100         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
72101         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
72102         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
72103         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
72104         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
72105         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
72106         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
72107         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
72108         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
72109         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
72110         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
72111         Reported by Paolo Bonzini.
72113 2010-01-19  Bruno Haible  <bruno@clisp.org>
72115         langinfo, nl_langinfo: Relicense under LGPLv2+.
72116         * modules/langinfo (License): Change to LGPLv2+.
72117         * modules/nl_langinfo (License): Likewise.
72118         Patch by David Lutterkort <lutter@redhat.com>.
72120 2010-01-19  Bruno Haible  <bruno@clisp.org>
72122         Avoid compilation error with cc on OSF/1 5.1.
72123         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
72124         statement, not before.
72125         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72127 2010-01-18  Bruno Haible  <bruno@clisp.org>
72129         Avoid a link error due to the __printf__ symbol.
72130         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
72131         and 2.6.x.
72132         (__format__, __printf__): Remove definitions.
72133         * lib/argp-fmtstream.h: Likewise.
72134         * lib/argp.h: Likewise.
72135         * lib/error.h: Likewise.
72136         * lib/vasnprintf.h: Likewise.
72137         * lib/xprintf.h: Likewise.
72138         * lib/xvasprintf.h: Likewise.
72139         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72141 2010-01-18  Bruno Haible  <bruno@clisp.org>
72143         Tests for module 'tanl'.
72144         * modules/tanl-tests: New file.
72145         * tests/test-tanl.c: New file.
72147         Tests for module 'sqrtl'.
72148         * modules/sqrtl-tests: New file.
72149         * tests/test-sqrtl.c: New file.
72151         Tests for module 'sinl'.
72152         * modules/sinl-tests: New file.
72153         * tests/test-sinl.c: New file.
72155         Tests for module 'logl'.
72156         * modules/logl-tests: New file.
72157         * tests/test-logl.c: New file.
72159         Tests for module 'expl'.
72160         * modules/expl-tests: New file.
72161         * tests/test-expl.c: New file.
72163         Tests for module 'cosl'.
72164         * modules/cosl-tests: New file.
72165         * tests/test-cosl.c: New file.
72167         Tests for module 'atanl'.
72168         * modules/atanl-tests: New file.
72169         * tests/test-atanl.c: New file.
72171         Tests for module 'asinl'.
72172         * modules/asinl-tests: New file.
72173         * tests/test-asinl.c: New file.
72175         Tests for module 'acosl'.
72176         * modules/acosl-tests: New file.
72177         * tests/test-acosl.c: New file.
72179         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
72180         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
72181         tanl): Use the standard gnulib idiom.
72182         * lib/cosl.c: Don't include trigl.c and sincosl.c.
72183         * lib/sinl.c: Likewise.
72184         * lib/tanl.c: Don't include trigl.c.
72185         (kernel_tanl): Make static.
72186         * lib/sincosl.c: Include trigl.h first.
72187         * lib/trigl.c: Likewise.
72188         * m4/acosl.m4: New file.
72189         * m4/asinl.m4: New file.
72190         * m4/atanl.m4: New file.
72191         * m4/cosl.m4: New file.
72192         * m4/expl.m4: New file.
72193         * m4/logl.m4: New file.
72194         * m4/sinl.m4: New file.
72195         * m4/sqrtl.m4: New file.
72196         * m4/tanl.m4: New file.
72197         * m4/mathl.m4: Remove file.
72198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
72199         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
72200         Don't initialize GNULIB_MATHL.
72201         * modules/acosl: New file.
72202         * modules/asinl: New file.
72203         * modules/atanl: New file.
72204         * modules/cosl: New file.
72205         * modules/expl: New file.
72206         * modules/logl: New file.
72207         * modules/sinl: New file.
72208         * modules/sqrtl: New file.
72209         * modules/tanl: New file.
72210         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
72211         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
72212         substitute GNULIB_MATHL.
72213         * modules/mathl: Rewritten.
72214         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
72215         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
72216         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
72217         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
72218         * doc/posix-functions/expl.texi: Mention the 'expl' module.
72219         * doc/posix-functions/logl.texi: Mention the 'logl' module.
72220         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
72221         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
72222         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
72224 2010-01-18  Bruno Haible  <bruno@clisp.org>
72226         sqrt: Make gl_FUNC_SQRT requirable.
72227         * m4/sqrt.m4: New file.
72228         * modules/sqrt (Files): Add it.
72229         (configure.ac): Invoke gl_FUNC_SQRT.
72231 2010-01-18  Bruno Haible  <bruno@clisp.org>
72233         New modules for common <math.h> functions.
72234         * m4/mathfunc.m4: New file.
72235         * modules/acos: New file.
72236         * modules/asin: New file.
72237         * modules/atan: New file.
72238         * modules/atan2: New file.
72239         * modules/cbrt: New file.
72240         * modules/copysign: New file.
72241         * modules/cos: New file.
72242         * modules/cosh: New file.
72243         * modules/erf: New file.
72244         * modules/erfc: New file.
72245         * modules/exp: New file.
72246         * modules/fabs: New file.
72247         * modules/fmod: New file.
72248         * modules/hypot: New file.
72249         * modules/j0: New file.
72250         * modules/j1: New file.
72251         * modules/jn: New file.
72252         * modules/ldexp: New file.
72253         * modules/lgamma: New file.
72254         * modules/log: New file.
72255         * modules/log10: New file.
72256         * modules/log1p: New file.
72257         * modules/logb: New file.
72258         * modules/modf: New file.
72259         * modules/nextafter: New file.
72260         * modules/pow: New file.
72261         * modules/remainder: New file.
72262         * modules/rint: New file.
72263         * modules/sin: New file.
72264         * modules/sinh: New file.
72265         * modules/sqrt: New file.
72266         * modules/tan: New file.
72267         * modules/tanh: New file.
72268         * modules/y0: New file.
72269         * modules/y1: New file.
72270         * modules/yn: New file.
72271         * doc/posix-functions/acos.texi: Mention the 'acos' module.
72272         * doc/posix-functions/asin.texi: Mention the 'asin' module.
72273         * doc/posix-functions/atan.texi: Mention the 'atan' module.
72274         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
72275         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
72276         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
72277         * doc/posix-functions/cos.texi: Mention the 'cos' module.
72278         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
72279         * doc/posix-functions/erf.texi: Mention the 'erf' module.
72280         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
72281         * doc/posix-functions/exp.texi: Mention the 'exp' module.
72282         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
72283         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
72284         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
72285         * doc/posix-functions/j0.texi: Mention the 'j0' module.
72286         * doc/posix-functions/j1.texi: Mention the 'j1' module.
72287         * doc/posix-functions/jn.texi: Mention the 'jn' module.
72288         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
72289         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
72290         * doc/posix-functions/log.texi: Mention the 'log' module.
72291         * doc/posix-functions/log10.texi: Mention the 'log10' module.
72292         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
72293         * doc/posix-functions/logb.texi: Mention the 'logb' module.
72294         * doc/posix-functions/modf.texi: Mention the 'modf' module.
72295         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
72296         * doc/posix-functions/pow.texi: Mention the 'pow' module.
72297         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
72298         * doc/posix-functions/rint.texi: Mention the 'rint' module.
72299         * doc/posix-functions/sin.texi: Mention the 'sin' module.
72300         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
72301         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
72302         * doc/posix-functions/tan.texi: Mention the 'tan' module.
72303         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
72304         * doc/posix-functions/y0.texi: Mention the 'y0' module.
72305         * doc/posix-functions/y1.texi: Mention the 'y1' module.
72306         * doc/posix-functions/yn.texi: Mention the 'yn' module.
72308 2010-01-18  Jim Meyering  <meyering@redhat.com>
72310         ignore-value: relax license to LGPLv2+
72311         * modules/ignore-value (License): Relax to LGPLv2+.
72313         getdate: don't leak when TZ contains two or more '"'s
72314         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
72315         double quote in TZ after the first one.
72317         readtokens: do not leak internal token_lengths buffer
72318         * lib/readtokens.c (readtokens): Free the local, lengths,
72319         when the supplied "token_lengths" parameter is NULL.
72321 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72323         Fix a couple of missing LIBTHREAD link failures on AIX.
72324         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
72325         $(LIBTHREAD).
72326         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
72328         Link test-poll against INET_PTON_LIB.
72329         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
72330         for inet_pton on Solaris 10.
72332 2010-01-17  Bruno Haible  <bruno@clisp.org>
72334         unistdio/*-sprintf: Fix typo in module description.
72335         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
72336         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
72337         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
72338         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
72339         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
72340         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
72341         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
72342         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72344 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72346         gnulib-tool: fix filelist for AIX, HP-UX ksh.
72347         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
72348         variables in shell case patterns, for AIX and HP-UX ksh.
72350         Split large sed scripts, for HP-UX sed.
72351         * modules/stdio: Split sed scripts around 50 sed commands,
72352         to avoid HP-UX limit of 99 commands, in the near future.
72353         * modules/string: Likewise.
72354         * modules/unistd: Likewise.
72356         gnulib-tool: avoid writing in the current directory.
72357         * gnulib-tool (func_emit_lib_Makefile_am)
72358         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
72359         not in the current directory, so concurrent gnulib-tool
72360         instances do not interfere.
72362 2010-01-16  Jim Meyering  <meyering@redhat.com>
72364         doc: update users.txt
72365         * users.txt: Add grep.
72366         (diffutils, gzip): Update URLs.
72368 2010-01-12  Bruno Haible  <bruno@clisp.org>
72370         posix_spawn: Avoid test failure on Cygwin.
72371         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
72372         characters.
72373         Reported by Simon Josefsson.
72375 2010-01-12  Bruno Haible  <bruno@clisp.org>
72377         * tests/test-cond.c (main): When skipping the test, show the reason.
72379 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72381         * lib/striconv.c (str_cd_iconv): Avoid if before free.
72383 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72385         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
72386         VC_LIST_ALWAYS_EXCLUDE_REGEX.
72388 2010-01-12  Eric Blake  <ebb9@byu.net>
72390         build: guarantee AS_VAR_IF
72391         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
72392         (gl_AS_VAR_IF): Move...
72393         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
72394         Reported by Simon Josefsson.
72396 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72398         * lib/stdio.in.h: Fix typo.
72400 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72402         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
72403         libgpg-error.
72405 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72407         * tests/test-xalloc-die.sh: Use $EXEEXT.
72409 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72410             Bruno Haible  <bruno@clisp.org>
72412         getlogin, getlogin_r: Avoid test failure.
72413         * tests/test-getlogin.c: Include <stdio.h>.
72414         (main): Skip the test when the function fails because stdin is not a
72415         tty.
72416         * tests/test-getlogin_r.c: Include <stdio.h>.
72417         (main): Skip the test when the function fails because stdin is not a
72418         tty.
72420 2010-01-11  Eric Blake  <ebb9@byu.net>
72422         tests: avoid more large file warnings
72423         * tests/test-fflush.c: Avoid warning about ftell use.
72424         * tests/test-fseek.c: Avoid warning about fseek use.
72426 2010-01-10  Bruno Haible  <bruno@clisp.org>
72428         nproc: Work better on Linux when /proc and /sys are not mounted.
72429         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
72430         as lower bound when, on glibc/Linux systems,
72431         sysconf (_SC_NPROCESSORS_CONF) returns 1.
72432         Suggested by Pádraig Brady <P@draigbrady.com>.
72433         Reported by Dmitry V. Levin <ldv@altlinux.org>.
72435         nproc: Refactor.
72436         * lib/nproc.c (num_processors_via_affinity_mask): New function,
72437         extracted from num_processors.
72438         (num_processors): Call it.
72440 2010-01-11  Jim Meyering  <meyering@redhat.com>
72442         utimecmp: avoid new warning from upcoming gcc-4.5.0
72443         * lib/utimecmp.c (BILLION): Define using #define rather than an
72444         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
72446 2010-01-11  Eric Blake  <ebb9@byu.net>
72448         math: add portability warnings for classification macros
72449         * modules/math (Depends-on): Add warn-on-use.
72450         (Makefile.am): Provide new substitutions.
72451         * m4/math_h.m4 (gl_MATH_H): Require inline.
72452         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
72453         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
72454         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
72455         implement warnings.
72457         unistd: warn on use of environ without module
72458         * modules/unistd (Depends-on): Add warn-on-use.
72459         (Makefile.am): Provide new substitutions.
72460         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
72461         * lib/unistd.in.h (environ): Wrap with a warning helper function.
72463         stdio: warn on suspicious uses
72464         * modules/stdio (Depends-on): Add warn-on-use.
72465         (Makefile.am): Provide new substitutions.
72466         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
72467         fseeko.
72468         * lib/stdio.in.h (gets): Always warn on use.
72469         (fseek, ftell): Adjust when warnings are issued, and honor
72470         _GL_NO_LARGE_FILES as a way to silence the warning.
72471         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
72472         any warning about large file offsets.
72473         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
72474         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
72475         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
72476         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
72477         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
72478         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
72479         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
72480         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
72482         warn-on-use: new module
72483         * modules/warn-on-use: New file.
72484         * build-aux/warn-on-use.h: Likewise.
72485         * m4/warn-on-use.m4: Likewise.
72486         * MODULES.html.sh (Support for building): Mention it.
72488 2010-01-10  Bruno Haible  <bruno@clisp.org>
72490         Tests for module 'unistr/u32-strdup'.
72491         * modules/unistr/u32-strdup-tests: New file.
72492         * tests/unistr/test-u32-strdup.c: New file.
72494         Tests for module 'unistr/u16-strdup'.
72495         * modules/unistr/u16-strdup-tests: New file.
72496         * tests/unistr/test-u16-strdup.c: New file.
72498         Tests for module 'unistr/u8-strdup'.
72499         * modules/unistr/u8-strdup-tests: New file.
72500         * tests/unistr/test-u8-strdup.c: New file.
72501         * tests/unistr/test-strdup.h: New file.
72503         Tests for module 'unistr/u32-strncmp'.
72504         * modules/unistr/u32-strncmp-tests: New file.
72505         * tests/unistr/test-u32-strncmp.c: New file.
72507         Tests for module 'unistr/u16-strncmp'.
72508         * modules/unistr/u16-strncmp-tests: New file.
72509         * tests/unistr/test-u16-strncmp.c: New file.
72511         Tests for module 'unistr/u8-strncmp'.
72512         * modules/unistr/u8-strncmp-tests: New file.
72513         * tests/unistr/test-u8-strncmp.c: New file.
72514         * tests/unistr/test-strncmp.h: New file.
72516         Tests for module 'unistr/u32-strcoll'.
72517         * modules/unistr/u32-strcoll-tests: New file.
72518         * tests/unistr/test-u32-strcoll.c: New file.
72520         Tests for module 'unistr/u16-strcoll'.
72521         * modules/unistr/u16-strcoll-tests: New file.
72522         * tests/unistr/test-u16-strcoll.c: New file.
72524         Tests for module 'unistr/u8-strcoll'.
72525         * modules/unistr/u8-strcoll-tests: New file.
72526         * tests/unistr/test-u8-strcoll.c: New file.
72528         Tests for module 'unistr/u32-strcmp'.
72529         * modules/unistr/u32-strcmp-tests: New file.
72530         * tests/unistr/test-u32-strcmp.c: New file.
72531         * tests/unistr/test-u32-strcmp.h: New file.
72533         Tests for module 'unistr/u16-strcmp'.
72534         * modules/unistr/u16-strcmp-tests: New file.
72535         * tests/unistr/test-u16-strcmp.c: New file.
72536         * tests/unistr/test-u16-strcmp.h: New file.
72538         Tests for module 'unistr/u8-strcmp'.
72539         * modules/unistr/u8-strcmp-tests: New file.
72540         * tests/unistr/test-u8-strcmp.c: New file.
72541         * tests/unistr/test-u8-strcmp.h: New file.
72542         * tests/unistr/test-strcmp.h: New file.
72544         Tests for module 'unistr/u32-strncat'.
72545         * modules/unistr/u32-strncat-tests: New file.
72546         * tests/unistr/test-u32-strncat.c: New file.
72548         Tests for module 'unistr/u16-strncat'.
72549         * modules/unistr/u16-strncat-tests: New file.
72550         * tests/unistr/test-u16-strncat.c: New file.
72552         Tests for module 'unistr/u8-strncat'.
72553         * modules/unistr/u8-strncat-tests: New file.
72554         * tests/unistr/test-u8-strncat.c: New file.
72555         * tests/unistr/test-strncat.h: New file.
72557         Tests for module 'unistr/u32-strcat'.
72558         * modules/unistr/u32-strcat-tests: New file.
72559         * tests/unistr/test-u32-strcat.c: New file.
72561         Tests for module 'unistr/u16-strcat'.
72562         * modules/unistr/u16-strcat-tests: New file.
72563         * tests/unistr/test-u16-strcat.c: New file.
72565         Tests for module 'unistr/u8-strcat'.
72566         * modules/unistr/u8-strcat-tests: New file.
72567         * tests/unistr/test-u8-strcat.c: New file.
72568         * tests/unistr/test-strcat.h: New file.
72570         Tests for module 'unistr/u32-stpncpy'.
72571         * modules/unistr/u32-stpncpy-tests: New file.
72572         * tests/unistr/test-u32-stpncpy.c: New file.
72574         Tests for module 'unistr/u16-stpncpy'.
72575         * modules/unistr/u16-stpncpy-tests: New file.
72576         * tests/unistr/test-u16-stpncpy.c: New file.
72578         Tests for module 'unistr/u8-stpncpy'.
72579         * modules/unistr/u8-stpncpy-tests: New file.
72580         * tests/unistr/test-u8-stpncpy.c: New file.
72581         * tests/unistr/test-stpncpy.h: New file.
72583         Tests for module 'unistr/u32-strncpy'.
72584         * modules/unistr/u32-strncpy-tests: New file.
72585         * tests/unistr/test-u32-strncpy.c: New file.
72587         Tests for module 'unistr/u16-strncpy'.
72588         * modules/unistr/u16-strncpy-tests: New file.
72589         * tests/unistr/test-u16-strncpy.c: New file.
72591         Tests for module 'unistr/u8-strncpy'.
72592         * modules/unistr/u8-strncpy-tests: New file.
72593         * tests/unistr/test-u8-strncpy.c: New file.
72594         * tests/unistr/test-strncpy.h: New file.
72596         Tests for module 'unistr/u32-stpcpy'.
72597         * modules/unistr/u32-stpcpy-tests: New file.
72598         * tests/unistr/test-u32-stpcpy.c: New file.
72600         Tests for module 'unistr/u16-stpcpy'.
72601         * modules/unistr/u16-stpcpy-tests: New file.
72602         * tests/unistr/test-u16-stpcpy.c: New file.
72604         Tests for module 'unistr/u8-stpcpy'.
72605         * modules/unistr/u8-stpcpy-tests: New file.
72606         * tests/unistr/test-u8-stpcpy.c: New file.
72607         * tests/unistr/test-stpcpy.h: New file.
72609         Tests for module 'unistr/u32-strcpy'.
72610         * modules/unistr/u32-strcpy-tests: New file.
72611         * tests/unistr/test-u32-strcpy.c: New file.
72613         Tests for module 'unistr/u16-strcpy'.
72614         * modules/unistr/u16-strcpy-tests: New file.
72615         * tests/unistr/test-u16-strcpy.c: New file.
72617         Tests for module 'unistr/u8-strcpy'.
72618         * modules/unistr/u8-strcpy-tests: New file.
72619         * tests/unistr/test-u8-strcpy.c: New file.
72620         * tests/unistr/test-strcpy.h: New file.
72622         Tests for module 'unistr/u32-strnlen'.
72623         * modules/unistr/u32-strnlen-tests: New file.
72624         * tests/unistr/test-u32-strnlen.c: New file.
72626         Tests for module 'unistr/u16-strnlen'.
72627         * modules/unistr/u16-strnlen-tests: New file.
72628         * tests/unistr/test-u16-strnlen.c: New file.
72630         Tests for module 'unistr/u8-strnlen'.
72631         * modules/unistr/u8-strnlen-tests: New file.
72632         * tests/unistr/test-u8-strnlen.c: New file.
72633         * tests/unistr/test-strnlen.h: New file.
72635         Tests for module 'unistr/u32-strlen'.
72636         * modules/unistr/u32-strlen-tests: New file.
72637         * tests/unistr/test-u32-strlen.c: New file.
72639         Tests for module 'unistr/u16-strlen'.
72640         * modules/unistr/u16-strlen-tests: New file.
72641         * tests/unistr/test-u16-strlen.c: New file.
72643         Tests for module 'unistr/u8-strlen'.
72644         * modules/unistr/u8-strlen-tests: New file.
72645         * tests/unistr/test-u8-strlen.c: New file.
72647         Tests for module 'unistr/u32-prev'.
72648         * modules/unistr/u32-prev-tests: New file.
72649         * tests/unistr/test-u32-prev.c: New file.
72651         Tests for module 'unistr/u16-prev'.
72652         * modules/unistr/u16-prev-tests: New file.
72653         * tests/unistr/test-u16-prev.c: New file.
72655         Tests for module 'unistr/u8-prev'.
72656         * modules/unistr/u8-prev-tests: New file.
72657         * tests/unistr/test-u8-prev.c: New file.
72659         Tests for module 'unistr/u32-next'.
72660         * modules/unistr/u32-next-tests: New file.
72661         * tests/unistr/test-u32-next.c: New file.
72663         Tests for module 'unistr/u16-next'.
72664         * modules/unistr/u16-next-tests: New file.
72665         * tests/unistr/test-u16-next.c: New file.
72667         Tests for module 'unistr/u8-next'.
72668         * modules/unistr/u8-next-tests: New file.
72669         * tests/unistr/test-u8-next.c: New file.
72671         Tests for module 'unistr/u32-strmbtouc'.
72672         * modules/unistr/u32-strmbtouc-tests: New file.
72673         * tests/unistr/test-u32-strmbtouc.c: New file.
72675         Tests for module 'unistr/u16-strmbtouc'.
72676         * modules/unistr/u16-strmbtouc-tests: New file.
72677         * tests/unistr/test-u16-strmbtouc.c: New file.
72679         Tests for module 'unistr/u8-strmbtouc'.
72680         * modules/unistr/u8-strmbtouc-tests: New file.
72681         * tests/unistr/test-u8-strmbtouc.c: New file.
72683         Tests for module 'unistr/u32-strmblen'.
72684         * modules/unistr/u32-strmblen-tests: New file.
72685         * tests/unistr/test-u32-strmblen.c: New file.
72687         Tests for module 'unistr/u16-strmblen'.
72688         * modules/unistr/u16-strmblen-tests: New file.
72689         * tests/unistr/test-u16-strmblen.c: New file.
72691         Tests for module 'unistr/u8-strmblen'.
72692         * modules/unistr/u8-strmblen-tests: New file.
72693         * tests/unistr/test-u8-strmblen.c: New file.
72695         Tests for module 'unistr/u32-cpy-alloc'.
72696         * modules/unistr/u32-cpy-alloc-tests: New file.
72697         * tests/unistr/test-u32-cpy-alloc.c: New file.
72699         Tests for module 'unistr/u16-cpy-alloc'.
72700         * modules/unistr/u16-cpy-alloc-tests: New file.
72701         * tests/unistr/test-u16-cpy-alloc.c: New file.
72703         Tests for module 'unistr/u8-cpy-alloc'.
72704         * modules/unistr/u8-cpy-alloc-tests: New file.
72705         * tests/unistr/test-u8-cpy-alloc.c: New file.
72706         * tests/unistr/test-cpy-alloc.h: New file.
72708         Tests for module 'unistr/u32-mbsnlen'.
72709         * modules/unistr/u32-mbsnlen-tests: New file.
72710         * tests/unistr/test-u32-mbsnlen.c: New file.
72712         Tests for module 'unistr/u16-mbsnlen'.
72713         * modules/unistr/u16-mbsnlen-tests: New file.
72714         * tests/unistr/test-u16-mbsnlen.c: New file.
72716         Tests for module 'unistr/u8-mbsnlen'.
72717         * modules/unistr/u8-mbsnlen-tests: New file.
72718         * tests/unistr/test-u8-mbsnlen.c: New file.
72720         Tests for module 'unistr/u32-chr'.
72721         * modules/unistr/u32-chr-tests: New file.
72722         * tests/unistr/test-u32-chr.c: New file.
72724         Tests for module 'unistr/u16-chr'.
72725         * modules/unistr/u16-chr-tests: New file.
72726         * tests/unistr/test-u16-chr.c: New file.
72728         Tests for module 'unistr/u8-chr'.
72729         * modules/unistr/u8-chr-tests: New file.
72730         * tests/unistr/test-u8-chr.c: New file.
72731         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
72733         Tests for module 'unistr/u32-cmp2'.
72734         * modules/unistr/u32-cmp2-tests: New file.
72735         * tests/unistr/test-u32-cmp2.c: New file.
72737         Tests for module 'unistr/u16-cmp2'.
72738         * modules/unistr/u16-cmp2-tests: New file.
72739         * tests/unistr/test-u16-cmp2.c: New file.
72741         Tests for module 'unistr/u8-cmp2'.
72742         * modules/unistr/u8-cmp2-tests: New file.
72743         * tests/unistr/test-u8-cmp2.c: New file.
72744         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
72746         Tests for module 'unistr/u32-cmp'.
72747         * modules/unistr/u32-cmp-tests: New file.
72748         * tests/unistr/test-u32-cmp.c: New file.
72750         Tests for module 'unistr/u16-cmp'.
72751         * modules/unistr/u16-cmp-tests: New file.
72752         * tests/unistr/test-u16-cmp.c: New file.
72754         Tests for module 'unistr/u8-cmp'.
72755         * modules/unistr/u8-cmp-tests: New file.
72756         * tests/unistr/test-u8-cmp.c: New file.
72757         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
72759         Tests for module 'unistr/u32-set'.
72760         * modules/unistr/u32-set-tests: New file.
72761         * tests/unistr/test-u32-set.c: New file.
72763         Tests for module 'unistr/u16-set'.
72764         * modules/unistr/u16-set-tests: New file.
72765         * tests/unistr/test-u16-set.c: New file.
72767         Tests for module 'unistr/u8-set'.
72768         * modules/unistr/u8-set-tests: New file.
72769         * tests/unistr/test-u8-set.c: New file.
72770         * tests/unistr/test-set.h: New file.
72772         Tests for module 'unistr/u32-move'.
72773         * modules/unistr/u32-move-tests: New file.
72774         * tests/unistr/test-u32-move.c: New file.
72776         Tests for module 'unistr/u16-move'.
72777         * modules/unistr/u16-move-tests: New file.
72778         * tests/unistr/test-u16-move.c: New file.
72780         Tests for module 'unistr/u8-move'.
72781         * modules/unistr/u8-move-tests: New file.
72782         * tests/unistr/test-u8-move.c: New file.
72783         * tests/unistr/test-move.h: New file.
72785         Tests for module 'unistr/u32-cpy'.
72786         * modules/unistr/u32-cpy-tests: New file.
72787         * tests/unistr/test-u32-cpy.c: New file.
72789         Tests for module 'unistr/u16-cpy'.
72790         * modules/unistr/u16-cpy-tests: New file.
72791         * tests/unistr/test-u16-cpy.c: New file.
72793         Tests for module 'unistr/u8-cpy'.
72794         * modules/unistr/u8-cpy-tests: New file.
72795         * tests/unistr/test-u8-cpy.c: New file.
72796         * tests/unistr/test-cpy.h: New file.
72798 2010-01-09  Bruno Haible  <bruno@clisp.org>
72800         Tests for module 'unistr/u32-uctomb'.
72801         * modules/unistr/u32-uctomb-tests: New file.
72802         * tests/unistr/test-u32-uctomb.c: New file.
72804         Tests for module 'unistr/u16-uctomb'.
72805         * modules/unistr/u16-uctomb-tests: New file.
72806         * tests/unistr/test-u16-uctomb.c: New file.
72808         Tests for module 'unistr/u8-uctomb'.
72809         * modules/unistr/u8-uctomb-tests: New file.
72810         * tests/unistr/test-u8-uctomb.c: New file.
72812         Tests for module 'unistr/u32-mbtoucr'.
72813         * modules/unistr/u32-mbtoucr-tests: New file.
72814         * tests/unistr/test-u32-mbtoucr.c: New file.
72816         Tests for module 'unistr/u16-mbtoucr'.
72817         * modules/unistr/u16-mbtoucr-tests: New file.
72818         * tests/unistr/test-u16-mbtoucr.c: New file.
72820         Tests for module 'unistr/u8-mbtoucr'.
72821         * modules/unistr/u8-mbtoucr-tests: New file.
72822         * tests/unistr/test-u8-mbtoucr.c: New file.
72824         Tests for module 'unistr/u32-mbtouc'.
72825         * modules/unistr/u32-mbtouc-tests: New file.
72826         * tests/unistr/test-u32-mbtouc.c: New file.
72828         Tests for module 'unistr/u16-mbtouc'.
72829         * modules/unistr/u16-mbtouc-tests: New file.
72830         * tests/unistr/test-u16-mbtouc.c: New file.
72832         Tests for module 'unistr/u8-mbtouc'.
72833         * modules/unistr/u8-mbtouc-tests: New file.
72834         * tests/unistr/test-u8-mbtouc.c: New file.
72836         Tests for module 'unistr/u32-mbtouc-unsafe'.
72837         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
72838         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
72839         * tests/unistr/test-u32-mbtouc.h: New file.
72841         Tests for module 'unistr/u16-mbtouc-unsafe'.
72842         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
72843         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
72844         * tests/unistr/test-u16-mbtouc.h: New file.
72846         Tests for module 'unistr/u8-mbtouc-unsafe'.
72847         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
72848         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
72849         * tests/unistr/test-u8-mbtouc.h: New file.
72851         Tests for module 'unistr/u32-mblen'.
72852         * modules/unistr/u32-mblen-tests: New file.
72853         * tests/unistr/test-u32-mblen.c: New file.
72855         Tests for module 'unistr/u16-mblen'.
72856         * modules/unistr/u16-mblen-tests: New file.
72857         * tests/unistr/test-u16-mblen.c: New file.
72859         Tests for module 'unistr/u8-mblen'.
72860         * modules/unistr/u8-mblen-tests: New file.
72861         * tests/unistr/test-u8-mblen.c: New file.
72863         Tests for module 'unistr/u32-to-u16'.
72864         * modules/unistr/u32-to-u16-tests: New file.
72865         * tests/unistr/test-u32-to-u16.c: New file.
72867         Tests for module 'unistr/u32-to-u8'.
72868         * modules/unistr/u32-to-u8-tests: New file.
72869         * tests/unistr/test-u32-to-u8.c: New file.
72871         Tests for module 'unistr/u16-to-u32'.
72872         * modules/unistr/u16-to-u32-tests: New file.
72873         * tests/unistr/test-u16-to-u32.c: New file.
72875         Tests for module 'unistr/u16-to-u8'.
72876         * modules/unistr/u16-to-u8-tests: New file.
72877         * tests/unistr/test-u16-to-u8.c: New file.
72879         Tests for module 'unistr/u8-to-u32'.
72880         * modules/unistr/u8-to-u32-tests: New file.
72881         * tests/unistr/test-u8-to-u32.c: New file.
72883         Tests for module 'unistr/u8-to-u16'.
72884         * modules/unistr/u8-to-u16-tests: New file.
72885         * tests/unistr/test-u8-to-u16.c: New file.
72887         Tests for module 'unistr/u32-check'.
72888         * modules/unistr/u32-check-tests: New file.
72889         * tests/unistr/test-u32-check.c: New file.
72891         Tests for module 'unistr/u16-check'.
72892         * modules/unistr/u16-check-tests: New file.
72893         * tests/unistr/test-u16-check.c: New file.
72895         Tests for module 'unistr/u8-check'.
72896         * modules/unistr/u8-check-tests: New file.
72897         * tests/unistr/test-u8-check.c: New file.
72899         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
72900         (category_equals): New function.
72901         (main): Add more tests.
72902         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
72904         * tests/unictype/test-bidi_byname.c (main): Add more tests.
72906 2010-01-10  Bruno Haible  <bruno@clisp.org>
72908         unistr/u*-strcoll: Try harder to distinguish different strings.
72909         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
72910         compare s1 and s2 to see if they are different.
72912 2010-01-10  Bruno Haible  <bruno@clisp.org>
72914         unistr/u*-stpncpy: Fix the return value.
72915         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
72916         description of the return value consistent with stpncpy in glibc.
72917         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
72918         written non-NUL unit.
72920 2010-01-10  Bruno Haible  <bruno@clisp.org>
72922         unistr/u*-next: Add missing dependencies.
72923         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
72924         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
72925         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
72927 2010-01-10  Bruno Haible  <bruno@clisp.org>
72929         unistr/u8-mbsnlen: Fix return value for incomplete character.
72930         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
72931         u8_mblen.
72932         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
72933         Remove unistr/u8-mblen.
72934         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
72935         u16_mblen.
72936         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
72937         Remove unistr/u16-mblen.
72939 2010-01-10  Bruno Haible  <bruno@clisp.org>
72941         wchar: Fix compilation error when <wchar.h> is used from coreutils.
72942         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
72943         Reported by Brian Gough <bjg@gnu.org> and
72944         Chris Clayton <chris2553@googlemail.com> via
72945         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
72947 2010-01-09  Bruno Haible  <bruno@clisp.org>
72949         unistr/u16-to-u32: Reject invalid input.
72950         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
72951         u16_mbtouc.
72952         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
72953         Remove unistr/u16-mbtouc.
72955         unistr/u16-to-u8: Reject invalid input.
72956         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
72957         u16_mbtouc.
72958         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
72959         Remove unistr/u16-mbtouc.
72961         unistr/u8-to-u32: Reject invalid input.
72962         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
72963         u8_mbtouc.
72964         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
72965         Remove unistr/u8-mbtouc.
72967         unistr/u8-to-u16: Reject invalid input.
72968         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
72969         u8_mbtouc.
72970         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
72971         Remove unistr/u8-mbtouc.
72973 2010-01-09  Bruno Haible  <bruno@clisp.org>
72975         Tests for module 'getlogin'.
72976         * modules/getlogin-tests: New file.
72977         * tests/test-getlogin.c: New file.
72979         New module 'getlogin'.
72980         * lib/unistd.in.h (getlogin): New declaration.
72981         * lib/getlogin.c: New file.
72982         * m4/getlogin.m4: New file.
72983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
72984         HAVE_GETLOGIN.
72985         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
72986         HAVE_GETLOGIN.
72987         * modules/getlogin: New file.
72988         * doc/posix-functions/getlogin.texi: Mention the new module.
72989         Reported by John W. Eaton <jwe@gnu.org>.
72991 2010-01-09  Bruno Haible  <bruno@clisp.org>
72993         getlogin_r: Support for native Windows.
72994         * lib/getlogin_r.c: Include <windows.h>
72995         (getlogin_r): Implement for native Windows.
72996         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
72997         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
72998         via John W. Eaton <jwe@gnu.org>.
73000 2010-01-09  Bruno Haible  <bruno@clisp.org>
73002         getlogin_r: Small fixes.
73003         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
73004         succeeds.
73005         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
73006         before testing whether getlogin_r is declared. No need to set
73007         HAVE_DECL_GETLOGIN_R to 1.
73008         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
73010 2010-01-09  Bruno Haible  <bruno@clisp.org>
73012         * lib/unistd.in.h (getlogin_r): Add comment.
73014 2010-01-09  Bruno Haible  <bruno@clisp.org>
73016         Tests for module 'getlogin_r'.
73017         * modules/getlogin_r-tests: New file.
73018         * tests/test-getlogin_r.c: New file.
73020 2010-01-09  Jim Meyering  <meyering@redhat.com>
73022         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
73023         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
73024         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
73026 2010-01-08  Simon Josefsson  <simon@josefsson.org>
73028         * lib/dup2.c (rpl_dup2): Improve comment.
73030 2010-01-08  Eric Blake  <ebb9@byu.net>
73032         maint.mk: allow packages to add makefile @@ exceptions
73033         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
73034         (sc_makefile_check): Rename...
73035         (sc_makefile_at_at_check): ...to this, and use hook.
73037         dup2: work around mingw bug
73038         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
73039         Reported by Simon Josefsson.
73041 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
73043         glob: Fix C++ compilation.
73044         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
73045         C++.
73047 2010-01-07  Bruno Haible  <bruno@clisp.org>
73049         Fix indentation of wctype.in.h, broken since 2007-01-06.
73050         * lib/wctype.in.h: Fix indentation of preprocessor directives.
73052 2010-01-07  Bruno Haible  <bruno@clisp.org>
73054         mbslen: Avoid collision with system function.
73055         * lib/string.in.h [MirBSD]: Include <wchar.h>.
73056         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
73057         * m4/mbslen.m4: New file.
73058         * modules/mbslen (Files): Add it.
73059         (configure.ac): Invoke gl_MBSLEN.
73060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
73061         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
73062         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
73063         via Ian Beckwith <ianb@erislabs.net>.
73065 2010-01-07  Bruno Haible  <bruno@clisp.org>
73067         dirent: Document the last fix.
73068         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
73070 2010-01-07  Bruno Haible  <bruno@clisp.org>
73072         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
73073         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
73074         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
73075         va_list are defined.
73076         * doc/posix-headers/stdio.texi: Document the bug of missing types.
73077         Reported by Eric Blake.
73079 2010-01-07  Bruno Haible  <bruno@clisp.org>
73081         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
73082         * modules/xlist (Depends-on): Add 'list',
73083         * modules/xoset (Depends-on): Add 'oset'.
73084         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73086 2010-01-07  Bruno Haible  <bruno@clisp.org>
73088         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
73089         * doc/posix-functions/strncasecmp.texi: Likewise.
73091 2010-01-07  Bruno Haible  <bruno@clisp.org>
73093         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
73095 2010-01-07  John W. Eaton  <jwe@octave.org>
73097         wctype: allow C++ use
73098         * lib/wctype.in.h: Add extern "C" block for C++.
73100 2010-01-06  Eric Blake  <ebb9@byu.net>
73102         maint.mk: detect incorrect GFDL usage
73103         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
73105 2010-01-06  Jim Meyering  <meyering@redhat.com>
73106         and Eric Blake  <ebb9@byu.net>
73108         maint.mk: ignore multi-line copyright in NEWS
73109         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
73111 2010-01-06  Eric Blake  <ebb9@byu.net>
73113         select: add missing dependency
73114         * modules/select-tests (Depends-on): Move sockets dependency...
73115         * modules/select (Depends-on): ...here.
73116         Reported by Ian Beckwith.
73118         doc: regenerate INSTALL
73119         * doc/INSTALL: Reflect recent autoconf update.
73120         * doc/INSTALL.ISO: Likewise.
73121         * doc/INSTALL.UTF-8: Likewise.
73123         pread: fix compilation on glibc
73124         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
73125         Reported by Ralf Wildenhues.
73127         dirent: fix test failure
73128         * lib/dirent.in.h (includes): Guarantee ino_t.
73129         Reported by Ralf Wildenhues.
73131 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
73133         linkat, renameat: avoid bad free
73134         * lib/at-func2.c (at_func2): Fix typo.
73135         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
73137 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73139         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
73140         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
73141         to avoid failure of symlink test later.
73143 2010-01-06  Eric Blake  <ebb9@byu.net>
73145         stdio, unistd: guarantee ssize_t
73146         * lib/unistd.in.h (includes): Ensure that types required by POSIX
73147         2008 are exposed when needed.
73148         * lib/stdio.in.h (includes): Likewise.
73149         Reported by Ralf Wildenhues.
73151 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
73153         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
73154         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
73155         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
73157 2010-01-06  Jim Meyering  <meyering@redhat.com>
73159         readtokens: this module *does* require xalloc.h
73160         It uses only functions that were omitted by the old syntax-check rule.
73161         * lib/readtokens.c: Include "xalloc.h" once again.
73162         * modules/readtokens (Depends-on): Add xalloc.
73163         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
73165 2010-01-05  Eric Blake  <ebb9@byu.net>
73167         maint: support 'make announcement' from a VPATH build
73168         * top/maint.mk (announcement): Look for correct NEWS file.
73170 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
73172         utimens (fdutimens): ignore a negative FD, per contract
73173         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
73174         when we have a valid file descriptor.  Otherwise, using a brand
73175         new glibc (with just-patched futimens that now fails with EBADF)
73176         would cause this function to fail with ENOSYS.
73177         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
73178         See also http://bugzilla.redhat.com/552320.
73180 2010-01-05  Eric Blake  <ebb9@byu.net>
73182         strcase: document what it provides
73183         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
73184         gnulib module.
73185         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
73186         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
73188 2010-01-05  Jim Meyering  <meyering@redhat.com>
73190         maint: remove useless inclusions of "xalloc.h"
73191         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
73192         * lib/readtokens.c: Likewise.
73193         * lib/same.c: Likewise.
73194         * modules/getloadavg (Depends-on): Remove xalloc.
73195         * modules/readtokens: Likewise.
73196         * modules/same: Likewise.
73198         maint.mk: include 4 more function names in alloca.h-checking regexp
73199         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
73200         regexp.  Before, we would give a false-positive (saying alloca.h
73201         is included unnecessarily) when the only uses involved omitted symbols.
73203         xalloc.h: use consistent formatting
73204         * lib/xalloc.h: Move declarations to start in the first column.
73206 2010-01-05  Eric Blake  <ebb9@byu.net>
73208         mkdir: avoid xalloc
73209         * lib/mkdir.c (includes): Drop unused header.
73210         Reported by John W. Eaton.
73212 2010-01-04  Jim Meyering  <meyering@redhat.com>
73214         nl_langinfo: avoid configure-time syntax error
73215         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
73216         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
73217         the empty string.  Don't let that provoke a shell syntax error.
73219         regcomp, regexec, fnmatch: avoid array bounds read error
73220         * lib/regcomp.c (build_equiv_class): From glibc:
73221         Use only the low 24 bits of a findidx return value as an index
73222         into the weights array.  Patch by Ulrich Drepper:
73223         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
73224         * lib/regexec.c (check_node_accept_bytes): Likewise.
73225         * lib/fnmatch_loop.c (FCT): Likewise.
73227         regcomp: skip collseq lookup when there are no rules
73228         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
73229         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
73231         regcomp: recognize ill-formed { } expressions
73232         * lib/regcomp.c (parse_dup_op): From glibc:
73233         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
73235         regcomp: fix typo in comment
73236         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
73237         s/satisfy/satisfies/.
73239         regcomp: sync from glibc: remove dead store
73240         * lib/regcomp.c (duplicate_node_closure): Remove useless
73241         search_duplicated_node call and dead store.
73243         regcomp: sync from glibc; always use nl_langinfo
73244         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
73245         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
73246         * modules/regex (Depends-on): Add nl_langinfo.
73248 2010-01-04  Eric Blake  <ebb9@byu.net>
73250         fdopendir: fix configure test
73251         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
73253 2010-01-01  Bruno Haible  <bruno@clisp.org>
73255         wchar: Remove unused configure check.
73256         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
73258 2010-01-01  Eric Blake  <ebb9@byu.net>
73260         headers: make check of system header explicit
73261         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
73262         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
73263         ourselves.
73264         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
73265         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73266         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
73267         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
73268         internals.
73269         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
73270         missing.
73271         Suggested by Bruno Haible.
73273 2010-01-01  Jim Meyering  <meyering@redhat.com>
73275         ChangeLog: tweak to eliminate unnecessary copyright line
73276         * ChangeLog: Remove a copyright line that was mistakenly updated
73277         by today's update-copyright run.  Reported by Eric Blake.
73279         test-update-copyright: don't let envvar setting cause test failure
73280         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
73282 2010-01-01  Bruno Haible  <bruno@clisp.org>
73284         localename: Avoid gcc warning.
73285         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
73286         function if it is not used.
73288 2010-01-01  Jim Meyering  <meyering@redhat.com>
73290         update nearly all FSF copyright year lists to include 2010
73291         Use the same procedure as for 2009, outlined in
73292         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
73294         version-etc: set COPYRIGHT_YEAR to 2010
73295         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
73297 2009-12-31  Eric Blake  <ebb9@byu.net>
73299         doc: correct availability of cygwin 1.5.x getopt
73300         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
73301         variables.
73302         * doc/posix-functions/opterr.texi (opterr): Likewise.
73303         * doc/posix-functions/optind.texi (optind): Likewise.
73304         * doc/posix-functions/optopt.texi (optopt): Likewise.
73305         * doc/posix-functions/tzname.texi (tzname): Likewise.
73307         openat: update maintainer
73308         * modules/openat (Maintainer): Add myself.
73310         utimens: avoid shadowing warning
73311         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
73312         buffers into one, to avoid shadowing, as well as avoiding a
73313         redundant stat.
73314         Reported by Jim Meyering.
73316         test-dup2: avoid compiler warning
73317         * tests/test-dup2.c (is_inheritable): Only define if used.
73319 2010-01-01  Bruno Haible  <bruno@clisp.org>
73321         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
73322         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
73323         defined, use wctomb instead of wcrtomb.
73325 2010-01-01  Bruno Haible  <bruno@clisp.org>
73327         iconv: Reject native Solaris iconv.
73328         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
73329         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
73331 2009-12-31  Bruno Haible  <bruno@clisp.org>
73333         * tests/test-signal.c (main): Remove test of 'SIG'.
73335 2009-12-31  Bruno Haible  <bruno@clisp.org>
73337         spawn: Fix incomplete fix.
73338         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73339         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73340         warnings for GNULIB_POSIXCHECK again.
73341         Reported by Eric Blake.
73343 2009-12-31  Bruno Haible  <bruno@clisp.org>
73345         Avoid namespace pollution on glibc systems.
73346         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
73347         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
73348         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
73349         glibc systems.
73351 2009-12-31  Bruno Haible  <bruno@clisp.org>
73353         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
73354         (gl_REPLACE_WCHAR_H): Turn into a no-op.
73355         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
73356         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
73357         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
73358         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
73359         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
73361 2009-12-31  Bruno Haible  <bruno@clisp.org>
73363         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
73364         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
73365         afterwards.
73367 2009-12-31  Bruno Haible  <bruno@clisp.org>
73369         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
73370         SYS_UTSNAME_H.
73372 2009-12-31  Bruno Haible  <bruno@clisp.org>
73374         spawn: Fix misapplied patch.
73375         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73376         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73377         warnings for GNULIB_POSIXCHECK.
73379 2009-12-31  Bruno Haible  <bruno@clisp.org>
73381         times: Update after sys_times changed.
73382         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
73383         * modules/times (Files): Add it.
73384         (configure.ac): Invoke gl_FUNC_TIMES.
73386 2009-12-31  Bruno Haible  <bruno@clisp.org>
73388         Use AC_C_INLINE where necessary.
73389         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
73390         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
73391         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73392         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
73393         * m4/mbfile.m4 (gl_MBFILE): Likewise.
73394         * m4/mbiter.m4 (gl_MBITER): Likewise.
73395         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73396         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
73397         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
73398         * modules/u64 (configure.ac): Likewise.
73400 2009-12-31  Bruno Haible  <bruno@clisp.org>
73402         Use AC_C_INLINE instead of module 'inline' where possible.
73403         * modules/inline (Description): Clarify purpose.
73404         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
73405         * modules/count-one-bits (Depends-on): Remove inline.
73406         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
73407         * modules/openat (Depends-on): Remove inline.
73408         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
73409         instead of depending on module 'inline'.
73410         * modules/filevercmp (Depends-on, configure.ac): Likewise.
73411         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
73412         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
73413         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
73414         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
73415         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
73416         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
73417         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
73418         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
73419         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
73420         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
73421         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
73422         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
73423         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
73424         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
73425         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
73426         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
73427         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
73428         Likewise.
73429         * modules/unictype/property-ascii-hex-digit (Depends-on,
73430         configure.ac): Likewise.
73431         * modules/unictype/property-bidi-arabic-digit (Depends-on,
73432         configure.ac): Likewise.
73433         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
73434         configure.ac): Likewise.
73435         * modules/unictype/property-bidi-block-separator (Depends-on,
73436         configure.ac): Likewise.
73437         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
73438         configure.ac): Likewise.
73439         * modules/unictype/property-bidi-common-separator (Depends-on,
73440         configure.ac): Likewise.
73441         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
73442         Likewise.
73443         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
73444         configure.ac): Likewise.
73445         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
73446         configure.ac): Likewise.
73447         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
73448         configure.ac): Likewise.
73449         * modules/unictype/property-bidi-european-digit (Depends-on,
73450         configure.ac): Likewise.
73451         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
73452         configure.ac): Likewise.
73453         * modules/unictype/property-bidi-left-to-right (Depends-on,
73454         configure.ac): Likewise.
73455         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
73456         configure.ac): Likewise.
73457         * modules/unictype/property-bidi-other-neutral (Depends-on,
73458         configure.ac): Likewise.
73459         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
73460         Likewise.
73461         * modules/unictype/property-bidi-segment-separator (Depends-on,
73462         configure.ac): Likewise.
73463         * modules/unictype/property-bidi-whitespace (Depends-on,
73464         configure.ac): Likewise.
73465         * modules/unictype/property-combining (Depends-on, configure.ac):
73466         Likewise.
73467         * modules/unictype/property-composite (Depends-on, configure.ac):
73468         Likewise.
73469         * modules/unictype/property-currency-symbol (Depends-on,
73470         configure.ac): Likewise.
73471         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
73472         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
73473         Likewise.
73474         * modules/unictype/property-default-ignorable-code-point (Depends-on,
73475         configure.ac): Likewise.
73476         * modules/unictype/property-deprecated (Depends-on, configure.ac):
73477         Likewise.
73478         * modules/unictype/property-diacritic (Depends-on, configure.ac):
73479         Likewise.
73480         * modules/unictype/property-extender (Depends-on, configure.ac):
73481         Likewise.
73482         * modules/unictype/property-format-control (Depends-on, configure.ac):
73483         Likewise.
73484         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
73485         Likewise.
73486         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
73487         Likewise.
73488         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
73489         Likewise.
73490         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
73491         Likewise.
73492         * modules/unictype/property-hyphen (Depends-on, configure.ac):
73493         Likewise.
73494         * modules/unictype/property-id-continue (Depends-on, configure.ac):
73495         Likewise.
73496         * modules/unictype/property-id-start (Depends-on, configure.ac):
73497         Likewise.
73498         * modules/unictype/property-ideographic (Depends-on, configure.ac):
73499         Likewise.
73500         * modules/unictype/property-ids-binary-operator (Depends-on,
73501         configure.ac): Likewise.
73502         * modules/unictype/property-ids-trinary-operator (Depends-on,
73503         configure.ac): Likewise.
73504         * modules/unictype/property-ignorable-control (Depends-on,
73505         configure.ac): Likewise.
73506         * modules/unictype/property-iso-control (Depends-on, configure.ac):
73507         Likewise.
73508         * modules/unictype/property-join-control (Depends-on, configure.ac):
73509         Likewise.
73510         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
73511         Likewise.
73512         * modules/unictype/property-line-separator (Depends-on, configure.ac):
73513         Likewise.
73514         * modules/unictype/property-logical-order-exception (Depends-on,
73515         configure.ac): Likewise.
73516         * modules/unictype/property-lowercase (Depends-on, configure.ac):
73517         Likewise.
73518         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
73519         * modules/unictype/property-non-break (Depends-on, configure.ac):
73520         Likewise.
73521         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
73522         Likewise.
73523         * modules/unictype/property-numeric (Depends-on, configure.ac):
73524         Likewise.
73525         * modules/unictype/property-other-alphabetic (Depends-on,
73526         configure.ac): Likewise.
73527         * modules/unictype/property-other-default-ignorable-code-point
73528         (Depends-on, configure.ac): Likewise.
73529         * modules/unictype/property-other-grapheme-extend (Depends-on,
73530         configure.ac): Likewise.
73531         * modules/unictype/property-other-id-continue (Depends-on,
73532         configure.ac): Likewise.
73533         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
73534         Likewise.
73535         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
73536         Likewise.
73537         * modules/unictype/property-other-math (Depends-on, configure.ac):
73538         Likewise.
73539         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
73540         Likewise.
73541         * modules/unictype/property-paired-punctuation (Depends-on,
73542         configure.ac): Likewise.
73543         * modules/unictype/property-paragraph-separator (Depends-on,
73544         configure.ac): Likewise.
73545         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
73546         Likewise.
73547         * modules/unictype/property-pattern-white-space (Depends-on,
73548         configure.ac): Likewise.
73549         * modules/unictype/property-private-use (Depends-on, configure.ac):
73550         Likewise.
73551         * modules/unictype/property-punctuation (Depends-on, configure.ac):
73552         Likewise.
73553         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
73554         Likewise.
73555         * modules/unictype/property-radical (Depends-on, configure.ac):
73556         Likewise.
73557         * modules/unictype/property-sentence-terminal (Depends-on,
73558         configure.ac): Likewise.
73559         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
73560         Likewise.
73561         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
73562         * modules/unictype/property-terminal-punctuation (Depends-on,
73563         configure.ac): Likewise.
73564         * modules/unictype/property-titlecase (Depends-on, configure.ac):
73565         Likewise.
73566         * modules/unictype/property-unassigned-code-value (Depends-on,
73567         configure.ac): Likewise.
73568         * modules/unictype/property-unified-ideograph (Depends-on,
73569         configure.ac): Likewise.
73570         * modules/unictype/property-uppercase (Depends-on, configure.ac):
73571         Likewise.
73572         * modules/unictype/property-variation-selector (Depends-on,
73573         configure.ac): Likewise.
73574         * modules/unictype/property-white-space (Depends-on, configure.ac):
73575         Likewise.
73576         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
73577         Likewise.
73578         * modules/unictype/property-xid-start (Depends-on, configure.ac):
73579         Likewise.
73580         * modules/unictype/property-zero-width (Depends-on, configure.ac):
73581         Likewise.
73582         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
73583         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
73584         Likewise.
73586 2009-12-31  Bruno Haible  <bruno@clisp.org>
73588         Remove unnecessary AC_C_INLINE invocation.
73589         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
73590         since 2009-08-21.
73592 2009-12-31  Jim Meyering  <meyering@redhat.com>
73594         maint.mk: don't require explicit gpg_key_ID in cfg.mk
73595         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
73596         With this change, we can all remove the gpg_key_ID = ... definition
73597         from our respective cfg.mk files.
73599         maint.mk: create announcement template in ~/, not in /tmp
73600         * top/maint.mk (emit_upload_commands): Adjust.
73601         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
73602         Remove temporary file, .ci-msg.
73604 2009-12-31  Eric Blake  <ebb9@byu.net>
73606         link-warning: always build headers with link warnings
73607         * modules/arpa_inet (Makefile.am): Always build replacement
73608         header.
73609         * modules/ctype (Makefile.am): Likewise.
73610         * modules/dirent (Makefile.am): Likewise.
73611         * modules/inttypes (Makefile.am): Likewise.
73612         * modules/langinfo (Makefile.am): Likewise.
73613         * modules/locale (Makefile.am): Likewise.
73614         * modules/spawn (Makefile.am): Likewise.
73615         * modules/sys_file (Makefile.am): Likewise.
73616         * modules/sys_ioctl (Makefile.am): Likewise.
73617         * modules/sys_select (Makefile.am): Likewise.
73618         * modules/sys_socket (Makefile.am): Likewise.
73619         * modules/sys_times (Makefile.am): Likewise.
73620         * modules/sys_utsname (Makefile.am): Likewise.
73621         * modules/sys_wait (Makefile.am): Likewise.
73622         * modules/wchar (Makefile.am): Likewise.
73623         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
73624         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
73625         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
73626         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
73627         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
73628         Likewise.
73629         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73630         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
73631         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
73632         Likewise.
73633         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
73634         Likewise.
73635         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
73636         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
73637         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
73638         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73639         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
73640         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
73641         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
73642         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
73643         (gl_WCHAR_H_DEFAULTS): Likewise.
73645 2009-12-31  Eric Blake  <ebb9@byu.net>
73647         signal, spawn: use link warnings
73648         * lib/signal.in.h (sigset_t): Make unconditional.
73649         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
73650         (sigpending, sigprocmask, sigaction): Add link warnings.
73651         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
73652         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
73653         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
73654         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
73655         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
73656         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
73657         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
73658         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
73659         (posix_spawn_file_actions_destroy)
73660         (posix_spawn_file_actions_addopen)
73661         (posix_spawn_file_actions_addclose)
73662         (posix_spawn_file_actions_adddup2): Likewise.
73663         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
73664         * tests/test-signal.c (main): Enhance test.
73666         spawn: improve wrapper support
73667         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
73668         (gl_SPAWN_H_DEFAULTS): New defaults.
73669         * modules/spawn (Makefile.am): Substitute them.
73670         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
73671         Only declare if missing or broken.
73673         sys_times, sys_utsname: use include_next
73674         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
73675         header.
73676         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
73677         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
73678         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
73679         * modules/sys_times (Depends-on): Add include_next.
73680         (Makefile.am): Substitute additional values.
73681         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
73682         * lib/sys_times.in.h (includes): Include native header, if
73683         available.
73684         * lib/sys_utsname.in.h (includes): Likewise.
73685         * tests/test-sys_times.c (main): Enhance test.
73687         fdutimensat: revert prior patch
73688         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
73689         utimens.h.
73690         Reported by Bruno Haible.
73692 2009-12-30  Eric Blake  <ebb9@byu.net>
73694         sys_wait: drop link-warning dependency
73695         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
73696         link-warning efforts.
73697         * lib/sys_wait.in.h: Likewise.
73699         fdutimensat: remove bogus dependency
73700         * modules/fdutimensat (Depends-on): Drop inline.
73702         unistd: fix typo
73703         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
73705 2009-12-30  Bruno Haible  <bruno@clisp.org>
73707         Fix compilation error with Solaris cc.
73708         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
73709         * lib/unicase/u16-is-invariant.c: Likewise.
73710         * lib/unicase/u32-is-invariant.c: Likewise.
73711         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73713 2009-12-30  Bruno Haible  <bruno@clisp.org>
73715         Fix test crash.
73716         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
73717         locales.
73718         Reported by Simon Josefsson <simon@josefsson.org>.
73720 2009-12-30  Bruno Haible  <bruno@clisp.org>
73722         Fix compilation error on most platforms.
73723         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
73724         Reported by Simon Josefsson <simon@josefsson.org>
73725         and Nelson H. F. Beebe <beebe@math.utah.edu>.
73727 2009-12-30  Eric Blake  <ebb9@byu.net>
73729         futimens, utimensat: work around ntfs-3g bug
73730         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
73731         a ctime bug is present, and expand workaround to cover ntfs-3g.
73732         * lib/utimens.c (fdutimens, lutimens): Likewise.
73733         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
73734         (validate_timespec): Adjust return value.
73735         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
73736         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
73737         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
73739 2009-12-29  Eric Blake  <ebb9@byu.net>
73741         link-warning: make usage consistent
73742         * modules/ctype (Depends-on): Add link-warning.
73743         (Makefile.am): Update rules accordingly.
73744         * modules/langinfo (Depends-on, Makefile.am): Likewise.
73745         * modules/locale (Depends-on, Makefile.am): Likewise.
73746         * modules/sys_file (Makefile.am): Likewise.
73747         * modules/getopt-posix (Makefile.am): Delete unused link warning
73748         efforts.
73749         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
73750         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
73751         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
73752         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
73754         stdio: remove unused variables
73755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
73756         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
73757         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
73759         tests: test more substitute headers
73760         * modules/ctype-tests: New file.
73761         * modules/dirent-tests: Likewise.
73762         * modules/spawn-tests: Likewise.
73763         * modules/sys_file-tests: Likewise.
73764         * modules/sys_ioctl-tests: Likewise.
73765         * modules/sys_wait-tests: Likewise.
73766         * tests/test-ctype.c: Likewise.
73767         * tests/test-dirent.c: Likewise.
73768         * tests/test-spawn.c: Likewise.
73769         * tests/test-sys_file.c: Likewise.
73770         * tests/test-sys_ioctl.c: Likewise.
73771         * tests/test-sys_wait.c: Likewise.
73772         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
73773         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
73774         whether or not flock is in use.
73776         tests: remove License section from module
73777         * modules/arpa_inet-tests: Remove unneeded section.
73778         * modules/byteswap-tests: Likewise.
73779         * modules/ceilf-tests: Likewise.
73780         * modules/ceill-tests: Likewise.
73781         * modules/crypto/des-tests: Likewise.
73782         * modules/crypto/gc-arcfour-tests: Likewise.
73783         * modules/crypto/gc-arctwo-tests: Likewise.
73784         * modules/crypto/gc-des-tests: Likewise.
73785         * modules/crypto/gc-hmac-md5-tests: Likewise.
73786         * modules/crypto/gc-hmac-sha1-tests: Likewise.
73787         * modules/crypto/gc-md2-tests: Likewise.
73788         * modules/crypto/gc-md4-tests: Likewise.
73789         * modules/crypto/gc-md5-tests: Likewise.
73790         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
73791         * modules/crypto/gc-rijndael-tests: Likewise.
73792         * modules/crypto/gc-sha1-tests: Likewise.
73793         * modules/crypto/gc-tests: Likewise.
73794         * modules/crypto/md2-tests: Likewise.
73795         * modules/crypto/md4-tests: Likewise.
73796         * modules/fcntl-h-tests: Likewise.
73797         * modules/floorf-tests: Likewise.
73798         * modules/floorl-tests: Likewise.
73799         * modules/frexp-nolibm-tests: Likewise.
73800         * modules/frexp-tests: Likewise.
73801         * modules/frexpl-nolibm-tests: Likewise.
73802         * modules/frexpl-tests: Likewise.
73803         * modules/getaddrinfo-tests: Likewise.
73804         * modules/inttypes-tests: Likewise.
73805         * modules/isfinite-tests: Likewise.
73806         * modules/isinf-tests: Likewise.
73807         * modules/ldexpl-tests: Likewise.
73808         * modules/locale-tests: Likewise.
73809         * modules/math-tests: Likewise.
73810         * modules/netdb-tests: Likewise.
73811         * modules/netinet_in-tests: Likewise.
73812         * modules/printf-frexp-tests: Likewise.
73813         * modules/printf-frexpl-tests: Likewise.
73814         * modules/priv-set-tests: Likewise.
73815         * modules/random_r-tests: Likewise.
73816         * modules/round-tests: Likewise.
73817         * modules/roundf-tests: Likewise.
73818         * modules/roundl-tests: Likewise.
73819         * modules/search-tests: Likewise.
73820         * modules/select-tests: Likewise.
73821         * modules/signal-tests: Likewise.
73822         * modules/stdbool-tests: Likewise.
73823         * modules/stddef-tests: Likewise.
73824         * modules/stdint-tests: Likewise.
73825         * modules/stdio-tests: Likewise.
73826         * modules/stdlib-tests: Likewise.
73827         * modules/string-tests: Likewise.
73828         * modules/strings-tests: Likewise.
73829         * modules/sys_select-tests: Likewise.
73830         * modules/sys_socket-tests: Likewise.
73831         * modules/sys_stat-tests: Likewise.
73832         * modules/sys_time-tests: Likewise.
73833         * modules/sys_utsname-tests: Likewise.
73834         * modules/sysexits-tests: Likewise.
73835         * modules/time-tests: Likewise.
73836         * modules/trunc-tests: Likewise.
73837         * modules/truncf-tests: Likewise.
73838         * modules/truncl-tests: Likewise.
73839         * modules/tsearch-tests: Likewise.
73840         * modules/unistd-tests: Likewise.
73841         * modules/wchar-tests: Likewise.
73842         * modules/wctype-tests: Likewise.
73844         tests: fix license on several tests
73845         * tests/test-des.c: Update to GPLv3+.
73846         * tests/test-flock.c: Likewise.
73847         * tests/test-fsync.c: Likewise.
73848         * tests/test-futimens.h: Likewise.
73849         * tests/test-gc-arcfour.c: Likewise.
73850         * tests/test-gc-arctwo.c: Likewise.
73851         * tests/test-gc-des.c: Likewise.
73852         * tests/test-gc-hmac-md5.c: Likewise.
73853         * tests/test-gc-hmac-sha1.c: Likewise.
73854         * tests/test-gc-md2.c: Likewise.
73855         * tests/test-gc-md4.c: Likewise.
73856         * tests/test-gc-md5.c: Likewise.
73857         * tests/test-gc-pbkdf2-sha1.c: Likewise.
73858         * tests/test-gc-rijndael.c: Likewise.
73859         * tests/test-gc-sha1.c: Likewise.
73860         * tests/test-gc.c: Likewise.
73861         * tests/test-getcwd.c: Likewise.
73862         * tests/test-link.c: Likewise.
73863         * tests/test-link.h: Likewise.
73864         * tests/test-lutimens.h: Likewise.
73865         * tests/test-md2.c: Likewise.
73866         * tests/test-md4.c: Likewise.
73867         * tests/test-mkdir.h: Likewise.
73868         * tests/test-rename.c: Likewise.
73869         * tests/test-rename.h: Likewise.
73870         * tests/test-safe-alloc.c: Likewise.
73871         * tests/test-utimens-common.h: Likewise.
73872         * tests/test-utimens.h: Likewise.
73874         maint: sync license texts
73875         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
73876         * doc/gpl-3.0.texi: Revert copyright year update.
73877         * doc/lgpl-3.0.texi: Likewise.
73879 2009-12-29  Jim Meyering  <meyering@redhat.com>
73881         update nearly all FSF copyright year lists to include 2009
73882         The files named by the following are exempted:
73883             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
73884               test -f "$dst" && { echo "$dst"; continue; }
73885               test -d "$dst" || continue
73886               echo "$dst"/$(basename "$src")
73887             done > exempt
73888             git ls-files tests/unictype >> exempt
73889         In the remaining files, convert to all-interval notation if
73890         - there is already at least one year interval like 2000-2003
73891         - the file is maintained by me
73892         - the file is in lib/uni*/, where that style already prevails
73893         Otherwise, use update-copyright's default.
73895 2009-12-29  Simon Josefsson  <simon@josefsson.org>
73896         and Eric Blake  <ebb9@byu.net>
73898         tests: don't require debug system() to pass
73899         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
73900         * tests/test-rmdir.h (test_rmdir_func): Likewise.
73901         * tests/test-unlink.h (test_unlink_func): Likewise.
73902         * tests/test-fstatat.c (main): ...into callers.
73903         * tests/test-lstat.c (main): Likewise.
73904         * tests/test-rmdir.c (main): Likewise.
73905         * tests/test-unlink.c (main): Likewise.
73906         * tests/test-unlinkat.c (main): Likewise.
73907         * tests/test-areadlink-with-size.c (main): Don't require a
73908         debug-only system call to pass, aiding cross-testing to mingw.
73909         * tests/test-areadlink.c (main): Likewise.
73910         * tests/test-areadlinkat-with-size.c (main): Likewise.
73911         * tests/test-areadlinkat.c (main): Likewise.
73912         * tests/test-canonicalize-lgpl.c (main): Likewise.
73913         * tests/test-canonicalize.c (main): Likewise.
73914         * tests/test-chown.c (main): Likewise.
73915         * tests/test-fchownat.c (main): Likewise.
73916         * tests/test-lchown.c (main): Likewise.
73917         * tests/test-fdutimensat.c (main): Likewise.
73918         * tests/test-futimens.c (main): Likewise.
73919         * tests/test-link.c (main): Likewise.
73920         * tests/test-linkat.c (main): Likewise.
73921         * tests/test-mkdir.c (main): Likewise.
73922         * tests/test-mkdirat.c (main): Likewise.
73923         * tests/test-mkfifo.c (main): Likewise.
73924         * tests/test-mkfifoat.c (main): Likewise.
73925         * tests/test-mknod.c (main): Likewise.
73926         * tests/test-readlink.c (main): Likewise.
73927         * tests/test-remove.c (main): Likewise.
73928         * tests/test-rename.c (main): Likewise.
73929         * tests/test-renameat.c (main): Likewise.
73930         * tests/test-symlink.c (main): Likewise.
73931         * tests/test-symlinkat.c (main): Likewise.
73932         * tests/test-utimens.c (main): Likewise.
73933         * tests/test-utimensat.c (main): Likewise.
73935 2009-12-29  Simon Josefsson  <simon@josefsson.org>
73937         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
73938         on $(UNUSED_PARAMETER_H) to avoid build failure.
73940 2009-12-28  Jim Meyering  <meyering@redhat.com>
73942         update-copyright: you may specify a max. line length other than 72
73943         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
73945         maint: use consistent FSF copyright line syntax
73946         * lib/posixtm.c: Add missing comma in FSF copyright line.
73947         * lib/posixtm.h: Likewise.
73948         * lib/getugroups.c: Add missing ", Inc.".
73950         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
73951         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
73952         FSF copyright line.  Remove trailing blanks.
73954 2009-12-28  Eric Blake  <ebb9@byu.net>
73956         test-dup2: reduce dependencies
73957         * modules/cloexec (Configure.ac): Set witness.
73958         * modules/dup2-tests (Depends-on): Drop cloexec.
73959         * tests/test-dup2.c (main): Skip portion of test if cloexec module
73960         not present.
73961         Suggested by Bruno Haible.
73963 2009-12-26  Bruno Haible  <bruno@clisp.org>
73965         Remove an unneeded dependency.
73966         * modules/fseterr (Depends-on): Remove dup2.
73968 2009-12-26  Eric Blake  <ebb9@byu.net>
73970         tests: use macros.h in more places
73971         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
73972         (ASSERT_STREAM): Provide default of stderr.
73973         * tests/test-dirent-safer.c: Include macros.h, using alternate
73974         stream for assertions.
73975         * tests/test-dup-safer.c: Likewise.
73976         * tests/test-freopen-safer.c: Likewise.
73977         * tests/test-getopt.c: Likewise.
73978         * tests/test-openat-safer.c: Likewise.
73979         * tests/test-pipe.c: Likewise.
73980         * tests/test-popen-safer.c: Likewise.
73981         * modules/dirent-safer-tests (Files): Include macros.h.
73982         * modules/unistd-safer-tests (Files): Likewise.
73983         * modules/freopen-safer-tests (Files): Likewise.
73984         * modules/getopt-posix-tests (Files): Likewise.
73985         * modules/openat-safer-tests (Files): Likewise.
73986         * modules/pipe-tests (Files): Likewise.
73988 2009-12-26  Bruno Haible  <bruno@clisp.org>
73990         javacomp-script: Portability fix.
73991         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
73992         that it also works on Solaris.
73994 2009-12-26  Bruno Haible  <bruno@clisp.org>
73996         localename: Fix storage allocation of gl_locale_name_thread's result.
73997         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
73998         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
73999         all platforms that have 'uselocale'.
74000         (gl_locale_name_thread_unsafe): New function, extracted from
74001         gl_locale_name_thread.
74002         (gl_locale_name_thread): Call struniq on all platforms that have
74003         'uselocale'.
74004         * tests/test-localename.c (test_locale_name_thread): Check that the
74005         resulting strings are permanently allocated.
74006         * modules/localename-tests (Depends-on): Add strdup.
74008 2009-12-26  Bruno Haible  <bruno@clisp.org>
74010         * tests/test-localename.c (categories): Fill in the strings.
74012 2009-12-26  Jim Meyering  <meyering@redhat.com>
74014         isdir: complete the removal of m4/isdir.m4
74015         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
74017         isdir: clean up, since at least grep still uses it
74018         * lib/isdir.c: Include "isdir.h".
74019         (S_ISDIR): Remove now-unneeded definition.
74020         * modules/isdir (Files): Add lib/isdir.h.
74021         * lib/isdir.h: New file, with declaration.
74022         * m4/isdir.m4: Remove file -- unneeded.
74024 2009-12-25  Bruno Haible  <bruno@clisp.org>
74026         selinux-h: Make generated .h files standalone.
74027         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
74028         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
74029         * lib/se-selinux.in.h: Likewise.
74030         * modules/selinux-h (Depends-on): Add unused-parameter.
74031         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
74032         selinux/selinux.h and selinux/context.h.
74033         Suggested by Eric Blake.
74035 2009-12-25  Bruno Haible  <bruno@clisp.org>
74037         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
74038         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
74039         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
74040         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
74041         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
74043 2009-12-24  Bruno Haible  <bruno@clisp.org>
74045         openat: Fix warning.
74046         * lib/openat-proc.c: Include <unistd.h>.
74048 2009-12-24  Bruno Haible  <bruno@clisp.org>
74050         New module 'unused-parameter'.
74051         * build-aux/unused-parameter.h: New file, extracted from earlier
74052         gnulib-common.m4.
74053         * modules/unused-parameter: New file.
74054         * lib/unistr.h: Include unused-parameter.h.
74055         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
74056         _GL_UNUSED.
74057         * modules/unistr/base (Depends-on): Add unused-parameter.
74059 2009-12-24  Bruno Haible  <bruno@clisp.org>
74061         Add missing dependencies to 'extensions' module.
74062         * m4/extensions.m4: Add comment.
74063         * modules/accept4 (Depends-on): Add extensions.
74064         * modules/dup3 (Depends-on): Likewise.
74065         * modules/fcntl (Depends-on): Likewise.
74066         * modules/futimens (Depends-on): Likewise.
74067         * modules/mknod (Depends-on): Likewise.
74068         * modules/pipe2 (Depends-on): Likewise.
74069         * modules/stat-time (Depends-on): Likewise.
74070         * modules/strcasestr-simple (Depends-on): Likewise.
74071         * modules/strsignal (Depends-on): Likewise.
74072         * modules/utimensat (Depends-on): Likewise.
74073         * modules/localcharset (Depends-on): Likewise. Needed because of
74074         gl_FCNTL_O_FLAGS.
74075         * modules/wcrtomb (Depends-on): Likewise. Needed because of
74076         AC_TYPE_MBSTATE_T.
74077         * modules/wcsnrtombs (Depends-on): Likewise.
74078         * modules/wcsrtombs (Depends-on): Likewise.
74080 2009-12-24  Bruno Haible  <bruno@clisp.org>
74082         binary-io: Avoid gcc warning due to SET_BINARY.
74083         * lib/binary-io.h (SET_BINARY): Cast the result to void.
74084         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
74086 2009-12-24  Bruno Haible  <bruno@clisp.org>
74088         Avoid future namespace pollution on glibc systems.
74089         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
74090         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
74091         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
74092         glibc systems.
74094 2009-12-24  Bruno Haible  <bruno@clisp.org>
74096         Refactor common macros used in tests.
74097         * tests/macros.h: New file.
74098         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
74099         and/or <stdlib.h>, if appropriate.
74100         (ASSERT, SIZEOF): Remove macros.
74101         * tests/test-areadlink-with-size.c: Likewise.
74102         * tests/test-areadlinkat.c: Likewise.
74103         * tests/test-areadlinkat-with-size.c: Likewise.
74104         * tests/test-argmatch.c: Likewise.
74105         * tests/test-argv-iter.c: Likewise.
74106         * tests/test-array-mergesort.c: Likewise.
74107         * tests/test-array_list.c: Likewise.
74108         * tests/test-array_oset.c: Likewise.
74109         * tests/test-avltree_list.c: Likewise.
74110         * tests/test-avltree_oset.c: Likewise.
74111         * tests/test-avltreehash_list.c: Likewise.
74112         * tests/test-base64.c: Likewise.
74113         * tests/test-binary-io.c: Likewise.
74114         * tests/test-bitrotate.c: Likewise.
74115         * tests/test-btowc.c: Likewise.
74116         * tests/test-byteswap.c: Likewise.
74117         * tests/test-c-ctype.c: Likewise.
74118         * tests/test-c-stack.c: Likewise.
74119         * tests/test-c-strcasecmp.c: Likewise.
74120         * tests/test-c-strcasestr.c: Likewise.
74121         * tests/test-c-strncasecmp.c: Likewise.
74122         * tests/test-c-strstr.c: Likewise.
74123         * tests/test-canonicalize-lgpl.c: Likewise.
74124         * tests/test-canonicalize.c: Likewise.
74125         * tests/test-carray_list.c: Likewise.
74126         * tests/test-ceilf1.c: Likewise.
74127         * tests/test-ceilf2.c: Likewise.
74128         * tests/test-ceill.c: Likewise.
74129         * tests/test-chown.c: Likewise.
74130         * tests/test-cloexec.c: Likewise.
74131         * tests/test-copy-acl.c: Likewise.
74132         * tests/test-copy-file.c: Likewise.
74133         * tests/test-count-one-bits.c: Likewise.
74134         * tests/test-dprintf-posix.c: Likewise.
74135         * tests/test-dup2.c: Likewise.
74136         * tests/test-dup3.c: Likewise.
74137         * tests/test-duplocale.c: Likewise.
74138         * tests/test-fbufmode.c: Likewise.
74139         * tests/test-fchdir.c: Likewise.
74140         * tests/test-fchownat.c: Likewise.
74141         * tests/test-fcntl-safer.c: Likewise.
74142         * tests/test-fcntl.c: Likewise.
74143         * tests/test-fdopendir.c: Likewise.
74144         * tests/test-fdutimensat.c: Likewise.
74145         * tests/test-fflush2.c: Likewise.
74146         * tests/test-file-has-acl.c: Likewise.
74147         * tests/test-filevercmp.c: Likewise.
74148         * tests/test-flock.c: Likewise.
74149         * tests/test-floorf1.c: Likewise.
74150         * tests/test-floorf2.c: Likewise.
74151         * tests/test-floorl.c: Likewise.
74152         * tests/test-fnmatch.c: Likewise.
74153         * tests/test-fopen.h: Likewise.
74154         * tests/test-fpending.c: Likewise.
74155         * tests/test-fprintf-posix.c: Likewise.
74156         * tests/test-fpurge.c: Likewise.
74157         * tests/test-freadable.c: Likewise.
74158         * tests/test-freadahead.c: Likewise.
74159         * tests/test-freading.c: Likewise.
74160         * tests/test-freadptr.c: Likewise.
74161         * tests/test-freadptr2.c: Likewise.
74162         * tests/test-freadseek.c: Likewise.
74163         * tests/test-freopen.c: Likewise.
74164         * tests/test-frexp.c: Likewise.
74165         * tests/test-frexpl.c: Likewise.
74166         * tests/test-fseek.c: Likewise.
74167         * tests/test-fseeko.c: Likewise.
74168         * tests/test-fstatat.c: Likewise.
74169         * tests/test-fstrcmp.c: Likewise.
74170         * tests/test-fsync.c: Likewise.
74171         * tests/test-ftell.c: Likewise.
74172         * tests/test-ftello.c: Likewise.
74173         * tests/test-func.c: Likewise.
74174         * tests/test-futimens.c: Likewise.
74175         * tests/test-fwritable.c: Likewise.
74176         * tests/test-fwriting.c: Likewise.
74177         * tests/test-getcwd.c: Likewise.
74178         * tests/test-getdate.c: Likewise.
74179         * tests/test-getdelim.c: Likewise.
74180         * tests/test-getdtablesize.c: Likewise.
74181         * tests/test-getgroups.c: Likewise.
74182         * tests/test-getline.c: Likewise.
74183         * tests/test-getndelim2.c: Likewise.
74184         * tests/test-glob.c: Likewise.
74185         * tests/test-hash.c: Likewise.
74186         * tests/test-i-ring.c: Likewise.
74187         * tests/test-iconv-utf.c: Likewise.
74188         * tests/test-iconv.c: Likewise.
74189         * tests/test-idpriv-drop.c: Likewise.
74190         * tests/test-idpriv-droptemp.c: Likewise.
74191         * tests/test-inet_ntop.c: Likewise.
74192         * tests/test-inet_pton.c: Likewise.
74193         * tests/test-isblank.c: Likewise.
74194         * tests/test-isfinite.c: Likewise.
74195         * tests/test-isinf.c: Likewise.
74196         * tests/test-isnan.c: Likewise.
74197         * tests/test-isnand.h: Likewise.
74198         * tests/test-isnanf.h: Likewise.
74199         * tests/test-isnanl.h: Likewise.
74200         * tests/test-lchown.c: Likewise.
74201         * tests/test-ldexpl.c: Likewise.
74202         * tests/test-link.c: Likewise.
74203         * tests/test-linkat.c: Likewise.
74204         * tests/test-linked_list.c: Likewise.
74205         * tests/test-linkedhash_list.c: Likewise.
74206         * tests/test-localename.c: Likewise.
74207         * tests/test-lseek.c: Likewise.
74208         * tests/test-lstat.c: Likewise.
74209         * tests/test-mbmemcasecmp.c: Likewise.
74210         * tests/test-mbmemcasecoll.c: Likewise.
74211         * tests/test-mbrtowc.c: Likewise.
74212         * tests/test-mbscasecmp.c: Likewise.
74213         * tests/test-mbscasestr1.c: Likewise.
74214         * tests/test-mbscasestr2.c: Likewise.
74215         * tests/test-mbscasestr3.c: Likewise.
74216         * tests/test-mbscasestr4.c: Likewise.
74217         * tests/test-mbschr.c: Likewise.
74218         * tests/test-mbscspn.c: Likewise.
74219         * tests/test-mbsinit.c: Likewise.
74220         * tests/test-mbsncasecmp.c: Likewise.
74221         * tests/test-mbsnrtowcs.c: Likewise.
74222         * tests/test-mbspbrk.c: Likewise.
74223         * tests/test-mbspcasecmp.c: Likewise.
74224         * tests/test-mbsrchr.c: Likewise.
74225         * tests/test-mbsrtowcs.c: Likewise.
74226         * tests/test-mbsspn.c: Likewise.
74227         * tests/test-mbsstr1.c: Likewise.
74228         * tests/test-mbsstr2.c: Likewise.
74229         * tests/test-mbsstr3.c: Likewise.
74230         * tests/test-memchr.c: Likewise.
74231         * tests/test-memchr2.c: Likewise.
74232         * tests/test-memcmp.c: Likewise.
74233         * tests/test-memmem.c: Likewise.
74234         * tests/test-memrchr.c: Likewise.
74235         * tests/test-mkdir.c: Likewise.
74236         * tests/test-mkdirat.c: Likewise.
74237         * tests/test-mkfifo.c: Likewise.
74238         * tests/test-mkfifoat.c: Likewise.
74239         * tests/test-mknod.c: Likewise.
74240         * tests/test-nanosleep.c: Likewise.
74241         * tests/test-nl_langinfo.c: Likewise.
74242         * tests/test-obstack-printf.c: Likewise.
74243         * tests/test-open.c: Likewise.
74244         * tests/test-openat.c: Likewise.
74245         * tests/test-pipe-filter-gi1.c: Likewise.
74246         * tests/test-pipe-filter-gi2-main.c: Likewise.
74247         * tests/test-pipe-filter-ii1.c: Likewise.
74248         * tests/test-pipe-filter-ii2-main.c: Likewise.
74249         * tests/test-pipe2.c: Likewise.
74250         * tests/test-popen.h: Likewise.
74251         * tests/test-posixtm.c: Likewise.
74252         * tests/test-pread.c: Likewise.
74253         * tests/test-printf-frexp.c: Likewise.
74254         * tests/test-printf-frexpl.c: Likewise.
74255         * tests/test-printf-posix.c: Likewise.
74256         * tests/test-priv-set.c: Likewise.
74257         * tests/test-quotearg.c: Likewise.
74258         * tests/test-random_r.c: Likewise.
74259         * tests/test-rawmemchr.c: Likewise.
74260         * tests/test-rbtree_list.c: Likewise.
74261         * tests/test-rbtree_oset.c: Likewise.
74262         * tests/test-rbtreehash_list.c: Likewise.
74263         * tests/test-readlink.c: Likewise.
74264         * tests/test-remove.c: Likewise.
74265         * tests/test-rename.c: Likewise.
74266         * tests/test-renameat.c: Likewise.
74267         * tests/test-rmdir.c: Likewise.
74268         * tests/test-round1.c: Likewise.
74269         * tests/test-roundf1.c: Likewise.
74270         * tests/test-roundl.c: Likewise.
74271         * tests/test-safe-alloc.c: Likewise.
74272         * tests/test-sameacls.c: Likewise.
74273         * tests/test-set-mode-acl.c: Likewise.
74274         * tests/test-setenv.c: Likewise.
74275         * tests/test-sigaction.c: Likewise.
74276         * tests/test-signbit.c: Likewise.
74277         * tests/test-sleep.c: Likewise.
74278         * tests/test-snprintf-posix.c: Likewise.
74279         * tests/test-snprintf.c: Likewise.
74280         * tests/test-sprintf-posix.c: Likewise.
74281         * tests/test-stat-time.c: Likewise.
74282         * tests/test-stat.c: Likewise.
74283         * tests/test-strcasestr.c: Likewise.
74284         * tests/test-strchrnul.c: Likewise.
74285         * tests/test-strerror.c: Likewise.
74286         * tests/test-striconv.c: Likewise.
74287         * tests/test-striconveh.c: Likewise.
74288         * tests/test-striconveha.c: Likewise.
74289         * tests/test-strsignal.c: Likewise.
74290         * tests/test-strstr.c: Likewise.
74291         * tests/test-strtod.c: Likewise.
74292         * tests/test-strverscmp.c: Likewise.
74293         * tests/test-symlink.c: Likewise.
74294         * tests/test-symlinkat.c: Likewise.
74295         * tests/test-trunc1.c: Likewise.
74296         * tests/test-trunc2.c: Likewise.
74297         * tests/test-truncf1.c: Likewise.
74298         * tests/test-truncf2.c: Likewise.
74299         * tests/test-truncl.c: Likewise.
74300         * tests/test-uname.c: Likewise.
74301         * tests/test-unlink.c: Likewise.
74302         * tests/test-unlinkat.c: Likewise.
74303         * tests/test-unsetenv.c: Likewise.
74304         * tests/test-usleep.c: Likewise.
74305         * tests/test-utimens.c: Likewise.
74306         * tests/test-utimensat.c: Likewise.
74307         * tests/test-vasnprintf-posix.c: Likewise.
74308         * tests/test-vasnprintf-posix2.c: Likewise.
74309         * tests/test-vasnprintf.c: Likewise.
74310         * tests/test-vasprintf-posix.c: Likewise.
74311         * tests/test-vasprintf.c: Likewise.
74312         * tests/test-vdprintf-posix.c: Likewise.
74313         * tests/test-vfprintf-posix.c: Likewise.
74314         * tests/test-vprintf-posix.c: Likewise.
74315         * tests/test-vsnprintf-posix.c: Likewise.
74316         * tests/test-vsnprintf.c: Likewise.
74317         * tests/test-vsprintf-posix.c: Likewise.
74318         * tests/test-wcrtomb.c: Likewise.
74319         * tests/test-wcsnrtombs.c: Likewise.
74320         * tests/test-wcsrtombs.c: Likewise.
74321         * tests/test-wctype.c: Likewise.
74322         * tests/test-wcwidth.c: Likewise.
74323         * tests/test-xfprintf-posix.c: Likewise.
74324         * tests/test-xmemdup0.c: Likewise.
74325         * tests/test-xprintf-posix.c: Likewise.
74326         * tests/test-xvasprintf.c: Likewise.
74327         * tests/unicase/test-locale-language.c: Likewise.
74328         * tests/unicase/test-mapping-part1.h: Likewise.
74329         * tests/unicase/test-predicate-part1.h: Likewise.
74330         * tests/unicase/test-u8-casecmp.c: Likewise.
74331         * tests/unicase/test-u8-casecoll.c: Likewise.
74332         * tests/unicase/test-u8-casefold.c: Likewise.
74333         * tests/unicase/test-u8-is-cased.c: Likewise.
74334         * tests/unicase/test-u8-is-casefolded.c: Likewise.
74335         * tests/unicase/test-u8-is-lowercase.c: Likewise.
74336         * tests/unicase/test-u8-is-titlecase.c: Likewise.
74337         * tests/unicase/test-u8-is-uppercase.c: Likewise.
74338         * tests/unicase/test-u8-tolower.c: Likewise.
74339         * tests/unicase/test-u8-totitle.c: Likewise.
74340         * tests/unicase/test-u8-toupper.c: Likewise.
74341         * tests/unicase/test-u16-casecmp.c: Likewise.
74342         * tests/unicase/test-u16-casecoll.c: Likewise.
74343         * tests/unicase/test-u16-casefold.c: Likewise.
74344         * tests/unicase/test-u16-is-cased.c: Likewise.
74345         * tests/unicase/test-u16-is-casefolded.c: Likewise.
74346         * tests/unicase/test-u16-is-lowercase.c: Likewise.
74347         * tests/unicase/test-u16-is-titlecase.c: Likewise.
74348         * tests/unicase/test-u16-is-uppercase.c: Likewise.
74349         * tests/unicase/test-u16-tolower.c: Likewise.
74350         * tests/unicase/test-u16-totitle.c: Likewise.
74351         * tests/unicase/test-u16-toupper.c: Likewise.
74352         * tests/unicase/test-u32-casecmp.c: Likewise.
74353         * tests/unicase/test-u32-casecoll.c: Likewise.
74354         * tests/unicase/test-u32-casefold.c: Likewise.
74355         * tests/unicase/test-u32-is-cased.c: Likewise.
74356         * tests/unicase/test-u32-is-casefolded.c: Likewise.
74357         * tests/unicase/test-u32-is-lowercase.c: Likewise.
74358         * tests/unicase/test-u32-is-titlecase.c: Likewise.
74359         * tests/unicase/test-u32-is-uppercase.c: Likewise.
74360         * tests/unicase/test-u32-tolower.c: Likewise.
74361         * tests/unicase/test-u32-totitle.c: Likewise.
74362         * tests/unicase/test-u32-toupper.c: Likewise.
74363         * tests/unicase/test-ulc-casecmp.c: Likewise.
74364         * tests/unicase/test-ulc-casecoll.c: Likewise.
74365         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
74366         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
74367         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
74368         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
74369         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
74370         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
74371         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
74372         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
74373         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
74374         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
74375         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
74376         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
74377         * tests/unictype/test-bidi_byname.c: Likewise.
74378         * tests/unictype/test-bidi_name.c: Likewise.
74379         * tests/unictype/test-bidi_of.c: Likewise.
74380         * tests/unictype/test-bidi_test.c: Likewise.
74381         * tests/unictype/test-block_list.c: Likewise.
74382         * tests/unictype/test-block_of.c: Likewise.
74383         * tests/unictype/test-block_test.c: Likewise.
74384         * tests/unictype/test-categ_and.c: Likewise.
74385         * tests/unictype/test-categ_and_not.c: Likewise.
74386         * tests/unictype/test-categ_byname.c: Likewise.
74387         * tests/unictype/test-categ_name.c: Likewise.
74388         * tests/unictype/test-categ_none.c: Likewise.
74389         * tests/unictype/test-categ_of.c: Likewise.
74390         * tests/unictype/test-categ_or.c: Likewise.
74391         * tests/unictype/test-categ_test_withtable.c: Likewise.
74392         * tests/unictype/test-combining.c: Likewise.
74393         * tests/unictype/test-decdigit.c: Likewise.
74394         * tests/unictype/test-digit.c: Likewise.
74395         * tests/unictype/test-mirror.c: Likewise.
74396         * tests/unictype/test-numeric.c: Likewise.
74397         * tests/unictype/test-pr_byname.c: Likewise.
74398         * tests/unictype/test-pr_test.c: Likewise.
74399         * tests/unictype/test-predicate-part1.h: Likewise.
74400         * tests/unictype/test-scripts.c: Likewise.
74401         * tests/unictype/test-sy_c_ident.c: Likewise.
74402         * tests/unictype/test-sy_java_ident.c: Likewise.
74403         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
74404         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
74405         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
74406         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
74407         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
74408         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
74409         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
74410         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
74411         * tests/uninorm/test-canonical-decomposition.c: Likewise.
74412         * tests/uninorm/test-compat-decomposition.c: Likewise.
74413         * tests/uninorm/test-composition.c: Likewise.
74414         * tests/uninorm/test-decomposing-form.c: Likewise.
74415         * tests/uninorm/test-decomposition.c: Likewise.
74416         * tests/uninorm/test-u8-nfc.c: Likewise.
74417         * tests/uninorm/test-u8-nfd.c: Likewise.
74418         * tests/uninorm/test-u8-nfkc.c: Likewise.
74419         * tests/uninorm/test-u8-nfkd.c: Likewise.
74420         * tests/uninorm/test-u8-normcmp.c: Likewise.
74421         * tests/uninorm/test-u8-normcoll.c: Likewise.
74422         * tests/uninorm/test-u16-nfc.c: Likewise.
74423         * tests/uninorm/test-u16-nfd.c: Likewise.
74424         * tests/uninorm/test-u16-nfkc.c: Likewise.
74425         * tests/uninorm/test-u16-nfkd.c: Likewise.
74426         * tests/uninorm/test-u16-normcmp.c: Likewise.
74427         * tests/uninorm/test-u16-normcoll.c: Likewise.
74428         * tests/uninorm/test-u32-nfc.c: Likewise.
74429         * tests/uninorm/test-u32-nfd.c: Likewise.
74430         * tests/uninorm/test-u32-nfkc.c: Likewise.
74431         * tests/uninorm/test-u32-nfkd.c: Likewise.
74432         * tests/uninorm/test-u32-normalize-big.c: Likewise.
74433         * tests/uninorm/test-u32-normcmp.c: Likewise.
74434         * tests/uninorm/test-u32-normcoll.c: Likewise.
74435         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
74436         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
74437         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
74438         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
74439         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
74440         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
74441         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
74442         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
74443         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
74444         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
74445         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
74446         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
74447         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
74448         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
74449         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
74450         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
74451         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
74452         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
74453         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
74454         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
74455         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
74456         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
74457         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
74458         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
74459         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
74460         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
74461         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
74462         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
74463         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
74464         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
74465         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
74466         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
74467         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
74468         * tests/uniwidth/test-u8-strwidth.c: Likewise.
74469         * tests/uniwidth/test-u8-width.c: Likewise.
74470         * tests/uniwidth/test-u16-strwidth.c: Likewise.
74471         * tests/uniwidth/test-u16-width.c: Likewise.
74472         * tests/uniwidth/test-u32-strwidth.c: Likewise.
74473         * tests/uniwidth/test-u32-width.c: Likewise.
74474         * tests/uniwidth/test-uc_width.c: Likewise.
74475         * tests/uniwidth/test-uc_width2.c: Likewise.
74476         * modules/acl-tests (Files): Add tests/macros.h.
74477         * modules/areadlink-tests (Files): Likewise.
74478         * modules/areadlink-with-size-tests (Files): Likewise.
74479         * modules/areadlinkat-tests (Files): Likewise.
74480         * modules/areadlinkat-with-size-tests (Files): Likewise.
74481         * modules/argmatch-tests (Files): Likewise.
74482         * modules/argv-iter-tests (Files): Likewise.
74483         * modules/array-list-tests (Files): Likewise.
74484         * modules/array-mergesort-tests (Files): Likewise.
74485         * modules/array-oset-tests (Files): Likewise.
74486         * modules/avltree-list-tests (Files): Likewise.
74487         * modules/avltree-oset-tests (Files): Likewise.
74488         * modules/avltreehash-list-tests (Files): Likewise.
74489         * modules/base64-tests (Files): Likewise.
74490         * modules/binary-io-tests (Files): Likewise.
74491         * modules/bitrotate-tests (Files): Likewise.
74492         * modules/btowc-tests (Files): Likewise.
74493         * modules/byteswap-tests (Files): Likewise.
74494         * modules/c-ctype-tests (Files): Likewise.
74495         * modules/c-stack-tests (Files): Likewise.
74496         * modules/c-strcase-tests (Files): Likewise.
74497         * modules/c-strcasestr-tests (Files): Likewise.
74498         * modules/c-strstr-tests (Files): Likewise.
74499         * modules/canonicalize-lgpl-tests (Files): Likewise.
74500         * modules/canonicalize-tests (Files): Likewise.
74501         * modules/carray-list-tests (Files): Likewise.
74502         * modules/ceilf-tests (Files): Likewise.
74503         * modules/ceill-tests (Files): Likewise.
74504         * modules/chown-tests (Files): Likewise.
74505         * modules/cloexec-tests (Files): Likewise.
74506         * modules/copy-file-tests (Files): Likewise.
74507         * modules/count-one-bits-tests (Files): Likewise.
74508         * modules/dprintf-posix-tests (Files): Likewise.
74509         * modules/dup2-tests (Files): Likewise.
74510         * modules/dup3-tests (Files): Likewise.
74511         * modules/duplocale-tests (Files): Likewise.
74512         * modules/fbufmode-tests (Files): Likewise.
74513         * modules/fchdir-tests (Files): Likewise.
74514         * modules/fcntl-safer-tests (Files): Likewise.
74515         * modules/fcntl-tests (Files): Likewise.
74516         * modules/fdopendir-tests (Files): Likewise.
74517         * modules/fdutimensat-tests (Files): Likewise.
74518         * modules/fflush-tests (Files): Likewise.
74519         * modules/filevercmp-tests (Files): Likewise.
74520         * modules/flock-tests (Files): Likewise.
74521         * modules/floorf-tests (Files): Likewise.
74522         * modules/floorl-tests (Files): Likewise.
74523         * modules/fnmatch-tests (Files): Likewise.
74524         * modules/fopen-safer-tests (Files): Likewise.
74525         * modules/fopen-tests (Files): Likewise.
74526         * modules/fpending-tests (Files): Likewise.
74527         * modules/fprintf-posix-tests (Files): Likewise.
74528         * modules/fpurge-tests (Files): Likewise.
74529         * modules/freadable-tests (Files): Likewise.
74530         * modules/freadahead-tests (Files): Likewise.
74531         * modules/freading-tests (Files): Likewise.
74532         * modules/freadptr-tests (Files): Likewise.
74533         * modules/freadseek-tests (Files): Likewise.
74534         * modules/freopen-tests (Files): Likewise.
74535         * modules/frexp-nolibm-tests (Files): Likewise.
74536         * modules/frexp-tests (Files): Likewise.
74537         * modules/frexpl-nolibm-tests (Files): Likewise.
74538         * modules/frexpl-tests (Files): Likewise.
74539         * modules/fseek-tests (Files): Likewise.
74540         * modules/fseeko-tests (Files): Likewise.
74541         * modules/fstrcmp-tests (Files): Likewise.
74542         * modules/fsync-tests (Files): Likewise.
74543         * modules/ftell-tests (Files): Likewise.
74544         * modules/ftello-tests (Files): Likewise.
74545         * modules/func-tests (Files): Likewise.
74546         * modules/futimens-tests (Files): Likewise.
74547         * modules/fwritable-tests (Files): Likewise.
74548         * modules/fwriting-tests (Files): Likewise.
74549         * modules/getcwd-tests (Files): Likewise.
74550         * modules/getdate-tests (Files): Likewise.
74551         * modules/getdelim-tests (Files): Likewise.
74552         * modules/getdtablesize-tests (Files): Likewise.
74553         * modules/getgroups-tests (Files): Likewise.
74554         * modules/getline-tests (Files): Likewise.
74555         * modules/getndelim2-tests (Files): Likewise.
74556         * modules/glob-tests (Files): Likewise.
74557         * modules/hash-tests (Files): Likewise.
74558         * modules/i-ring-tests (Files): Likewise.
74559         * modules/iconv-tests (Files): Likewise.
74560         * modules/iconv_open-utf-tests (Files): Likewise.
74561         * modules/idpriv-drop-tests (Files): Likewise.
74562         * modules/idpriv-droptemp-tests (Files): Likewise.
74563         * modules/inet_ntop-tests (Files): Likewise.
74564         * modules/inet_pton-tests (Files): Likewise.
74565         * modules/isblank-tests (Files): Likewise.
74566         * modules/isfinite-tests (Files): Likewise.
74567         * modules/isinf-tests (Files): Likewise.
74568         * modules/isnan-tests (Files): Likewise.
74569         * modules/isnand-nolibm-tests (Files): Likewise.
74570         * modules/isnand-tests (Files): Likewise.
74571         * modules/isnanf-nolibm-tests (Files): Likewise.
74572         * modules/isnanf-tests (Files): Likewise.
74573         * modules/isnanl-nolibm-tests (Files): Likewise.
74574         * modules/isnanl-tests (Files): Likewise.
74575         * modules/lchown-tests (Files): Likewise.
74576         * modules/ldexpl-tests (Files): Likewise.
74577         * modules/link-tests (Files): Likewise.
74578         * modules/linkat-tests (Files): Likewise.
74579         * modules/linked-list-tests (Files): Likewise.
74580         * modules/linkedhash-list-tests (Files): Likewise.
74581         * modules/localename-tests (Files): Likewise.
74582         * modules/lseek-tests (Files): Likewise.
74583         * modules/lstat-tests (Files): Likewise.
74584         * modules/mbmemcasecmp-tests (Files): Likewise.
74585         * modules/mbmemcasecoll-tests (Files): Likewise.
74586         * modules/mbrtowc-tests (Files): Likewise.
74587         * modules/mbscasecmp-tests (Files): Likewise.
74588         * modules/mbscasestr-tests (Files): Likewise.
74589         * modules/mbschr-tests (Files): Likewise.
74590         * modules/mbscspn-tests (Files): Likewise.
74591         * modules/mbsinit-tests (Files): Likewise.
74592         * modules/mbsncasecmp-tests (Files): Likewise.
74593         * modules/mbsnrtowcs-tests (Files): Likewise.
74594         * modules/mbspbrk-tests (Files): Likewise.
74595         * modules/mbspcasecmp-tests (Files): Likewise.
74596         * modules/mbsrchr-tests (Files): Likewise.
74597         * modules/mbsrtowcs-tests (Files): Likewise.
74598         * modules/mbsspn-tests (Files): Likewise.
74599         * modules/mbsstr-tests (Files): Likewise.
74600         * modules/memchr-tests (Files): Likewise.
74601         * modules/memchr2-tests (Files): Likewise.
74602         * modules/memcmp-tests (Files): Likewise.
74603         * modules/memmem-tests (Files): Likewise.
74604         * modules/memrchr-tests (Files): Likewise.
74605         * modules/mkdir-tests (Files): Likewise.
74606         * modules/mkfifo-tests (Files): Likewise.
74607         * modules/mkfifoat-tests (Files): Likewise.
74608         * modules/mknod-tests (Files): Likewise.
74609         * modules/nanosleep-tests (Files): Likewise.
74610         * modules/nl_langinfo-tests (Files): Likewise.
74611         * modules/obstack-printf-tests (Files): Likewise.
74612         * modules/open-tests (Files): Likewise.
74613         * modules/openat-tests (Files): Likewise.
74614         * modules/pipe-filter-gi-tests (Files): Likewise.
74615         * modules/pipe-filter-ii-tests (Files): Likewise.
74616         * modules/pipe2-tests (Files): Likewise.
74617         * modules/popen-safer-tests (Files): Likewise.
74618         * modules/popen-tests (Files): Likewise.
74619         * modules/posixtm-tests (Files): Likewise.
74620         * modules/pread-tests (Files): Likewise.
74621         * modules/printf-frexp-tests (Files): Likewise.
74622         * modules/printf-frexpl-tests (Files): Likewise.
74623         * modules/printf-posix-tests (Files): Likewise.
74624         * modules/priv-set-tests (Files): Likewise.
74625         * modules/quotearg-tests (Files): Likewise.
74626         * modules/random_r-tests (Files): Likewise.
74627         * modules/rawmemchr-tests (Files): Likewise.
74628         * modules/rbtree-list-tests (Files): Likewise.
74629         * modules/rbtree-oset-tests (Files): Likewise.
74630         * modules/rbtreehash-list-tests (Files): Likewise.
74631         * modules/readlink-tests (Files): Likewise.
74632         * modules/remove-tests (Files): Likewise.
74633         * modules/rename-tests (Files): Likewise.
74634         * modules/renameat-tests (Files): Likewise.
74635         * modules/rmdir-tests (Files): Likewise.
74636         * modules/round-tests (Files): Likewise.
74637         * modules/roundf-tests (Files): Likewise.
74638         * modules/roundl-tests (Files): Likewise.
74639         * modules/safe-alloc-tests (Files): Likewise.
74640         * modules/setenv-tests (Files): Likewise.
74641         * modules/sigaction-tests (Files): Likewise.
74642         * modules/signbit-tests (Files): Likewise.
74643         * modules/sleep-tests (Files): Likewise.
74644         * modules/snprintf-posix-tests (Files): Likewise.
74645         * modules/snprintf-tests (Files): Likewise.
74646         * modules/sprintf-posix-tests (Files): Likewise.
74647         * modules/stat-tests (Files): Likewise.
74648         * modules/stat-time-tests (Files): Likewise.
74649         * modules/strcasestr-tests (Files): Likewise.
74650         * modules/strchrnul-tests (Files): Likewise.
74651         * modules/strerror-tests (Files): Likewise.
74652         * modules/striconv-tests (Files): Likewise.
74653         * modules/striconveh-tests (Files): Likewise.
74654         * modules/striconveha-tests (Files): Likewise.
74655         * modules/strsignal-tests (Files): Likewise.
74656         * modules/strstr-tests (Files): Likewise.
74657         * modules/strtod-tests (Files): Likewise.
74658         * modules/strverscmp-tests (Files): Likewise.
74659         * modules/symlink-tests (Files): Likewise.
74660         * modules/symlinkat-tests (Files): Likewise.
74661         * modules/trunc-tests (Files): Likewise.
74662         * modules/truncf-tests (Files): Likewise.
74663         * modules/truncl-tests (Files): Likewise.
74664         * modules/uname-tests (Files): Likewise.
74665         * modules/unicase/cased-tests (Files): Likewise.
74666         * modules/unicase/ignorable-tests (Files): Likewise.
74667         * modules/unicase/locale-language-tests (Files): Likewise.
74668         * modules/unicase/tolower-tests (Files): Likewise.
74669         * modules/unicase/totitle-tests (Files): Likewise.
74670         * modules/unicase/toupper-tests (Files): Likewise.
74671         * modules/unicase/u8-casecmp-tests (Files): Likewise.
74672         * modules/unicase/u8-casecoll-tests (Files): Likewise.
74673         * modules/unicase/u8-casefold-tests (Files): Likewise.
74674         * modules/unicase/u8-is-cased-tests (Files): Likewise.
74675         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
74676         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
74677         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
74678         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
74679         * modules/unicase/u8-tolower-tests (Files): Likewise.
74680         * modules/unicase/u8-totitle-tests (Files): Likewise.
74681         * modules/unicase/u8-toupper-tests (Files): Likewise.
74682         * modules/unicase/u16-casecmp-tests (Files): Likewise.
74683         * modules/unicase/u16-casecoll-tests (Files): Likewise.
74684         * modules/unicase/u16-casefold-tests (Files): Likewise.
74685         * modules/unicase/u16-is-cased-tests (Files): Likewise.
74686         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
74687         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
74688         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
74689         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
74690         * modules/unicase/u16-tolower-tests (Files): Likewise.
74691         * modules/unicase/u16-totitle-tests (Files): Likewise.
74692         * modules/unicase/u16-toupper-tests (Files): Likewise.
74693         * modules/unicase/u32-casecmp-tests (Files): Likewise.
74694         * modules/unicase/u32-casecoll-tests (Files): Likewise.
74695         * modules/unicase/u32-casefold-tests (Files): Likewise.
74696         * modules/unicase/u32-is-cased-tests (Files): Likewise.
74697         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
74698         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
74699         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
74700         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
74701         * modules/unicase/u32-tolower-tests (Files): Likewise.
74702         * modules/unicase/u32-totitle-tests (Files): Likewise.
74703         * modules/unicase/u32-toupper-tests (Files): Likewise.
74704         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
74705         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
74706         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
74707         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
74708         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
74709         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
74710         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
74711         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
74712         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
74713         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
74714         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
74715         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
74716         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
74717         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
74718         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
74719         * modules/unictype/bidicategory-name-tests (Files): Likewise.
74720         * modules/unictype/bidicategory-of-tests (Files): Likewise.
74721         * modules/unictype/bidicategory-test-tests (Files): Likewise.
74722         * modules/unictype/block-list-tests (Files): Likewise.
74723         * modules/unictype/block-of-tests (Files): Likewise.
74724         * modules/unictype/block-test-tests (Files): Likewise.
74725         * modules/unictype/category-C-tests (Files): Likewise.
74726         * modules/unictype/category-Cc-tests (Files): Likewise.
74727         * modules/unictype/category-Cf-tests (Files): Likewise.
74728         * modules/unictype/category-Cn-tests (Files): Likewise.
74729         * modules/unictype/category-Co-tests (Files): Likewise.
74730         * modules/unictype/category-Cs-tests (Files): Likewise.
74731         * modules/unictype/category-L-tests (Files): Likewise.
74732         * modules/unictype/category-Ll-tests (Files): Likewise.
74733         * modules/unictype/category-Lm-tests (Files): Likewise.
74734         * modules/unictype/category-Lo-tests (Files): Likewise.
74735         * modules/unictype/category-Lt-tests (Files): Likewise.
74736         * modules/unictype/category-Lu-tests (Files): Likewise.
74737         * modules/unictype/category-M-tests (Files): Likewise.
74738         * modules/unictype/category-Mc-tests (Files): Likewise.
74739         * modules/unictype/category-Me-tests (Files): Likewise.
74740         * modules/unictype/category-Mn-tests (Files): Likewise.
74741         * modules/unictype/category-N-tests (Files): Likewise.
74742         * modules/unictype/category-Nd-tests (Files): Likewise.
74743         * modules/unictype/category-Nl-tests (Files): Likewise.
74744         * modules/unictype/category-No-tests (Files): Likewise.
74745         * modules/unictype/category-P-tests (Files): Likewise.
74746         * modules/unictype/category-Pc-tests (Files): Likewise.
74747         * modules/unictype/category-Pd-tests (Files): Likewise.
74748         * modules/unictype/category-Pe-tests (Files): Likewise.
74749         * modules/unictype/category-Pf-tests (Files): Likewise.
74750         * modules/unictype/category-Pi-tests (Files): Likewise.
74751         * modules/unictype/category-Po-tests (Files): Likewise.
74752         * modules/unictype/category-Ps-tests (Files): Likewise.
74753         * modules/unictype/category-S-tests (Files): Likewise.
74754         * modules/unictype/category-Sc-tests (Files): Likewise.
74755         * modules/unictype/category-Sk-tests (Files): Likewise.
74756         * modules/unictype/category-Sm-tests (Files): Likewise.
74757         * modules/unictype/category-So-tests (Files): Likewise.
74758         * modules/unictype/category-Z-tests (Files): Likewise.
74759         * modules/unictype/category-Zl-tests (Files): Likewise.
74760         * modules/unictype/category-Zp-tests (Files): Likewise.
74761         * modules/unictype/category-Zs-tests (Files): Likewise.
74762         * modules/unictype/category-and-not-tests (Files): Likewise.
74763         * modules/unictype/category-and-tests (Files): Likewise.
74764         * modules/unictype/category-byname-tests (Files): Likewise.
74765         * modules/unictype/category-name-tests (Files): Likewise.
74766         * modules/unictype/category-none-tests (Files): Likewise.
74767         * modules/unictype/category-of-tests (Files): Likewise.
74768         * modules/unictype/category-or-tests (Files): Likewise.
74769         * modules/unictype/category-test-withtable-tests (Files): Likewise.
74770         * modules/unictype/combining-class-tests (Files): Likewise.
74771         * modules/unictype/ctype-alnum-tests (Files): Likewise.
74772         * modules/unictype/ctype-alpha-tests (Files): Likewise.
74773         * modules/unictype/ctype-blank-tests (Files): Likewise.
74774         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
74775         * modules/unictype/ctype-digit-tests (Files): Likewise.
74776         * modules/unictype/ctype-graph-tests (Files): Likewise.
74777         * modules/unictype/ctype-lower-tests (Files): Likewise.
74778         * modules/unictype/ctype-print-tests (Files): Likewise.
74779         * modules/unictype/ctype-punct-tests (Files): Likewise.
74780         * modules/unictype/ctype-space-tests (Files): Likewise.
74781         * modules/unictype/ctype-upper-tests (Files): Likewise.
74782         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
74783         * modules/unictype/decimal-digit-tests (Files): Likewise.
74784         * modules/unictype/digit-tests (Files): Likewise.
74785         * modules/unictype/mirror-tests (Files): Likewise.
74786         * modules/unictype/numeric-tests (Files): Likewise.
74787         * modules/unictype/property-alphabetic-tests (Files): Likewise.
74788         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
74789         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
74790         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
74791         Likewise.
74792         * modules/unictype/property-bidi-block-separator-tests (Files):
74793         Likewise.
74794         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
74795         Likewise.
74796         * modules/unictype/property-bidi-common-separator-tests (Files):
74797         Likewise.
74798         * modules/unictype/property-bidi-control-tests (Files): Likewise.
74799         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
74800         Likewise.
74801         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
74802         Likewise.
74803         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
74804         Likewise.
74805         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
74806         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
74807         Likewise.
74808         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
74809         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
74810         Likewise.
74811         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
74812         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
74813         * modules/unictype/property-bidi-segment-separator-tests (Files):
74814         Likewise.
74815         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
74816         * modules/unictype/property-byname-tests (Files): Likewise.
74817         * modules/unictype/property-combining-tests (Files): Likewise.
74818         * modules/unictype/property-composite-tests (Files): Likewise.
74819         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
74820         * modules/unictype/property-dash-tests (Files): Likewise.
74821         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
74822         * modules/unictype/property-default-ignorable-code-point-tests (Files):
74823         Likewise.
74824         * modules/unictype/property-deprecated-tests (Files): Likewise.
74825         * modules/unictype/property-diacritic-tests (Files): Likewise.
74826         * modules/unictype/property-extender-tests (Files): Likewise.
74827         * modules/unictype/property-format-control-tests (Files): Likewise.
74828         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
74829         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
74830         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
74831         * modules/unictype/property-hex-digit-tests (Files): Likewise.
74832         * modules/unictype/property-hyphen-tests (Files): Likewise.
74833         * modules/unictype/property-id-continue-tests (Files): Likewise.
74834         * modules/unictype/property-id-start-tests (Files): Likewise.
74835         * modules/unictype/property-ideographic-tests (Files): Likewise.
74836         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
74837         * modules/unictype/property-ids-trinary-operator-tests (Files):
74838         Likewise.
74839         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
74840         * modules/unictype/property-iso-control-tests (Files): Likewise.
74841         * modules/unictype/property-join-control-tests (Files): Likewise.
74842         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
74843         * modules/unictype/property-line-separator-tests (Files): Likewise.
74844         * modules/unictype/property-logical-order-exception-tests (Files):
74845         Likewise.
74846         * modules/unictype/property-lowercase-tests (Files): Likewise.
74847         * modules/unictype/property-math-tests (Files): Likewise.
74848         * modules/unictype/property-non-break-tests (Files): Likewise.
74849         * modules/unictype/property-not-a-character-tests (Files): Likewise.
74850         * modules/unictype/property-numeric-tests (Files): Likewise.
74851         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
74852         * modules/unictype/property-other-default-ignorable-code-point-tests
74853         (Files): Likewise.
74854         * modules/unictype/property-other-grapheme-extend-tests (Files):
74855         Likewise.
74856         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
74857         * modules/unictype/property-other-id-start-tests (Files): Likewise.
74858         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
74859         * modules/unictype/property-other-math-tests (Files): Likewise.
74860         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
74861         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
74862         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
74863         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
74864         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
74865         * modules/unictype/property-private-use-tests (Files): Likewise.
74866         * modules/unictype/property-punctuation-tests (Files): Likewise.
74867         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
74868         * modules/unictype/property-radical-tests (Files): Likewise.
74869         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
74870         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
74871         * modules/unictype/property-space-tests (Files): Likewise.
74872         * modules/unictype/property-terminal-punctuation-tests (Files):
74873         Likewise.
74874         * modules/unictype/property-test-tests (Files): Likewise.
74875         * modules/unictype/property-titlecase-tests (Files): Likewise.
74876         * modules/unictype/property-unassigned-code-value-tests (Files):
74877         Likewise.
74878         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
74879         * modules/unictype/property-uppercase-tests (Files): Likewise.
74880         * modules/unictype/property-variation-selector-tests (Files): Likewise.
74881         * modules/unictype/property-white-space-tests (Files): Likewise.
74882         * modules/unictype/property-xid-continue-tests (Files): Likewise.
74883         * modules/unictype/property-xid-start-tests (Files): Likewise.
74884         * modules/unictype/property-zero-width-tests (Files): Likewise.
74885         * modules/unictype/scripts-tests (Files): Likewise.
74886         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
74887         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
74888         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
74889         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
74890         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
74891         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
74892         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
74893         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
74894         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
74895         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
74896         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
74897         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
74898         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
74899         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
74900         * modules/uninorm/composition-tests (Files): Likewise.
74901         * modules/uninorm/decomposing-form-tests (Files): Likewise.
74902         * modules/uninorm/decomposition-tests (Files): Likewise.
74903         * modules/uninorm/filter-tests (Files): Likewise.
74904         * modules/uninorm/nfc-tests (Files): Likewise.
74905         * modules/uninorm/nfd-tests (Files): Likewise.
74906         * modules/uninorm/nfkc-tests (Files): Likewise.
74907         * modules/uninorm/nfkd-tests (Files): Likewise.
74908         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
74909         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
74910         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
74911         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
74912         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
74913         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
74914         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
74915         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
74916         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
74917         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
74918         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
74919         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
74920         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
74921         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
74922         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
74923         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
74924         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
74925         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
74926         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
74927         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
74928         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
74929         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
74930         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
74931         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
74932         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
74933         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
74934         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
74935         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
74936         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
74937         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
74938         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
74939         * modules/uniwidth/u8-width-tests (Files): Likewise.
74940         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
74941         * modules/uniwidth/u16-width-tests (Files): Likewise.
74942         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
74943         * modules/uniwidth/u32-width-tests (Files): Likewise.
74944         * modules/uniwidth/width-tests (Files): Likewise.
74945         * modules/unlink-tests (Files): Likewise.
74946         * modules/unsetenv-tests (Files): Likewise.
74947         * modules/usleep-tests (Files): Likewise.
74948         * modules/utimens-tests (Files): Likewise.
74949         * modules/utimensat-tests (Files): Likewise.
74950         * modules/vasnprintf-posix-tests (Files): Likewise.
74951         * modules/vasnprintf-tests (Files): Likewise.
74952         * modules/vasprintf-posix-tests (Files): Likewise.
74953         * modules/vasprintf-tests (Files): Likewise.
74954         * modules/vdprintf-posix-tests (Files): Likewise.
74955         * modules/vfprintf-posix-tests (Files): Likewise.
74956         * modules/vprintf-posix-tests (Files): Likewise.
74957         * modules/vsnprintf-posix-tests (Files): Likewise.
74958         * modules/vsnprintf-tests (Files): Likewise.
74959         * modules/vsprintf-posix-tests (Files): Likewise.
74960         * modules/wcrtomb-tests (Files): Likewise.
74961         * modules/wcsnrtombs-tests (Files): Likewise.
74962         * modules/wcsrtombs-tests (Files): Likewise.
74963         * modules/wctype-tests (Files): Likewise.
74964         * modules/wcwidth-tests (Files): Likewise.
74965         * modules/xmemdup0-tests (Files): Likewise.
74966         * modules/xprintf-posix-tests (Files): Likewise.
74967         * modules/xvasprintf-tests (Files): Likewise.
74969 2009-12-24  Eric Blake  <ebb9@byu.net>
74971         test-nanosleep: fix typo
74972         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
74973         patch.
74974         Reported by Bruno Haible.
74976 2009-12-24  Bruno Haible  <bruno@clisp.org>
74978         Reduce namespace pollution on glibc systems.
74979         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
74980         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
74981         systems.
74982         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
74983         <getopt.h> on glibc systems.
74984         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
74985         systems.
74986         * lib/fcntl.c: Include <unistd.h> here instead.
74988 2009-12-24  Bruno Haible  <bruno@clisp.org>
74990         * lib/stdlib.in.h (includes): Fix typo in today's commit.
74992 2009-12-24  Eric Blake  <ebb9@byu.net>
74994         tests: add signature checks
74995         * tests/signature.h (SIGNATURE_CHECK): New file.
74996         * modules/atexit-tests (Files): Use it.
74997         * modules/btowc-tests (Files): Likewise.
74998         * modules/canonicalize-lgpl-tests (Files): Likewise.
74999         * modules/ceilf-tests (Files): Likewise.
75000         * modules/ceill-tests (Files): Likewise.
75001         * modules/chown-tests (Files): Likewise.
75002         * modules/dprintf-posix-tests (Files): Likewise.
75003         * modules/dup2-tests (Files): Likewise.
75004         * modules/dup3-tests (Files): Likewise.
75005         * modules/duplocale-tests (Files): Likewise.
75006         * modules/fchdir-tests (Files): Likewise.
75007         * modules/fcntl-tests (Files): Likewise.
75008         * modules/fdopendir-tests (Files): Likewise.
75009         * modules/fflush-tests (Files): Likewise.
75010         * modules/flock-tests (Files): Likewise.
75011         * modules/floorf-tests (Files): Likewise.
75012         * modules/floorl-tests (Files): Likewise.
75013         * modules/fnmatch-tests (Files): Likewise.
75014         * modules/fopen-tests (Files): Likewise.
75015         * modules/fprintf-posix-tests (Files): Likewise.
75016         * modules/freopen-tests (Files): Likewise.
75017         * modules/frexp-nolibm-tests (Files): Likewise.
75018         * modules/frexp-tests (Files): Likewise.
75019         * modules/frexpl-nolibm-tests (Files): Likewise.
75020         * modules/frexpl-tests (Files): Likewise.
75021         * modules/fseek-tests (Files): Likewise.
75022         * modules/fseeko-tests (Files): Likewise.
75023         * modules/fsync-tests (Files): Likewise.
75024         * modules/ftell-tests (Files): Likewise.
75025         * modules/ftello-tests (Files): Likewise.
75026         * modules/futimens-tests (Files): Likewise.
75027         * modules/getaddrinfo-tests (Files): Likewise.
75028         * modules/getcwd-tests (Files): Likewise.
75029         * modules/getdelim-tests (Files): Likewise.
75030         * modules/getdtablesize-tests (Files): Likewise.
75031         * modules/getgroups-tests (Files): Likewise.
75032         * modules/gethostname-tests (Files): Likewise.
75033         * modules/getline-tests (Files): Likewise.
75034         * modules/getopt-posix-tests (Files): Likewise.
75035         * modules/gettimeofday-tests (Files): Likewise.
75036         * modules/glob-tests (Files): Likewise.
75037         * modules/iconv-tests (Files): Likewise.
75038         * modules/inet_ntop-tests (Files): Likewise.
75039         * modules/inet_pton-tests (Files): Likewise.
75040         * modules/isblank-tests (Files): Likewise.
75041         * modules/lchown-tests (Files): Likewise.
75042         * modules/ldexpl-tests (Files): Likewise.
75043         * modules/link-tests (Files): Likewise.
75044         * modules/linkat-tests (Files): Likewise.
75045         * modules/lseek-tests (Files): Likewise.
75046         * modules/lstat-tests (Files): Likewise.
75047         * modules/mbrtowc-tests (Files): Likewise.
75048         * modules/mbsinit-tests (Files): Likewise.
75049         * modules/mbsnrtowcs-tests (Files): Likewise.
75050         * modules/mbsrtowcs-tests (Files): Likewise.
75051         * modules/memchr-tests (Files): Likewise.
75052         * modules/memcmp-tests (Files): Likewise.
75053         * modules/memmem-tests (Files): Likewise.
75054         * modules/memrchr-tests (Files): Likewise.
75055         * modules/mkdir-tests (Files): Likewise.
75056         * modules/mkfifo-tests (Files): Likewise.
75057         * modules/mkfifoat-tests (Files): Likewise.
75058         * modules/mknod-tests (Files): Likewise.
75059         * modules/nanosleep-tests (Files): Likewise.
75060         * modules/nl_langinfo-tests (Files): Likewise.
75061         * modules/obstack-printf-tests (Files): Likewise.
75062         * modules/open-tests (Files): Likewise.
75063         * modules/openat-tests (Files): Likewise.
75064         * modules/perror-tests (Files): Likewise.
75065         * modules/pipe2-tests (Files): Likewise.
75066         * modules/poll-tests (Files): Likewise.
75067         * modules/popen-tests (Files): Likewise.
75068         * modules/posix_spawn-tests (Files): Likewise.
75069         * modules/posix_spawnp-tests (Files): Likewise.
75070         * modules/pread-tests (Files): Likewise.
75071         * modules/printf-posix-tests (Files): Likewise.
75072         * modules/pty-tests (Files): Likewise.
75073         * modules/random_r-tests (Files): Likewise.
75074         * modules/rawmemchr-tests (Files): Likewise.
75075         * modules/readlink-tests (Files): Likewise.
75076         * modules/remove-tests (Files): Likewise.
75077         * modules/rename-tests (Files): Likewise.
75078         * modules/renameat-tests (Files): Likewise.
75079         * modules/rmdir-tests (Files): Likewise.
75080         * modules/round-tests (Files): Likewise.
75081         * modules/roundf-tests (Files): Likewise.
75082         * modules/roundl-tests (Files): Likewise.
75083         * modules/select-tests (Files): Likewise.
75084         * modules/setenv-tests (Files): Likewise.
75085         * modules/sigaction-tests (Files): Likewise.
75086         * modules/sleep-tests (Files): Likewise.
75087         * modules/snprintf-posix-tests (Files): Likewise.
75088         * modules/snprintf-tests (Files): Likewise.
75089         * modules/sprintf-posix-tests (Files): Likewise.
75090         * modules/stat-tests (Files): Likewise.
75091         * modules/strcasestr-tests (Files): Likewise.
75092         * modules/strchrnul-tests (Files): Likewise.
75093         * modules/strerror-tests (Files): Likewise.
75094         * modules/strsignal-tests (Files): Likewise.
75095         * modules/strstr-tests (Files): Likewise.
75096         * modules/strtod-tests (Files): Likewise.
75097         * modules/strverscmp-tests (Files): Likewise.
75098         * modules/symlink-tests (Files): Likewise.
75099         * modules/symlinkat-tests (Files): Likewise.
75100         * modules/times-tests (Files): Likewise.
75101         * modules/trunc-tests (Files): Likewise.
75102         * modules/truncf-tests (Files): Likewise.
75103         * modules/truncl-tests (Files): Likewise.
75104         * modules/tsearch-tests (Files): Likewise.
75105         * modules/uname-tests (Files): Likewise.
75106         * modules/unlink-tests (Files): Likewise.
75107         * modules/unsetenv-tests (Files): Likewise.
75108         * modules/usleep-tests (Files): Likewise.
75109         * modules/utimensat-tests (Files): Likewise.
75110         * modules/vasprintf-tests (Files): Likewise.
75111         * modules/vdprintf-posix-tests (Files): Likewise.
75112         * modules/vfprintf-posix-tests (Files): Likewise.
75113         * modules/vprintf-posix-tests (Files): Likewise.
75114         * modules/vsnprintf-posix-tests (Files): Likewise.
75115         * modules/vsnprintf-tests (Files): Likewise.
75116         * modules/vsprintf-posix-tests (Files): Likewise.
75117         * modules/wcrtomb-tests (Files): Likewise.
75118         * modules/wcsnrtombs-tests (Files): Likewise.
75119         * modules/wcsrtombs-tests (Files): Likewise.
75120         * modules/wcwidth-tests (Files): Likewise.
75121         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
75122         * tests/test-isinf.c (isinf): Likewise.
75123         * tests/test-isnan.c (isnan): Likewise.
75124         * tests/test-signbit.c (signbit): Likewise.
75125         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
75126         declaration, either as macro or with correct signature.
75127         (select): Ensure function under test is declared with correct
75128         signature in correct header.
75129         * tests/test-atexit.c (atexit): Likewise.
75130         * tests/test-btowc.c (btowc): Likewise.
75131         * tests/test-canonicalize-lgpl.c (realpath)
75132         (canonicalize_file_name): Likewise.
75133         * tests/test-ceilf1.c (ceilf): Likewise.
75134         * tests/test-ceill.c (ceill): Likewise.
75135         * tests/test-chown.c (chown): Likewise.
75136         * tests/test-dprintf-posix.c (dprintf): Likewise.
75137         * tests/test-dup2.c (dup2): Likewise.
75138         * tests/test-dup3.c (dup3): Likewise.
75139         * tests/test-duplocale.c (duplocale): Likewise.
75140         * tests/test-fchdir.c (fchdir): Likewise.
75141         * tests/test-fchownat.c (fchownat): Likewise.
75142         * tests/test-fcntl.c (fcntl): Likewise.
75143         * tests/test-fdopendir.c (fdopendir): Likewise.
75144         * tests/test-fflush.c (fflush): Likewise.
75145         * tests/test-flock.c (flock): Likewise.
75146         * tests/test-floorf1.c (floorf): Likewise.
75147         * tests/test-floorl.c (floorl): Likewise.
75148         * tests/test-fnmatch.c (fnmatch): Likewise.
75149         * tests/test-fopen.c (fopen): Likewise.
75150         * tests/test-fprintf-posix.c (fprintf): Likewise.
75151         * tests/test-freopen.c (freopen): Likewise.
75152         * tests/test-frexp.c (frexp): Likewise.
75153         * tests/test-frexpl.c (frexpl): Likewise.
75154         * tests/test-fseek.c (fseek): Likewise.
75155         * tests/test-fseeko.c (fseeko): Likewise.
75156         * tests/test-fstatat.c (fstatat): Likewise.
75157         * tests/test-fsync.c (fsync): Likewise.
75158         * tests/test-ftell.c (ftell): Likewise.
75159         * tests/test-ftello.c (ftello): Likewise.
75160         * tests/test-futimens.c (futimens): Likewise.
75161         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
75162         (gai_strerror): Likewise.
75163         * tests/test-getcwd.c (getcwd): Likewise.
75164         * tests/test-getdelim.c (getdelim): Likewise.
75165         * tests/test-getdtablesize.c (getdtablesize): Likewise.
75166         * tests/test-getgroups.c (getgroups): Likewise.
75167         * tests/test-gethostname.c (gethostname): Likewise.
75168         * tests/test-getline.c (getline): Likewise.
75169         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
75170         Likewise.
75171         * tests/test-gettimeofday.c (gettimeofday): Likewise.
75172         * tests/test-glob.c (glob, globfree): Likewise.
75173         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
75174         * tests/test-inet_ntop.c (inet_ntop): Likewise.
75175         * tests/test-inet_pton.c (inet_pton): Likewise.
75176         * tests/test-isblank.c (isblank): Likewise.
75177         * tests/test-lchown.c (lchown): Likewise.
75178         * tests/test-ldexpl.c (ldexpl): Likewise.
75179         * tests/test-link.c (link): Likewise.
75180         * tests/test-linkat.c (linkat): Likewise.
75181         * tests/test-lseek.c (lseek): Likewise.
75182         * tests/test-lstat.c (lstat): Likewise.
75183         * tests/test-mbrtowc.c (mbrtowc): Likewise.
75184         * tests/test-mbsinit.c (mbsinit): Likewise.
75185         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
75186         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
75187         * tests/test-memchr.c (memchr): Likewise.
75188         * tests/test-memcmp.c (memcmp): Likewise.
75189         * tests/test-memmem.c (memmem): Likewise.
75190         * tests/test-memrchr.c (memrchr): Likewise.
75191         * tests/test-mkdir.c (mkdir): Likewise.
75192         * tests/test-mkdirat.c (mkdirat): Likewise.
75193         * tests/test-mkfifo.c (mkfifo): Likewise.
75194         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
75195         * tests/test-mknod.c (mknod): Likewise.
75196         * tests/test-nanosleep.c (nanosleep): Likewise.
75197         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
75198         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
75199         Likewise.
75200         * tests/test-open.c (open): Likewise.
75201         * tests/test-openat.c (openat): Likewise.
75202         * tests/test-perror.c (perror): Likewise.
75203         * tests/test-pipe2.c (pipe2): Likewise.
75204         * tests/test-poll.c (poll): Likewise.
75205         * tests/test-popen.c (popen, pclose): Likewise.
75206         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
75207         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
75208         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
75209         (posix_spawn_file_actions_destroy)
75210         (posix_spawn_file_actions_addclose)
75211         (posix_spawn_file_actions_addopen)
75212         (posix_spawn_file_actions_adddup2): Likewise.
75213         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
75214         * tests/test-pread.c (pread): Likewise.
75215         * tests/test-printf-posix.c (printf): Likewise.
75216         * tests/test-pty.c (openpty, forkpty): Likewise.
75217         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
75218         (random_r): Likewise.
75219         * tests/test-rawmemchr.c (rawmemchr): Likewise.
75220         * tests/test-readlink.c (readlink): Likewise.
75221         * tests/test-remove.c (remove): Likewise.
75222         * tests/test-rename.c (rename): Likewise.
75223         * tests/test-renameat.c (renameat): Likewise.
75224         * tests/test-rmdir.c (rmdir): Likewise.
75225         * tests/test-round1.c (round): Likewise.
75226         * tests/test-roundf1.c (roundf): Likewise.
75227         * tests/test-roundl.c (roundl): Likewise.
75228         * tests/test-setenv.c (setenv): Likewise.
75229         * tests/test-sigaction.c (sigaction): Likewise.
75230         * tests/test-sleep.c (sleep): Likewise.
75231         * tests/test-snprintf.c (snprintf): Likewise.
75232         * tests/test-sprintf-posix.c (sprintf): Likewise.
75233         * tests/test-stat.c (stat): Likewise.
75234         * tests/test-stpncpy.c (stpncpy): Likewise.
75235         * tests/test-strcasestr.c (strcasestr): Likewise.
75236         * tests/test-strchrnul.c (strchrnul): Likewise.
75237         * tests/test-strerror.c (strerror): Likewise.
75238         * tests/test-strsignal.c (strsignal): Likewise.
75239         * tests/test-strstr.c (strstr): Likewise.
75240         * tests/test-strtod.c (strtod): Likewise.
75241         * tests/test-strverscmp.c (strverscmp): Likewise.
75242         * tests/test-symlink.c (symlink): Likewise.
75243         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
75244         * tests/test-times.c (times): Likewise.
75245         * tests/test-trunc1.c (trunc): Likewise.
75246         * tests/test-truncf1.c (truncf): Likewise.
75247         * tests/test-truncl.c (truncl): Likewise.
75248         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
75249         Likewise.
75250         * tests/test-uname.c (uname): Likewise.
75251         * tests/test-unlink.c (unlink): Likewise.
75252         * tests/test-unlinkat.c (unlinkat): Likewise.
75253         * tests/test-unsetenv.c (unsetenv): Likewise.
75254         * tests/test-usleep.c (usleep): Likewise.
75255         * tests/test-utimensat.c (utimensat): Likewise.
75256         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
75257         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
75258         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
75259         * tests/test-vprintf-posix.c (vprintf): Likewise.
75260         * tests/test-vsnprintf.c (vsnprintf): Likewise.
75261         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
75262         * tests/test-wcrtomb.c (wcrtomb): Likewise.
75263         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
75264         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
75265         * tests/test-wcwidth.c (wcwidth): Likewise.
75267         build: pull in conditional headers during GNULIB_POSIXCHECK
75268         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
75269         definitions from any conditionally-included headers.
75270         * lib/stdlib.in.h (includes): Likewise.
75271         * lib/unistd.in.h (includes): Likewise.
75273 2009-12-24  Bruno Haible  <bruno@clisp.org>
75275         * tests/test-argv-iter.c: Include header file being tested immediately
75276         after config.h.
75277         * tests/test-base64.c: Likewise.
75278         * tests/test-flock.c: Likewise.
75279         * tests/test-fsync.c: Likewise.
75280         * tests/test-getdate.c: Likewise.
75281         * tests/test-getndelim2.c: Likewise.
75282         * tests/test-isfinite.c: Likewise.
75283         * tests/test-isinf.c: Likewise.
75284         * tests/test-strerror.c: Likewise.
75285         * tests/test-strsignal.c: Likewise.
75287 2009-12-23  Eric Blake  <ebb9@byu.net>
75289         unistd: work around cygwin bug
75290         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
75291         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
75292         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75294 2009-12-23  Bruno Haible  <bruno@clisp.org>
75296         localename: More tests.
75297         * tests/test-localename.c (SIZEOF): New macro.
75298         (categories): New variable.
75299         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
75300         test_locale_name_default): Add test w.r.t. thread locale.
75301         (test_locale_name_thread): New function.
75302         (main): Invoke it.
75304         localename: Make aware of thread locale.
75305         * lib/localename.h (gl_locale_name_thread): New declaration.
75306         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
75307         behaviour with respect to thread locale.
75308         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
75309         <langinfo.h>, glthread/lock.h.
75310         (SIZE_BITS): New macro.
75311         (string_hash): New function.
75312         (struct hash_node): New type.
75313         (HASH_TABLE_SIZE): New macro.
75314         (struniq_hash_table, struniq_lock): New variables.
75315         (struniq): New function.
75316         (gl_locale_name_thread): New function.
75317         (gl_locale_name): Invoke it.
75318         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
75319         * modules/localename (Depends-on): Add lock.
75320         Reported by Mike Gran <spk121@yahoo.com>.
75322 2009-12-23  Eric Blake  <ebb9@byu.net>
75324         va-args: new module
75325         * modules/va-args: New file.
75326         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
75327         * MODULES.html.sh (Core language properties): Mention it.
75329         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
75330         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
75331         named alias for __attribute__((__unused__)).
75332         * lib/chown.c: Update client.
75333         * lib/fchmodat.c: Likewise.
75334         * lib/fts.c: Likewise.
75335         * lib/getdate.y: Likewise.
75336         * lib/getgroups.c: Likewise.
75337         * lib/getopt.c: Likewise.
75338         * lib/getugroups.c: Likewise.
75339         * lib/mkdir.c: Likewise.
75340         * lib/mkfifo.c: Likewise.
75341         * lib/mkfifoat.c: Likewise.
75342         * lib/mknod.c: Likewise.
75343         * lib/mknodat.c: Likewise.
75344         * lib/readlink.c: Likewise.
75345         * lib/se-context.in.h: Likewise.
75346         * lib/se-selinux.in.h: Likewise.
75347         * lib/sockets.c: Likewise.
75348         * lib/symlink.c: Likewise.
75349         * lib/symlinkat.c: Likewise.
75350         * lib/unicodeio.c: Likewise.
75351         * lib/unistr.h: Likewise.
75352         * tests/test-areadlink.c: Likewise.
75353         * tests/test-areadlinkat.c: Likewise.
75354         * tests/test-filenamecat.c: Likewise.
75355         * tests/test-fseeko.c: Likewise.
75356         * tests/test-ftello.c: Likewise.
75357         * tests/test-getdate.c: Likewise.
75358         * tests/test-getgroups.c: Likewise.
75359         * tests/test-gethostname.c: Likewise.
75360         * tests/test-quotearg.c: Likewise.
75361         * tests/test-version-etc.c: Likewise.
75362         * tests/test-xalloc-die.c: Likewise.
75363         * tests/test-xfprintf-posix.c: Likewise.
75364         * tests/test-xprintf-posix.c: Likewise.
75365         * tests/test-xvasprintf.c: Likewise.
75367         tests: avoid compiler warnings
75368         * tests/test-fcntl.c (main): Delete unused parameters.
75369         * tests/test-freopen-safer.c (main): Likewise.
75370         * tests/test-xalloc-die.c (main): Mark unused parameters.
75371         * tests/test-fseeko.c (main): Likewise.
75372         * tests/test-ftello.c (main): Likewise.
75373         * tests/test-nanosleep.c (main): Avoid declaration warning.
75374         * tests/test-sleep.c (main): Likewise.
75375         * tests/test-unsetenv.c (main): Silence warning about string
75376         literal.
75377         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
75379 2009-12-23  Bruno Haible  <bruno@clisp.org>
75381         * tests/test-localename.c (test_locale_name): New function, extracted
75382         from main. Also test mixed situations.
75383         (test_locale_name_posix, test_locale_name_environ,
75384         test_locale_name_default): New functions.
75385         (main): Invoke them all.
75386         * modules/localename-tests (configure.ac): Test for newlocale.
75388 2009-12-23  Bruno Haible  <bruno@clisp.org>
75390         unistd: Ensure getcwd gets declared before being overridden.
75391         * lib/unistd.in.h: Conditionally include <io.h>.
75393 2009-12-22  Bruno Haible  <bruno@clisp.org>
75395         wchar: Diagnose broken combination of glibc and gcc versions and flags.
75396         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
75397         (gl_WCHAR_H): Invoke it.
75398         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
75399         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
75400         Reported by Karl Berry <karl@freefriends.org>.
75402 2009-12-22  Eric Blake  <ebb9@byu.net>
75404         math, unistd: avoid redundant includes
75405         * lib/math.in.h (isnan): No need to re-include <math.h>.
75406         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
75408         getsubopt: work around cygwin bug
75409         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
75410         avoid conflicting with system getsubopt.
75411         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
75412         bug.
75414         getopt: synchronize from glibc
75415         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
75416         parameter order.  Adjust all callers.
75417         (_getopt_internal_r, main): Adjust quoting in error messages.
75418         Drop considerations for outdated POSIX 1003.2 error message.
75419         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
75420         callers.
75421         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
75423         test-getopt: test stderr behavior
75424         * modules/getopt-posix-tests (Depends-on): Add dup2.
75425         * tests/test-getopt.c (ASSERT): Avoid stderr.
75426         (main): Move stderr to a temporary file.
75427         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
75428         Instead, add parameter to inform caller if output occurred.
75429         (test_getopt): Adjust all existing tests to expect silence, and
75430         add new tests of leading ":".
75431         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75432         glibc shortcomings with leading "-:" or "+:" in optstring.
75433         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75434         Likewise.
75435         * doc/posix-functions/getopt.texi (getopt): Likewise.
75437         test-getopt: enhance test
75438         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
75439         supports optind=0.
75440         * tests/test-getopt.c (OPTIND_MIN): Move...
75441         * tests/test-getopt.h (OPTIND_MIN): ...here.
75442         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
75443         Require that optind=0 works, since modern BSD supports it in
75444         addition to optreset, and since coreutils expects it.
75445         (test_getopt_long_only): New test.
75446         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75447         glibc shortcomings with 'W;', and enforcement of optind=0.
75448         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75449         Likewise.
75451 2009-12-21  Bruno Haible  <bruno@clisp.org>
75453         localename: Improvements for MacOS X and Cygwin.
75454         * lib/localename.h (gl_locale_name_environ): New declaration.
75455         * lib/localename.c (gl_locale_name_environ): New function, extracted from
75456         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
75457         (gl_locale_name_posix): Invoke it.
75458         (gl_locale_name_default): Add comments. Use Windows native API also on
75459         Cygwin.
75461 2009-12-21  Bruno Haible  <bruno@clisp.org>
75463         Update list of Win32 locale ids.
75464         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
75465         (LANG_SAMI): Renamed from LANG_SAAMI.
75466         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
75467         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
75468         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
75469         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
75470         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
75471         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
75472         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
75473         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
75474         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
75475         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
75476         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
75477         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
75478         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
75479         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
75480         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
75481         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
75482         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
75483         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
75484         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
75485         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
75486         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
75487         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
75488         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
75489         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
75490         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
75491         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
75492         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
75493         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
75494         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
75495         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
75496         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
75497         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
75498         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
75499         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
75500         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
75501         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
75502         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
75503         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
75504         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
75505         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
75506         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
75507         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
75508         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
75509         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
75510         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
75511         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
75512         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
75513         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
75514         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
75515         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
75516         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
75517         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
75518         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
75519         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
75520         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
75521         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
75522         Add more languages and countries for Sami, Sorbian. Add more countries
75523         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
75524         for Pashto. Change country for Syriac, Tswana.
75526 2009-12-21  Eric Blake  <ebb9@byu.net>
75528         test-utimens: avoid spurious failure
75529         * tests/test-chown.h (nap): Factor...
75530         * tests/nap.h: ...into new file.
75531         * tests/test-lchown.h (nap): Avoid duplication.
75532         * tests/test-utimens-common.h (nap): Use shared implementation,
75533         necessary on file systems with 1-second resolution.
75534         * modules/chown-tests (Files): Include new file.
75535         * modules/fdutimensat-tests (Files): Likewise.
75536         * modules/futimens-tests (Files): Likewise.
75537         * modules/lchown-tests (Files): Likewise.
75538         * modules/openat-tests (Files): Likewise.
75539         * modules/utimens-tests (Files): Likewise.
75540         * modules/utimensat-tests (Files): Likewise.
75542 2009-12-19  Eric Blake  <ebb9@byu.net>
75544         futimens, utimensat: work around Linux bug
75545         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
75546         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75547         * lib/utimensat.c (rpl_utimensat): Work around it.
75548         * lib/futimens.c (rpl_futimens): Adjust comment.
75550         utimens: work around Linux ctime bug
75551         * lib/utimens.c (detect_ctime_bug): New helper function.
75552         (update_timespec): Differentiate between workaround needed for
75553         this bug vs. what is needed for systems that lack utimensat.
75554         (fdutimens, lutimens): Work around bug.
75556         utimens: check for ctime update
75557         * tests/test-utimens-common.h (check_ctime): Define.
75558         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
75559         * tests/test-futimens.h (test_futimens): Likewise.
75560         * tests/test-lutimens.h (test_lutimens): Likewise.
75561         * doc/posix-functions/futimens.texi (futimens): Document the bug.
75562         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75564 2009-12-19  Bruno Haible  <bruno@clisp.org>
75566         dprintf-posix: Check against memory leak fixed on 2009-12-15.
75567         * tests/test-dprintf-posix2.sh: New file.
75568         * tests/test-dprintf-posix2.c: New file.
75569         * modules/dprintf-posix-tests (Files): Add them.
75570         (configure.ac): Check for getrlimit and setrlimit.
75571         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75573 2009-12-19  Bruno Haible  <bruno@clisp.org>
75575         fprintf-posix: Check against memory leak fixed on 2009-12-15.
75576         * tests/test-fprintf-posix3.sh: New file.
75577         * tests/test-fprintf-posix3.c: New file.
75578         * modules/fprintf-posix-tests (Files): Add them.
75579         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75581 2009-12-19  Eric Blake  <ebb9@byu.net>
75583         dirfd: fix prototype
75584         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
75585         * lib/dirfd.c (dirfd): Likewise.
75587         canonicalize: reduce memory usage
75588         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
75589         allocation to size.
75590         Reported by Solar Designer <solar@openwall.com>.
75592 2009-12-19  Bruno Haible  <bruno@clisp.org>
75594         New module attribute 'Applicability'.
75595         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
75596         * gnulib-tool: New option --extract-applicability.
75597         (func_usage): Document it.
75598         (sed_extract_prog): Recognize it.
75599         (func_get_applicability): New function.
75600         (func_import): Generalize handling of 'link-warning' module.
75601         * modules/link-warning (Applicability): New section.
75602         * modules/arg-nonnull (Applicability): New section.
75603         Repoted by Simon Josefsson <simon@josefsson.org>.
75605 2009-12-19  Bruno Haible  <bruno@clisp.org>
75607         fflush: tweak
75608         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
75609         * lib/fseeko.c (rpl_fseeko): Likewise.
75611 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
75613         * lib/gl_list.h: Fix typo in comment.
75615 2009-12-16  Eric Blake  <ebb9@byu.net>
75617         fcntl: use to simplify other modules
75618         * modules/cloexec (Depends-on): Add fcntl.
75619         * modules/fchdir (Depends-on): Likewise.
75620         * modules/fd-safer-flag (Depends-on): Likewise.
75621         * modules/unistd-safer (Depends-on): Likewise.
75622         * modules/dup3 (configure.ac): Set module indicator.
75623         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
75624         missing.
75625         * lib/fchdir.c (_gl_register_dup): Fix comment.
75626         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
75627         * lib/dup-safer.c (dup_safer): Likewise.
75628         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
75629         * lib/dup3.c (dup3): Likewise.
75630         * tests/test-fchdir.c (main): Enhance test.
75631         Fixes a dup_cloexec bug reported by Ondřej Vašík.
75633         fcntl: port portions of fcntl to mingw
75634         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
75635         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
75636         replacement for mingw.
75637         * modules/fcntl (Description): Update.
75638         (Depends-on): Add dup2.
75639         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
75640         * modules/fcntl-h (Makefile.am): Substitute it.
75641         * lib/fcntl.in.h (fcntl): Update declaration.
75642         (F_DUPFD, F_GETFD): New macros, when needed.
75643         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
75644         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
75645         * tests/test-fcntl.c (check_flags, main): Enhance test for items
75646         we now guarantee.
75648         fcntl: work around cygwin bug in F_DUPFD
75649         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
75650         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
75651         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
75652         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
75653         * doc/posix-functions/fcntl.texi (fcntl): Document it.
75655         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
75656         * modules/fcntl (Files): List new files.
75657         (configure.ac): Run a test.
75658         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
75659         * lib/fcntl.c (rpl_fcntl): Likewise.
75660         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
75661         (gl_FCNTL_H): Always replace fcntl.h.
75662         * modules/fcntl-h (Makefile.am): Substitute witnesses.
75663         * lib/fcntl.in.h (fcntl): Declare replacement.
75664         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
75665         needed, plus a witness.
75666         * doc/posix-functions/fcntl.texi (fcntl): Document this.
75667         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
75668         * tests/test-fcntl.c: New file.
75669         * modules/fcntl-tests: Likewise.
75671         binary-io: avoid potential compilation warning
75672         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
75673         directives.
75675         fflush: avoid compilation error on NetBSD
75676         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
75677         between off_t and fpos_t, since the latter is sometimes a struct.
75678         * lib/fseeko.c (rpl_fseeko): Likewise.
75679         Reported by Alexander Nasonov <alnsn@yandex.ru>.
75681 2009-12-15  Eric Blake  <ebb9@byu.net>
75683         fcntl-h, stdio, sys_ioctl: fix declarations
75684         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
75685         function must not take arguments.
75686         * lib/sys_ioctl.in.h (ioctl): Likewise.
75687         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
75688         (open): Add a link warning.
75690 2009-12-15  Jim Meyering  <meyering@redhat.com>
75692         areadlink, areadlink-with-size: relax license to LGPLv2+
75693         * modules/areadlink (License): Relax to LGPLv2+.
75694         * modules/areadlink-with-size (License): Likewise.
75696 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
75697             Bruno Haible  <bruno@clisp.org>
75699         *printf: Fix memory leak.
75700         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
75701         * lib/vfprintf.c (vfprintf): Likewise.
75702         * lib/dprintf.c (dprintf): Likewise.
75703         * lib/vdprintf.c (vdprintf): Likewise.
75705 2009-12-14  Eric Blake  <ebb9@byu.net>
75707         accept4: adjust module dependencies
75708         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
75710         utimens: one more try at avoiding compiler warning
75711         * lib/utimens.c (lutimens): Lower scope of result.
75713 2009-12-13  Bruno Haible  <bruno@clisp.org>
75715         Move the malloc checking from module 'list' to new module 'xlist'.
75716         * modules/xlist: New file.
75717         * lib/gl_xlist.h: New file.
75718         * lib/gl_xlist.c: New file.
75719         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
75720         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
75721         gl_list_add_last, gl_list_add_before, gl_list_add_after,
75722         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
75723         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
75724         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
75725         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
75726         gl_sortedlist_nx_add): New declarations.
75727         (struct gl_list_implementation): Rename and change methods accordingly.
75728         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
75729         (gl_list_nx_create): Renamed from gl_list_create.
75730         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75731         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75732         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75733         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75734         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75735         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75736         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75737         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75738         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
75739         gl_list_create_empty.
75740         (gl_list_nx_create): Renamed from gl_list_create.
75741         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75742         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75743         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75744         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75745         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75746         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75747         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75748         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75749         * lib/gl_array_list.c: Don't include xalloc.h.
75750         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
75751         NULL upon out-of-memory.
75752         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
75753         out-of-memory.
75754         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
75755         Change return type to 'int'.
75756         (gl_array_nx_set_at): Renamed from gl_array_set_at.
75757         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75758         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
75759         upon out-of-memory.
75760         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
75761         upon out-of-memory.
75762         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
75763         upon out-of-memory.
75764         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
75765         upon out-of-memory.
75766         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
75767         out-of-memory.
75768         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
75769         Update.
75770         (gl_array_list_implementation): Update.
75771         * lib/gl_carray_list.c: Don't include xalloc.h.
75772         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
75773         Return NULL upon out-of-memory.
75774         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
75775         out-of-memory.
75776         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
75777         Change return type to 'int'.
75778         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
75779         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75780         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
75781         upon out-of-memory.
75782         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
75783         upon out-of-memory.
75784         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
75785         out-of-memory.
75786         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
75787         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
75788         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
75789         Update.
75790         (gl_carray_list_implementation): Update.
75791         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
75792         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
75793         gl_linked_create_empty. Return NULL upon out-of-memory.
75794         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
75795         out-of-memory.
75796         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
75797         Change return type to 'int'. Return -1 upon out-of-memory.
75798         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
75799         out-of-memory.
75800         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
75801         upon out-of-memory.
75802         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
75803         upon out-of-memory.
75804         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
75805         NULL upon out-of-memory.
75806         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
75807         upon out-of-memory.
75808         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
75809         out-of-memory.
75810         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
75811         Update.
75812         * lib/gl_linked_list.c: Don't include xalloc.h.
75813         (gl_linked_list_implementation): Update.
75814         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
75815         (add_to_bucket): Change return type to 'int'.
75816         (gl_linkedhash_list_implementation): Update.
75817         * lib/gl_anytree_list1.h (free_subtree): New function.
75818         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
75819         gl_tree_create_empty. Return NULL upon out-of-memory.
75820         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
75821         Change return type to 'int'. Return -1 upon out-of-memory.
75822         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
75823         out-of-memory.
75824         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
75825         (gl_tree_remove_node): New function, moved here from
75826         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
75827         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
75828         Update.
75829         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
75830         malloc, not xmalloc. Return NULL upon out-of-memory.
75831         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
75832         out-of-memory.
75833         (gl_tree_remove_node_from_tree): New function, extracted from
75834         gl_tree_remove_node.
75835         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
75836         upon out-of-memory.
75837         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
75838         out-of-memory.
75839         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
75840         upon out-of-memory.
75841         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
75842         upon out-of-memory.
75843         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
75844         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
75845         not xmalloc. Return NULL upon out-of-memory.
75846         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
75847         out-of-memory.
75848         (gl_tree_remove_node_from_tree): New function, extracted from
75849         gl_tree_remove_node.
75850         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
75851         upon out-of-memory.
75852         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
75853         out-of-memory.
75854         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
75855         upon out-of-memory.
75856         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
75857         upon out-of-memory.
75858         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
75859         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
75860         gl_anytree_list1.h before gl_anyavltree_list2.h.
75861         (gl_avltree_list_implementation): Update.
75862         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
75863         gl_anytree_list1.h before gl_anyavltree_list2.h.
75864         (gl_rbtree_list_implementation): Update.
75865         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
75866         Change return type to 'int'. Return -1 upon out-of-memory. Use
75867         __builtin_expect.
75868         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
75869         (gl_avltreehash_list_implementation): Update.
75870         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
75871         (gl_rbtreehash_list_implementation): Update.
75872         * modules/array-list (Depends-on): Remove xalloc.
75873         * modules/carray-list (Depends-on): Likewise.
75874         * modules/linked-list (Depends-on): Likewise.
75875         * modules/linkedhash-list (Depends-on): Likewise.
75876         * modules/avltree-list (Depends-on): Likewise.
75877         * modules/rbtree-list (Depends-on): Likewise.
75878         * modules/avltreehash-list (Depends-on): Likewise.
75879         * modules/rbtreehash-list (Depends-on): Likewise.
75881         * modules/xsublist: New file.
75882         * lib/gl_xsublist.h: New file.
75883         * lib/gl_xsublist.c: New file.
75884         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
75885         (gl_sublist_nx_create): New declaration.
75886         * lib/gl_sublist.c: Don't include xalloc.h.
75887         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
75888         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
75889         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
75890         Change return type to 'int'. Return -1 upon out-of-memory.
75891         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
75892         upon out-of-memory.
75893         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
75894         NULL upon out-of-memory.
75895         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
75896         upon out-of-memory.
75897         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
75898         NULL upon out-of-memory.
75899         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
75900         NULL upon out-of-memory.
75901         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
75902         upon out-of-memory.
75903         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
75904         (gl_sublist_list_implementation): Update.
75905         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
75906         upon out-of-memory.
75907         * modules/sublist (Depends-on): Remove xalloc.
75909         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
75910         * tests/test-carray_list.c: Likewise.
75911         * tests/test-linked_list.c: Likewise.
75912         * tests/test-linkedhash_list.c: Likewise.
75913         * tests/test-avltree_list.c: Likewise.
75914         * tests/test-rbtree_list.c: Likewise.
75915         * tests/test-avltreehash_list.c: Likewise.
75916         * tests/test-rbtreehash_list.c: Likewise.
75917         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
75918         * modules/carray-list-tests (Makefile.am): Likewise.
75919         * modules/linked-list-tests (Makefile.am): Likewise.
75920         * modules/linkedhash-list-tests (Makefile.am): Likewise.
75921         * modules/avltree-list-tests (Makefile.am): Likewise.
75922         * modules/rbtree-list-tests (Makefile.am): Likewise.
75923         * modules/avltreehash-list-tests (Makefile.am): Likewise.
75924         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
75926         * NEWS: Mention the changes.
75928         * lib/clean-temp.c: Include gl_xlist.h.
75929         * modules/clean-temp (Depends-on): Add xlist.
75931         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
75932         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
75934         * tests/test-array_oset.c: Include gl_xlist.h.
75935         * modules/array-oset-tests (Depends-on): Add xlist.
75937         Reported by José E. Marchesi <jemarch@gnu.org>.
75939 2009-12-13  Bruno Haible  <bruno@clisp.org>
75941         Move the malloc checking from module 'oset' to new module 'xoset'.
75942         * modules/xoset: New file.
75943         * lib/gl_xoset.h: New file.
75944         * lib/gl_xoset.c: New file.
75945         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
75946         declarations.
75947         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
75948         (struct gl_oset_implementation): Rename and change methods accordingly.
75949         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
75950         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
75951         'int'. Mark as __warn_unused_result__.
75952         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
75953         gl_oset_create_empty.
75954         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
75955         'int'.
75956         * lib/gl_array_oset.c: Don't include xalloc.h.
75957         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
75958         malloc, not xmalloc.
75959         (grow): Change return type to 'int'. Don't call xalloc_die.
75960         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
75961         to 'int'.
75962         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
75963         'int'.
75964         (gl_array_oset_implementation): Update.
75965         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
75966         gl_tree_create_empty.
75967         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
75968         'int'.
75969         * lib/gl_avltree_oset.c: Don't include xalloc.h.
75970         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
75971         xmalloc.
75972         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
75973         not xmalloc.
75974         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
75975         xmalloc.
75976         (gl_avltree_oset_implementation): Update.
75977         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
75978         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
75979         xmalloc.
75980         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
75981         not xmalloc.
75982         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
75983         xmalloc.
75984         (gl_rbtree_oset_implementation): Update.
75985         * modules/array-oset (Depends-on): Remove xalloc.
75986         * modules/avltree-oset (Depends-on): Likewise.
75987         * modules/rbtree-oset (Depends-on): Likewise.
75988         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
75989         * tests/test-avltree_oset.c: Likewise.
75990         * tests/test-rbtree_oset.c: Likewise.
75991         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75992         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
75993         * modules/rbtree-oset-tests (Makefile.am): Likewise.
75994         * NEWS: Mention the change.
75996 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
75998         maint.mk: allow a project to override release-prep commands
75999         * top/maint.mk (alpha, beta, stable): Move release-preparatory
76000         commands into a new rule.
76001         (release-prep): New rule.
76002         (release-prep-hook): New overridable variable.
76004 2009-12-13  Bruno Haible  <bruno@clisp.org>
76006         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
76008 2009-12-13  Jim Meyering  <meyering@redhat.com>
76010         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
76011         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
76013 2009-12-12  Bruno Haible  <bruno@clisp.org>
76015         duplocale: Tweak.
76016         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
76018 2009-12-12  Karl Berry  <karl@gnu.org>
76020         * config/srclist.txt (strtoll.c): tab changes, no more sync.
76022 2009-12-12  Bruno Haible  <bruno@clisp.org>
76024         * m4/po.m4: Undo incorrect untabification.
76026 2009-12-12  Bruno Haible  <bruno@clisp.org>
76028         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
76029         * modules/c-strtod (Depends-on): Add locale.
76030         * modules/c-strtold (Depends-on): Likewise.
76032 2009-12-12  Bruno Haible  <bruno@clisp.org>
76034         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
76036 2009-12-11  Eric Blake  <ebb9@byu.net>
76038         setenv: relax requirement in light of POSIX ruling
76039         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
76040         not NULL.
76041         * tests/test-setenv.c (main): Relax test.
76042         * tests/test-unsetenv.c (main): Likewise.
76043         * doc/posix-functions/setenv.texi (setenv): Document this.
76044         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
76046 2009-12-11  Bruno Haible  <bruno@clisp.org>
76048         New module 'fd-safer-flag'.
76049         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
76050         * lib/dup-safer.c (dup_safer_flag): Remove function.
76051         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
76052         * lib/fd-safer.c (fd_safer_flag): Remove function.
76053         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
76054         * modules/cloexec (configure.ac): Drop indicator macro.
76055         * modules/fd-safer-flag: New file.
76056         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
76057         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
76058         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
76060 2009-12-11  Bruno Haible  <bruno@clisp.org>
76062         Tests for module 'nl_langinfo'.
76063         * modules/nl_langinfo-tests: New file.
76064         * tests/test-nl_langinfo.sh: New file.
76065         * tests/test-nl_langinfo.c: New file.
76067         New module 'nl_langinfo'.
76068         * lib/nl_langinfo.c: New file.
76069         * m4/nl_langinfo.m4: New file.
76070         * modules/nl_langinfo: New file.
76071         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
76073 2009-12-11  Bruno Haible  <bruno@clisp.org>
76075         Tests for module 'langinfo'.
76076         * modules/langinfo-tests: New file.
76077         * tests/test-langinfo.c: New file.
76079         New module 'langinfo'.
76080         * lib/langinfo.in.h: New file.
76081         * m4/langinfo_h.m4: New file.
76082         * modules/langinfo: New file.
76083         * doc/posix-headers/langinfo.texi: Mention the new module.
76085 2009-12-11  Bruno Haible  <bruno@clisp.org>
76087         * lib/config.charset: Untabify.
76089 2009-12-11  Bruno Haible  <bruno@clisp.org>
76091         * modules/unistd-safer (configure.ac): Drop indicator macro.
76093 2009-12-11  Bruno Haible  <bruno@clisp.org>
76095         Move pipe2-safer code to its own file.
76096         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
76097         * lib/pipe-safer.c (pipe2_safer): Remove function.
76098         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
76099         (Makefile.am): Add it to lib_SOURCES.
76101 2009-12-10  Bruno Haible  <bruno@clisp.org>
76103         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
76105 2009-12-10  Bruno Haible  <bruno@clisp.org>
76107         Declare which arguments expect non-NULL values, for GCC and clang.
76108         * build-aux/arg-nonnull.h: New file.
76109         * modules/arg-nonnull: New file.
76110         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
76111         (inet_ntop, inet_pton): Use it.
76112         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
76113         (closedir, dirfd, opendir, scandir, alphasort): Use it.
76114         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
76115         (open, openat): Use it.
76116         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
76117         (fnmatch): Use it.
76118         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
76119         (getopt, getopt_long, getopt_long_only): Use it.
76120         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
76121         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
76122         Use it.
76123         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
76124         (iconv_open): Use it.
76125         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
76126         (strtoimax, strtoumax): Use it.
76127         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
76128         (duplocale): Use it.
76129         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
76130         (frexp, frexpl): Use it.
76131         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
76132         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
76133         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
76134         (tsearch, tfind, tdelete, twalk): Use it.
76135         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
76136         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
76137         sigpending): Use it.
76138         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
76139         (posix_spawn, posix_spawnp, posix_spawnattr_init,
76140         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
76141         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
76142         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
76143         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
76144         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
76145         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
76146         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
76147         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
76148         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
76149         Use it.
76150         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
76151         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
76152         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
76153         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
76154         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
76155         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
76156         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
76157         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
76158         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
76159         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
76160         strtoull, unsetenv): Use it.
76161         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
76162         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
76163         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
76164         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
76165         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
76166         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
76167         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
76168         (strcasecmp, strncasecmp): Use it.
76169         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
76170         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
76171         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
76172         rpl_setsockopt): Use it.
76173         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
76174         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
76175         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
76176         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
76177         (gettimeofday): Use it.
76178         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
76179         (times): Use it.
76180         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
76181         (uname): Use it.
76182         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
76183         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
76184         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
76185         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
76186         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
76187         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
76188         unlinkat, write): Use it.
76189         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
76190         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
76191         * lib/argv-iter.h: Include arg-nonnull.h.
76192         (_ATTRIBUTE_NONNULL_): Remove macro.
76193         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
76194         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
76195         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
76196         optimization.
76197         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
76198         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
76199         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
76200         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
76201         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
76202         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
76203         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
76204         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
76205         * modules/arpa_inet (Depends-on): Add arg-nonnull.
76206         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
76207         * modules/dirent (Depends-on): Add arg-nonnull.
76208         (Makefile.am): Insert arg-nonnull.h into dirent.h.
76209         * modules/fcntl-h (Depends-on): Add arg-nonnull.
76210         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
76211         * modules/fnmatch (Depends-on): Add arg-nonnull.
76212         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
76213         * modules/getopt-posix (Depends-on): Add arg-nonnull.
76214         (Makefile.am): Insert arg-nonnull.h into getopt.h.
76215         * modules/glob (Depends-on): Add arg-nonnull.
76216         (Makefile.am): Insert arg-nonnull.h into glob.h.
76217         * modules/iconv_open (Depends-on): Add arg-nonnull.
76218         (Makefile.am): Insert arg-nonnull.h into iconv.h.
76219         * modules/inttypes (Depends-on): Add arg-nonnull.
76220         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
76221         * modules/locale (Depends-on): Add arg-nonnull.
76222         (Makefile.am): Insert arg-nonnull.h into locale.h.
76223         * modules/math (Depends-on): Add arg-nonnull.
76224         (Makefile.am): Insert arg-nonnull.h into math.h.
76225         * modules/netdb (Depends-on): Add arg-nonnull.
76226         (Makefile.am): Insert arg-nonnull.h into netdb.h.
76227         * modules/search (Depends-on): Add arg-nonnull.
76228         (Makefile.am): Insert arg-nonnull.h into search.h.
76229         * modules/signal (Depends-on): Add arg-nonnull.
76230         (Makefile.am): Insert arg-nonnull.h into signal.h.
76231         * modules/spawn (Depends-on): Add arg-nonnull.
76232         (Makefile.am): Insert arg-nonnull.h into spawn.h.
76233         * modules/stdio (Depends-on): Add arg-nonnull.
76234         (Makefile.am): Insert arg-nonnull.h into stdio.h.
76235         * modules/stdlib (Depends-on): Add arg-nonnull.
76236         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
76237         * modules/string (Depends-on): Add arg-nonnull.
76238         (Makefile.am): Insert arg-nonnull.h into string.h.
76239         * modules/strings (Depends-on): Add arg-nonnull.
76240         (Makefile.am): Insert arg-nonnull.h into strings.h.
76241         * modules/sys_socket (Depends-on): Add arg-nonnull.
76242         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
76243         * modules/sys_stat (Depends-on): Add arg-nonnull.
76244         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
76245         * modules/sys_time (Depends-on): Add arg-nonnull.
76246         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
76247         * modules/sys_times (Depends-on): Add arg-nonnull.
76248         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
76249         * modules/sys_utsname (Depends-on): Add arg-nonnull.
76250         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
76251         * modules/time (Depends-on): Add arg-nonnull.
76252         (Makefile.am): Insert arg-nonnull.h into time.h.
76253         * modules/unistd (Depends-on): Add arg-nonnull.
76254         (Makefile.am): Insert arg-nonnull.h into unistd.h.
76255         * modules/wchar (Depends-on): Add arg-nonnull.
76256         (Makefile.am): Insert arg-nonnull.h into wchar.h.
76257         * modules/argv-iter (Depends-on): Add arg-nonnull.
76258         * tests/test-canonicalize.c (null_ptr): New function.
76259         (main): Use it.
76260         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
76261         (main): Use it.
76262         * tests/test-memmem.c (null_ptr): New function.
76263         (main): Use it.
76264         Reported by Jim Meyering.
76266 2009-12-10  Bruno Haible  <bruno@clisp.org>
76268         Use spaces for indentation, not tabs.
76269         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
76270         * m4/*.m4: Untabify.
76271         * build-aux/*.h: Untabify.
76272         * tests/**/*.[hc]: Untabify.
76273         * README: New section "Indent with spaces, not TABs", based on
76274         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
76275         * NEWS: Mention the change.
76277 2009-12-10  Bruno Haible  <bruno@clisp.org>
76279         pty test: Fix link error.
76280         * modules/pty-tests (Makefile.am): Add the default LDADD value to
76281         test_pty_LDADD.
76283 2009-12-07  Simon Josefsson  <simon@josefsson.org>
76285         * modules/pty: New file.
76286         * modules/pty-tests: New file.
76287         * m4/pty.m4: New file.
76288         * tests/test-pty.c: New file.
76289         * doc/glibc-headers/pty.texi: Modified.
76290         * doc/glibc-functions/forkpty.texi: Modified.
76291         * doc/glibc-functions/openpty.texi: Modified.
76293 2009-12-10  Bruno Haible  <bruno@clisp.org>
76295         Avoid syntax error in C++ mode.
76296         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
76298 2009-12-10  Bruno Haible  <bruno@clisp.org>
76300         Use sed with option -e.
76301         * gnulib-tool (func_version, func_emit_copyright_notice,
76302         func_emit_initmacro_end, func_import, func_create_testdir): Pass
76303         option -e to sed.
76304         * modules/link-warning (Makefile.am): Likewise.
76306 2009-12-10  Jim Meyering  <meyering@redhat.com>
76308         mgetgroups: do not write bytes beyond end of malloc'd buffer
76309         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
76310         username, we call getgroups with a one-element-shorter buffer,
76311         but still told it the length was original, max_n_groups.
76313 2009-12-09  Eric Blake  <ebb9@byu.net>
76315         cloexec: relax license
76316         * modules/cloexec (Maintainer): Add myself.
76317         (License): Use LGPL, not GPL.
76319         link-warning: optimize generation
76320         * modules/link-warning (Makefile.am): Reduce process usage.
76322 2009-12-09  Bruno Haible  <bruno@clisp.org>
76324         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
76325         workaround was added on 2009-11-17.
76327 2009-12-09  Jim Meyering  <meyering@redhat.com>
76328             Bruno Haible  <bruno@clisp.org>
76330         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
76331         * modules/link-warning (Makefile.am): Make the comment-removing sed
76332         command more robust in the face of bootstrap-prepended comment lines.
76334 2009-12-09  Bruno Haible  <bruno@clisp.org>
76336         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
76337         most one group.
76339 2009-12-09  Simon Josefsson  <simon@josefsson.org>
76340             Bruno Haible  <bruno@clisp.org>
76342         * build-aux/link-warning.h: Add copyright notice.
76343         * modules/link-warning (Makefile.am): Generate link-warning.h from
76344         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
76345         * NEWS: Mention change in link-warning module.
76346         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
76347         * modules/dirent (Makefile.am): Add dependency to dirent.h.
76348         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
76349         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
76350         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
76351         * modules/math (Makefile.am): Add dependency to math.h.
76352         * modules/search (Makefile.am): Add dependency to search.h.
76353         * modules/signal (Makefile.am): Add dependency to signal.h.
76354         * modules/spawn (Makefile.am): Add dependency to spawn.h.
76355         * modules/stdio (Makefile.am): Add dependency to stdio.h.
76356         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
76357         * modules/string (Makefile.am): Add dependency to string.h.
76358         * modules/strings (Makefile.am): Add dependency to strings.h.
76359         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
76360         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
76361         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
76362         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
76363         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
76364         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
76365         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
76366         * modules/unistd (Makefile.am): Add dependency to unistd.h.
76367         * modules/wchar (Makefile.am): Add dependency to wchar.h.
76369 2009-12-09  Bruno Haible  <bruno@clisp.org>
76371         fchdir: Optimize away rpl_fstat when possible.
76372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
76373         REPLACE_OPEN_DIRECTORY.
76374         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
76376 2009-12-09  Bruno Haible  <bruno@clisp.org>
76378         * lib/fchdir.c: Update comment.
76380 2009-12-09  Bruno Haible  <bruno@clisp.org>
76382         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
76384 2009-12-08  Eric Blake  <ebb9@byu.net>
76386         fchdir: avoid memory leak on re-registration.
76387         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
76389 2009-12-08  Jim Meyering  <meyering@redhat.com>
76391         init.sh: avoid Solaris 10 /bin/sh portability problem
76392         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
76393         sourced script:
76394           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
76395           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
76396           bar
76397         tests/init.sh relied on that, accepting a --set-path=DIR argument,
76398         and two tests used that idiom.
76399         * tests/init.sh: Update suggested usage comments.
76400         (path_prepend_): New function, to be used in place
76401         of the --src-path=DIR option.
76402         (setup_): Move PATH-prepending code into path_prepend_.
76403         * tests/test-pread.sh: Adapt to new usage.
76404         * tests/test-xalloc-die.sh: Likewise.
76406 2009-12-08  Simon Josefsson  <simon@josefsson.org>
76408         * doc/gnulib.texi (Glibc pty.h): Add.
76409         * doc/glibc-functions/forkpty.texi: Add.
76410         * doc/glibc-functions/openpty.texi: Add.
76411         Suggested by Bruno Haible.
76413 2009-12-08  Eric Blake  <ebb9@byu.net>
76415         fchdir: fix logic bugs
76416         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
76417         * tests/test-fchdir.c (main): Enhance test.
76418         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
76419         is in use.
76421         dup2: fix logic bugs
76422         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
76423         REPLACE_DUP2 to decide when rpl_dup2 is needed.
76424         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
76425         exists.
76426         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
76428 2009-12-07  Eric Blake  <ebb9@byu.net>
76430         unlink: fix m4 detection
76431         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
76433         unistd-safer: add unit test
76434         * modules/unistd-safer-tests: New file.
76435         * tests/test-dup-safer.c: Likewise.
76436         * tests/test-cloexec.c (setmode): Avoid compiler warning.
76437         * tests/test-dup2.c (setmode): Likewise.
76438         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
76440         cloexec: preserve text vs. binary across dup_cloexec
76441         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
76442         mode.
76443         * modules/dup2-tests (Depends-on): Add binary-io.
76444         * modules/cloexec-tests (Depends-on): Likewise.
76445         * tests/test-dup2.c (setmode, is_mode): New helpers.
76446         (main): Add tests that translation mode is preserved.
76447         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
76448         Reported by Bruno Haible.
76450         mgetgroups: reduce duplicate listings
76451         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
76452         resulting array.
76453         * tests/test-chown.h (test_chown): Simplify client.
76454         * tests/test-lchown.h (test_lchown): Likewise.
76456 2009-12-06  Bruno Haible  <bruno@clisp.org>
76458         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
76459         value.
76461 2009-12-06  Bruno Haible  <bruno@clisp.org>
76463         * lib/progname.c: Include stdio.h, stdlib.h.
76464         (set_program_name): Reject a NULL argument.
76466 2009-12-05  Eric Blake  <ebb9@byu.net>
76468         pipe2-safer: new module
76469         * modules/pipe2-safer: New file.
76470         * lib/unistd-safer.h (pipe2_safer): New prototype.
76471         * lib/unistd--.h (pipe2): New wrapper.
76472         * lib/pipe-safer.c (pipe2_safer): New function.
76473         * modules/pipe (Depends-on): Add pipe2-safer.
76474         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
76476         stdlib-safer: preserve cloexec flag for mkostemp[s]
76477         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
76478         fd_safer_flag.
76480         unistd-safer: allow preservation of cloexec status via flag
76481         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
76482         prototypes.
76483         * lib/dup-safer.c (dup_safer_flag): New function.
76484         * lib/fd-safer.c (fd_safer_flag): Likewise.
76485         * modules/cloexec (configure.ac): Set witness.
76487         test-dup2: enhance test
76488         * modules/dup2-tests (Depends-on): Add cloexec.
76489         * tests/test-dup2.c (main): Enhance test.
76491         cloexec: add dup_cloexec
76492         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
76493         header and comments.
76494         * lib/cloexec.c (set_cloexec_flag): Add comments.
76495         (dup_cloexec): New function, with mingw implementation borrowed
76496         from...
76497         * lib/w32spawn.h (dup_noinherit): ...here.
76498         * modules/execute (Depends-on): Add cloexec.
76499         * modules/pipe (Depends-on): Likewise.
76500         * modules/cloexec (Depends-on): Add dup2.
76501         * modules/cloexec-tests (Files): New file.
76502         * tests/test-cloexec.c: Likewise.
76504         test-xalloc-die: fix test for mingw
76505         * modules/xalloc-die-tests (Files): Add tests/init.sh.
76506         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
76507         directory and .exe suffix off argv[0] output.
76509         test-fseeko: fix test for mingw
76510         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
76511         than undefining fseek, so test will pass on mingw.
76513 2009-12-05  Bruno Haible  <bruno@clisp.org>
76515         * lib/progname.h (set_program_name): Clarify specification.
76516         * lib/progname.c (set_program_name): Likewise.
76517         Reported by Jim Meyering.
76519 2009-12-05  Jim Meyering  <meyering@redhat.com>
76521         maint.mk: backslash-escape parens in default regexp
76522         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
76523         backslash-escape the literal parentheses.
76525         maint.mk: news-date-check: use grep -E
76526         * top/maint.mk (today): Define a Make variable, not a...
76527         (news-date-check): ...shell variable.
76528         (news-date-regexp): Use the Make variable.
76529         Use grep's -E option.  Change the failing diagnostic to mention
76530         the variable, $(news-date-regexp).
76532 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
76534         maintainer-makefile: allow customization of NEWS entry format
76535         * top/maint.mk (news-date-regexp): New overridable variable.
76536         (news-date-check): Use it.
76538 2009-12-04  Eric Blake  <ebb9@byu.net>
76540         mgetgroups: add xgetgroups, and avoid ENOSYS failures
76541         * lib/mgetgroups.h (xgetgroups): New prototype.
76542         * lib/mgetgroups.c (xgetgroups): New wrapper.
76543         (mgetgroups): Handle ENOSYS.
76544         * modules/mgetgroups (Depends-on): Add realloc.
76545         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
76547         mgetgroups: avoid argument promotion issues with -1
76548         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
76549         for invalid gid_t.
76550         * tests/test-chown.h (getegid, test_chown): Likewise.
76551         * tests/test-lchown.h (getegid, test_lchown): Likewise.
76553 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
76555         exclude: Fix header file problems.
76556         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
76558 2009-12-01  Jim Meyering  <meyering@redhat.com>
76560         fts: fts_open: do not let an empty string cause immediate failure
76561         This is required in support of GNU rm, for which the command
76562         "rm A '' B" must process and remove both A and B, in spite of
76563         the empty string argument.
76564         * lib/fts.c (fts_open): Do not let the presence of an empty string
76565         cause fts_open to fail immediately.  Most fts-using tools must be
76566         able to process all arguments, in order, and can be expected to
76567         diagnose such arguments themselves.
76569 2009-11-30  Eric Blake  <ebb9@byu.net>
76571         utimens: fix compilation error
76572         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
76573         Declare variable at right scope.
76575 2009-11-29  Jim Meyering  <meyering@redhat.com>
76577         bootstrap: handle perl-5.11's changed --version output
76578         * build-aux/bootstrap (get_version): Handle perl separately,
76579         since perl-5.11's --version output is different.
76581 2009-11-28  Jim Meyering  <meyering@redhat.com>
76583         userspec: depend on the inttostr module, too
76584         * modules/userspec (Depends-on): Add inttostr.
76586         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
76587         * lib/userspec.c (parse_with_separator): Do not accept a user ID
76588         number of MAXUID when it evaluates to (uid_t) -1.
76589         Likewise for group ID.  Reported by Matt McCutchen in
76590         <http://savannah.gnu.org/bugs/?28113>
76592         userspec: reformat to use spaces, not TABs
76593         * lib/userspec.c: Expand TABs to spaces.
76594         Add Emacs' "indent-tabs-mode: nil" hint.
76596 2009-11-27  Eric Blake  <ebb9@byu.net>
76598         getopt-gnu: flush out another BSD bug
76599         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
76600         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
76601         flush out BSD bug.
76602         * tests/test-getopt.h (test_getopt): End lists with NULL.
76603         * tests/test-getopt_long.h (test_getopt_long): Likewise.
76604         (test_getopt_long_posix): Enhance test.
76605         * modules/getopt-posix-tests (Depends-on): Add stdbool.
76606         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
76607         getopt-gnu.
76608         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76609         Likewise.
76611 2009-11-27  Simon Josefsson  <simon@josefsson.org>
76613         * modules/idpriv-droptemp-tests (Notice): Fix text.
76615 2009-11-27  Jim Meyering  <meyering@redhat.com>
76617         test-xalloc-die: avoid spurious failure due to libtool argv difference
76618         In a libtool-enabled project, this test would fail due to a difference
76619         in the emitted program name, e.g.,
76620         -test-xalloc-die: memory exhausted
76621         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
76622         Use program to avoid that.
76623         * modules/xalloc-die-tests (Depends-on): Add progname.
76624         * tests/test-xalloc-die.c: Include progname.h".
76625         (program_name): Remove decl.
76626         (main): Call set_program_name.
76627         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
76629 2009-11-26  Richard Jones  <rjones@redhat.com>
76631         w32sock: leave win32 error in place.
76632         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
76634 2009-11-26  Eric Blake  <ebb9@byu.net>
76636         init.sh: suggest to use skip_ and fail_ functions in comments
76637         * tests/init.sh: Add a sentence.
76639 2009-11-25  Bruno Haible  <bruno@clisp.org>
76641         init.sh: add documentation in comments
76642         * tests/init.sh: Add some developer and user documentation.
76644 2009-11-26  Jim Meyering  <meyering@redhat.com>
76646         init.sh: accommodate even those who specify bogus srcdir manually
76647         * tests/init.sh: Normally, srcdir is guaranteed by automake and
76648         configure-time tests to be sanitized, so that there is no need to
76649         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
76650         (with no double quotes) suffices.  However, since tests may be
76651         invoked manually, and since you may explicitly set srcdir to the
76652         name of a directory containing spaces, do quote its uses here.
76653         * tests/test-pread.sh: Likewise.
76654         Suggested by Bruno Haible.
76656         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
76657         * tests/test-pread.sh: Write no data into the pipe, because
76658         test-pread actually reads none.  This avoids a diagnostic,
76659         "bash: echo: write error: Broken pipe", that arises in the unusual
76660         event something is ignoring SIGPIPE, and might be interpreted
76661         as some sort of failure.  Reported by Bruno Haible.
76663 2009-11-25  Jim Meyering  <meyering@redhat.com>
76665         test-pread: cover failure with ESPIPE and EINVAL
76666         * tests/test-pread.c (main): Test for failure, too.
76667         * tests/test-pread.sh: Invoke with stdin on a pipe.
76668         Suggested by Eric Blake.
76670         pread: improvement and fix
76671         * modules/pread (Depends-on): Depend on lseek, for portability to
76672         e.g., mingw.  Suggested by Eric Blake.
76673         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
76675         unistd.in.h: correct declaration of pread
76676         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
76677         Reported by Richard W.M. Jones.
76679         test-pread.sh: distribute the test script
76680         * modules/pread-tests (Files): Include test-pread.sh.
76682         test-pread.sh: clean up
76683         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
76684         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
76685         That is unnecessary, since it's always ".".
76686         Suggestion from Eric Blake.
76688         test-pread.sh: make executable
76689         * tests/test-pread.sh: Set executable bit.
76690         Reported by Eric Blake.
76692         correct typo in test-pread.sh
76693         * tests/test-pread.sh: Add #! line.
76695         test pread
76696         * tests/test-pread.c: New file.
76697         * tests/test-pread.sh: Likewise.
76698         * modules/pread-tests: Likewise.
76700         pread: new module
76701         * modules/pread: New file.
76702         * lib/unistd.in.h (pread): Define/declare.
76703         * lib/pread.c (pread): New file.
76704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
76705         * modules/unistd (Makefile.am): Substitute witnesses.
76706         * doc/posix-functions/pread.texi (pread): Update.
76707         * MODULES.html.sh: Add pread.
76709 2009-11-25  Jim Meyering  <meyering@redhat.com>
76711         tests/init.sh: new file to be used via most *.sh tests
76712         * tests/init.sh: New file.
76714 2009-11-25  Eric Blake  <ebb9@byu.net>
76716         utimens: work around older Linux failure with symlinks
76717         * lib/utimens.c (lutimensat_works_really): New variable.
76718         (fdutimens, lutimens): Use it to manage kernels that support
76719         nanosecond times on files, but not on symlinks.
76720         Reported by Ondřej Vašík.
76722         utimes: fix configure grammar
76723         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
76725 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
76727         regex: Fix fastmap for multibyte character ranges.
76728         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
76729         characters when a multibyte character range is included.
76731 2009-11-22  Andy Wingo  <wingo@pobox.com>
76733         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
76734         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
76736 2009-11-24  Bruno Haible  <bruno@clisp.org>
76738         doc: Most *_l functions exist in MacOS X 10.5.
76739         * doc/posix-functions/duplocale.texi: Update platforms list.
76740         * doc/posix-functions/freelocale.texi: Likewise.
76741         * doc/posix-functions/newlocale.texi: Likewise.
76742         * doc/posix-functions/uselocale.texi: Likewise.
76743         * doc/posix-functions/isalnum_l.texi: Likewise.
76744         * doc/posix-functions/isalpha_l.texi: Likewise.
76745         * doc/posix-functions/isblank_l.texi: Likewise.
76746         * doc/posix-functions/iscntrl_l.texi: Likewise.
76747         * doc/posix-functions/isdigit_l.texi: Likewise.
76748         * doc/posix-functions/isgraph_l.texi: Likewise.
76749         * doc/posix-functions/islower_l.texi: Likewise.
76750         * doc/posix-functions/isprint_l.texi: Likewise.
76751         * doc/posix-functions/ispunct_l.texi: Likewise.
76752         * doc/posix-functions/isspace_l.texi: Likewise.
76753         * doc/posix-functions/isupper_l.texi: Likewise.
76754         * doc/posix-functions/iswalnum_l.texi: Likewise.
76755         * doc/posix-functions/iswalpha_l.texi: Likewise.
76756         * doc/posix-functions/iswblank_l.texi: Likewise.
76757         * doc/posix-functions/iswcntrl_l.texi: Likewise.
76758         * doc/posix-functions/iswctype_l.texi: Likewise.
76759         * doc/posix-functions/iswdigit_l.texi: Likewise.
76760         * doc/posix-functions/iswgraph_l.texi: Likewise.
76761         * doc/posix-functions/iswlower_l.texi: Likewise.
76762         * doc/posix-functions/iswprint_l.texi: Likewise.
76763         * doc/posix-functions/iswpunct_l.texi: Likewise.
76764         * doc/posix-functions/iswspace_l.texi: Likewise.
76765         * doc/posix-functions/iswupper_l.texi: Likewise.
76766         * doc/posix-functions/iswxdigit_l.texi: Likewise.
76767         * doc/posix-functions/isxdigit_l.texi: Likewise.
76768         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
76769         * doc/posix-functions/strcasecmp_l.texi: Likewise.
76770         * doc/posix-functions/strcoll_l.texi: Likewise.
76771         * doc/posix-functions/strfmon_l.texi: Likewise.
76772         * doc/posix-functions/strftime_l.texi: Likewise.
76773         * doc/posix-functions/strncasecmp_l.texi: Likewise.
76774         * doc/posix-functions/strxfrm_l.texi: Likewise.
76775         * doc/posix-functions/tolower_l.texi: Likewise.
76776         * doc/posix-functions/toupper_l.texi: Likewise.
76777         * doc/posix-functions/towctrans_l.texi: Likewise.
76778         * doc/posix-functions/towlower_l.texi: Likewise.
76779         * doc/posix-functions/towupper_l.texi: Likewise.
76780         * doc/posix-functions/wcscoll_l.texi: Likewise.
76781         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
76782         * doc/posix-functions/wctrans_l.texi: Likewise.
76783         * doc/posix-functions/wctype_l.texi: Likewise.
76784         * doc/glibc-functions/strptime_l.texi: Likewise.
76785         * doc/glibc-functions/strtod_l.texi: Likewise.
76786         * doc/glibc-functions/strtof_l.texi: Likewise.
76787         * doc/glibc-functions/strtol_l.texi: Likewise.
76788         * doc/glibc-functions/strtold_l.texi: Likewise.
76789         * doc/glibc-functions/strtoll_l.texi: Likewise.
76790         * doc/glibc-functions/strtoul_l.texi: Likewise.
76791         * doc/glibc-functions/strtoull_l.texi: Likewise.
76792         * doc/glibc-functions/wcsftime_l.texi: Likewise.
76793         * doc/glibc-functions/wcstod_l.texi: Likewise.
76794         * doc/glibc-functions/wcstof_l.texi: Likewise.
76795         * doc/glibc-functions/wcstol_l.texi: Likewise.
76796         * doc/glibc-functions/wcstold_l.texi: Likewise.
76797         * doc/glibc-functions/wcstoll_l.texi: Likewise.
76798         * doc/glibc-functions/wcstoul_l.texi: Likewise.
76799         * doc/glibc-functions/wcstoull_l.texi: Likewise.
76801 2009-11-24  Bruno Haible  <bruno@clisp.org>
76803         duplocale: Fix logic bug.
76804         * lib/duplocale.c: Don't include <langinfo.h>.
76805         (_NL_LOCALE_NAME): Remove macro.
76806         (rpl_duplocale): Use setlocale instead of nl_langinfo.
76807         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
76809 2009-11-23  Jim Meyering  <meyering@redhat.com>
76811         test-update-copyright: don't hard-code /usr/bin/perl
76812         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
76813         perl to print the current year.  Gilles Espinasse reported that
76814         the replaced use of perl was hard-coded as /usr/bin/perl.
76816 2009-11-23  Bruno Haible  <bruno@clisp.org>
76818         duplocale: Add support for glibc 2.3.x.
76819         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
76821 2009-11-22  Bruno Haible  <bruno@clisp.org>
76823         vasnprintf: Tiny optimization.
76824         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
76825         MacOS X.
76827 2009-11-22  Bruno Haible  <bruno@clisp.org>
76829         Tests for module 'duplocale'.
76830         * modules/duplocale-tests: New file.
76831         * tests/test-duplocale.c: New file.
76833         New module 'duplocale'.
76834         * m4/duplocale.m4: New file.
76835         * lib/locale.in.h (duplocale): New declaration.
76836         * lib/duplocale.c: New file.
76837         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
76838         gl_LOCALE_H_DEFAULTS): New macros.
76839         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
76840         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
76841         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
76842         REPLACE_DUPLOCALE.
76843         * modules/duplocale: New file.
76844         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
76846 2009-11-22  Bruno Haible  <bruno@clisp.org>
76848         * modules/locale-tests (configure.ac): Test for newlocale function.
76849         * tests/test-locale.c: When the system has extended locale functions,
76850         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
76852         locale: Make locale_t available when possible.
76853         * lib/locale.in.h: Include <xlocale.h> when it exists.
76854         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
76855         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
76856         * modules/locale (Depends-on): Add extensions.
76857         (Makefile.am): Also substitute HAVE_XLOCALE_H.
76858         * doc/posix-headers/locale.texi: Document the problem with locale_t.
76860 2009-11-22  Bruno Haible  <bruno@clisp.org>
76862         Add comments.
76863         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
76864         invocation.
76865         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
76866         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
76867         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
76869 2009-11-22  Bruno Haible  <bruno@clisp.org>
76871         error: account for the possibility of freopen (stdout).
76872         * lib/error.c: Include <unistd.h>.
76873         (flush_stdout): New function, extracted from error and error_at_line.
76874         Determine stdout's fd dynamically.
76875         (error, error_at_line): Invoke flush_stdout.
76876         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
76877         * modules/error (Depends-on): Add unistd.
76879 2009-11-22  Bruno Haible  <bruno@clisp.org>
76881         diffseq: Add comment.
76882         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
76884 2009-11-22  Jim Meyering  <meyering@redhat.com>
76886         c-stack: avoid defining an unused static function
76887         * lib/c-stack.c (find_stack_direction): Do not define this function
76888         when it will not be used.
76890         diffseq: avoid spurious gcc warnings
76891         * lib/diffseq.h (IF_LINT2): Define.
76892         (compareseq): Use it to initialize two members of "part".
76893         This avoids two used-uninitialized warnings.
76895 2009-11-21  Jim Meyering  <meyering@redhat.com>
76897         c-stack: avoid "ignoring return value of `write'" warning
76898         * lib/c-stack.c: Include "ignore-value.h".
76899         (die): Explicitly ignore each write return value.
76900         * modules/c-stack (Depends-on): Add ignore-value.
76902 2009-11-21  Bruno Haible  <bruno@clisp.org>
76904         diffseq: reduce scope of variable 'best'.
76905         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
76906         variable, earlier used for two different purposes.
76908 2009-11-21  Jim Meyering  <meyering@redhat.com>
76910         diffseq: remove useless assignment to "best"
76911         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
76912         assignment.  At that point "best" is already guaranteed to be zero.
76914 2009-11-20  Eric Blake  <ebb9@byu.net>
76916         build: mention ftp redirector in release announcements
76917         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
76918         values that used to come from cfg.mk; mention FTP redirect URL.
76919         * build-aux/announce-gen: Mention the mirror list.
76920         Suggested by Karl Berry.
76922         nanosleep: improve port to mingw
76923         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
76924         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
76925         LIB_NANOSLEEP, but only when needed.
76926         * modules/select (Link): Document LIBSOCKET.
76927         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
76928         enough.
76930         nanosleep: work around cygwin bug
76931         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
76932         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
76933         bug.
76934         (getnow): Delete, not needed.
76935         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
76936         LIB_CLOCK_GETTIME.
76937         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
76938         clock-time, gettime.
76939         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
76940         bug.
76941         * modules/nanosleep-tests: New test.
76942         * tests/test-nanosleep.c: New file.
76944         sleep: work around cygwin bug
76945         * lib/sleep.c (rpl_sleep): Work around the bug.
76946         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
76947         (gl_PREREQ_SLEEP): Delete unused macro.
76948         * modules/sleep (Depends-on): Add verify.
76949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
76950         * modules/unistd (Makefile.am): Substitute witness.
76951         * lib/unistd.in.h (sleep): Update prototype.
76952         * doc/posix-functions/sleep.texi (sleep): Document the bug.
76953         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
76954         * modules/sleep-tests (Depends-on): Check for alarm.
76956 2009-11-20  Jim Meyering  <meyering@redhat.com>
76958         maint.mk: improve sc_prohibit_magic_number_exit
76959         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
76960         so it does not match uses like System.exit(1).
76961         Add comments showing how to correct all offenders.
76963 2009-11-19  Eric Blake  <ebb9@byu.net>
76965         xalloc-die-tests: add missing library
76966         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
76968         test-xvasprintf: silence compiler warnings
76969         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
76970         empty string from gcc.
76972 2009-11-19  Jim Meyering  <meyering@redhat.com>
76974         xfreopen: new module, from coreutils
76975         * modules/xfreopen: New module.
76976         * lib/xfreopen.c: New file.
76977         * lib/xfreopen.h: New file.
76978         * MODULES.html.sh (File stream based Input/Output"): Add it.
76980 2009-11-19  Eric Blake  <ebb9@byu.net>
76982         manywarnings: depend on warnings
76983         * modules/manywarnings (Depends-on): Add warnings.
76985         build: avoid compiler warnings
76986         * lib/select.c (rpl_select): Delete unused variable.
76987         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
76989 2009-11-18  Eric Blake  <ebb9@byu.net>
76991         tests: avoid false negative with --with-packager
76992         * tests/test-version-etc.sh: Discard packager information.
76993         * tests/test-argp-version-etc-1.sh: Likewise.
76994         Reported by Mike Frysinger.
76996         utimens: fix regression on Solaris
76997         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
76998         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
76999         can only change fd timestamps via futimesat.  Instead, use an
77000         additional witness macro to avoid BSD bug.
77001         Reported by Jim Meyering.
77003 2009-11-17  Eric Blake  <ebb9@byu.net>
77005         usleep: use it to simplify tests
77006         * modules/stat-time-tests (Depends-on): Add usleep.
77007         (configure.ac): Drop usleep check.
77008         * modules/chown-tests (Depends-on, configure.ac): Likewise.
77009         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
77010         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
77011         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
77012         * modules/openat-tests (Depends-on, configure.ac): Likewise.
77013         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
77014         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
77015         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
77016         Likewise.
77017         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
77018         * tests/test-lchown.h (nap): Likewise.
77019         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
77020         * tests/test-stat-time.c (nap): Likewise.
77021         * tests/test-utimens-common.h (nap): Update comments.
77023         usleep: new module
77024         * modules/usleep: New file.
77025         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
77026         * lib/usleep.c (usleep): Likewise.
77027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
77028         * modules/unistd (Makefile.am): Substitute witnesses.
77029         * lib/unistd.in.h (usleep): Add declaration.
77030         * doc/pastposix-functions/usleep.texi (usleep): Document this.
77031         * MODULES.html.sh (Date and time): Likewise.
77032         * modules/usleep-tests (Depends-on): New test.
77033         * tests/test-usleep.c: New file.
77035         chown: work around OpenBSD bug
77036         * lib/chown.c (rpl_chown): Work around the bug.
77037         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
77038         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
77039         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
77040         * modules/chown (Depends-on): Add stdbool.
77041         * modules/lchown (Depends-on): Likewise.
77042         * doc/posix-functions/chown.texi (chown): Document the bug.
77043         * doc/posix-functions/lchown.texi (lchown): Likewise.
77044         * tests/test-lchown.h (test_chown): Relax test.
77046         mkstemp: avoid conflict with C++ keyword template
77047         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
77048         * lib/mkostemp.c (mkostemp): Likewise.
77049         * lib/mkostemps.c (mkostemps): Likewise.
77050         * lib/mkstemp.c (mkstemp): Likewise.
77051         * lib/mkstemps.c (mkstemps): Likewise.
77053         xalloc-die-tests: optimize
77054         * tests/test-xalloc-die.sh: Reduce number of processes.
77056 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77058         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
77059         patch from ludo@gnu.org (Ludovic Courtès).
77061 2009-11-17  Jim Meyering  <meyering@redhat.com>
77063         version-etc: use proper license string
77064         * modules/version-etc (License): Use LGPL, not LGPLv3+.
77065         * modules/version-etc-fsf: Likewise.
77067 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77069         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
77070         printed to stdout.  Deal with EOL differences.
77072 2009-11-17  Eric Blake  <ebb9@byu.net>
77074         unsetenv: work around Solaris bug
77075         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
77076         * lib/unsetenv.c (rpl_unsetenv): Work around it.
77077         Reported by Jim Meyering.
77079         vasnprintf: avoid compiler warnings
77080         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
77081         variables.
77082         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
77084 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77086         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
77087         settings since xalloc-die is no longer the self test,
77088         xalloc-die.sh is.
77090 2009-11-17  Jim Meyering  <meyering@redhat.com>
77092         test-xalloc-die.sh: make the code agree with the commit log
77093         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
77094         at the end, just in case you happen to have a test-xalloc-die
77095         program in some other PATH directory.
77097         test-xalloc-die.sh: fix a portability bug
77098         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
77099         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
77100         Otherwise, argv[0] (as often seen in diagnostics) would be too
77101         system-dependent, sometimes with, and sometimes without the leading "./".
77103         version-etc-fsf: relax license to LGPLv3+
77104         * modules/version-etc-fsf (License): Relax license.
77106 2009-11-16  Eric Blake  <ebb9@byu.net>
77108         xalloc-die-tests: avoid printing null pointer
77109         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
77110         shell script.
77111         * tests/test-xalloc-die.c (program_name): Declare.
77112         * tests/test-xalloc-die.sh (tmpfiles): New file.
77114         setenv, unsetenv: work around various bugs
77115         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
77116         (setenv) [HAVE_SETENV]: Work around bugs.
77117         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
77118         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
77119         for bugs.
77120         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
77121         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
77122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
77123         * modules/stdlib (Makefile.am): Update substitutions.
77124         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
77125         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
77126         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
77127         * modules/setenv-tests: New test.
77128         * modules/unsetenv-tests: Likewise.
77129         * tests/test-setenv.c: New file.
77130         * tests/test-unsetenv.c: Likewise.
77132 2009-11-16  Jim Meyering  <meyering@redhat.com>
77134         version-etc: relax license to LGPLv3+
77135         * modules/version-etc (License): Relax license.
77137         better AC_REQUIRE expanded-before-required-warning avoidance
77138         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
77139         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
77140         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
77141         which is no longer needed.
77143 2009-11-16  Eric Blake  <ebb9@byu.net>
77145         test-freading: clean up temporary file
77146         * tests/test-freading.c (main): Remove file on success, and use
77147         ASSERT more liberally.
77148         Reported by Jim Meyering.
77150 2009-11-16  Jim Meyering  <meyering@redhat.com>
77152         avoid new AC_REQUIRE expanded-before-required warnings
77153         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
77154         merely using it.
77155         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
77156         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
77158 2009-11-15  Simon Josefsson  <simon@josefsson.org>
77160         * tests/test-xalloc-die.c: New file.
77161         * modules/xalloc-die-tests: New file.
77162         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
77163         XFAIL_TESTS so it can be appended by modules.
77165 2009-11-15  Simon Josefsson  <simon@josefsson.org>
77167         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
77168         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
77170 2009-11-14  Eric Blake  <ebb9@byu.net>
77172         fnmatch: avoid compiler warning
77173         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
77174         to silence compiler warning about mismatch signedness in ?:.
77175         Reported by Robert Millan.
77177         intprops: add double-inclusion guard
77178         * lib/intprops.h: Allow idempotent includes.
77179         Suggested by Bruce Korb.
77181         openat: detect Solaris fchownat bug
77182         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
77183         penalizing glibc chownat when only lchownat is broken.
77184         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
77185         trailing slash bugs.
77186         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
77187         * modules/openat-tests (Files): Include more files.
77188         (Depends-on): Add mgetgroups, sleep, stat-time.
77189         (configure.ac): Add additional checks.
77190         (Makefile.am): Build new test.
77191         * tests/test-fchownat.c: New file.
77193         lchown: detect Solaris and FreeBSD bug
77194         * lib/lchown.c (rpl_lchown): Work around bug.
77195         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
77196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77197         * modules/unistd (Makefile.am): Populate it.
77198         * lib/unistd.in.h (lchown): Update declaration.
77199         * doc/posix-functions/lchown.texi (lchown): Document the bug.
77200         * modules/lchown-tests: New file.
77201         * tests/test-lchown.h (test_lchown): Likewise.
77202         * tests/test-lchown.c (main): Likewise.
77204         chown: detect Solaris and FreeBSD bug
77205         * lib/chown.c (rpl_chown): Work around bug.
77206         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
77207         (gl_PREREQ_CHOWN): Delete.
77208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77209         * modules/unistd (Makefile.am): Populate it.
77210         * lib/unistd.in.h (chown): Update declaration.
77211         * lib/lchown.c (chown): Update client.
77212         * modules/lchown (Depends-on): Add lstat.
77213         * doc/posix-functions/chown.texi (chown): Document the bug.
77214         * doc/posix-functions/getgroups.texi (getgroups): Document
77215         getgroups pitfall.
77216         * modules/chown-tests: New file.
77217         * tests/test-chown.h (test_chown): Likewise.
77218         * tests/test-chown.c (main): Likewise.
77220 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
77222         gnulib-tool: correctly detect absence of m4 directories
77223         * gnulib-tool: Avoid extra newline on data passed to wc -l.
77225 2009-11-14  Jim Meyering  <meyering@redhat.com>
77227         maint.mk: Prohibit inclusion of "xalloc.h" without use.
77228         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77230 2009-11-14  John W. Eaton  <jwe@gnu.org>
77232         strftime.h: wrap function declaration in extern "C" block
77233         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
77235 2009-11-13  Eric Blake  <ebb9@byu.net>
77237         getgroups: avoid compiler warning
77238         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
77240         getgroups: work around FreeBSD bug
77241         * lib/getgroups.c (rpl_getgroups): Work around the bug.
77242         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
77243         * doc/posix-functions/getgroups.texi (getgroups): Document it.
77244         * tests/test-getgroups.c (main): Fix buffer overrun.
77246         getgroups: avoid compilation failure
77247         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
77248         * modules/getgroups (Depends-on): Add stdint.
77250 2009-11-13  Jim Meyering  <meyering@redhat.com>
77252         test-getgroups: avoid compilation failure
77253         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
77255 2009-11-13  Eric Blake  <ebb9@byu.net>
77257         mgetgroups: new module, taken from coreutils
77258         * modules/mgetgroups: New file.
77259         * lib/mgetgroups.h: Likewise.
77260         * lib/mgetgroups.c (mgetgroups): Likewise.
77261         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
77262         * MODULES.html.sh (Users and groups): Mention it.
77264         getgroups: don't expose GETGROUPS_T to user
77265         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
77266         an element at a time if GETGROUPS_T is wrong size.
77267         * lib/getugroups.h (getugroups): Change signature.
77268         * lib/unistd.in.h (getgroups): Likewise.
77269         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
77270         signature needs fixing.
77271         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
77272         AC_TYPE_GETGROUPS.
77273         * modules/group-member (Depends-on): Add getgroups.
77274         * lib/group-member.c (group_info, get_group_info): Use gid_t.
77275         (group_member): Rely on getgroups replacement.
77276         * lib/getugroups.c (getugroups): Use gid_t.
77277         * tests/test-getgroups.c (main): Likewise.
77278         * NEWS: Mention the signature change.
77279         * doc/posix-functions/getgroups.texi (getgroups): Mention the
77280         problem with signature.
77281         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
77282         GETGROUPS_T is still useful for setgroups.
77284         getgroups, getugroups: provide stubs for mingw
77285         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
77286         * lib/getugroups.c (getugroups): Likewise.
77287         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
77288         function.  Modernize replacement scheme.
77289         (gl_PREREQ_GETGROUPS): Delete.
77290         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
77291         * modules/getgroups (configure.ac): Declare witness.
77292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
77293         * modules/unistd (Depends-on): Substitute witness.
77294         * lib/unistd.in.h (getgroups): Declare replacement.
77296         getgroups: avoid calling exit
77297         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
77298         drop xalloc.
77299         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
77300         dependencies.
77301         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
77302         exiting, in the rare case of malloc failure.
77304         getgroups: fix logic error
77305         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
77306         has more than 20 groups.
77307         * modules/getgroups-tests: New test.
77308         * tests/test-getgroups.c: New file.
77310 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77312         * tests/test-base64.c: Improve.
77314 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77316         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
77317         Blake <ebb9@byu.net>.
77319 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77321         * tests/test-xvasprintf.c: Add %s%s related checks.
77323 2009-11-12  Eric Blake  <ebb9@byu.net>
77325         version-etc: match standards.texi style
77326         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
77327         and use <> only for URLs.
77329 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
77331         fts: do not fail on a submount during traversal
77332         * lib/fts.c (fts_build): Read the stat info again after opening
77333         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
77334         Original report at http://bugzilla.redhat.com/501848.
77336 2009-11-12  Jim Meyering  <meyering@redhat.com>
77338         bootstrap: sync from coreutils
77339         * build-aux/bootstrap (bootstrap_epilogue): New function.
77340         Use git_modules_config in one more place.  This make bootstrap's
77341         --gnulib-srcdir option more useful for testing.
77343         bootstrap: generalize autoheader check
77344         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
77345         AC_CONFIG_HEADERS.
77347 2009-11-11  Eric Blake  <ebb9@byu.net>
77349         mkfifoat: use new modules for Solaris and BSD bugs
77350         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
77351         * lib/mkfifoat.c (mknodat): Split...
77352         * lib/mknodat.c (mknodat): ...into new file.
77353         * modules/mkfifoat (Files): Ship new file.
77354         (Depends-on): Add mkfifo, mknod.
77355         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
77356         (Depends-on): Add symlink.
77357         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
77358         redundant with test_mkfifo.h.
77359         (do_mkfifoat, do_mknodat): New helpers.
77361         mknod: new module
77362         * modules/mknod: New file.
77363         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
77364         * lib/mknod.c (mknod): Likewise.
77365         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77366         defaults.
77367         * modules/sys_stat (Makefile.am): Substitute them.
77368         * lib/sys_stat.in.h (mknod): Declare replacement.
77369         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77370         Document it.
77371         * doc/posix-functions/mknod.texi (mknod): Likewise.
77372         * modules/mknod-tests: New test.
77373         * tests/test-mknod.c: Likewise.
77375         mkfifo: new module
77376         * modules/mkfifo: New file.
77377         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
77378         * lib/mkfifo.c (mkfifo): Likewise.
77379         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77380         defaults.
77381         * modules/sys_stat (Makefile.am): Substitute them.
77382         * lib/sys_stat.in.h (mkfifo): Declare replacement.
77383         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77384         Document it.
77385         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
77386         * modules/mkfifo-tests: New test.
77387         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
77388         from test-mkfifoat.c.
77389         * tests/test-mkfifo.c: New file.
77391         readlink: detect FreeBSD bug
77392         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
77393         slash on symlink.
77394         * doc/posix-functions/readlink.texi (readlink): Document the bug.
77395         * tests/test-readlink.h (test_readlink): Enhance test.
77397         symlink: detect FreeBSD bug
77398         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
77399         slash on symlink.
77400         * doc/posix-functions/symlink.texi (symlink): Document the bug.
77401         * tests/test-symlink.h (test_symlink): Enhance test.
77403 2009-11-10  Eric Blake  <ebb9@byu.net>
77405         link: detect FreeBSD bug
77406         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
77407         symlink.
77408         * doc/posix-functions/link.texi (link): Document the bug.
77409         * tests/test-link.h (test_link): Enhance test.
77410         * tests/test-linkat.c (main): Update caller.
77412         unlink, remove: detect FreeBSD bug
77413         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
77414         slash on symlink.
77415         * doc/posix-functions/unlink.texi (unlink): Document the bug.
77416         * doc/posix-functions/remove.texi (remove): Likewise.
77417         * tests/test-unlink.h (test_unlink): Enhance test.
77418         * tests/test-remove.c (main): Likewise.
77420 2009-11-09  Eric Blake  <ebb9@byu.net>
77422         rename: detect FreeBSD bug
77423         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
77424         slash on symlink.
77425         * modules/renameat-tests (Depends-on): Add filenamecat.
77426         * tests/test-rename.h (test_rename): Allow one more errno.
77427         * tests/test-renameat.c (main): Likewise.
77428         * doc/posix-functions/rename.texi (rename): Document the bug.
77430         open: detect FreeBSD bug
77431         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
77432         symlink.
77433         * doc/posix-functions/open.texi (open): Document the bug.
77434         * doc/posix-functions/utimes.texi (utimes): Likewise.
77435         * tests/test-open.h (test_open): Add parameters, and test symlink
77436         handling.
77437         * tests/test-open.c (main): Adjust caller.
77438         * tests/test-fcntl-safer.c (main): Likewise.
77439         * modules/open-tests (Depends-on): Add stdbool, symlink.
77440         * modules/fcntl-safer-tests (Depends-on): Likewise.
77441         * tests/test-openat.c (main): Add test-open tests.
77443         stat: detect FreeBSD bug
77444         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
77445         symlink.
77446         * doc/posix-functions/stat.texi (stat): Document the bug.
77447         * tests/test-stat.h (test_stat_func): Add argument.
77448         * tests/test-stat.c (main): Adjust caller.
77449         * tests/test-fstatat.c (main): Likewise.
77450         * modules/stat-tests (Depends-on): Add stdbool, symlink.
77451         Reported by Jim Meyering.
77453 2009-11-09  James Youngman  <jay@gnu.org>
77455         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
77456         * lib/strftime.c: Correct placement of #include "ignore-value.h".
77458 2009-11-08  Jim Meyering  <meyering@redhat.com>
77460         utimens: remove invalid futimesat call
77461         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
77462         It used the file descriptor of the target file as the DIR_FD
77463         parameter and NULL as the file name.  That caused failure with
77464         errno == EFAULT on FreeBSD-8.0-rc2
77466 2009-11-07  Eric Blake  <ebb9@byu.net>
77468         fflush, freadseek: use fseeko, not fseek
77469         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
77470         (clear_ungetc_buffer): Avoid potential problems on large files.
77471         * lib/freadseek.c (freadseek): Likewise.
77472         * modules/freadseek (Depends-on): Add fseeko.
77473         * modules/fseek (configure.ac): Set a witness.
77474         * tests/test-fflush.c (main): Use fseeko.
77475         * tests/test-fpurge.c (fseek): Disable link warning.
77476         * tests/test-freadable.c (fseek): Likewise.
77477         * tests/test-freading.c (fseek): Likewise.
77478         * tests/test-fseeko.c (fseek): Likewise.
77479         * tests/test-ftell.c (fseek): Likewise.
77480         * tests/test-ftello.c (fseek): Likewise.
77481         * tests/test-fwritable.c (fseek): Likewise.
77482         * tests/test-fwriting.c (fseek): Likewise.
77484 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77486         * modules/memchr (Depends-on): Drop getpagesize dependency.
77488 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77490         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
77491         Reported by Ludovic Courtès.
77492         * build-aux/pmccabe2html: Improve example usage.
77493         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
77495 2009-11-06  Jim Meyering  <meyering@redhat.com>
77497         do-release-commit-and-tag: New module.
77498         Automate the release-commit and tag process.
77499         * build-aux/do-release-commit-and-tag: New script, from coreutils.
77500         * modules/do-release-commit-and-tag: New file.
77501         * MODULES.html.sh (Support for maintaining and releasing): Add it.
77503 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77505         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
77506         because test-select.c uses inet_pton.
77508 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77510         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
77511         GETADDRINFO_LIB.  Bump serial number.
77512         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
77513         Suggested by Eric Blake <ebb9@byu.net>.
77515 2009-11-05  Eric Blake  <ebb9@byu.net>
77517         strtod: detect darwin bug
77518         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
77519         Reported by Leo Davis.
77521         freopen-safer: new module
77522         * modules/freopen-safer: New module.
77523         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
77524         * lib/freopen-safer.c (freopen_safer): New file.
77525         * lib/stdio-safer.h (freopen_safer): New declaration.
77526         * lib/stdio--.h (freopen): New override.
77527         * MODULES.html.sh (File stream based Input/Output): Mention it.
77528         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
77529         freopen-safer module.
77530         * doc/posix-functions/stderr.texi (stderr): Likewise.
77531         * doc/posix-functions/stdin.texi (stdin): Likewise.
77532         * doc/posix-functions/stdout.texi (stdout): Likewise.
77533         * modules/freopen-safer-tests: New test.
77534         * tests/test-reopen-safer.c: New file.
77536 2009-11-05  Jim Meyering  <meyering@redhat.com>
77538         maint.mk: Prohibit inclusion of "close-stream.h" without use.
77539         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77541 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77543         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
77545 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77547         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
77549 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77551         Fix link error.
77552         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77553         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77555 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77557         * tests/test-func.c: Also test value of __func__.
77559 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77561         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
77562         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
77564 2009-11-05  Bruno Haible  <bruno@clisp.org>
77566         Fix link error.
77567         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77568         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77569         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
77571 2009-11-05  Bruno Haible  <bruno@clisp.org>
77573         Tests for module 'inet_pton'.
77574         * modules/inet_pton-tests: New file.
77575         * tests/test-inet_pton.c: New file.
77577 2009-11-05  Bruno Haible  <bruno@clisp.org>
77579         Tests for module 'inet_ntop'.
77580         * modules/inet_ntop-tests: New file.
77581         * tests/test-inet_ntop.c: New file.
77583 2009-11-04  Eric Blake  <ebb9@byu.net>
77585         stdlib-safer: wrap all mkstemp variants
77586         * modules/mkostemp (configure.ac): Set witness.
77587         * modules/mkostemps (configure.ac): Likewise.
77588         * modules/mkstemps (configure.ac): Likewise.
77589         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
77590         (mkstemps_safer): Wrap more functions.
77591         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
77592         wrapping.
77593         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
77594         (mkstemps_safer): Implement the wrappers.
77596         mkstemps, mkostemps: new modules
77597         * modules/mkostemps: New module.
77598         * modules/mkstemps: Likewise.
77599         * lib/mkostemps.c (mkostemps): New file.
77600         * lib/mkstemps.c (mkstemps): Likewise.
77601         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
77602         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
77603         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
77604         * modules/stdlib (Makefile.am): Substitute them.
77605         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
77606         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
77607         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
77608         * doc/gnulib.texi (Glibc stdlib.h): Include them.
77609         * MODULES.html.sh (File system functions): Mention them.
77611         tempname: resync from glibc
77612         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
77613         same values for __GT_FILE as glibc.  Abort even when assertions
77614         are disabled.
77615         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
77616         match its value otherwise.  Allow idempotent inclusion.
77617         * lib/mkdtemp.c (mkdtemp): Adjust caller.
77618         * lib/mkostemp.c (mkostemp): Likewise.
77619         * lib/mkstemp.c (mkstemp): Likewise.
77620         * lib/tmpfile.c (tmpfile): Likewise.
77621         * NEWS: Document this.
77623         utimens: fix use of futimens on older Linux
77624         * lib/utimens.c (fdutimens): Use updated, rather than original,
77625         timespec to avoid bug in older Linux kernel.
77626         Reported by Simon Josefsson.
77628 2009-11-04  Bruno Haible  <bruno@clisp.org>
77630         Make num_processors more flexible and consistent.
77631         * lib/nproc.h (enum nproc_query): New type.
77632         (num_processors): Add a 'query' argument.
77633         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
77634         (num_processors): Add a 'query' argument. Test the value of the
77635         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
77636         mingw, count the number of CPUs available for the current process.
77637         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
77638         Check for sched_getaffinity and sched_getaffinity_np.
77639         * modules/nproc (Depends-on): Add c-ctype, extensions.
77640         * NEWS: Mention the change.
77642 2009-11-03  Bruno Haible  <bruno@clisp.org>
77644         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
77646 2009-11-03  Jim Meyering  <meyering@redhat.com>
77648         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
77649         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
77650         if it is defined.
77652 2009-11-02  Eric Blake  <ebb9@byu.net>
77654         mktime, timegm: share common declaration
77655         * lib/mktime-internal.h: New file.
77656         * lib/mktime.c: Use it rather than open-coding a declaration.
77657         * lib/timegm.c: Likewise.
77658         * modules/mktime (Files): Ship it.
77659         * modules/timegm (Files): Likewise.
77660         Suggested by Bruno Haible.
77662         test-update-copyright: update test to match script changes
77663         * tests/test-update-copyright.sh: Avoid hard-coding perl
77664         location.  Don't update *.bak created by earlier runs.
77666 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77667             Simon Josefsson  <simon@josefsson.org>
77668             Bruno Haible  <bruno@clisp.org>
77670         Fix link error on Solaris 8.
77671         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
77672         also in libnsl. Define also INET_PTON_LIB.
77673         * modules/inet_pton (Link): New section.
77675 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77676             Bruno Haible  <bruno@clisp.org>
77678         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
77679         * modules/inet_ntop (Link): New section.
77680         Reported by Boyan Kasarov <bkasarov@gmail.com>.
77682 2009-11-02  Eric Blake  <ebb9@byu.net>
77684         maint: avoid compiler warnings in m4 macros
77685         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
77686         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
77688 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77690         * m4/pmccabe2html.m4: Remove file.
77691         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
77692         function.  Change maintainer.
77693         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
77694         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
77695         Courtès).
77697 2009-10-31  Eric Blake  <ebb9@byu.net>
77699         fseeko: fix m4 regression
77700         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
77701         regression from 2009-10-27.
77702         Reported by Ralf Wildenhues.
77704 2009-10-31  Jim Meyering  <meyering@redhat.com>
77706         inttostr: aesthetics and improved (compile-time) safety
77707         Define inttype_is_signed rather than inttype_is_unsigned,
77708         since the sole use is via "#if inttype_is_signed".
77709         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
77710         inttype_is_unsigned.
77711         * lib/offtostr.c (inttype_is_signed): Likewise.
77712         * lib/uinttostr.c (inttype_is_signed): Likewise.
77713         * lib/umaxtostr.c (inttype_is_signed): Likewise.
77714         * lib/inttostr.c (inttostr): Use verify to cross-check the
77715         inttype_is_signed value and the signedness of the actual type.
77716         * modules/inttostr (Depends-on): Add verify.
77718 2009-10-30  Eric Blake  <ebb9@byu.net>
77720         build: avoid compiler warnings
77721         * lib/fchmodat.c (lchmod): Mark unused variables.
77722         * lib/getopt.c (_getopt_initialize): Likewise.
77723         * lib/mktime.c (__mktime_internal): Provide prototype.
77724         * lib/inttostr.c (inttostr): Avoid compiler warning even with
77725         older gcc that do not understand #pragma GCC diagnostic.
77726         * lib/uinttostr.c (inttype_is_unsigned): Define.
77727         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
77729 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
77731         stat: fix compilation on AIX
77732         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
77733         only see struct stat64.
77735 2009-10-30  Eric Blake  <ebb9@byu.net>
77737         exclude: make more robust
77738         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
77739         rather than masking a coding bug.
77740         Suggested by Bruno Haible.
77742 2009-10-30  Jim Meyering  <meyering@redhat.com>
77744         perl scripts: remove #!/usr/bin/perl in favor of more portable...
77745         Rather than putting #!/usr/bin/perl on the first line,
77746         start with a variant of what's recommended by "man perlrun" that
77747         invokes the first "perl" program from your shell's search path.
77748         * build-aux/gitlog-to-changelog: Replace #!... as above.
77749         Add a "Local Variables" perl mode setting.
77750         Prompted by a patch from Ludovic Courtès.
77751         Improved by Eric Blake.
77752         * build-aux/useless-if-before-free: Likewise.
77753         * build-aux/announce-gen: Likewise.
77754         * build-aux/update-copyright: Likewise.
77756 2009-10-29  Eric Blake  <ebb9@byu.net>
77758         filenamecat-lgpl: adjust clients
77759         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
77760         filenamecat.
77761         * modules/renameat (Depends-on): Likewise.
77763         filenamecat: split into filenamecat-lgpl
77764         * modules/filenamecat-lgpl: New module.
77765         * modules/filenamecat (Files): Move library-safe files into
77766         filenamecat-lgpl.
77767         (Depends-on): Add filenamecat-lgpl.
77768         (configure.ac): Declare witness.
77769         * lib/filenamecat.h (file_name_concat): Only declare when using
77770         GPL module.
77771         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
77772         Move...
77773         * lib/filenamecat-lgpl.c: ...into new file.
77774         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
77775         (gl_FILE_NAME_CONCAT): Use it.
77776         * MODULES.html.sh (File system functions): Mention new module.
77778         argp: avoid memory leak
77779         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
77780         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
77781         base_name, since the latter malloc()s and can call exit().
77782         Leak introduced 2006-07-03.
77784         dirname-lgpl: adjust clients that don't need full dirname
77785         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
77786         * modules/filenamecat (Depends-on): Likewise.
77787         * modules/linkat (Depends-on): Likewise.
77788         * modules/mkancesdirs (Depends-on): Likewise.
77789         * modules/mkdir (Depends-on): Likewise.
77790         * modules/openat (Depends-on): Likewise.
77791         * modules/savewd (Depends-on): Likewise.
77792         * modules/rename (Depends-on): Likewise.
77793         (License): Relax license.
77794         * modules/mkdir-tests (Depends-on): Drop progname.
77795         (Makefile.am): Delete unneeded LDADD.
77796         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
77798         dirname: split into dirname-lgpl
77799         * modules/dirname-lgpl: New module.
77800         * modules/dirname (Files): Move library-safe files into
77801         dirname-lgpl.
77802         (Depends-on): Add dirname-lgpl.
77803         (configure.ac): Declare witness.
77804         * modules/double-slash-root (License): Relax license.
77805         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
77806         module.
77807         * lib/dirname.c (dir_len, mdir_name): Move...
77808         * lib/dirname-lgpl.c: ...into new file.
77809         * lib/basename.c (last_component, base_len): Move...
77810         * lib/basename-lgpl.c: ...into new file.
77811         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
77812         (gl_DIRNAME): Use it.
77813         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
77814         Mention new module.
77815         * modules/dirname-tests (Depends-on): Add progname.
77816         * tests/test-dirname.c (program_name): Delete.
77818         mkdir: make safe for libraries
77819         * modules/mkdir (Depends-on): Drop xalloc.
77820         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
77821         exit.
77823         tests: avoid some compiler warnings
77824         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
77825         literals.
77826         * tests/test-memchr.c (main): Avoid type mismatch.
77827         * tests/test-arpa_inet.c (main): Avoid unused parameters.
77828         * tests/test-base64.c (main): Likewise.
77829         * tests/test-getdelim.c (main): Likewise.
77830         * tests/test-gethostname.c (main): Likewise.
77831         * tests/test-getline.c (main): Likewise.
77832         * tests/test-netinet_in.c (main): Likewise.
77833         * tests/test-select.c (open_server_socket, main): Likewise.
77834         * tests/test-select-stdin.c (main): Likewise.
77835         * tests/test-sockets.c (main): Likewise.
77836         * tests/test-strsignal.c (main): Likewise.
77837         * tests/test-sys_select.c (main): Likewise.
77838         * tests/test-sys_socket.c (main): Likewise.
77839         * tests/test-u64.c (main): Likewise.
77840         * tests/test-xfprintf-posix.c (main): Likewise.
77841         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
77843         sockets: avoid compiler warning
77844         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
77846         maint: detect usage(1) and other suspicious exits
77847         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
77849 2009-10-29  Jim Meyering  <meyering@redhat.com>
77851         timespec: long-to-int truncation could make timespec_cmp malfunction
77852         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
77853         a multiple of 2^32 nanoseconds as no difference.
77855 2009-10-28  Jim Meyering  <meyering@redhat.com>
77857         fprintftime: wrap macro code argument in "do {...} while(0)"
77858         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
77859         cpy macro must be a statement that can be followed by a semicolon.
77860         Now that the else clause contains a comment and is hence longer
77861         than one line, I require curly braces.  That in turn requires
77862         that we wrap this code block in the standard do...while(0).
77864         fprintftime: remove stray semicolon from previous change
77865         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
77867         fprintftime: avoid a warning about ignored fwrite return value
77868         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
77869         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
77870         that is unsafe.
77871         * modules/fprintftime (Depends-on): Add ignore-value.
77873         exclude: avoid an unwarranted warning
77874         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
77876 2009-10-27  Eric Blake  <ebb9@byu.net>
77878         fseek: avoid compilation failure when fflush is replaced
77879         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
77880         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
77881         module is in use.
77882         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
77883         module is not in use; since REPLACE_FSEEK worked otherwise.
77884         (GNULIB_FTELLO): Likewise for ftell.
77885         Reported by Ian Beckwith and others.
77887 2009-10-27  Bruno Haible  <bruno@clisp.org>
77889         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
77890         Reported by Jim Meyering.
77892 2009-10-27  Jim Meyering  <jim@meyering.net>
77893             Bruno Haible  <bruno@clisp.org>
77895         Avoid warning despite dropping the return value of fwrite.
77896         * lib/unicodeio.c: Include ignore-value.h.
77897         (fwrite_success_callback): Explicitly ignore fwrite's return value.
77898         * modules/unicodeio (Depends-on): Add ignore-value.
77900 2009-10-26  Eric Blake  <ebb9@byu.net>
77902         areadlinkat: fix fallback path
77903         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
77904         pointer and zero.
77906 2009-10-22  Pádraig Brady  <P@draigBrady.com>
77908         Use a better IO block size for modern systems
77909         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
77910         * lib/md2.c: Likewise.
77911         * lib/md4.c: Likewise.
77912         * lib/md5.c: Likewise.
77913         * lib/sha1.c: Likewise.
77914         * lib/sha256.c: Likewise.
77915         * lib/sha512.c: Likewise.
77917 2009-10-22  Eric Blake  <ebb9@byu.net>
77919         tests: avoid several compiler warnings
77920         * tests/test-getcwd.c (main): Avoid buffer underflow.
77921         * tests/test-getdate.c (main): String literals are not safe with
77922         putenv, so use setenv.  Declare unused argument.
77923         * modules/getdate-tests (Depends-on): Add setenv.
77924         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
77925         problems with string literals in char *.
77926         * tests/test-hash.c (main): Avoid shadowing declaration.
77927         (insert_new): Treat string literals as char const *.
77928         * tests/test-getopt.h (test_getopt): Likewise.
77929         (getopt_loop): Alter types to minimize casting elsewhere.
77930         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
77931         (test_getopt_long_posix): Likewise.
77932         (do_getopt_long): Add wrapper to minimize casting.
77933         * tests/test-atexit.c (clear_temp_file): Use void.
77934         * tests/test-areadlink-with-size.c (main): Declare unused
77935         arguments.
77936         * tests/test-areadlink.c (main): Likewise.
77937         * tests/test-areadlinkat-with-size.c (main): Likewise.
77938         * tests/test-areadlinkat.c (main): Likewise.
77939         * tests/test-canonicalize-lgpl.c (main): Likewise.
77940         * tests/test-canonicalize.c (main): Likewise.
77941         * tests/test-dirent-safer.c (main): Likewise.
77942         * tests/test-dirname.c (main): Likewise.
77943         * tests/test-dup2.c (main): Likewise.
77944         * tests/test-fchdir.c (main): Likewise.
77945         * tests/test-fcntl-h.c (main): Likewise.
77946         * tests/test-fcntl-safer.c (main): Likewise.
77947         * tests/test-fdopendir.c (main): Likewise.
77948         * tests/test-fdutimensat.c (main): Likewise.
77949         * tests/test-fflush.c (main): Likewise.
77950         * tests/test-filenamecat.c (main): Likewise.
77951         * tests/test-filevercmp.c (main): Likewise.
77952         * tests/test-fopen-safer.c (main): Likewise.
77953         * tests/test-fopen.c (main): Likewise.
77954         * tests/test-fpending.c (main): Likewise.
77955         * tests/test-fpurge.c (main): Likewise.
77956         * tests/test-freading.c (main): Likewise.
77957         * tests/test-fstatat.c (main): Likewise.
77958         * tests/test-fsync.c (main): Likewise.
77959         * tests/test-futimens.c (main): Likewise.
77960         * tests/test-getndelim2.c (main): Likewise.
77961         * tests/test-gettimeofday.c (main): Likewise.
77962         * tests/test-getopt.c (main): Likewise.
77963         * tests/test-i-ring.c (main): Likewise.
77964         * tests/test-inttypes.c (main): Likewise.
77965         * tests/test-link.c (main): Likewise.
77966         * tests/test-lstat.c (main): Likewise.
77967         * tests/test-math.c (main): Likewise.
77968         * tests/test-md5.c (main): Likewise.
77969         * tests/test-memchr2.c (main): Likewise.
77970         * tests/test-memrchr.c (main): Likewise.
77971         * tests/test-mkdir.c (main): Likewise.
77972         * tests/test-mkdirat.c (main): Likewise.
77973         * tests/test-mkfifoat.c (main): Likewise.
77974         * tests/test-open.c (main): Likewise.
77975         * tests/test-openat-safer.c (main): Likewise.
77976         * tests/test-openat.c (main): Likewise.
77977         * tests/test-quotearg.c (main): Likewise.
77978         * tests/test-rawmemchr.c (main): Likewise.
77979         * tests/test-readlink.c (main): Likewise.
77980         * tests/test-remove.c (main): Likewise.
77981         * tests/test-rename.c (main): Likewise.
77982         * tests/test-renameat.c (main): Likewise.
77983         * tests/test-rmdir.c (main): Likewise.
77984         * tests/test-sha1.c (main): Likewise.
77985         * tests/test-signal.c (main): Likewise.
77986         * tests/test-sigaction.c (main): Likewise.
77987         * tests/test-stat.c (main): Likewise.
77988         * tests/test-stat-time.c (main): Likewise.
77989         * tests/test-stddef.c (main): Likewise.
77990         * tests/test-stdint.c (main): Likewise.
77991         * tests/test-stdio.c (main): Likewise.
77992         * tests/test-stdlib.c (main): Likewise.
77993         * tests/test-strchrnul.c (main): Likewise.
77994         * tests/test-strerror.c (main): Likewise.
77995         * tests/test-string.c (main): Likewise.
77996         * tests/test-strtod.c (main): Likewise.
77997         * tests/test-strverscmp.c (main): Likewise.
77998         * tests/test-symlink.c (main): Likewise.
77999         * tests/test-symlinkat.c (main): Likewise.
78000         * tests/test-sys_stat.c (main): Likewise.
78001         * tests/test-sys_time.c (main): Likewise.
78002         * tests/test-time.c (main): Likewise.
78003         * tests/test-unistd.c (main): Likewise.
78004         * tests/test-unlink.c (main): Likewise.
78005         * tests/test-unlinkat.c (main): Likewise.
78006         * tests/test-utimens.c (main): Likewise.
78007         * tests/test-utimensat.c (main): Likewise.
78008         * tests/test-version-etc.c (main): Likewise.
78009         * tests/test-wchar.c (main): Likewise.
78010         * tests/test-wctype.c (main): Likewise.
78011         * tests/test-xprintf-posix.c (main): Likewise.
78012         * tests/test-posixtm.c (main): Likewise.
78013         (STREQ): Delete unused macro.
78014         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
78015         shadowed variables.
78016         * tests/test-memchr.c (main): Likewise.
78018 2009-10-21  Eric Blake  <ebb9@byu.net>
78020         areadlinkat: avoid failure on older glibc
78021         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
78022         rather than mis-comparing 0 against FUNC_RESULT of char*.
78024 2009-10-21  Bruno Haible  <bruno@clisp.org>
78026         * modules/stpncpy (License): Relicense under LGPLv2+.
78027         Reported by David Lutterkort <lutter@redhat.com>.
78029 2009-10-20  Eric Blake  <ebb9@byu.net>
78031         utimensat: work around Solaris 9 bug
78032         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
78033         has trailing slash bugs.
78034         * tests/test-lutimens.h (test_lutimens): Enhance test.
78035         * tests/test-utimens.h (test_utimens): Likewise.
78036         * doc/posix-functions/utime.texi (utime): Enhance documentation.
78037         * doc/posix-functions/utimes.texi (utimes): Likewise.
78038         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78039         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
78040         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
78041         * doc/posix-functions/futimens.texi (futimens): Likewise.
78043         fdutimensat: new module
78044         * modules/fdutimensat: New file.
78045         * lib/fdutimensat.c (fdutimensat): Likewise.
78046         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
78047         * MODULES.html.sh (File system functions): Mention module.
78048         * modules/fdutimensat-tests: New test.
78049         * tests/test-fdutimensat.c: Likewise.
78051         doc: regenerate INSTALL
78052         * doc/INSTALL: Reflect recent autoconf update.
78053         * doc/INSTALL.ISO: Likewise.
78054         * doc/INSTALL.UTF-8: Likewise.
78056 2009-10-20  Pádraig Brady  <P@draigBrady.com>
78058         acl: warn if ACL support is not detected
78059         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
78061 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
78063         * lib/nproc.h: Add extern "C" block for C++.
78065 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
78066             Bruno Haible  <bruno@clisp.org>
78068         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
78069         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
78070         * doc/posix-functions/isalpha.texi: Likewise.
78071         * doc/posix-functions/isblank.texi: Likewise.
78072         * doc/posix-functions/iscntrl.texi: Likewise.
78073         * doc/posix-functions/isdigit.texi: Likewise.
78074         * doc/posix-functions/isgraph.texi: Likewise.
78075         * doc/posix-functions/islower.texi: Likewise.
78076         * doc/posix-functions/isprint.texi: Likewise.
78077         * doc/posix-functions/ispunct.texi: Likewise.
78078         * doc/posix-functions/isspace.texi: Likewise.
78079         * doc/posix-functions/isupper.texi: Likewise.
78080         * doc/posix-functions/isxdigit.texi: Likewise.
78082 2009-10-18  Bruno Haible  <bruno@clisp.org>
78084         Tests for module 'isblank'.
78085         * modules/isblank-tests: New file.
78086         * tests/test-isblank.c: New file.
78088         New module 'isblank'.
78089         * lib/isblank.c: New file.
78090         * m4/isblank.m4: New file.
78091         * modules/isblank: New file.
78092         * doc/posix-functions/isblank.texi: Mention the new module.
78094 2009-10-18  Bruno Haible  <bruno@clisp.org>
78096         New module 'ctype'.
78097         * lib/ctype.in.h: New file.
78098         * m4/ctype.m4: New file.
78099         * modules/ctype: New file.
78100         * doc/posix-headers/ctype.texi: Mention the new module.
78102 2009-10-18  Jim Meyering  <meyering@redhat.com>
78104         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
78105         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
78106         right after its initialization, rather than farther down.
78107         Keeping these in close proximity makes it easier to ensure
78108         that each such variable is initialized.  E.g.,
78110             LIB_CLOCK_GETTIME=
78111             AC_SUBST([LIB_CLOCK_GETTIME])
78113         This change also increments these serial numbers.
78114         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
78115         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
78116         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78118 2009-10-18  Bruno Haible  <bruno@clisp.org>
78120         Don't let environment variables perturb build.
78121         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
78122         (gl_PREREQ_GETHRXTIME): ... not here.
78124 2009-10-18  Bruno Haible  <bruno@clisp.org>
78126         Avoid symlink attack in localcharset module.
78127         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
78128         (O_NOFOLLOW): Define fallback.
78129         (get_charset_aliases): Don't open the file if it is a symbolic link.
78130         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
78131         gl_FCNTL_H.
78132         (gl_FCNTL_H): Require it.
78133         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
78134         * modules/localcharset (Files): Add m4/fcntl_h.m4.
78135         Reported by Fergal Glynn <fglynn@veracode.com>.
78137 2009-10-18  Bruno Haible  <bruno@clisp.org>
78139         Implement nproc for mingw.
78140         * lib/nproc.c: Include <windows.h>
78141         (num_processors): On native Windows platforms, try GetSystemInfo.
78143 2009-10-18  Bruno Haible  <bruno@clisp.org>
78145         Implement nproc for IRIX.
78146         * lib/nproc.c: Include <sys/sysmp.h>.
78147         (num_processors): On IRIX systems, try sysmp.
78148         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
78150 2009-10-18  Bruno Haible  <bruno@clisp.org>
78152         Implement nproc for HP-UX.
78153         * lib/nproc.c: Include <sys/pstat.h>
78154         (num_processors): On HP-UX systems, try pstat_getdynamic.
78155         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
78156         pstat_getdynamic.
78158 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
78159             Bruno Haible  <bruno@clisp.org>
78161         Implement nproc for NetBSD, OpenBSD.
78162         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
78163         (ARRAY_SIZE): New macro.
78164         (num_processors): On BSD systems, try sysctl of HW_NCPU.
78165         * m4/nproc.m4: New file.
78166         * modules/nproc (Files): Add m4/nproc.m4.
78167         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
78168         (Makefile.am): Instead, augment lib_SOURCES.
78170 2009-10-18  Bruno Haible  <bruno@clisp.org>
78172         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
78173         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
78174         sys/param.h.
78176 2009-10-16  Eric Blake  <ebb9@byu.net>
78178         utimensat: new module
78179         * modules/utimensat: New file.
78180         * lib/utimensat.c (utimensat): Likewise.
78181         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
78182         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
78183         so we can work around Linux bugs.
78184         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78185         * modules/sys_stat (Makefile.am): Substitute them.
78186         * lib/sys_stat.in.h (utimensat): Declare it.
78187         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78188         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78189         * modules/utimensat-tests: New test.
78190         * tests/test-utimensat.c: Likewise.
78192         utimens: let lutimens work on non-symlinks
78193         * lib/utimens.c (lutimens): Fall back to utimens rather than
78194         failing with ENOSYS, when file is not a symlink.
78195         (utimens): Reduce redirection.
78196         * tests/test-lutimens.h (test_lutimens): Update test to cover
78197         non-symlinks.
78198         * tests/test-utimens.h (test_utimens): Update test to cover
78199         symlinks.
78200         * tests/test-utimens.c (main): Update caller.
78202         utimens: cache whether utimensat syscall works
78203         * lib/utimens.c (utimensat_works_really): New cache variable.
78204         (fdutimens, lutimens): Use it to avoid failing syscall.
78206         test-stat-time, test-utimens: improve portability
78207         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
78208         ext4 on alpha, and for cygwin.
78209         * tests/test-utimens-common.h: New file.
78210         (nap): Factor delays into single function.
78211         * tests/test-lutimens.h (test_lutimens): Use new header.
78212         * tests/test-futimens.h (test_futimens): Likewise.
78213         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
78214         timestamps to occur from same machine, as was done previously for
78215         test_utimens.
78216         * modules/utimens-tests (Files): Ship new file.
78217         * modules/futimens-tests (Files): Likewise.
78218         Reported in part by Jim Meyering.
78220         sys_stat: sort replacement declarations
78221         * lib/sys_stat.in.h: Sort declarations.
78222         * lib/futimens.c (futimens): Fix typo.
78224 2009-10-15  Jim Meyering  <meyering@redhat.com>
78226         don't let environment settings perturb build
78227         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
78228         could cause a configure-time and/or build-time malfunction.
78229         Typically, a configure-time function-in-library test is performed
78230         via code like this:
78232           LIB_VAR=
78233           AC_SUBST([LIB_VAR])
78234           prefix_saved_LIBS=$LIBS
78235             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
78236                        [test "$ac_cv_search_FUNC" = "none required" ||
78237                         LIB_VAR=$ac_cv_search_FUNC])
78238           LIBS=$prefix_saved_LIBS
78240         However, in each of the files affected by this change, the LIB_VAR=
78241         initialization was omitted.  Thus, when set in the environment, its
78242         value would propagate into generated Makefiles when FUNC is not found
78243         in LIB_NAME.
78244         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
78245         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
78246         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78248 2009-10-14  Eric Blake  <ebb9@byu.net>
78250         fchdir: avoid infinite recursion in mingw
78251         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
78252         recursing.
78254         test-stat-time: port to mingw
78255         * tests/test-stat-time.c (force_unlink): Return a value.
78256         (test_ctime) [W32]: Fix compilation error.
78257         (nap): Don't call usleep with too large an argument.  Use
78258         force_unlink.
78259         * doc/pastposix-functions/usleep.texi (usleep): Document the
78260         portability issue.
78262 2009-10-13  Jim Meyering  <meyering@redhat.com>
78264         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
78265         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
78266         * modules/pipe-filter-ii: Likewise.
78267         * modules/sys_socket-tests: Likewise.
78268         * modules/tsearch-tests: Likewise.
78269         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
78270         (check): Depend on it.
78272 2009-10-12  Eric Blake  <ebb9@byu.net>
78274         utimens-tests: port to NFS file systems
78275         * tests/test-utimens.h (test_utimens): Refactor utimecmp
78276         comparisons to avoid spurious failures from timestamp drift
78277         between NFS machines.
78279 2009-10-12  Eric Blake  <ebb9@byu.net>
78281         stat-time-tests: minor cleanups
78282         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
78283         * tests/test-stat-time.c (nap): Separate assignment from call.
78284         Suggested by Paolo Bonzini and Bruno Haible.
78286         sys_stat: guarantee struct timespec
78287         * lib/sys_stat.in.h (includes): Always include <time.h>
78288         * modules/sys_stat (Depends-on): Add time.
78289         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
78290         mode_t permission values.
78291         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
78292         get at subsecond timestamps.
78294 2009-10-10  Eric Blake  <ebb9@byu.net>
78296         futimens: new module
78297         * modules/futimens: New file.
78298         * lib/futimens.c (futimens): Likewise.
78299         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
78300         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
78301         we can work around Linux bugs.
78302         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78303         * modules/sys_stat (Makefile.am): Substitute them.
78304         * lib/sys_stat.in.h (futimens): Declare it.
78305         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78306         * doc/posix-functions/futimens.texi (futimens): Likewise.
78307         * modules/futimens-tests: New test.
78308         * tests/test-futimens.c: Likewise.
78310         utimens: introduce fdutimens
78311         * lib/utimens.h (fdutimens): New prototype.
78312         * lib/utimens.c (gl_futimens): Move guts...
78313         (fdutimens): ...to new interface.
78314         * tests/test-utimens.c (do_fdutimens): Use it.
78316         utimens: add UTIME_NOW and UTIME_OMIT support
78317         * lib/utimens.c (validate_timespec, update_timespec): New helper
78318         functions.
78319         (gl_futimens, lutimens): Use them.
78320         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
78321         stdbool, sys_stat.
78322         (Link): Mention resulting library dependency.
78323         * modules/utimecmp (Link): Likewise.
78324         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
78325         (Makefile.am): Pick up library dependency.
78326         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
78327         definition.
78328         * tests/test-sys_stat.c: Test the definitions.
78329         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
78330         * NEWS: Document library dependency.
78332         utimecmp: support symlink timestamps
78333         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
78334         hashing when possible.  Use pathconf when available.
78335         (SYSCALL_RESOLUTION): Recognize tighter resolution.
78336         * modules/utimecmp (Depends-on): Add lstat.
78338         utimens: add lutimens interface
78339         * lib/utimens.c (lutimens): New function.
78340         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
78341         * lib/utimens.h (lutimens): Declare new interface.
78342         * tests/test-utimens.c (main): Enhance test.
78343         * tests/test-lutimens.h (test_lutimens): New file.
78344         * modules/utimens-tests (Files): Distribute it.
78345         (Depends-on): Add symlink.
78346         (configure.ac): Check for usleep.
78348         utimens: validate futimens usage
78349         * lib/utimens.c (gl_futimens): Require valid fd up front, using
78350         fewer syscalls on failure later on.  Avoid compiler warning on
78351         mingw.
78352         * modules/utimens (Depends-on): Add dup2.
78354         utimens: add test
78355         * modules/utimens-tests: New test.
78356         * tests/test-utimens.h: New file.
78357         * tests/test-futimens.h: Likewise.
78358         * tests/test-utimens.c: Likewise.
78360         doc: mention timestamp portability issues
78361         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
78362         instead.
78363         * doc/posix-functions/utime.texi (utime): Likewise.
78364         * doc/posix-functions/utimes.texi (utimes): Likewise.
78365         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
78366         instead.
78367         * doc/posix-functions/futimens.texi (futimens): Mention utimens
78368         module.
78369         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78370         Mention weakness with symlink timestamps.
78371         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
78372         to utimensat/futimens instead.
78373         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
78375         test-dup2: enhance test
78376         * tests/test-dup2.c (main): Also check AT_FDCWD.
78378         test-stat-time: avoid more spurious failures
78379         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
78380         xfs; and avoid race if the two timestamps cross quantization edge.
78382         relocatable: prefer 'file system' over 'filesystem'
78383         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
78384         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
78385         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
78386         * doc/relocatable.texi (Enabling Relocatability): Likewise.
78387         * lib/relocatable.c (compute_curr_prefix): Likewise.
78389 2009-10-10  Jim Meyering  <meyering@redhat.com>
78391         stat-time-tests: check for the usleep function
78392         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
78394 2009-10-10  Bruno Haible  <bruno@clisp.org>
78396         * modules/xnanosleep: Put the Link section after the Include section.
78398 2009-10-09  Eric Blake  <ebb9@byu.net>
78400         dup2: work around FreeBSD 6.1 bug
78401         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
78402         * doc/posix-functions/dup2.texi (dup2): Document it.
78403         Reported by Nelson H. F. Beebe and Jim Meyering.
78405         test-stat-time: port to buggy NFS clients
78406         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
78407         (test_ctime): Also skip test if mtime and ctime are skewed.
78409         maint: prefer 'file system' over 'filesystem'
78410         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
78411         * doc/posix-functions/lstat.texi (lstat): Likewise.
78412         * lib/file-has-acl.c (file_has_acl): Likewise.
78413         * lib/fwriteerror.c [TEST]: Likewise.
78414         * tests/test-areadlink.h (test_areadlink): Likewise.
78415         * tests/test-areadlinkat-with-size.c (main): Likewise.
78416         * tests/test-areadlinkat.c (main): Likewise.
78417         * tests/test-canonicalize-lgpl.c (main): Likewise.
78418         * tests/test-canonicalize.c (main): Likewise.
78419         * tests/test-fstatat.c (main): Likewise.
78420         * tests/test-linkat.c (main): Likewise.
78421         * tests/test-lstat.h (test_lstat_func): Likewise.
78422         * tests/test-mkdir.h (test_mkdir): Likewise.
78423         * tests/test-readlink.h (test_readlink): Likewise.
78424         * tests/test-remove.c (main): Likewise.
78425         * tests/test-rename.h (test_rename): Likewise.
78426         * tests/test-renameat.c (main): Likewise.
78427         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78428         * tests/test-symlink.h (test_symlink): Likewise.
78429         * tests/test-symlinkat.c (main): Likewise.
78430         * tests/test-unlink.h (test_unlink_func): Likewise.
78431         * tests/test-unlinkat.c (main): Likewise.
78433         maint: make realtime library usage explicit
78434         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
78435         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
78436         * modules/settime (Link): Likewise.
78437         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
78439         test-stat-time: speed up execution
78440         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
78441         warning on mingw.
78442         (nap): New helper function.
78443         (prepare_test): Use it to reduce sleep time.
78444         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
78445         execution.
78446         * modules/stat-time-tests (configure.ac): Check for usleep.
78448 2009-10-09  Jim Meyering  <meyering@redhat.com>
78450         selinux-h: always use getfilecon wrappers
78451         * lib/getfilecon.c: New file.
78452         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
78453         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
78454         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
78455         (fgetfilecon): Provide a stub.
78456         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
78457         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
78458         file unconditionally.
78459         When <selinux/selinux.h> is found, arrange to use wrappers.
78460         * modules/selinux-h (Files): Add getfilecon.c.
78461         (Makefile.am): Substitute include-next-related bits
78462         into the now-always-generated selinux/selinux.h file.
78463         * doc/glibc-functions/lgetfilecon.texi: New file.
78464         * doc/glibc-functions/fgetfilecon.texi: New file.
78465         * doc/glibc-functions/getfilecon.texi: New file.
78466         * doc/glibc-functions/getfilecon-desc.texi: New file.
78467         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
78468         which to pull in the new files.
78469         * MODULES.html.sh (Misc): Add selinux-h.
78471 2009-10-08  Jim Meyering  <meyering@redhat.com>
78473         unistd: fix comment typo
78474         * lib/unistd.in.h (euidaccess): Fix a comment typo.
78476 2009-10-08  Eric Blake  <ebb9@byu.net>
78478         areadlink: use SIZE_MAX consistently
78479         * modules/areadlink (Depends-on): Add stdint.
78480         * modules/areadlink-with-size (Depends-on): Likewise.
78481         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
78482         gives NULL; drop sys/types, since unistd gives size_t; and add
78483         stdint for SIZE_MAX.
78484         (SIZE_MAX): Rely on headers.
78485         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
78486         and add stdint.
78487         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
78488         (SIZE_MAX): Likewise.
78489         (INITIAL_BUF_SIZE): Turn into enum.
78490         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
78492 2009-10-08  Jim Meyering  <meyering@redhat.com>
78494         areadlinkat: avoid compilation failure
78495         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
78496         Fix typo in comment.
78498 2009-10-07  Eric Blake  <ebb9@byu.net>
78500         areadlinkat-with-size: new module
78501         * modules/areadlinkat-with-size: New module.
78502         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
78503         * lib/areadlink.h (areadlinkat): Declare it.
78504         * MODULES.html.sh (File system functions): Mention it.
78505         * modules/areadlinkat-with-size-tests: New test.
78506         * tests/test-areadlinkat-with-size.c: New file.
78508         xreadlinkat: new module
78509         * modules/xreadlinkat: New module.
78510         * lib/xreadlinkat.c (xreadlinkat): New file.
78511         * lib/xreadlink.h (xreadlinkat): Declare it.
78512         * MODULES.html.sh (File system functions): Mention it.
78514         areadlinkat: new module
78515         * lib/at-func.c (FUNC_FAIL): New define.
78516         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
78517         * modules/areadlinkat: New module.
78518         * lib/linkat.c (areadlinkat): Move...
78519         * lib/areadlinkat.c (areadlinkat): ...to new file.
78520         * lib/areadlink.h (areadlinkat): Declare it.
78521         * modules/linkat (Depends-on): Add areadlinkat.
78522         * MODULES.html.sh (File system functions): Mention it.
78523         * modules/areadlinkat-tests: New test.
78524         * tests/test-areadlinkat.c: New file.
78526         areadlink, areadlink-with-size: add tests
78527         * modules/areadlink-tests: New test.
78528         * modules/areadlink-with-size-tests: Likewise.
78529         * tests/test-areadlink.h: New file.
78530         * tests/test-areadlink.c: Likewise.
78531         * tests/test-areadlink-with-size.c: Likewise.
78533         maint: minor cleanups
78534         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
78535         _UNUSED_PARAMETER_ instead.
78536         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
78537         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
78538         * modules/linkat-tests (Files): Distribute test-link.h.
78540         openat, utimens: whitespace cleanup
78541         * lib/openat.c: Prefer space throughout, rather than mix of 8
78542         spaces vs. tabs.
78543         * lib/at-func.c: Likewise.
78544         * lib/utimens.c: Likewise.
78546         openat: avoid using wrong fd
78547         * lib/openat.c (openat_permissive): Reject user's fd if saving the
78548         working directory chooses same fd.
78549         * lib/at-func.c (AT_FUNC_NAME): Likewise.
78551         mkdir, mkdirat: fix cygwin 1.5.x bug
78552         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
78553         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
78554         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
78555         bug.
78556         (gl_PREREQ_MKDIR): Delete unused macro.
78557         * modules/mkdir (Files): Track file rename.
78558         (configure.ac): Update macro name.
78559         * modules/openat (Depends-on): Add mkdir.
78560         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
78562         mkdir, mkdirat: add tests
78563         * modules/mkdir-tests: New test.
78564         * tests/test-mkdir.h: New file.
78565         * tests/test-mkdir.c: Likewise.
78566         * tests/test-mkdirat.c: Likewise.
78567         * modules/openat-tests (Files): Add new files.
78568         (Makefile.am): Run new test.
78570 2009-10-06  Eric Blake  <ebb9@byu.net>
78572         doc: tweak *at function documentation
78573         * doc/posix-functions/faccessat.texi (faccessat): Mention
78574         known issue with replacement.
78575         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
78576         * doc/posix-functions/linkat.texi (linkat): Likewise.
78577         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
78578         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
78579         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78580         * doc/posix-functions/renameat.texi (renameat): Likewise.
78581         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
78583         openat: fix GNU/Hurd bug in unlinkat
78584         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
78585         broken.
78586         * doc/posix-functions/unlink.texi (unlink): Document this.
78587         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
78589         fdopendir: fix GNU/Hurd bug
78590         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
78591         allowing non-directory fds.
78592         * lib/fdopendir.c (rpl_fdopendir): Work around it.
78593         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
78594         * modules/dirent (Makefile.am): Substitute it.
78595         * lib/dirent.in.h (fdopendir): Declare replacement.
78596         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
78597         * tests/test-fdopendir.c (main): Test something other than
78598         /dev/null, since on Hurd that behaves like a directory.
78600         test-symlink: port to GNU/Hurd
78601         * tests/test-symlink.h (test_symlink): Relax expected errno.
78603         doc: tweak more cygwin information
78604         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
78605         now compatible with glibc.
78606         * doc/posix-functions/getopt.texi (getopt): Likewise.
78608         getopt-gnu: add another test
78609         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
78610         guarantee behavior relied on by m4.
78611         * tests/test-getopt.c (main): Use it.
78612         * modules/getopt-posix-tests (Depends-on): Add setenv.
78613         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
78615         getopt: fix compilation on darwin
78616         * lib/getopt.in.h (includes): Leave breadcrumbs during system
78617         include.
78618         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
78619         Reported by Ludovic Courtès.
78621 2009-10-06  Bruno Haible  <bruno@clisp.org>
78623         * modules/size_max (Description): Discourage its use.
78624         Reported by Simon Josefsson.
78626 2009-10-06  Jim Meyering  <meyering@redhat.com>
78628         linkat: avoid compilation failure
78629         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
78631 2009-10-05  Eric Blake  <ebb9@byu.net>
78633         linkat: support Linux 2.6.17
78634         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
78635         linkat on Linux, but allow cache variable override.
78636         * lib/linkat.c (rpl_linkat): Define override.
78637         * modules/linkat (Depends-on): Add symlinkat.
78638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
78639         * modules/unistd (Makefile.am): Substitute it.
78640         * lib/unistd.in.h (linkat): Declare replacement.
78641         Reported by Pádraig Brady.
78643         quotearg: port test to systems with C.UTF-8 locale
78644         * tests/test-quotearg.c (struct result_strings): Add another
78645         member, differentiating between C.ASCII and C.UTF-8 handling.
78646         (compare_strings): Add parameter.
78647         (main): Adjust all callers.
78649         getopt: avoid clash with FreeBSD _getopt_internal
78650         * lib/getopt.in.h (_getopt_internal): Override the name.
78651         * lib/getopt_int.h (includes): Pick up any overrides.
78652         Reported by Reuben Thomas.
78654         hash: allow C89 compilation
78655         * lib/hash.c (check_tuning): Move declaration before statement.
78656         Reported by Reuben Thomas.
78658 2009-10-05  Karl Berry  <karl@gnu.org>
78660         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
78662 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
78663             Bruno Haible  <bruno@clisp.org>
78665         * lib/uname.c (uname): Use a table-driven algorithm to compute
78666         Windows NT versions.
78668 2009-10-04  Bruno Haible  <bruno@clisp.org>
78670         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
78671         program_invocation_short_name.
78672         * modules/progname (configure.ac): Test for presence of
78673         program_invocation_short_name.
78674         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
78676 2009-10-04  Bruno Haible  <bruno@clisp.org>
78678         * lib/progname.c (set_program_name): Fix comment.
78679         Reported by Jim Meyering.
78681 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78682             Bruno Haible  <bruno@clisp.org>
78684         * lib/uname.c: Include <string.h>.
78685         (uname): Do only one call to GetVersionEx in the common case.
78687 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78688             Bruno Haible  <bruno@clisp.org>
78690         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
78691         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
78692         (uname): Add support for Windows CE and various non-x86 CPU types.
78694 2009-10-03  Bruno Haible  <bruno@clisp.org>
78696         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
78697         invocation to tests/configure.ac.
78698         Reported by Ian Beckwith <ianb@erislabs.net>.
78700 2009-10-02  Eric Blake  <ebb9@byu.net>
78702         fchdir: avoid compiler warning
78703         * lib/fchdir.c (canonicalize_file_name)
78704         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
78706         test-open: support mingw errno values
78707         * tests/test-open.h (test_open): Relax test.
78708         * tests/test-fopen.h (test_fopen): Likewise.
78709         * tests/test-openat-safer.c (main): Likewise.
78711         open: fix opening directory on mingw
78712         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
78714         test-open: on GNU/Hurd, /dev/null is a directory
78715         * tests/test-fopen.h (main): Rename...
78716         (test_fopen): ...to this.  Use a guaranteed non-directory when
78717         confirming open behavior on trailing slash.
78718         * tests/test-openat-safer.c (main): Likewise.
78719         * tests/test-open.h (main): Likewise....
78720         (test_open): ...to this.
78721         * tests/test-fopen.c (main): Adjust caller.
78722         * tests/test-fopen-safer.c (main): Likewise.
78723         * tests/test-open.c (main): Likewise.
78724         * tests/test-fcntl-safer.c (main): Likewise.
78725         Reported by Samuel Thibault.
78727         rename, fchdir: don't ignore chdir failure
78728         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
78729         * lib/rename.c (rpl_rename) [W32]: Likewise.
78730         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
78731         an empty destination directory if source cannot be renamed,
78732         although there is still possibility for failure.
78733         * doc/posix-functions/rename.texi (rename): Document the race.
78734         Reported by Jim Meyering.
78736         maint: cleanup whitespace in recent commits
78737         * lib/rename.c (rpl_rename): Remove tabs.
78738         * tests/test-link.h (test_link): Likewise.
78739         * lib/fchdir.c (get_name): Likewise.
78740         Reported by Jim Meyering.
78742 2009-10-02  Ben Pfaff  <blp@gnu.org>
78744         relocatable-prog-wrapper: Add missing dependency on
78745         double-slash-root.
78746         * modules/relocatable-prog-wrapper: Add dependency.
78747         Reported by Ian Beckwith <ianb@erislabs.net>.
78749 2009-10-02  Eric Blake  <ebb9@byu.net>
78751         renameat: fix Solaris bugs
78752         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
78753         needed fixing.
78754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
78755         * modules/stdio (Makefile.am): Substitute it.
78756         * lib/stdio.in.h (renameat): Declare replacement.
78757         * lib/renameat.c (rpl_renameat): Implement fix.
78759         renameat: new module
78760         * modules/renameat: New file.
78761         * lib/renameat.c (renameat): Likewise.
78762         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
78763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
78764         * modules/stdio (Makefile.am): Substitute them.
78765         * lib/stdio.in.h (renameat): Declare it.
78766         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78767         * doc/posix-functions/renameat.texi (renameat): Likewise.
78768         * modules/renameat-tests: New test.
78769         * tests/test-renameat.c: Likewise.
78771         rename: fix mingw bugs
78772         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
78773         directory overwrite bugs.
78775         rename: fix another cygwin 1.5 bug
78776         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
78777         checks.
78778         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
78779         unnecessary cygwin workarounds.  Also work around bug with moving
78780         full directory onto an empty one.
78781         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
78783         rename-dest-slash: merge into rename module
78784         * modules/rename-dest-slash (Status): Mark obsolete.
78785         (Depends-on): Add rename.
78786         (Files): Let rename do it all.
78787         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
78788         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
78789         * m4/rename-dest-slash.m4: ...so this file can be deleted.
78790         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
78791         * lib/rename.c (rpl_rename): Update comments.
78793         rename: fix cygwin 1.5.x bugs
78794         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
78795         * lib/rename.c (rpl_rename): Work around them.
78796         * modules/rename (Depends-on): Add same-inode.
78798         rename: fix Solaris 10 bug
78799         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
78800         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
78801         was the only bug.
78803         rename: fix Solaris 9 bug
78804         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
78805         on non-directory.  Avoid calling exit.
78806         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
78807         strdup.
78808         * modules/rename-tests (Depends-on): Drop lstat.
78809         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
78810         (gl_PREREQ_RENAME): Delete unused macro.
78812         rename-dest-slash: fix NetBSD bug
78813         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
78814         links.
78815         * modules/rename-dest-slash (Depends-on): Add same-inode.
78817         rename-tests: new test, exposes several platform bugs
78818         * modules/rename-tests: New file.
78819         * tests/test-rename.h: Likewise.
78820         * tests/test-rename.c: Likewise.
78821         * doc/posix-functions/rename.texi (rename): Improve documentation,
78822         including bugs that will eventually be fixed in gnulib.
78824 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
78826         * lib/uname.c: Include <stdlib.h>
78827         (uname): Assume version info is available.
78829 2009-10-02  Jim Meyering  <meyering@redhat.com>
78831         gnu-web-doc-update: correct --help output
78832         * build-aux/gnu-web-doc-update: Make --help output relevant.
78834         gnu-web-doc-update: add standard options
78835         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
78837         gnu-web-doc-update: New module.
78838         Use this script to automatically update the on-line web documentation
78839         for your GNU project at http://www.gnu.org/software/$pkg/manual/
78840         * modules/gnu-web-doc-update: New file, from coreutils.
78841         * build-aux/gnu-web-doc-update: New script.
78843 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
78845         link: LoadLibrary is not needed.
78846         * lib/link.c: Use GetModuleHandle.
78848 2009-10-01  Eric Blake  <ebb9@byu.net>
78850         getopt: bump serial number
78851         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
78852         change.
78854         tests: tighten link, rmdir, and remove tests
78855         * tests/test-link.h (includes): No need to use <config.h> here.
78856         Clean up if directory hard link was created, otherwise test for
78857         trailing '.'.
78858         * tests/test-linkat.c (main): Simplify.
78859         * tests/test-remove.c (main): Enhance test for trailing '.'.
78860         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78862 2009-10-01  Jim Meyering  <meyering@redhat.com>
78864         maint.mk: requiring "make major" was annoying, for a "minor" release.
78865         What is intended is "stable", to contrast with alpha and beta,
78866         so require "make stable", not "make major".
78867         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
78868         (get_tool_versions): Likewise.
78869         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
78871 2009-09-30  Ben Pfaff  <blp@gnu.org>
78873         Fix broken build of replacement for Windows tmpfile().
78874         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
78875         flags argument added along with the 'mkostemp' module.
78877 2009-09-28  Bruno Haible  <bruno@clisp.org>
78879         Avoid identifier clash with POSIX function 'remove' defined as a macro.
78880         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
78881         to 'remove_elt'.
78882         (gl_list_remove): Update.
78883         * lib/gl_list.c (gl_list_remove): Update.
78884         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
78885         to 'remove_elt'.
78886         (gl_oset_remove): Update.
78887         * lib/gl_list.c (gl_oset_remove): Update.
78888         Reported by Eric Blake.
78890 2009-09-28  Eric Blake  <ebb9@byu.net>
78892         doc: mention yet more cygwin 1.7 status
78893         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
78894         cygwin.
78895         * doc/glibc-functions/execvpe.texi (execvpe): New file.
78896         * doc/gnulib.texi (Glibc unistd.h): Mention it.
78898         argp: fix test failure
78899         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
78900         that are not upper-case.  Pass correct range to tolower.
78902 2009-09-27  Jim Meyering  <meyering@redhat.com>
78904         test-yesno: work around sparc-dash here-document infelicity
78905         Without this change, the literal \177 byte in a here document
78906         would make dash 0.5.5.1-3 access uninitialized memory.
78907         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
78908         Instead, use a marker, "@", and filter through tr to create the desired
78909         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
78911 2009-09-27  Bruno Haible  <bruno@clisp.org>
78913         Disable untested support for new flavours of ACLs on AIX.
78914         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
78915         progress.
78916         * lib/set-mode-acl.c (qset_acl): Likewise.
78918 2008-12-07  Bruno Haible  <bruno@clisp.org>
78920         Add support for new flavours of ACLs on AIX. (Untested.)
78921         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
78922         (file_has_acl): Add support for newer AIX.
78923         * lib/set-mode-acl.c (qset_acl): Likewise.
78924         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
78925         Rainer Tammer <tammer@tammer.net>.
78927 2009-09-26  Eric Blake  <ebb9@byu.net>
78929         argp: fix compilation of getopt
78930         * lib/getopt.in.h (includes): Use different guard than glibc.
78931         Reported by Sergey Poznyakoff.
78933         doc: mention more cygwin 1.7 status
78934         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
78935         bug.
78936         * doc/posix-functions/execl.texi (execl): Likewise.
78937         * doc/posix-functions/execle.texi (execle): Likewise.
78938         * doc/posix-functions/execlp.texi (execlp): Likewise.
78939         * doc/posix-functions/execv.texi (execv): Likewise.
78940         * doc/posix-functions/execve.texi (execve): Likewise.
78941         * doc/posix-functions/execvp.texi (execvp): Likewise.
78942         * doc/glibc-functions/canonicalize_file_name.texi
78943         (canonicalize_file_name): Cygwin 1.7 now provides this.
78944         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
78945         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
78946         on AT_SYMLINK_NOFOLLOW.
78948 2009-09-24  Eric Blake  <ebb9@byu.net>
78950         test-linkat: make test more robust
78951         * tests/test-linkat.c (main): Avoid collision with EEXIST.
78953         getopt: fix inclusion guards for cygwin
78954         * modules/getopt-posix (Depends-on): Add include-next.
78955         (Makefile.am): Substitute more items in replacement header.
78956         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
78957         <getopt.h>.
78958         * lib/getopt.in.h (includes): Use split inclusion guard, and
78959         prefer <getopt.h> over include <unistd.h> when one is present.
78960         (option): Also override name of 'struct option'.
78962         same-inode: revert prior change; it is not yet ready
78963         * NEWS: Undo mention of this change.
78964         * lib/same-inode.h (same-inode.h): Undo tri-state change.
78965         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
78966         * lib/cycle-check.c (cycle_check): Likewise.
78967         * lib/same.c (same_name): Likewise.
78968         * lib/at-func2.c (at_func2): Likewise.
78970 2009-09-23  Eric Blake  <ebb9@byu.net>
78972         linkat: new module
78973         * modules/linkat: New file.
78974         * lib/at-func2.c (at_func2): Likewise.
78975         * lib/linkat.c (linkat): Likewise.
78976         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
78977         * lib/openat-priv.h (at_func2): Add declaration.
78978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
78979         * modules/unistd (Makefile.am): Substitute them.
78980         * lib/unistd.in.h (linkat): Declare it.
78981         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78982         * doc/posix-functions/linkat.texi (linkat): Likewise.
78983         * doc/posix-functions/link.texi (link): Tweak wording.
78984         * tests/test-link.c (main): Move guts...
78985         * tests/test-link.h (test_link): ...into new file.
78986         * modules/linkat-tests: New test.
78987         * tests/test-linkat.c: Likewise.
78988         * modules/link-tests (Files): Ship new file.
78989         (Depends-on): Add stdbool.
78991         dirname: add library-safe mdir_name
78992         * lib/dirname.h (mdir_name): New prototype.
78993         * lib/dirname.c (dir_name): Move guts...
78994         (mdir_name): ...to new function that avoids xalloc_die.
78996         fchdir: another mingw fix
78997         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
78998         * lib/fchdir.c (get_name): New helper method; skips canonicalize
78999         on mingw (where it has not yet been ported), and make it optional
79000         elsewhere.
79001         (_gl_register_fd): Use it.
79003         same-inode: make SAME_INODE tri-state, to port to mingw
79004         * NEWS: Mention this change.
79005         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
79006         st_ino always being 0.
79007         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79008         * lib/cycle-check.c (cycle_check): Likewise.
79009         * lib/same.c (same_name): Likewise.
79011         lstat: avoid mingw compilation error
79012         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
79013         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
79014         lstat ourselves.
79015         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
79016         was adequate.
79017         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
79018         the checks for lstat.
79019         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
79021         link: fix test failure on Solaris 9
79022         * lib/link.c (rpl_link): Don't assume link will catch bogus
79023         trailing slash on source.
79025         test-symlinkat: enhance test
79026         * tests/test-readlink.c (main): Move guts...
79027         * tests/test-readlink.h (test_readlink): ...into new file.
79028         * tests/test-symlink.c (main): Move guts...
79029         * tests/test-symlink.h (test_symlink): ...into new file.
79030         * tests/test-symlinkat.c (main): Use new files for further
79031         coverage.
79032         (do_symlink, do_readlink): New helper functions.
79033         * modules/symlink-tests (Files): Ship new file.
79034         (Depends-on): Add stdbool.
79035         * modules/readlink-tests (Files): Ship new file.
79036         (Depends-on): Add stdbool.
79037         * modules/symlinkat-tests (Files): Use new files.
79039 2009-09-23  Eric Blake  <ebb9@byu.net>
79041         readlink: document portability issue with symlink length
79042         * doc/posix-functions/lstat.texi (lstat): Mention that some file
79043         systems have bogus st_size on symlinks, and mention the
79044         areadlink-with-size module.
79045         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
79046         * doc/posix-functions/readlink.texi (readlink): Mention the
79047         areadlink module, and ERANGE failure.
79048         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79049         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
79051         readlink: fix Solaris 9 bug with trailing slash
79052         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
79053         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
79054         * doc/posix-functions/readlink.texi (readlink): Document this.
79055         * modules/readlink-tests: New test.
79056         * tests/test-readlink.c: Likewise.
79058         readlink: fix cygwin 1.5.x bug with return type
79059         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
79060         * lib/unistd.in.h (readlink): Use ssize_t.
79061         * lib/readlink.c (readlink): Likewise.
79062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79063         * modules/unistd (Makefile.am): Substitute it.
79064         * lib/unistd.in.h (readlink): Declare replacement.
79065         * doc/posix-functions/readlink.texi (readlink): Document this.
79067         symlink: use throughout gnulib
79068         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
79069         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
79070         symlink is not used.
79071         * modules/symlinkat (Depends-on): Add symlink.
79072         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79073         * modules/canonicalize-tests (Depends-on): Likewise.
79074         * modules/lstat-tests (Depends-on): Likewise.
79075         * modules/openat-tests (Depends-on): Likewise.
79076         * modules/remove-tests (Depends-on): Likewise.
79077         * modules/rmdir-tests (Depends-on): Likewise.
79078         * modules/unlink-tests (Depends-on): Likewise.
79079         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
79080         * tests/test-canonicalize.c (symlink): Likewise.
79081         * tests/test-fstatat.c (symlink): Likewise.
79082         * tests/test-lstat.c (symlink): Likewise.
79083         * tests/test-remove.c (symlink): Likewise.
79084         * tests/test-rmdir.c (symlink): Likewise.
79085         * tests/test-unlink.c (symlink): Likewise.
79086         * tests/test-unlinkat.c (symlink): Likewise.
79088         symlink: new module, for Solaris 9 bug
79089         * modules/symlink: New file.
79090         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
79091         * lib/symlink.c: Likewise.
79092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
79093         * modules/unistd (Makefile.am): Substitute them.
79094         * lib/unistd.in.h (symlink): Declare replacement.
79095         * MODULES.html.sh (File system functions): Mention it.
79096         * doc/posix-functions/symlink.texi (symlink): Likewise.
79097         * modules/symlink-tests: New test.
79098         * tests/test-symlink.c: Likewise.
79100 2009-09-23  Bruno Haible  <bruno@clisp.org>
79102         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
79103         when needed.
79104         Test case: gnulib-tool --import --with-tests atexit inttypes.
79105         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
79107 2009-09-23  Bruno Haible  <bruno@clisp.org>
79109         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
79110         subcommand, not in a subshell.
79112 2009-09-22  Eric Blake  <ebb9@byu.net>
79114         unistd: sort replacement declarations
79115         * lib/unistd.in.h: Sort declarations.
79117         open, openat: minor optimization
79118         * lib/open.c (open): If open succeeded, len is non-zero.
79119         * lib/openat.c (rpl_openat): Likewise.
79121         link-follow: ensure correct result
79122         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
79123         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
79124         distinguish between possible failures.
79126 2009-09-21  Eric Blake  <ebb9@byu.net>
79128         fts: avoid compiler warning
79129         * lib/fts.c (dirent_inode_sort_may_be_useful)
79130         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
79132 2009-09-19  Bruno Haible  <bruno@clisp.org>
79134         * lib/progreloc.c (canonicalize_file_name): New declaration.
79136 2009-09-19  Eric Blake  <ebb9@byu.net>
79138         link: fix quoting
79139         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
79141         openat: fix openat bugs on Solaris 9
79142         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
79143         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
79144         * modules/openat (Depends-on): Add open.
79145         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
79146         * modules/fcntl-h (Makefile.am): Substitute it.
79147         * lib/fcntl.in.h (openat): Declare replacement.
79148         * doc/posix-functions/openat.texi (openat): Document this.
79150         openat: move fstatat and unlinkat into correct files
79151         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
79152         compiled.
79153         * lib/openat.c (fstatat, unlinkat): Move...
79154         * lib/fstatat.c (fstatat): ...into correct files.
79155         * lib/unlinkat.c (unlinkat): Likewise.
79157         openat: fix unlinkat bugs on Solaris 9
79158         * lib/unlinkat.c (unlinkat): New file.
79159         * modules/openat (Depends-on): Add unlink.
79160         (Files): Distribute it.
79161         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
79162         trailing slash behavior is broken.
79163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79164         * modules/unistd (Makefile.am): Substitute it.
79165         * lib/unistd.in.h (unlinkat): Declare replacement.
79166         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
79168         openat: fix fstatat bugs on Solaris 9
79169         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
79170         stat.
79171         * doc/posix-functions/fstatat.texi (fstatat): Document this.
79173         test-unlinkat: enhance test, to expose Solaris 9 bug
79174         * tests/test-unlink.c (main): Factor guts...
79175         * tests/test-unlink.h (test_rmdir_func): ...into new file.
79176         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
79177         * tests/test-rmdir.c (main): Adjust caller.
79178         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
79179         (unlinker): New helper function.
79180         (rmdirat): Enhance check.
79181         * modules/rmdir-tests (Depends-on): Add stdbool.
79182         * modules/unlink-tests (Depends-on): Likewise.
79183         (Files): Add test-unlink.h.
79184         * modules/openat-tests (Files): Likewise.
79185         (Depends-on): Add unlinkdir.
79187         test-fstatat: new test, to expose Solaris 9 bugs
79188         * tests/test-stat.c (main): Factor guts...
79189         * tests/test-stat.h (test_stat_func): ...into new file.
79190         * tests/test-lstat.c (main): Factor guts...
79191         * tests/test-lstat.h (test_lstat_func): ...into new file.
79192         * tests/test-fstatat.c: New file.
79193         * modules/stat-tests (Files): Add test-stat.h.
79194         * modules/lstat-tests (Files): Add test-lstat.h.
79195         (Depends-on): Add stdbool.
79196         * modules/openat-tests (Depends-on): Add pathmax.
79197         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
79198         (Makefile.am): Run new test.
79200         remove: new module, for mingw and Solaris 9 bugs
79201         * modules/remove: New file.
79202         * lib/remove.c: Likewise.
79203         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
79204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
79205         * modules/stdio (Makefile.am): Use them.
79206         * lib/stdio.in.h (remove): Declare replacement.
79207         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79208         * doc/posix-functions/remove.texi (remove): Likewise.
79209         * modules/remove-tests: New test.
79210         * tests/test-remove.c: Likewise.
79212         unlink: new module, for Solaris 9 bug
79213         * modules/unlink: New file.
79214         * lib/unlink.c: Likewise.
79215         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
79216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79217         * modules/unistd (Makefile.am): Use them.
79218         * lib/unistd.in.h (stat): Declare replacement.
79219         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79220         * doc/posix-functions/unlink.texi (unlink): Likewise.
79221         * modules/unlink-tests: New test.
79222         * tests/test-unlink.c: Likewise.
79224         lstat: fix Solaris 9 bug
79225         * lib/lstat.c (lstat): Also check for trailing slash on
79226         non-symlink, non-directories.  Use stat module to simplify logic.
79227         * doc/posix-functions/lstat.texi (lstat): Document it.
79228         * modules/lstat-tests (Depends-on): Add errno, same-inode.
79229         (configure.ac): Check for symlink.
79230         * tests/test-lstat.c (main): Add more tests.
79232         stat: add as dependency to other modules
79233         * modules/chown (Depends-on): Add stat.
79234         * modules/euidaccess (Depends-on): Likewise.
79235         * modules/fchdir (Depends-on): Likewise.
79236         * modules/isdir (Depends-on): Likewise.
79237         * modules/link (Depends-on): Likewise.
79238         * modules/lstat (Depends-on): Likewise.
79239         * modules/mkdir-p (Depends-on): Likewise.
79240         * modules/modechange (Depends-on): Likewise.
79241         * modules/open (Depends-on): Likewise.
79242         * modules/readlink (Depends-on): Likewise.
79243         * modules/same (Depends-on): Likewise.
79245         stat: fix Solaris 9 bug
79246         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
79247         slash.
79248         * lib/stat.c (rpl_stat): Work around it.
79249         * doc/posix-functions/stat.texi (stat): Update documentation.
79251         stat: new module, for mingw bug
79252         * modules/stat: New file.
79253         * lib/stat.c: Likewise.
79254         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
79255         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79256         * modules/sys_stat (Makefile.am): Use them.
79257         * lib/sys_stat.in.h (stat): Declare replacement.
79258         * lib/openat.c (fstatat): Deal with lstat and stat being function
79259         macros.
79260         * modules/openat (Depends-on): Add inline.
79261         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79262         * doc/posix-functions/stat.texi (stat): Likewise.
79263         * modules/stat-tests: New test.
79264         * tests/test-stat.c: Likewise.
79266 2009-09-19  Jim Meyering  <meyering@redhat.com>
79268         syntax-check: detect unnecessary inclusion of canonicalize.h
79269         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
79271 2009-09-19  Eric Blake  <ebb9@byu.net>
79273         canonicalize-lgpl: adjust clients to use correct header
79274         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
79275         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
79276         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
79277         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
79278         * lib/progreloc.c (includes): Likewise.
79280 2009-09-19  Jim Meyering  <meyering@redhat.com>
79282         test-posixtm.c: correct a comment
79283         * tests/test-posixtm.c: Correct first-line comment.
79284         Spotted by Eric Blake.
79286 2009-09-16  Jim Meyering  <meyering@redhat.com>
79288         posixtm-tests: make T const-correct; add a test case
79289         * tests/test-posixtm.c (T): Declare const.
79290         Add a test for -(2^31+1).
79291         Remove useless can-succeed-only-in-2002 test.
79293         posixtm-tests: adjust the sole failing test
79294         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
79295         expected output matches what mktime now produces.  Cross-checked via
79296         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
79298         posixtm: move #ifdef'd tests into a new module
79299         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
79300         * tests/test-posixtm.c: ... this new file.
79301         * modules/posixtm-tests: New module.
79303 2009-09-19  Eric Blake  <ebb9@byu.net>
79305         openat: simplify use of at-func.c
79306         * lib/at-func.c (includes): Include prerequisites here, to
79307         simplify requirements on client files.
79308         * lib/openat-priv.h: Add double-inclusion guard.
79309         * lib/faccessat.c (includes): Simplify.
79310         * lib/fchmodat.c (includes): Likewise.
79311         * lib/fchownat.c (includes): Likewise.
79312         * lib/mkdirat.c (includes): Likewise.
79313         * lib/mkfifoat.c (includes): Likewise.
79314         * lib/symlinkat.c (includes): Likewise.
79316         openat: allow return of fd 0
79317         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
79318         * modules/save-cwd (Depends-on): Replace fcntl-safer with
79319         unistd-safer.
79320         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
79321         <fcntl.h>; this module does not leak fds.
79322         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
79323         must be allowed to return 0, leaving openat_safer to add the
79324         safety.
79325         (openat_permissive): Avoid writing to just-opened fd 2 if
79326         restoring the current directory fails.
79327         * lib/openat-die.c (openat_restore_fail): Add comment.
79328         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
79329         (save_cwd): Guarantee safe fd, but without use of open_safer.
79330         * tests/test-openat.c: New test.
79331         * modules/openat-tests (Files, Makefile.am): Distribute and build
79332         new file.
79334         relocatable-prog-wrapper: fix build
79335         * modules/relocatable-prog-wrapper (Files): Update name of
79336         canonicalize m4 file, broken on 2009-09-17.
79337         Reported by emad hajjar <aleppos@hotmail.com>.
79339 2009-09-19  Bruno Haible  <bruno@clisp.org>
79341         * lib/safe-alloc.h: Use the standard header with GPL copyright.
79342         * lib/safe-alloc.c: Likewise.
79343         Reported by Ian Beckwith <ianb@erislabs.net>.
79345 2009-09-18  Bruno Haible  <bruno@clisp.org>
79347         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
79348         Reported by <erobles@sensacd.com.mx>.
79350 2009-09-17  Eric Blake  <ebb9@byu.net>
79352         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
79353         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
79354         slashes when checking if last component is missing.
79355         * tests/test-canonicalize.c (main): Test this.
79357         canonicalize, canonicalize-lgpl: honor // if distinct from /
79358         * modules/canonicalize (Files): Add double-slash-root.m4.
79359         * modules/canonicalize-lgpl (Files): Likewise.
79360         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
79361         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
79362         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
79363         fallback definition.
79364         (canonicalize_filename_mode): Use it to protect //.
79365         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
79366         (__realpath): Likewise.
79367         * tests/test-canonicalize.c (main): Test this.
79368         * tests/test-canonicalize-lgpl.c (main): Likewise.
79369         * modules/canonicalize-tests (Depends-on): Add same-inode.
79370         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79372         canonicalize-lgpl: fix glibc bug with trailing slash
79373         * m4/canonicalize-lgpl.m4: Move contents...
79374         * m4/canonicalize.m4: ...here.
79375         (gl_CANONICALIZE_LGPL): Factor realpath check...
79376         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
79377         glibc 2.3.5 bug, fixed 2005-04-27.
79378         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
79379         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
79380         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
79381         * modules/canonicalize-lgpl (Files): Manage file rename.
79382         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79383         * modules/stdlib (Makefile.am): Substitute witness.
79384         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
79385         is needed.
79386         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
79387         replacement is required.
79388         * lib/canonicalize.c (canonicalize_file_name): Likewise.
79389         * doc/glibc-functions/canonicalize_file_name.texi
79390         (canonicalize_file_name): Document this.
79391         * doc/posix-functions/realpath.texi (realpath): Likewise.
79393         canonicalize-lgpl: reject non-directory with trailing slash
79394         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
79395         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
79396         catches failures in glibc 2.3.5.
79397         * tests/test-canonicalize.c (main): Likewise.
79399         canonicalize-lgpl: use native realpath if it works
79400         * lib/canonicalize-lgpl.c (realpath): Guard with
79401         FUNC_REALPATH_WORKS.
79402         * lib/stdlib.in.h (realpath): Make declaration optional based on
79403         HAVE_REALPATH.
79404         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
79405         native realpath works.
79406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79407         * modules/stdlib (Makefile.am): Substitute witness.
79409         canonicalize, canonicalize-lgpl: use <stdlib.h>
79410         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
79411         (Include): Mention <stdlib.h>.
79412         (configure.ac): Mention functions we provide.
79413         * modules/canonicalize (configure.ac): Likewise.
79414         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
79415         realpath if canonicalize_file_name is missing.
79416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
79417         * modules/stdlib (Makefile.am): Substitute witnesses.
79418         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
79419         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
79420         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
79421         * NEWS: Document this.
79422         * doc/glibc-functions/canonicalize_file_name.texi
79423         (canonicalize_file_name): Likewise.
79424         * doc/posix-functions/realpath.texi (realpath): Likewise.
79425         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
79427         test-canonicalize: consolidate into single C program
79428         * tests/test-canonicalize.sh: Delete; move setup into...
79429         * tests/test-canonicalize.c (main): ...the program, making it
79430         easier to run in debugger.  Add some tests.
79431         * modules/canonicalize-tests (Files): Remove unused file.
79432         (Depends-on): Add progname.
79433         (configure.ac, Makefile.am): Simplify.
79435         test-canonicalize-lgpl: consolidate into single C program
79436         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
79437         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
79438         easier to run in debugger.  Add some tests.
79439         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
79440         (configure.ac, Makefile.am): Simplify.
79442         canonicalize: avoid resolvepath
79443         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
79444         unnecessary checks.
79445         * lib/canonicalize.c (includes): Simplify.
79446         (canonicalize_file_name): Drop resolvepath implementation.
79447         * modules/canonicalize (Depends-on): Drop filenamecat.
79449         canonicalize: don't lose errno
79450         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
79451         over calls to free.
79453         canonicalize: simplify errno handling
79454         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
79455         assignment.
79457         canonicalize, canonicalize-lgpl: update module dependencies
79458         * modules/canonicalize (Depends-on): Add extensions, lstat,
79459         pathmax, stdlib.
79460         (Files): Drop pathmax.h.
79461         (configure.ac): Adjust macro name.
79462         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
79463         lstat, stdlib, sys_stat.
79464         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
79465         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
79466         extensions.
79467         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
79468         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
79469         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
79470         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
79471         declaration, if available.
79472         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
79473         we can rely on the readlink module.
79474         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
79475         (includes): Use <unistd.h> unconditionally.
79477 2009-09-17  Eric Blake  <ebb9@byu.net>
79479         maint: make Include sections of modules consistent
79480         * modules/alloca: Use only header name; no need to list #include.
79481         * modules/alloca-opt: Likewise.
79482         * modules/arpa_inet: Likewise.
79483         * modules/canon-host: Likewise.
79484         * modules/configmake: Likewise.
79485         * modules/dirent: Likewise.
79486         * modules/eealloc: Likewise.
79487         * modules/environ: Likewise.
79488         * modules/fchdir: Likewise.
79489         * modules/fcntl: Likewise.
79490         * modules/fcntl-h: Likewise.
79491         * modules/gethrxtime: Likewise.
79492         * modules/gettime: Likewise.
79493         * modules/ignore-value: Likewise.
79494         * modules/inet_ntop: Likewise.
79495         * modules/inet_pton: Likewise.
79496         * modules/inttypes: Likewise.
79497         * modules/isnand-nolibm: Likewise.
79498         * modules/isnanf-nolibm: Likewise.
79499         * modules/mbchar: Likewise.
79500         * modules/mbfile: Likewise.
79501         * modules/mbiter: Likewise.
79502         * modules/mbuiter: Likewise.
79503         * modules/netdb: Likewise.
79504         * modules/netinet_in: Likewise.
79505         * modules/nproc: Likewise.
79506         * modules/pagealign_alloc: Likewise.
79507         * modules/poll: Likewise.
79508         * modules/printf-frexp: Likewise.
79509         * modules/pthread: Likewise.
79510         * modules/putenv: Likewise.
79511         * modules/random_r: Likewise.
79512         * modules/relocatable-prog: Likewise.
79513         * modules/search: Likewise.
79514         * modules/select: Likewise.
79515         * modules/selinux-h: Likewise.
79516         * modules/settime: Likewise.
79517         * modules/signal: Likewise.
79518         * modules/size_max: Likewise.
79519         * modules/socklen: Likewise.
79520         * modules/ssize_t: Likewise.
79521         * modules/stdarg: Likewise.
79522         * modules/stdbool: Likewise.
79523         * modules/stddef: Likewise.
79524         * modules/stdint: Likewise.
79525         * modules/stdio: Likewise.
79526         * modules/stdlib: Likewise.
79527         * modules/string: Likewise.
79528         * modules/strings: Likewise.
79529         * modules/sys_file: Likewise.
79530         * modules/sys_ioctl: Likewise.
79531         * modules/sys_select: Likewise.
79532         * modules/sys_socket: Likewise.
79533         * modules/sys_stat: Likewise.
79534         * modules/sys_time: Likewise.
79535         * modules/sys_times: Likewise.
79536         * modules/sys_utsname: Likewise.
79537         * modules/sys_wait: Likewise.
79538         * modules/sysexits: Likewise.
79539         * modules/time: Likewise.
79540         * modules/times: Likewise.
79541         * modules/tmpfile: Likewise.
79542         * modules/trim: Likewise.
79543         * modules/unistd: Likewise.
79544         * modules/wchar: Likewise.
79545         * modules/wctype: Likewise.
79547 2009-09-17  Bruno Haible  <bruno@clisp.org>
79549         Make getdate.y compile on QNX and NetBSD 5 / i386.
79550         * m4/getdate.m4 (gl_GETDATE): Conditionally define
79551         TIME_T_FITS_IN_LONG_INT.
79552         * lib/getdate.y (long_time_t): New type.
79553         (relative_time): Change type of 'seconds' field to long_time_t.
79554         (get_date): Update types of local variables. Check against overflow
79555         during conversion from long_time_t to time_t.
79556         Reported by Matt Kraai <kraai@ftbfs.org>
79557         and Hasso Tepper <hasso@netbsd.org>.
79559 2009-09-17  Bruno Haible  <bruno@clisp.org>
79561         * modules/COPYING: Update copyright years.
79562         * modules/README: Likeiwse.
79563         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
79564         Reported by Ian Beckwith <ianb@erislabs.net>.
79566 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79568         * users.txt: Update references for gnuit package.
79570 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79572         * m4/getdelim.m4: Fix typo in copyright line.
79574 2009-09-17  Bruno Haible  <bruno@clisp.org>
79576         * lib/atoll.c: Use the standard header with GPL copyright.
79577         * lib/argz.in.h: Likewise.
79578         * lib/glob.c: Likewise.
79579         * lib/glob-libc.h: Likewise.
79580         * lib/random_r.c: Likewise.
79581         * lib/siglist.h: Likewise.
79582         * lib/strsignal.c: Likewise.
79583         Reported by Ian Beckwith <ianb@erislabs.net>.
79585 2009-09-17  Eric Blake  <ebb9@byu.net>
79587         rmdir: ensure correct dependency order
79588         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
79590 2009-09-17  Bruno Haible  <bruno@clisp.org>
79592         Disable assertion that fails on NetBSD 5 / i386.
79593         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
79594         Reported by Sam Steingold <sds@gnu.org>
79595         and Hasso Tepper <hasso@netbsd.org>.
79597 2009-09-16  Eric Blake  <ebb9@byu.net>
79599         unlinkdir: port to mingw
79600         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
79601         on which no one can unlink a directory.
79603         stdlib: sort witness names
79604         * modules/stdlib (Makefile.am): Sort replacements.
79605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
79606         * lib/stdlib.in.h: Likewise.
79608         parse-duration-tests: avoid link failure
79609         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
79610         LIBINTL.
79611         Reported by Tom G. Christensen.
79613         openat-tests: ensure unlinkat behaves like rmdir
79614         * tests/test-rmdir.c (main): Factor guts...
79615         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
79616         * modules/rmdir-tests (Files): Ship new file.
79617         * modules/openat-tests: New test.
79618         * tests/test-unlinkat.c: Likewise.
79620         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
79621         * modules/rmdir-errno (Status, Notice): Now obsolete.
79623         rmdir: work around cygwin 1.5.x and mingw bugs
79624         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
79625         * lib/rmdir.c (rmdir): Work around it.
79626         * modules/rmdir (Status, Notice): No longer obsolete.
79627         (Files): Add dos.m4.
79628         (Depends-on): Add unistd.
79629         (configure.ac): Set witnesses.
79630         (License): Relax to LGPLv2+.
79631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
79632         * modules/unistd (Makefile.am): Substitute witnesses.
79633         * lib/unistd.in.h (rmdir): Declare replacement.
79634         * doc/posix-functions/rmdir.texi (rmdir): Document this.
79635         * modules/rmdir-tests: New tests.
79636         * tests/test-rmdir.c: Likewise.
79638 2009-09-15  Eric Blake  <ebb9@byu.net>
79640         fchdir: improve use of replacement functions
79641         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
79642         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
79643         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
79644         REPLACE_CLOSEDIR.
79645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
79646         * modules/sys_stat (Makefile.am): Substitute correct witness.
79647         * modules/dirent (Makefile.am): Likewise.
79648         * modules/unistd (Makefile.am): Likewise.
79649         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
79650         * lib/unistd.in.h (dup): Likewise.
79651         * lib/sys_stat.in.h (fstat): Likewise.
79653         maint: ignore gnulib-tool temp files
79654         * .gitignore: Ignore files created during gnulib-tool --test.
79656 2009-09-13  Jim Meyering  <meyering@redhat.com>
79658         posixtm: don't reject a time that specify "60" as the number of seconds
79659         * lib/posixtm.c (posixtime): The code to reject invalid dates
79660         would also reject a time specified with the .60 suffix.
79661         But POSIX allows that, in order to accommodate leap seconds.
79662         So don't reject it.
79663         (main): Adjust tests accordingly.
79664         * modules/posixtm (Depends-on): Add stpcpy.
79666 2009-09-11  Jim Meyering  <meyering@redhat.com>
79668         announce-gen: include [$release_type] in emitted Subject:
79669         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
79670         e.g., [stable] in the emitted Subject: line.
79672 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79674         Remove obsolete macros from several modules.
79675         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
79676         obsolete Autoconf macros with their modern counterparts.
79677         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
79678         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
79679         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
79680         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79681         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
79682         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
79683         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79684         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
79685         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
79686         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
79687         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
79688         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
79689         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
79690         * m4/sockets.m4 (gl_SOCKETS): Likewise.
79691         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
79692         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
79693         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
79694         * m4/time_r.m4 (gl_TIME_R): Likewise.
79695         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
79696         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
79697         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
79699         Fix copyright header in build-aux scripts.
79700         * build-aux/git-version-gen: Fix copyright header to match GPLv3
79701         recommendation.
79702         * build-aux/ncftpput-ftp: Likewise.
79703         * build-aux/update-copyright: Likewise.
79705 2009-09-09  Eric Blake  <ebb9@byu.net>
79707         test-link: allow Linux choice of errno
79708         * tests/test-link.c (main): Relax test for alternate error.
79710         strndup: fix improper m4 caching
79711         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
79712         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
79713         (gl_PREREQ_STRNDUP): Delete.
79714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
79715         * modules/string (Makefile.am): Substitute it.
79716         * lib/string.in.h (strndup): Modernize prototype.
79718         getcwd: port to mingw
79719         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
79720         different from the POSIX assumptions made throughout the getcwd
79721         module; fortunately, the mingw getcwd does not need replacement.
79722         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
79723         * modules/getcwd-tests: New test.
79724         * tests/test-getcwd.c: Likewise.
79726         link: fix platform bugs
79727         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
79728         * lib/link.c (link): Work around them.  Fix related mingw bug.
79729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
79730         * modules/unistd (Makefile.am): Substitute it.
79731         * lib/unistd.in.h (link): Declare replacement.
79732         * doc/posix-functions/link.texi (link): Document this.
79733         * modules/link (Depends-on): Add strdup-posix, sys_stat.
79735         test-link: consolidate into single C program, test more cases
79736         * tests/test-link.sh: Delete.
79737         * tests/test-link.c: Test more error conditions.  Exposes bugs on
79738         at least Cygwin and Solaris.
79739         * modules/link-tests (Files): Remove unused file.
79740         (Depends-on): Add errno, sys_stat.
79741         (Makefile.am): Simplify.
79743 2009-09-08  Bruno Haible  <bruno@clisp.org>
79745         Work around towlower, towupper bug on mingw.
79746         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
79747         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
79748         * doc/posix-functions/towlower.texi: Mention the mingw bug.
79749         * doc/posix-functions/towupper.texi: Likewise.
79750         Reported by Eric Blake.
79752 2009-09-08  Jim Meyering  <meyering@redhat.com>
79754         build: don't try to run autoheader if we don't use it
79755         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
79756         is not used in configure.ac.
79758 2009-09-08  Eric Blake  <ebb9@byu.net>
79760         euidaccess: fix compilation error
79761         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
79763         rawmemchr: relax license
79764         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
79765         okay.
79766         Reported by Jim Meyering.
79768         mkfifoat: new module
79769         * modules/mkfifoat: New file.
79770         * lib/mkfifoat.c: Likewise.
79771         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
79772         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79773         * modules/sys_stat (Makefile.am): Use them.
79774         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
79775         * MODULES.html.sh (File system functions): Mention module.
79776         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
79777         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
79778         * modules/mkfifoat-tests: New test.
79779         * tests/test-mkfifoat.c: Likewise.
79781         strchrnul: relax license
79782         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
79783         okay.
79784         Reported by Jim Meyering.
79786 2009-09-08  Eric Blake  <ebb9@byu.net>
79788         fstatat: fix compilation on Solaris
79789         * lib/fstatat.c (includes): Add fcntl.h.
79790         Reported by Pádraig Brady.
79792 2009-09-07  Eric Blake  <ebb9@byu.net>
79794         rename: modernize replacement
79795         * modules/rename (Depends-on): Add stdio.
79796         (configure.ac): Declare witness.
79797         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
79798         stdio take care of replacement.
79799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
79800         * modules/stdio (Makefile.am): Substitute them.
79801         * lib/stdio.in.h (rename): Declare replacement.
79802         * lib/rename.c (includes): Allow cross-compilation to non-windows
79803         machines.
79804         * doc/posix-functions/rename.texi (rename): Improve
79805         documentation.
79807         stdio: sort witness names
79808         * modules/stdio (Makefile.am): Sort replacements.
79809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
79810         * lib/stdio.in.h: Likewise.
79812         getcwd: minor cleanups
79813         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
79814         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
79816         openat: provide more convenience names
79817         * modules/faccessat (configure.ac): Add C witness.
79818         * lib/unistd.in.h (readlinkat): Fix typo.
79819         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
79820         convenience wrappers.
79821         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
79822         wrappers in syntax checks.
79824 2009-09-06  Eric Blake  <ebb9@byu.net>
79826         doc: fix comments in recent patches
79827         * lib/faccessat.c: Mention correct function.
79828         * lib/fchmodat.c: Likewise.
79829         * lib/fchownat.c: Likewise.
79830         * lib/symlinkat.c: Likewise.
79831         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
79832         constants.
79834         faccessat, symlinkat: continue cleanup of previous patch
79835         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
79836         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
79837         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
79838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
79839         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
79840         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
79841         set.
79843 2009-09-06  Bruno Haible  <bruno@clisp.org>
79845         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
79846         (fstatat): Declare if GNULIB_FSTATAT is set.
79847         (mkdirat): Declare if GNULIB_MKDIRAT is set.
79848         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
79849         (unlinkat): Declare if GNULIB_UNLINKAT is set.
79850         * modules/fcntl-h (Files): Remove m4/openat.m4.
79851         * modules/sys_stat (Files): Remove m4/openat.m4.
79852         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
79853         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
79854         * modules/unistd (Files): Remove m4/openat.m4.
79855         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
79856         GNULIB_OPENAT.
79857         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
79858         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
79859         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
79860         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
79861         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
79862         gl_OPENAT_DEFAULTS.
79863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
79864         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
79865         Don't require gl_OPENAT_DEFAULTS.
79866         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
79867         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
79868         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
79869         (gl_OPENAT_DEFAULTS): Remove macro.
79871 2009-09-06  Bruno Haible  <bruno@clisp.org>
79873         * modules/openat (configure.ac): Remove unneeded witness.
79875 2009-09-06  Bruno Haible  <bruno@clisp.org>
79877         Set errno to ENOSYS when a function is entirely unsupported.
79878         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
79879         EOPNOTSUPP.
79880         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
79881         * modules/chown (Depends-on): Remove errno.
79883 2009-09-06  Bruno Haible  <bruno@clisp.org>
79885         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
79887 2009-09-06  Bruno Haible  <bruno@clisp.org>
79889         * lib/sys_stat.in.h: Fix preprocessor command indentation.
79891 2009-09-06  Ben Pfaff  <blp@gnu.org>
79892             Bruno Haible  <bruno@clisp.org>
79894         Work around a glibc bug in strtok_r.
79895         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
79896         Undefine if UNDEFINE_STRTOK_R is set.
79897         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
79898         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
79899         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
79900         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
79901         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
79902         UNDEFINE_STRTOK_R.
79903         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
79905 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
79907         exclude: minor fix
79908         * lib/exclude.c: Include wctype.h
79910 2009-09-06  Akim Demaille  <demaille@gostai.com>
79912         bootstrap: improve error message
79913         * build-aux/bootstrap (find_tool): Upon failure, report the list
79914         of candidates.
79915         Honor the initial value of the envvar.
79917 2009-09-05  Eric Blake  <ebb9@byu.net>
79919         symlinkat: new module
79920         * modules/symlinkat: New file.
79921         * lib/symlinkat.c: Likewise.
79922         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
79923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79924         * modules/unistd (Makefile.am): Use them.
79925         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
79926         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
79927         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
79928         * MODULES.html.sh (File system functions): Mention module.
79929         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
79930         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79931         * modules/symlinkat-tests: New test.
79932         * tests/test-symlinkat.c: Likewise.
79934         test-openat-safer: add more checks
79935         * tests/test-openat-safer.c (main): Check more code paths.
79937 2009-09-05  Jim Meyering  <meyering@redhat.com>
79939         syntax-check: detect unnecessary inclusion of openat.h
79940         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
79942 2009-09-05  Bruno Haible  <bruno@clisp.org>
79944         Support towlower, towupper.
79945         * doc/posix-functions/towlower.texi: Mention module wctype.
79946         * doc/posix-functions/towupper.texi: Likewise.
79947         * lib/wctype.in.h (towlower, towupper): New functions.
79948         * tests/test-wctype.c: Include stdio.h, stdlib.h.
79949         (ASSERT): New macro.
79950         (e): New variable.
79951         (main): Test also towlower, towupper. Test WEOF argument.
79952         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
79954 2009-09-05  Bruno Haible  <bruno@clisp.org>
79956         Fix conversion behaviour when the input is invalid.
79957         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
79958         mark occurring in first pass of indirect conversion.
79959         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
79960         input.
79961         Found by clang's static analyzer.
79963 2009-09-05  Bruno Haible  <bruno@clisp.org>
79965         * tests/test-striconveh.c (main): Test indirect conversion on platforms
79966         where direct conversion is possible.
79968 2009-09-04  Eric Blake  <ebb9@byu.net>
79970         openat: fail with ENOENT on empty name
79971         * lib/openat-proc.c (openat_proc_name): Special-case the empty
79972         buffer.
79974         link-follow: fix logic bug in prior patch
79975         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
79976         reversed sense of yes and no in prior patch.  Avoid confusing
79977         compilation failure with desired semantics.
79979         link-follow: accommodate mingw and cross-compilation
79980         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
79981         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
79982         cross-compilation results to -1, to make linkat easier to
79983         implement when cross-compiling.  Trivially support mingw.
79984         * modules/link-follow (configure.ac): Call new name.
79985         * NEWS: Mention this.
79987 2009-09-03  Eric Blake  <ebb9@byu.net>
79989         faccessat: compile replacement
79990         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
79991         needed.
79993         fts: fix compilation error
79994         * lib/fts.c (includes): Re-add "openat.h", for
79995         openat_needs_fchdir.
79997         faccessat: new module
79998         * modules/faccessat: New file.
79999         * lib/faccessat.c: Likewise.
80000         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80002         * modules/unistd (Makefile.am): Use it.
80003         * lib/unistd.in.h (faccessat): Declare it.
80004         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
80005         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
80006         * MODULES.html.sh (File system functions): Mention it.
80007         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
80008         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
80010         euidaccess: prefer POSIX over non-standard implementation
80011         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
80012         * lib/euidaccess.c (euidaccess): Use it if available.
80014         openat: make template easier to use
80015         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
80016         AT_FUNC_F2 to be undefined.
80017         (VALIDATE_FLAG): New macro; use it to reject bad flags.
80018         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
80019         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
80020         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
80021         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
80022         Likewise.
80023         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
80024         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
80025         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
80026         Likewise.
80028         openat: declare in POSIX headers
80029         * NEWS: Mention this.
80030         * modules/openat (configure.ac): Declare witnesses.
80031         (Depends-on): Add fcntl-h, sys_stat, unistd.
80032         (Include): Mention correct headers.
80033         * modules/fcntl-h (Depends-on): Add link-warning.
80034         (Files): Add openat.m4.
80035         (Makefile.am): Substitute witnesses.
80036         * modules/sys_stat (Files, Makefile.am): Likewise.
80037         * modules/unistd (Files, Makefile.am): Likewise.
80038         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
80039         (gl_OPENAT_DEFAULTS): New macro.
80040         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
80041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
80042         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
80043         (SYS_STAT_H): Remove unused variable.
80044         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
80045         * lib/fcntl--.h (includes): Remove unneeded header.
80046         * lib/openat-safer.c (includes): Likewise.
80047         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
80048         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
80049         appropriate headers.
80050         (__OPENAT_PREFIX): Delete.
80051         * lib/fcntl.in.h (openat): Provide declaration.
80052         (AT_FDCWD): Fix Solaris bug.
80053         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
80054         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
80055         * lib/fchmodat.c (includes):  Adjust to find declaration.
80056         * lib/fchownat.c (includes): Likewise.
80057         * lib/mkdirat.c (includes): Likewise.
80058         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
80059         still visible.
80061 2009-09-02  Eric Blake  <ebb9@byu.net>
80063         errno: use consistently
80064         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
80065         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
80066         * lib/canonicalize.c (ELOOP): Likewise.
80067         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
80068         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
80069         * lib/lchown.c (EOPNOTSUPP): Likewise.
80070         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
80071         * lib/savewd.c (ESTALE): Likewise.
80072         * lib/settime.c (ENOSYS): Likewise.
80073         * lib/utimens.c (ENOSYS): Likewise.
80074         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
80075         * lib/chdir-safer.c (ELOOP): Likewise.
80076         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
80077         * modules/c-stack (Depends-on): Add errno.
80078         * modules/canonicalize (Depends-on): Likewise.
80079         * modules/chdir-safer (Depends-on): Likewise.
80080         * modules/fdopendir (Depends-on): Likewise.
80081         * modules/inet_ntop (Depends-on): Likewise.
80082         * modules/inet_pton (Depends-on): Likewise.
80083         * modules/lchown (Depends-on): Likewise.
80084         * modules/openat (Depends-on): Likewise.
80085         * modules/savewd (Depends-on): Likewise.
80086         * modules/settime (Depends-on): Likewise.
80087         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
80089         fts: avoid leaking fds
80090         * modules/fts (Depends-on): Add cloexec.
80091         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
80092         flag.
80094         fts: make directory fds more robust
80095         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
80096         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
80098         backupfile, chdir-long, fts, savedir: make safer
80099         * lib/backupfile.c (includes): Use "dirent--.h", since
80100         numbered_backup can write to stderr during readdir.
80101         * lib/savedir.c (includes): Likewise.
80102         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
80103         emulation can write to stderr on failure.
80104         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
80105         * lib/getcwd.c: Document why opendir_safer is unused.
80106         * lib/glob.c: Likewise.
80107         * lib/scandir.c: Likewise.
80108         * lib/openat-proc.c: Likewise, for open_safer.
80109         * modules/backupfile (Depends-on): Add dirent-safer.
80110         * modules/savedir (Depends-on): Likewise.
80111         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
80112         * modules/chdir-long (Depends-on): Add openat-safer.
80114         openat-safer: new module
80115         * modules/openat-safer: New file.
80116         * lib/openat-safer.c: Likewise.
80117         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
80118         * lib/fcntl-safer.h (openat_safer): Declare.
80119         * lib/fcntl--.h (openat): Override.
80120         * MODULES.html.sh (File descriptor based I/O): Mention it.
80121         * lib/openat.h: Add double-inclusion guards.
80122         * lib/openat.c (includes): Only include "fcntl-safer.h", not
80123         "fcntl--.h", so we can implement openat.
80124         * modules/openat-safer-tests: New test.
80125         * tests/test-openat-safer.c: New file.
80127         dirent-safer: new module
80128         * modules/dirent-safer: New file.
80129         * lib/dirent--.h: Likewise.
80130         * lib/dirent-safer.h: Likewise.
80131         * lib/opendir-safer.c: Likewise.
80132         * m4/dirent-safer.m4: Likewise.
80133         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
80134         * modules/dirent-safer-tests: New test.
80135         * tests/test-dirent-safer.c: New file.
80136         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
80138         fdopendir: optimize on mingw
80139         * lib/unistd.in.h (_gl_directory_name): New prototype.
80140         * lib/fchdir.c (_gl_directory_name): Implement it.
80141         (fchdir): Use it to simplify implementation.
80142         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
80143         fchdir, when available, to avoid calling [f]chdir().
80145         fdopendir: split into its own module
80146         * lib/openat.c (fdopendir): Move...
80147         * lib/fdopendir.c: ...into new file.
80148         * modules/fdopendir: New module.
80149         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
80150         * modules/openat (Depends-on): Add fdopendir.
80151         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
80152         fdopendir here.
80153         * modules/savedir (Depends-on): Only need fdopendir, not full
80154         openat.
80155         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
80156         * lib/openat.h (fdopendir): Drop prototype.
80157         * lib/dirent.in.h (fdopendir): Provide prototype.
80158         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
80159         * modules/dirent (Makefile.am): Substitute them.
80160         * MODULES.html.sh (File system functions): Mention it.
80161         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
80162         * modules/fdopendir-tests: New file.
80163         * tests/test-fdopendir.c: Likewise.
80165         fchdir: use more consistent macro convention
80166         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
80167         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
80168         REPLACE_FCHDIR, rather than relying on config.h macros.
80169         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
80170         inside a single make-time REPLACE_FCHDIR block, rather than using
80171         the config.h FCHDIR_REPLACEMENT.
80172         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
80173         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
80174         Manage fstat replacement.
80175         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
80176         REPLACE_FCHDIR.
80177         * modules/sys_stat (Files): Add m4/unistd_h.m4.
80178         (Makefile.am): Substitute REPLACE_FCHDIR.
80179         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
80180         FCHDIR_REPLACEMENT.
80181         * lib/dup-safer.c (dup_safer): Likewise.
80182         * lib/dup2.c (rpl_dup2): Likewise.
80183         * lib/dup3.c (rpl_dup3): Likewise.
80184         * lib/open.c (rpl_open): Likewise.
80186         fchdir: simplify error handling, and support dup3
80187         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
80188         stdbool, malloc-posix, realloc-posix.
80189         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
80190         (ensure_dirs_slot): Return false on allocation failure.
80191         (rpl_dup2): Delete.
80192         (_gl_register_dup): New function.
80193         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
80194         (_gl_register_fd): Close fd on allocation failure.
80195         * lib/fcntl.in.h (_gl_register_fd): Update signature.
80196         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
80197         prototype.
80198         (rpl_dup2_fchdir): Delete prototype.
80199         * lib/open.c (open): Update caller.
80200         * lib/dup2.c (dup2): Track fchdir metadata.
80201         * lib/dup3.c (dup3): Likewise.
80202         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
80203         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
80205 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80207         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
80208         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
80209         don't pass arguments to AC_OUTPUT.
80211 2009-09-02  Bruno Haible  <bruno@clisp.org>
80213         * modules/mkdtemp (License): Relicense under LGPLv2+.
80214         Reported by Paolo Bonzini.
80216 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80218         Replace uses of obsolete autoconf macros in Jim's modules.
80219         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
80220         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
80221         can evoke a warning from autoconf when run with -Wobsolete
80222         enabled.  They were declared obsolete for good reasons (see
80223         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
80224         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
80225         should not continue using the deprecated macros.
80226         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
80227         obsolete Autoconf macros with modern counterparts.
80228         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80229         * m4/dos.m4 (gl_AC_DOS): Likewise.
80230         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
80231         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
80232         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
80233         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
80234         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
80235         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
80236         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
80237         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
80238         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
80239         Likewise.
80240         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
80241         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80242         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
80243         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
80244         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
80245         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80247 2009-09-01  Eric Blake  <ebb9@byu.net>
80249         fchdir: fix off-by-one bug in previous patch
80250         * lib/fchdir.c (rpl_fstat): Use correct bounds.
80251         (_gl_unregister_fd): Delete useless if.
80253 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
80255         maint.mk: sort the list of syntax-check rules
80256         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
80257         easier to get a sense of progress when the rules are run sequentially
80258         and take a long time.
80260 2009-09-01  Simon Josefsson  <simon@josefsson.org>
80262         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
80263         * modules/netinet_in: Likewise.
80264         * modules/sys_file: Likewise.
80265         * modules/sys_ioctl: Likewise.
80266         * modules/sys_select: Likewise.
80267         * modules/sys_socket: Likewise.
80268         * modules/sys_stat: Likewise.
80269         * modules/sys_time: Likewise.
80270         * modules/sys_times: Likewise.
80271         * modules/sys_utsname: Likewise.
80272         * modules/sys_wait: Likewise.
80274 2009-09-01  Jim Meyering  <meyering@redhat.com>
80276         fts: help ensure that return values are not ignored
80277         * lib/fts_.h (__GNUC_PREREQ): Define.
80278         (__attribute_warn_unused_result__): Define.
80279         (fts_children, fts_close, fts_open, fts_read): Declare with
80280         __attribute_warn_unused_result__.
80282         fts: fts_close now fails also when closing a dir file descriptor fails
80283         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
80284         and propagate to caller, along with errno.
80286         announce-gen: correct formatting in --help output
80287         * build-aux/announce-gen (usage): Move the one-line description in
80288         --help output "up", to where it belongs, just after Usage:.
80290 2009-08-31  Eric Blake  <ebb9@byu.net>
80292         fchdir: port to mingw
80293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
80294         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
80295         opened, then use a substitute.
80296         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
80297         replacement.
80298         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
80299         (_gl_register_fd): No need to check stat if open already filters
80300         all directories.
80301         (fchdir): Fix error condition to match POSIX.
80302         * modules/fchdir (Depends-on): Add sys_stat.
80303         * doc/posix-functions/open.texi (open): Document the limitation.
80304         * modules/fchdir-tests: New file.
80305         * tests/test-fchdir.c: Likewise.
80307         canonicalize: allow cross-testing from cygwin to mingw
80308         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
80309         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
80310         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
80311         Likewise.
80312         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
80313         target does not support symlinks.
80314         * tests/test-canonicalize-lgpl.sh: Likewise.
80316         chown: avoid compilation warning on mingw
80317         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
80318         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
80319         mingw.
80320         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
80321         * modules/chown (Depends-on): Add errno.
80323 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
80325         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
80326         command.
80328 2009-08-31  Jim Meyering  <meyering@redhat.com>
80330         canonicalize: remove useless initialization
80331         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
80332         initialization of local, "end".
80334 2009-08-30  Bruno Haible  <bruno@clisp.org>
80336         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
80337         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
80338         ENOSYS.
80340 2009-08-30  Bruno Haible  <bruno@clisp.org>
80342         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
80343         /usr/xpg4/bin/tr when it exists.
80344         * tests/test-pipe-filter-gi1.sh: Likewise.
80346 2009-08-30  Bruno Haible  <bruno@clisp.org>
80348         Work around deficient /usr/bin/id program on Solaris.
80349         * tests/test-file-has-acl.sh (ID): New variable.
80350         * tests/test-set-mode-acl.sh (ID): Likewise.
80351         * tests/test-copy-acl.sh (ID): Likewise.
80352         * tests/test-copy-file.sh (ID): Likewise.
80354 2009-08-30  Bruno Haible  <bruno@clisp.org>
80356         New module 'xstriconveh'.
80357         * lib/xstriconveh.h: New file.
80358         * lib/xstriconveh.c: New file.
80359         * modules/xstriconveh: New file.
80361 2009-08-30  Bruno Haible  <bruno@clisp.org>
80363         Make it easier to use mem_cd_iconveh.
80364         * lib/striconveh.h (iconveh_t): New type.
80365         (iconveh_open, iconveh_close): New declarations.
80366         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80367         with a single 'const iconveh_t *' argument.
80368         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
80369         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80370         with a single 'const iconveh_t *' argument.
80371         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
80372         * tests/test-striconveh.c (main): Update.
80373         * NEWS: Mention the change.
80375 2009-08-30  Bruno Haible  <bruno@clisp.org>
80377         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
80378         problem.
80380 2009-08-30  Bruno Haible  <bruno@clisp.org>
80382         Work around iconv_open problem on Solaris.
80383         * lib/iconv_open-solaris.gperf: New file.
80384         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
80385         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
80386         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
80387         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
80388         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
80389         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
80391 2009-08-29  Jim Meyering  <meyering@redhat.com>
80393         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
80394         * top/maint.mk (cvs-check): Remove target; it was just an alias
80395         to the better-named vc-diff-check.
80396         (maintainer-distcheck): Remove rule.  It was used only from
80397         the (alpha/beta/major) target, and all of its commands but one
80398         were coreutils-specific.
80399         (vc-dist): Remove rule.
80400         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
80401         Run vc-diff-check, not vc-dist.
80402         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
80404 2009-08-27  Bruno Haible  <bruno@clisp.org>
80406         * tests/test-bitrotate.c (main): Remove test that uses a shift count
80407         of 0.
80409 2009-08-27  Bruno Haible  <bruno@clisp.org>
80411         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
80412         compilers.
80413         * doc/func.texi: Document the SunPRO C bug.
80415 2009-08-27  Bruno Haible  <bruno@clisp.org>
80417         Fix link error on Solaris.
80418         * tests/test-parse-duration.c (xstrdup): Remove function.
80420 2009-08-26  Pádraig Brady  <P@draigbrady.com>
80422         ignore-value: handle pointer types, too
80423         * lib/ignore-value.h (__attribute__): Remove definition.
80424         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
80425         of a more concise and more-often effective "(void) i" statement.
80426         (ignore_ptr): New function to suppress warnings from functions that
80427         return pointers, and to make it explicit that one function doesn't
80428         handle all cases.
80430 2009-08-25  Bruno Haible  <bruno@clisp.org>
80432         dup2: work around a Linux bug.
80433         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
80434         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
80435         * doc/posix-functions/dup2.texi: Mention the Linux bug.
80436         Reported by Simon Josefsson.
80438 2009-08-25  Jim Meyering  <meyering@redhat.com>
80440         libguestfs uses gnulib
80441         * users.txt: Add libguestfs.
80443 2009-08-24  Eric Blake  <ebb9@byu.net>
80445         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
80446         * lib/pipe2.c (includes): Add binary-io.h.
80447         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
80449 2009-08-24  Bruno Haible  <bruno@clisp.org>
80451         Tolerate declared but missing accept4 syscall.
80452         * lib/accept4.c (accept4): Invoke original accept4 function first, if
80453         available.
80454         * lib/sys_socket.in.h (accept4): If the function is already present,
80455         override it.
80456         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
80457         * modules/accept4 (Makefile.am): Compile accept4.c always.
80458         Reported by Paolo Bonzini and Eric Blake.
80460 2009-08-23  Bruno Haible  <bruno@clisp.org>
80462         New module 'accept4'.
80463         * lib/sys_socket.in.h (accept4): New declaration.
80464         * lib/accept4.c: New file.
80465         * m4/accept4.m4: New file.
80466         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
80467         GNULIB_ACCEPT4, HAVE_ACCEPT4.
80468         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
80469         HAVE_ACCEPT4.
80470         * modules/accept4: New file.
80471         * doc/glibc-functions/accept4.texi: Mention the new module.
80473 2009-08-24  Jim Meyering  <meyering@redhat.com>
80475         progname: also set global program_invocation_name, when possible
80476         Before this change, a libtool-enabled program that calls glibc's
80477         error function would report the program name as
80478         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
80479         * modules/progname (configure.ac): Check for a declaration of
80480         program_invocation_name.
80481         * lib/progname.c:  Include <errno.h>.
80482         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
80483         Set program_invocation_name.
80485 2009-08-23  Bruno Haible  <bruno@clisp.org>
80487         * lib/dup3.c: Include <string.h>.
80489 2009-08-23  Bruno Haible  <bruno@clisp.org>
80491         * lib/dup3.c (dup3): Test only once whether the system actually exists.
80492         * lib/pipe2.c (pipe2): Likewise.
80493         Suggested by Eric Blake.
80495 2009-08-23  Bruno Haible  <bruno@clisp.org>
80497         Tolerate declared but missing dup3 syscall.
80498         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
80499         * lib/unistd.in.h (dup3): If the function is already present,
80500         override it.
80501         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
80502         * modules/dup3 (Makefile.am): Compile dup3.c always.
80503         Reported by Paolo Bonzini.
80505 2009-08-23  Bruno Haible  <bruno@clisp.org>
80507         Tolerate declared but missing pipe2 syscall.
80508         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
80509         available.
80510         * lib/unistd.in.h (pipe2): If the function is already present,
80511         override it.
80512         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
80513         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
80514         Reported by Paolo Bonzini.
80516 2009-08-23  Bruno Haible  <bruno@clisp.org>
80518         * lib/pipe2.c (pipe2): Move #ifs inside function.
80520 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80522         quotearg: document limitations of quote_these_too
80523         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
80524         those limitations are created.
80525         * lib/quotearg.h (set_char_quoting): Document that digits and
80526         letters that are special after backslash are not permitted.
80527         (quotearg_char): Cross-reference set_char_quoting documentation.
80529 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
80531         quotearg: implement custom_quoting_style
80532         * lib/quotearg.c: (struct quoting_options): Add left_quote and
80533         right_quote fields.
80534         (set_custom_quoting): New public function.
80535         (quotearg_buffer_restyled): Add left_quote and right_quote
80536         arguments, handle them very much like locale quoting, and update
80537         all uses.
80538         (quotearg_n_custom): New public function.
80539         (quotearg_n_custom_mem): New public function.
80540         (quotearg_custom): New public function.
80541         (quotearg_custom_mem): New public function.
80542         * lib/quotearg.h: Prototype and document new public functions.
80543         (enum quoting_style): For escape_quoting_style and
80544         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
80545         ignored even though they're otherwise like c_quoting_style.
80546         Add custom_quoting_style member and document with comparison to
80547         clocale_quoting_style.
80548         * tests/test-quotearg.c (custom_quotes): New array.
80549         (custom_results): New array.
80550         (main): Extend to test custom quoting.
80552 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80554         quotearg: fix right quote escaping when it's in quote_these_too
80555         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
80556         quote, be sure to prepend only one backslash.
80557         * tests/test-quotearg.c (use_quote_double_quotes): New function.
80558         (main): Test it.
80560 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80562         quotearg-tests: test escaping of embedded locale quotes
80563         * tests/test-quotearg.c (struct result_strings): Add member for
80564         new input.
80565         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
80566         (inputs): Add new input.
80567         (results_g): Add expected results.
80568         (flag_results): Likewise.
80569         (locale_results): Likewise.
80570         (compare_strings): Check those.
80572 2009-08-23  Bruno Haible  <bruno@clisp.org>
80574         Tests for module 'dup3'.
80575         * modules/dup3-tests: New file.
80576         * tests/test-dup3.c: New file.
80578         New module 'dup3'.
80579         * lib/unistd.in.h (dup3): New declaration.
80580         * lib/dup3.c: New file.
80581         * m4/dup3.m4: New file.
80582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
80583         HAVE_DUP3.
80584         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
80585         * modules/dup3: New file.
80586         * doc/glibc-functions/dup3.texi: Mention the new module.
80588 2009-08-23  Bruno Haible  <bruno@clisp.org>
80590         Tweak the dup2 test.
80591         * tests/test-dup2.c (main): Create the test file empty. Verify that an
80592         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
80593         the test file is still empty. Fix argument order of lseek.
80595 2009-08-23  Bruno Haible  <bruno@clisp.org>
80597         Avoid test link errors when the modules getopt-gnu, gettext are used.
80598         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
80599         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80601 2009-08-23  Bruno Haible  <bruno@clisp.org>
80603         Fix getdtablesize() on mingw.
80604         * lib/getdtablesize.c (getdtablesize): Implement differently.
80605         * lib/unistd.in.h (getdtablesize): Improve comment.
80607 2009-08-23  Bruno Haible  <bruno@clisp.org>
80609         New module 'mkostemp'.
80610         Based on Ulrich Drepper's 2007-08-10 change in glibc.
80611         * lib/stdlib.in.h (mksotemp): New declaration.
80612         * lib/mkostemp.c: New file, from glibc with modifications.
80613         * lib/tempname.h (GT_FILE): Remove outdated comment.
80614         (gen_tempname): Add flags argument.
80615         * lib/tempname.c (__GT_BIGFILE): Remove macro.
80616         (__GT_FILE): Map to 1.
80617         (small_open, large_open): Remove macros.
80618         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
80619         * lib/mkstemp.c (mkstemp): Update.
80620         * lib/mkdtemp.c (mkdtemp): Likewise.
80621         * m4/mkostemp.m4: New file.
80622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
80623         HAVE_MKOSTEMP.
80624         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
80625         HAVE_MKOSTEMP.
80626         * modules/mkostemp: New file, based on modules/mkstemp.
80627         * doc/glibc-functions/mkostemp.texi: Mention the new module.
80628         * NEWS: Mention the change.
80630 2009-08-23  Bruno Haible  <bruno@clisp.org>
80632         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
80633         Reported by Eric Blake.
80635 2009-08-23  Bruno Haible  <bruno@clisp.org>
80637         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
80638         Reported by Eric Blake.
80640 2009-08-23  Bruno Haible  <bruno@clisp.org>
80642         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
80643         * modules/pipe2 (Depends-on): Likewise.
80645 2009-08-23  Eric Blake  <ebb9@byu.net>
80647         fcntl-h: add O_TTY_INIT support
80648         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
80649         * tests/test-fcntl-h.c (o): Test it.
80650         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
80652         fcntl-h: rename from fcntl, in preparation for fcntl(2)
80653         * modules/fcntl: Move <fcntl.h> header replacement...
80654         * modules/fcntl-h: ...to new name, so as not to collide with
80655         like-named function.
80656         * tests/test-fcntl.c: Rename...
80657         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
80658         * modules/fcntl-tests: Rename...
80659         * modules/fcntl-h-tests: ...to this.  Update test file name.
80660         * modules/chdir-long (Depends-on): Update clients.
80661         * modules/chdir-safer (Depends-on): Likewise.
80662         * modules/fcntl-safer (Depends-on): Likewise.
80663         * modules/fts (Depends-on): Likewise.
80664         * modules/mkancesdirs (Depends-on): Likewise.
80665         * modules/mkdir-p (Depends-on): Likewise.
80666         * modules/open (Depends-on): Likewise.
80667         * modules/savewd (Depends-on): Likewise.
80668         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
80669         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
80671 2009-08-22  Bruno Haible  <bruno@clisp.org>
80673         * modules/binary-io (License): Relicense under LGPL.
80674         * modules/pipe2 (License): Likewise.
80676 2009-08-22  Bruno Haible  <bruno@clisp.org>
80678         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
80679         return value.
80680         * lib/pipe-filter-gi.c (filter_init): Likewise.
80681         Reported by Eric Blake.
80683 2009-08-22  Bruno Haible  <bruno@clisp.org>
80685         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
80686         * modules/pipe (Depends-on): Add pipe2.
80688 2009-08-22  Bruno Haible  <bruno@clisp.org>
80690         Tests for module 'pipe2'.
80691         * modules/pipe2-tests: New file.
80692         * tests/test-pipe2.c: New file.
80694         New module 'pipe2'.
80695         * lib/unistd.in.h (pipe2): New declaration.
80696         * lib/pipe2.c: New file.
80697         * m4/pipe2.m4: New file.
80698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
80699         HAVE_PIPE2.
80700         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
80701         * modules/pipe2: New file.
80702         * doc/glibc-functions/pipe2.texi: Mention the new module.
80704 2009-08-22  Bruno Haible  <bruno@clisp.org>
80706         Reference some new glibc functions.
80707         * doc/glibc-functions/accept4.texi: New file.
80708         * doc/glibc-functions/dup3.texi: New file.
80709         * doc/glibc-functions/mkostemp.texi: New file.
80710         * doc/glibc-functions/pipe2.texi: New file.
80711         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
80712         (Glibc sys/socket.h): Refer to accept4.
80713         (Glibc unistd.h): Refer to dup3, pipe2.
80714         Reported by Eric Blake.
80716 2009-08-22  Jim Meyering  <meyering@redhat.com>
80717             Bruno Haible  <bruno@clisp.org>
80719         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
80720         This makes it so packages using automake-1.11's silent-rules option
80721         can print e.g., a single "GEN    configmake.h" line, rather than
80722         the 30+ statements that perform the job.  If you want to see the
80723         actual commands, you can still run "make V=1".
80724         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
80725         so that make output is abbreviated when those variables are defined
80726         appropriately.
80727         * modules/argz: Likewise.
80728         * modules/arpa_inet: Likewise.
80729         * modules/byteswap: Likewise.
80730         * modules/configmake: Likewise.
80731         * modules/dirent: Likewise.
80732         * modules/errno: Likewise.
80733         * modules/fcntl: Likewise.
80734         * modules/float: Likewise.
80735         * modules/fnmatch: Likewise.
80736         * modules/getopt-posix: Likewise.
80737         * modules/glob: Likewise.
80738         * modules/iconv_open: Likewise.
80739         * modules/inttypes: Likewise.
80740         * modules/localcharset: Likewise.
80741         * modules/locale: Likewise.
80742         * modules/math: Likewise.
80743         * modules/netdb: Likewise.
80744         * modules/netinet_in: Likewise.
80745         * modules/poll: Likewise.
80746         * modules/posix_spawnp-tests: Likewise.
80747         * modules/sched: Likewise.
80748         * modules/search: Likewise.
80749         * modules/selinux-h: Likewise.
80750         * modules/signal: Likewise.
80751         * modules/spawn: Likewise.
80752         * modules/stdarg: Likewise.
80753         * modules/stdbool: Likewise.
80754         * modules/stddef: Likewise.
80755         * modules/stdint: Likewise.
80756         * modules/stdio: Likewise.
80757         * modules/stdlib: Likewise.
80758         * modules/string: Likewise.
80759         * modules/strings: Likewise.
80760         * modules/sys_file: Likewise.
80761         * modules/sys_ioctl: Likewise.
80762         * modules/sys_select: Likewise.
80763         * modules/sys_socket: Likewise.
80764         * modules/sys_stat: Likewise.
80765         * modules/sys_time: Likewise.
80766         * modules/sys_times: Likewise.
80767         * modules/sys_utsname: Likewise.
80768         * modules/sys_wait: Likewise.
80769         * modules/sysexits: Likewise.
80770         * modules/time: Likewise.
80771         * modules/unistd: Likewise.
80772         * modules/wchar: Likewise.
80773         * modules/wctype: Likewise.
80775 2009-08-22  Jim Meyering  <meyering@redhat.com>
80777         announce-gen: detect write failure
80778         * build-aux/announce-gen: Add Coda at end.
80779         Remove equivalent-but-more-verbose block at top.
80781 2009-08-19  Akim Demaille  <demaille@gostai.com>
80783         bootstrap: --help to stdout.
80784         * bootstrap (usage): Don't send --help to stderr.
80785         Use a here doc instead of a long string.
80787 2009-08-21  Eric Blake  <ebb9@byu.net>
80789         test-popen-safer: split from test-popen
80790         * tests/test-popen.c (main): Move...
80791         * tests/test-popen.h: ...into new file.
80792         * tests/test-popen-safer2.c: New file.
80793         * modules/popen-tests (Files): Add test-popen.h.
80794         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
80795         Suggested by Bruno Haible.
80797         test-fcntl-safer: split from test-open
80798         * tests/test-open.c (main): Move...
80799         * tests/test-open.h: ...into new file.
80800         * tests/test-fcntl-safer.c: New file.
80801         * modules/open-tests (Files): Add test-open.h.
80802         * modules/fcntl-safer-tests: New file.
80803         Suggested by Bruno Haible.
80805         test-fopen-safer: split from test-fopen
80806         * tests/test-fopen.c (main): Move...
80807         * tests/test-fopen.h: ...into new file.
80808         * tests/test-fopen-safer.c: New file.
80809         * modules/fopen-tests (Files): Add test-fopen.h.
80810         * modules/fopen-safer-tests: New file.
80811         Suggested by Bruno Haible.
80813 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
80815         popen-safer: test O_CLOEXEC at run-time.
80816         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
80818 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
80820         fcntl: move more flags to the header
80821         * lib/cloexec.c: Do not define FD_CLOEXEC here.
80822         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
80823         * lib/fcntl.in.h: Do both things here.
80825 2009-08-21  Jim Meyering  <meyering@redhat.com>
80827         consistently remove $@-t before redirecting to it
80828         * modules/argz: Remove $@-t and $@ before redirecting to the former.
80829         * modules/alloca-opt: Likewise.
80830         * modules/byteswap: Likewise.
80831         * modules/fnmatch: Likewise.
80832         * modules/getopt-posix: Likewise.
80833         * modules/glob: Likewise.
80834         * modules/poll: Likewise.
80835         * modules/posix_spawnp-tests: Likewise.
80836         * modules/sys_socket: Likewise.
80837         * modules/sysexits: Likewise.
80839 2009-08-21  Eric Blake  <ebb9@byu.net>
80841         popen: simplify access to original popen
80842         * lib/popen.c (rpl_popen): No need to worry about popen being a
80843         macro.
80844         Reported by Bruno Haible.
80846 2009-08-20  Eric Blake  <ebb9@byu.net>
80848         build: avoid some compiler warnings
80849         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
80850         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
80851         type.
80852         (new_exclude_segment, excluded_file_pattern_p)
80853         (excluded_file_name_p): Reduce scope.
80854         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
80855         old-style declaration.
80857 2009-08-20  Simon Josefsson  <simon@josefsson.org>
80859         * tests/test-exclude1.sh: Handle Windows EOL.
80860         * tests/test-exclude2.sh: Likewise.
80861         * tests/test-exclude3.sh: Likewise.
80862         * tests/test-exclude4.sh: Likewise.
80863         * tests/test-exclude5.sh: Likewise.
80864         * tests/test-exclude6.sh: Likewise.
80865         * tests/test-exclude7.sh: Likewise.
80867 2009-08-19  Akim Demaille  <demaille@gostai.com>
80869         bootstrap: find sha1sum when named gsha1sum.
80870         * bootstrap (find_tool): New.
80871         ($SHA1SUM): New.
80872         Use it.
80874 2009-08-20  Jim Meyering  <meyering@redhat.com>
80876         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
80877         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
80878         expression that converts "." in a file name to "\." in the resulting
80879         regexp.  Start with a dummy statement, so that prior shell variable
80880         definitions are expanded portably.  Reported by Simon Josefsson.
80882 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
80884         Fix polling for writeability of a screen buffer.
80885         * lib/poll.c: Distinguish input and screen buffers for the
80886         Win32 implementation.
80887         * lib/select.c: Likewise.
80889 2009-08-19  Eric Blake  <ebb9@byu.net>
80891         popen-safer: prevent popen from clobbering std descriptors
80892         * modules/popen-safer: New file.
80893         * lib/popen-safer.c: Likewise.
80894         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
80895         * lib/stdio--.h (popen): Provide override.
80896         * lib/stdio-safer.h (popen_safer): Provide declaration.
80897         * tests/test-popen.c (includes): Partially test this.
80898         * modules/popen-safer-tests: New file, for more tests.
80899         * tests/test-popen-safer.c: Likewise.
80900         * MODULES.html.sh (file stream based Input/Output): Mention it.
80902         tests: test some of the *-safer modules
80903         * modules/fopen-safer (Depends-on): Add fopen.
80904         * modules/fcntl-safer (Depends-on): Add fcntl.
80905         * modules/stdlib-safer (Depends-on): Add stdlib.
80906         (configure.ac): Set indicator.
80907         * modules/unistd-safer (configure.ac): Likewise.
80908         * modules/tmpfile-safer (configure.ac): Likewise.
80909         (Depends-on): Add tmpfile.
80910         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
80911         active.
80912         * tests/test-fopen.c (includes): Test safer versions when they are
80913         in use.
80914         * tests/test-open.c (includes): Likewise.
80916         popen: fix cygwin 1.5 bug when stdin closed
80917         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
80918         * modules/popen: New file.
80919         * modules/popen-tests: Likewise.
80920         * tests/test-popen.c: Likewise.
80921         * m4/popen.m4: Likewise.
80922         * lib/popen.c: Likewise.
80923         * lib/stdio.in.h (popen): New declaration.
80924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
80925         * modules/stdio (Makefile.am): Likewise.
80926         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
80928 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
80930         maint.mk: give full control over update-copyright exclusions
80931         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
80932         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
80933         (update-copyright): Don't force inclusion of top-level
80934         ChangeLog.  Don't force exclusion of all COPYING files, but make
80935         them the default exclusion instead.
80937 2009-08-16  Bruno Haible  <bruno@clisp.org>
80939         Fix test failures on Solaris 10.
80940         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
80941         tests when Solaris iconv() is used.
80942         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
80943         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
80944         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
80945         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
80946         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
80948 2009-08-16  Bruno Haible  <bruno@clisp.org>
80950         Fix test failures on Solaris 10.
80951         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
80952         'tr' program and pass it as first argument.
80953         * tests/test-pipe-filter-gi1.sh: Likewise.
80954         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
80955         program as first argument.
80956         * tests/test-pipe-filter-gi1.c (main): Likewise.
80958 2009-08-16  Eric Blake  <ebb9@byu.net>
80960         fpurge: fix previous commits
80961         * modules/fpurge (Makefile.am): Make replacement conditional,
80962         partially reverting 2007-04-29 change; missed in previous
80963         attempt.
80964         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
80965         is missing.
80967 2009-08-16  Bruno Haible  <bruno@clisp.org>
80969         Clarify fpurge's effect on the file position.
80970         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
80971         * tests/test-fpurge.c (main): Make a second pass for checking the file
80972         position.
80974 2009-08-16  Bruno Haible  <bruno@clisp.org>
80976         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
80977         declaration of fpurge is missing.
80978         * tests/test-fpurge.c (main): Check that the file has not more contents
80979         than expected. Close the file before removing it.
80981 2009-08-15  Eric Blake  <ebb9@byu.net>
80983         fpurge: don't wrap working cygwin implementation
80984         * lib/fpurge.c (fpurge): Fix comment typo.
80985         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
80986         1.7 to avoid replacement.
80987         * tests/test-fpurge.c (main): Enhance test.
80989 2009-08-15  Eric Blake  <ebb9@byu.net>
80990         and Jim Meyering  <meyering@redhat.com>
80992         test-update-copyright: skip if perl is insufficient
80993         * tests/test-update-copyright.sh: Failure to run maintainer tool
80994         should not cause testsuite failure on cygwin 1.5.
80996 2009-08-14  Eric Blake  <ebb9@byu.net>
80998         doc: mention more functions added in cygwin 1.7.0
80999         * doc/posix-headers/limits.texi (limits.h): Update for recent
81000         cygwin additions.
81001         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
81002         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
81003         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
81004         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
81005         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
81007 2009-08-14  Eric Blake  <ebb9@byu.net>
81009         maint.mk: simplify update-copyright rule
81010         * top/maint.mk (update-copyright-local): Delete, and document how
81011         to do it in cfg.mk instead.
81012         (update-copyright-exclude-regexp): Delete, and document how to do
81013         it in .x-update-copyright instead.
81014         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
81015         exclude ChangeLog.
81017 2009-08-14  Bruno Haible  <bruno@clisp.org>
81019         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
81021 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81023         maint.mk: support update-copyright-env
81024         * top/maint.mk (update-copyright-env): Define place-holder.
81025         (update-copyright): Expand $(update-copyright-env) before
81026         invoking update-copyright.
81028 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81030         update-copyright: implement forced reformatting
81031         * build-aux/update-copyright: Implement and document
81032         UPDATE_COPYRIGHT_FORCE.
81033         * tests/test-update-copyright.sh: Test it.
81035 2009-08-14  Eric Blake  <ebb9@byu.net>
81036         and Bruno Haible  <bruno@clisp.org>
81038         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
81039         * tests/test-locale.c: Revert previous patch related to NULL.
81040         * tests/test-stdio.c: Likewise.
81041         * tests/test-stdlib.c: Likewise.
81042         * tests/test-string.c: Likewise.
81043         * tests/test-unistd.c: Likewise.
81044         * modules/time-tests (Depends-on): Add verify.
81045         * modules/wchar-tests (Depends-on): Likewise.
81046         * tests/test-time.c: Test for NULL compliance.
81047         * tests/test-wchar.c: Likewise.
81048         * modules/locale (Depends-on): Add stddef.
81049         * modules/stdio (Depends-on): Likewise.
81050         * modules/stdlib (Depends-on): Likewise.
81051         * modules/string (Depends-on): Likewise.
81052         * modules/time (Depends-on): Likewise.
81053         * modules/unistd (Depends-on): Likewise.
81054         * modules/wchar (Depends-on): Likewise.
81055         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
81056         * lib/stdlib.in.h (includes): Likewise.
81057         * lib/string.in.h (includes): Likewise.
81058         * lib/time.in.h (includes): Likewise.
81059         * lib/unistd.in.h (includes): Likewise.
81060         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
81061         replaced.
81062         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
81063         * m4/stddef_h.m4: New file.
81064         * modules/stddef: Likewise.
81065         * lib/stddef.in.h: Likewise.
81066         * modules/stddef-tests: Likewise.
81067         * tests/test-stddef.c: Likewise.
81068         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
81069         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
81070         * doc/posix-headers/locale.texi (locale.h): Likewise.
81071         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
81072         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
81073         * doc/posix-headers/string.texi (string.h): Likewise.
81074         * doc/posix-headers/time.texi (time.h): Likewise.
81075         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
81076         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
81078 2009-08-14  Eric Blake  <ebb9@byu.net>
81080         doc: improve git diff of texinfo files
81081         * .gitattributes: Add rule for *.texi files, with hint on how to
81082         use it.
81083         Copied from m4, and based on a report by Bruno Haible.
81085 2009-08-14  Bruno Haible  <bruno@clisp.org>
81087         Disable multithread support by default on Cygwin 1.5.x for real.
81088         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
81090 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81092         update-copyright: much ado about intervals
81093         * build-aux/update-copyright: Implement and document
81094         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
81095         of copyright year intervals.
81096         Also, document UPDATE_COPYRIGHT_YEAR.
81097         * tests/test-update-copyright.sh: Test it.
81099         update-copyright: convert 2-digit to 4-digit years
81100         * build-aux/update-copyright: Implement and document.
81101         * tests/test-update-copyright.sh: Update.
81103 2009-08-14  Jim Meyering  <meyering@redhat.com>
81105         test-exclude: avoid coreutils "make check" failure
81106         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
81107         just as in test-argmatch.c.
81109 2009-08-13  Eric Blake  <ebb9@byu.net>
81111         test-dup2: fix bad assumption
81112         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
81113         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
81115         test-version-etc: fix CRLF portability issue
81116         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
81117         recognize \r.
81118         * tests/test-argp-version-etc-1.sh: Likewise.
81120         getopt: update client modules
81121         * modules/argp (Depends-on): Use getopt-gnu.
81122         * modules/git-merge-changelog (Depends-on): Likewise.
81123         * modules/long-options (Depends-on): Likewise.
81124         * modules/xstrtol (Depends-on): Likewise.
81126 2009-08-13  Simon Josefsson  <simon@josefsson.org>
81128         * tests/test-version-etc.sh: Don't fail on different
81129         project/version.  Don't fail on CRLF differences.  Rewrite to use
81130         multiple -e instead of multiple sed forks, suggested by Eric Blake
81131         <ebb9@byu.net>.
81132         * tests/test-argp-version-etc-1.sh: Likewise.
81134 2009-08-13  Simon Josefsson  <simon@josefsson.org>
81136         * tests/test-version-etc.sh: Don't fail on different
81137         project/version.
81139 2009-08-12  Bruno Haible  <bruno@clisp.org>
81141         Tests for modules 'getopt-posix', 'getopt-gnu'.
81142         * modules/getopt-posix-tests: New file.
81143         * tests/test-getopt.c: New file.
81144         * tests/test-getopt.h: New file.
81145         * tests/test-getopt_long.h: New file.
81147         New modules 'getopt-posix', 'getopt-gnu'.
81148         * modules/getopt-gnu: New file, renamed from modules/getopt.
81149         * modules/getopt-posix: New file.
81150         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
81151         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
81152         (gl_GETOPT): Remove macro.
81153         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
81154         Disable the test against BSD systems that declare optreset. Test
81155         against mingw bug. Test against lack of support of optional arguments
81156         on many platforms.
81157         * doc/glibc-headers/getopt.texi: Update module name and list of
81158         relevant platforms.
81159         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
81160         'getopt-gnu' and more portability problems.
81161         * NEWS: Mention the changes.
81163 2009-08-12  Bruno Haible  <bruno@clisp.org>
81165         Ensure that optarg etc. get declared by <unistd.h>.
81166         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
81167         AC_USE_SYSTEM_EXTENSIONS.
81168         * modules/getopt (Depends-on): Add 'extensions'.
81170 2009-08-12  Bruno Haible  <bruno@clisp.org>
81172         Avoid test link errors.
81173         * modules/pipe-filter-ii-tests (Makefile.am): Define
81174         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
81175         * modules/pipe-filter-gi-tests (Makefile.am): Define
81176         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
81177         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81179 2009-08-12  Bruno Haible  <bruno@clisp.org>
81181         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
81182         gl_GETOPT_SUBSTITUTE before.
81183         (gl_GETOPT): Use it.
81184         * m4/argp.m4 (gl_ARGP): Update.
81185         Reported by Sergey Poznyakoff.
81187         * m4/getopt.m4: Reorder macros.
81188         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
81189         (gl_GETOPT_SUBSTITUTE): Remove macro.
81191 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81193         Minor improvement in gitlog-to-changelog
81195         * build-aux/gitlog-to-changelog: New option `--format' makes
81196         output format string configurable.
81198 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81200         Optimize exclude: use hash tables for non-wildcard patterns.
81202         * lib/exclude.c: Include hash.h and mbuiter.h
81203         (struct exclude_pattern, exclude_segment): New data types.
81204         (struct exclude): Rewrite.
81205         (fnmatch_pattern_has_wildcards): New function.
81206         (new_exclude_segment, free_exclude_segment): New functions.
81207         (excluded_file_pattern_p, excluded_file_name_p): New functions.
81208         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
81209         * lib/exclude.h (is_fnmatch_pattern): New prototype.
81210         * modules/exclude: Depend on hash and mbuiter.
81212         * modules/exclude-tests: New file.
81213         * tests/test-exclude.c: New file.
81214         * tests/test-exclude1.sh: New file.
81215         * tests/test-exclude2.sh: New file.
81216         * tests/test-exclude3.sh: New file.
81217         * tests/test-exclude4.sh: New file.
81218         * tests/test-exclude5.sh: New file.
81219         * tests/test-exclude6.sh: New file.
81220         * tests/test-exclude7.sh: New file.
81222 2009-08-12  Bruno Haible  <bruno@clisp.org>
81224         Ensure that getopt() gets declared by <unistd.h>.
81225         * lib/unistd.in.h: Conditionally include getopt.h.
81226         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
81227         Set GNULIB_UNISTD_H_GETOPT.
81228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81229         GNULIB_UNISTD_H_GETOPT.
81230         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
81232 2009-08-12  Bruno Haible  <bruno@clisp.org>
81234         Clarify logic.
81235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
81236         gl_replace_getopt instead of GETOPT_H.
81238 2009-08-12  Bruno Haible  <bruno@clisp.org>
81240         * m4/getopt.m4: Add comments.
81242 2009-08-12  Bruno Haible  <bruno@clisp.org>
81244         Disable multithread support by default on Cygwin 1.5.x.
81245         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
81246         set gl_use_threads=no if not specified otherwise.
81248 2009-08-11  Bruno Haible  <bruno@clisp.org>
81250         Avoid compilation error on NetBSD 5.0.
81251         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
81252         * tests/test-stdio.c: Likewise.
81253         * tests/test-stdlib.c: Likewise.
81254         * tests/test-string.c: Likewise.
81255         * tests/test-unistd.c: Likewise.
81256         Reported by Greg Troxel <gdt@ir.bbn.com>
81257         at <https://savannah.gnu.org/support/?106973>.
81259 2009-08-11  Bruno Haible  <bruno@clisp.org>
81261         * modules/dup2-tests (Depends-on): Remove close.
81263         Undo 2009-07-19 commit.
81264         * modules/acl-tests (Depends-on): Remove close.
81265         * modules/binary-io-tests (Depends-on): Likewise.
81266         * modules/closein-tests (Depends-on): Likewise.
81267         * modules/flock-tests (Depends-on): Likewise.
81268         * modules/fsync-tests (Depends-on): Likewise.
81269         * modules/lseek-tests (Depends-on): Likewise.
81270         * modules/pipe-tests (Depends-on): Likewise.
81271         * modules/posix_spawn-tests (Depends-on): Likewise.
81272         * modules/posix_spawnp-tests (Depends-on): Likewise.
81273         * modules/stat-time-tests (Depends-on): Likewise.
81274         * modules/yesno-tests (Depends-on): Likewise.
81276 2009-08-10  Bruno Haible  <bruno@clisp.org>
81278         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
81280 2009-08-10  Bruno Haible  <bruno@clisp.org>
81282         Fix a gcc warning.
81283         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
81285 2009-08-10  Bruno Haible  <bruno@clisp.org>
81287         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
81288         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
81289         not only the first time.
81290         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
81291         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
81292         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
81293         is 1, not only the first time.
81295 2009-08-10  Bruno Haible  <bruno@clisp.org>
81297         Make it possible to use module 'gethostname' without module 'close'.
81298         * lib/unistd.in.h (close): Evoke a link error only if
81299         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81301         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81302         * modules/unistd (Makefile.am): Substitute
81303         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81304         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
81305         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81306         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
81307         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81308         * modules/sys_ioctl (Makefile.am): Substitute
81309         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81310         * modules/socket (configure.ac): On native Windows, set
81311         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
81312         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81313         Reported by Sam Steingold <sds@gnu.org>.
81315 2009-08-10  Bruno Haible  <bruno@clisp.org>
81317         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
81318         * modules/ioctl (configure.ac): Likewise.
81320 2009-08-10  Bruno Haible  <bruno@clisp.org>
81322         Avoid collision between gnulib wrapper and libintl wrapper.
81323         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
81324         already defined in intl/printf.c.
81325         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
81326         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
81328 2009-08-09  Bruno Haible  <bruno@clisp.org>
81330         Make <sys/select.h> really self-contained, also on Solaris 10.
81331         * lib/sys_select.in.h: Include <string.h>.
81332         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
81333         Solaris 10 problem.
81334         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
81335         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
81336         Reported by Jim Meyering.
81338 2009-08-09  Bruno Haible  <bruno@clisp.org>
81340         Avoid warnings from 'aclocal' that are due to a use of macro name
81341         AM_XGETTEXT_OPTION that is not defined in automake.
81342         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
81343         automake.
81344         * modules/error (configure.ac): Likewise.
81345         * modules/propername (configure.ac): Likewise.
81346         * modules/vasprintf (configure.ac): Likewise.
81347         * modules/verror (configure.ac): Likewise.
81348         * modules/xprintf (configure.ac): Likewise.
81349         * modules/xvasprintf (configure.ac): Likewise.
81351 2009-08-08  Bruno Haible  <bruno@clisp.org>
81353         Avoid compilation error in C++ mode.
81354         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
81355         Reported by Sam Steingold <sds@gnu.org>.
81357 2009-08-08  Bruno Haible  <bruno@clisp.org>
81359         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
81360         for the various Unix platforms.
81361         * doc/posix-headers/limits.texi: Update platforms list regarding
81362         HOST_NAME_MAX.
81363         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81365 2009-08-07  Jim Meyering  <meyering@redhat.com>
81367         selinux-at: fix typo in a comment
81368         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
81369         Spotted by Paolo Bonzini.
81371         selinux-at: remove redundant m4 code, add documentation
81372         * modules/selinux-at (configure.ac): Remove redundant code.
81373         LIB_SELINUX is already set via the dependent module, selinux-h.
81374         (Include): Add quotes around selinux-at.h.
81375         * lib/selinux-at.h: Add documentation.
81376         Reported by Bruno Haible in
81377         http://marc.info/?l=gnulib-bug&m=124958988300749
81379 2009-08-07  Bruno Haible  <bruno@clisp.org>
81381         Avoid link error on MacOS X 10.3 and 10.4.
81382         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
81383         on non-ELF systems.
81384         * lib/argp-pv.c (argp_program_version): Likewise.
81385         Reported by Simon Josefsson.
81387 2009-08-07  Simon Josefsson  <simon@josefsson.org>
81389         * tests/test-version-etc.sh: Use $EXEEXT.
81391 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
81393         update-copyright: update documentation to point to maint.mk
81394         * build-aux/update-copyright: Here.
81396 2009-08-06  Jim Meyering  <meyering@redhat.com>
81398         maint.mk: support update-copyright-local
81399         * top/maint.mk (update-copyright-local): Define place-holder.
81400         (update-copyright): Depend on $(update-copyright-local).
81402 2009-08-06  Jim Meyering  <meyering@redhat.com>
81404         selinux-at: new module
81405         Initially written for coreutils, this module will soon be
81406         used by findutils, too.
81407         * MODULES.html.sh [Misc]: Add selinux-at.
81408         * lib/selinux-at.h: New file, from coreutils.
81409         * lib/selinux-at.c: Likewise.
81410         * modules/selinux-at: Likewise.
81411         (License): Change from LGPL to GPL, since it depends
81412         on the GPL'd openat module.
81414         doc: update README
81415         * README: Remove references to cogito.
81416         Remove cvs-repo-updating instructions from 2007.
81417         Don't imply that CVS is better if you have limited disk space.
81419 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81421         update-copyright: support C-style comments
81422         * build-aux/update-copyright: Implement and document.
81423         * tests/test-update-copyright.sh: Test.
81425 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81427         update-copyright: support omitted "(C)"
81428         * build-aux/update-copyright: Implement and document.  Also,
81429         allow variable whitespace before "(C)".
81430         * tests/test-update-copyright.sh: Test.
81432 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81434         update-copyright: don't trip on non-FSF copyright statements
81435         * build-aux/update-copyright: Fix so that the first correctly
81436         formatted FSF copyright statement is recognized no matter what
81437         appears before it.  Update documentation.
81438         * tests/test-update-copyright.sh: Test that.
81440 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81442         update-copyright: clean up code a little
81443         * build-aux/update-copyright: Append "_re" to the name of any
81444         variable holding a regular expression.
81445         Replace "old" and "new" with "stmt" in variable names.
81446         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
81447         handled correctly.
81448         Format code more consistently.
81450 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81452         update-copyright-tests: improve portability
81453         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
81454         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
81456 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81458         update-copyright: support @copyright{} and &copy;
81459         * build-aux/update-copyright: Implement and document.
81460         * tests/test-update-copyright.sh: Test.
81462 2009-08-04  Jim Meyering  <meyering@redhat.com>
81464         update-copyright-tests: correctly test EOL=\r\n handling
81465         * tests/test-update-copyright.sh: Put \r at the end of some lines
81466         for the dos-eol tests.  Based on a patch by Joel E. Denny.
81468         maint.mk: make update-copyright exclusion list more configurable
81469         * top/maint.mk (update-copyright): Default to excluding COPYING,
81470         but allow an override, in case someone does want to update that file.
81472         maint.mk: don't update copyright date in COPYING
81473         * top/maint.mk (update-copyright): Exclude COPYING.
81475         maint.mk: add a copyright-updating rule
81476         * top/maint.mk (update-copyright): New rule.
81477         Derived from coreutils/Makefile.am.
81479         update-copyright: rename some variables
81480         * build-aux/update-copyright: Rename a few variables for clarity.
81481         Tweak syntax.  List Joel E. Denny as coauthor.
81483 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81485         update-copyright: fix bug for 2-digit last year and add tests
81486         * build-aux/update-copyright: Fix bug.
81487         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
81488         specified.
81489         * modules/update-copyright-tests: New
81490         * tests/test-update-copyright.sh: New.
81492 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81494         update-copyright: handle leading tabs in line prefix
81495         * build-aux/update-copyright: Count leading tabs as 8 spaces
81496         when computing margin.  This helps with the formatting of
81497         ChangeLogs, for example.
81498         Fix documentation a little.
81500 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81502         update-copyright: support EOL=\r\n
81503         * build-aux/update-copyright: Implement that.
81505 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81507         update-copyright: automatically format copyright statements
81508         * build-aux/update-copyright: Implement that.
81509         Also, be a little more predictable and safer by always failing
81510         when the full copyright format is not perfectly recognized as an
81511         unbroken whole.  Discussed at
81512         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
81513         Rewrite documentation.
81515 2009-08-03  Bruno Haible  <bruno@clisp.org>
81517         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
81519 2009-08-02  Bruno Haible  <bruno@clisp.org>
81521         Tests for module 'uname'.
81522         * modules/uname-tests: New file.
81523         * tests/test-uname.c: New file.
81525         New module 'uname'.
81526         * lib/uname.c: New file.
81527         * m4/uname.m4: New file.
81528         * modules/uname: New file.
81529         * doc/posix-functions/uname.texi: Mention the new module.
81531 2009-08-02  Bruno Haible  <bruno@clisp.org>
81533         Tests for module 'sys_utsname'.
81534         * modules/sys_utsname-tests: New file.
81535         * tests/test-sys_utsname.c: New file.
81537         New module 'sys_utsname'.
81538         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
81539         * m4/sys_utsname_h.m4: New file.
81540         * modules/sys_utsname: New file.
81541         * doc/posix-headers/sys_utsname.texi: Mention the new module.
81543 2009-08-02  Bruno Haible  <bruno@clisp.org>
81545         Implicitly initialize the sockets library.
81546         * lib/gethostname.c: Include sockets.h.
81547         (rpl_gethostname): Invoke gl_sockets_startup.
81548         * lib/socket.c: Include sockets.h.
81549         (rpl_socket): Invoke gl_sockets_startup.
81550         * modules/gethostname (Depends-on): Add sockets.
81551         * modules/socket (Depends-on): Likewise.
81552         * tests/test-poll.c: Don't include sockets.h.
81553         (main): Don't invoke gl_sockets_startup.
81554         * tests/test-select.c: Don't include sockets.h.
81555         (main): Don't invoke gl_sockets_startup.
81557 2009-08-02  Bruno Haible  <bruno@clisp.org>
81559         Allow multiple calls to gl_sockets_startup.
81560         * lib/sockets.c (initialized_sockets_version): New variable.
81561         (gl_sockets_startup): Do nothing if already called for this or a higher
81562         version.
81563         (gl_sockets_cleanup): Reset initialized_sockets_version.
81565 2009-08-03  Simon Josefsson  <simon@josefsson.org>
81567         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
81568         different project/version.
81570 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
81571             Bruno Haible  <bruno@clisp.org>
81573         Tests for module 'pipe-filter-gi'.
81574         * modules/pipe-filter-gi-tests: New file.
81575         * tests/test-pipe-filter-gi1.sh: New file.
81576         * tests/test-pipe-filter-gi1.c: New file.
81577         * tests/test-pipe-filter-gi2.sh: New file.
81578         * tests/test-pipe-filter-gi2-main.c: New file.
81579         * tests/test-pipe-filter-gi2-child.c: New file.
81581         New module 'pipe-filter-gi'.
81582         * lib/pipe-filter-gi.c: New file.
81583         * modules/pipe-filter-gi: New file.
81585 2009-08-02  Bruno Haible  <bruno@clisp.org>
81586             Paolo Bonzini  <bonzini@gnu.org>
81588         Tests for module 'pipe-filter-ii'.
81589         * modules/pipe-filter-ii-tests: New file.
81590         * tests/test-pipe-filter-ii1.sh: New file.
81591         * tests/test-pipe-filter-ii1.c: New file.
81592         * tests/test-pipe-filter-ii2.sh: New file.
81593         * tests/test-pipe-filter-ii2-main.c: New file.
81594         * tests/test-pipe-filter-ii2-child.c: New file.
81596         New module 'pipe-filter-ii'.
81597         * lib/pipe-filter.h: New file.
81598         * lib/pipe-filter-ii.c: New file.
81599         * lib/pipe-filter-aux.h: New file.
81600         * modules/pipe-filter-ii: New file.
81602 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81604         * lib/gc-libgcrypt.c: Change copyright to FSF.
81605         * lib/gc-gnulib.c: Likewise.
81607 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
81609         * lib/gethostname.c: Include limits.h.
81611 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81612             Bruno Haible  <bruno@clisp.org>
81614         Ensure HOST_NAME_MAX as part of the gethostname module.
81615         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
81616         define also HOST_NAME_MAX.
81617         * tests/test-gethostname.c: Include <limits.h>.
81618         (main): Check also HOST_NAME_MAX.
81619         * doc/posix-headers/limits.texi: Document the mingw problem.
81621 2009-08-02  Bruno Haible  <bruno@clisp.org>
81623         * lib/gethostname.c (gethostname): Fix handling of large len argument.
81624         Add comments.
81626 2009-03-31  Simon Josefsson  <simon@josefsson.org>
81628         * lib/gethostname.c: Add Windows wrapper.
81629         * m4/gethostname.m4: Look for gethostname in -lws2_32.
81630         * modules/gethostname: Depend on sys_socket & errno, for also
81631         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
81632         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
81634 2009-07-31  Jim Meyering  <meyering@redhat.com>
81636         getloadavg: fix symbol name in comment
81637         * lib/getloadavg.c: Correct a typo I introduced when adding
81638         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
81639         Matt Kraai spotted the problem.
81641 2009-07-29  Matt Kraai  <mkraai@beckman.com>
81643         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
81644         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
81645         code also if ! defined N_NAME_POINTER.
81646         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
81647         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
81648         but the n_name member is a 12-byte array.
81650 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
81652         update-copyright: generalize comment handling
81653         * build-aux/update-copyright: Handle copyright statements
81654         within more comment styles.
81655         Document usage.
81656         Report any file with an external copyright holder or parse failure.
81658 2009-07-29  Jim Meyering  <meyering@redhat.com>
81660         mktime: correct setting of REPLACE_MKTIME
81661         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
81663         update-copyright: new module
81664         * modules/update-copyright: New file.
81665         * build-aux/update-copyright: New file.
81666         * MODULES.html.sh (maint+release support): Add update-copyright.
81668 2009-07-27  Bruno Haible  <bruno@clisp.org>
81670         Fix compilation error when <ctime> is used and mktime is replaced.
81671         * lib/time.in.h (mktime): New declaration.
81672         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
81673         REPLACE_MKTIME instead of defining mktime in config.h.
81674         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
81675         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
81676         Reported by Ross McFarland <rwmcfa1@neces.com>.
81678 2009-07-27  Bruno Haible  <bruno@clisp.org>
81680         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
81681         Reported by Matt Kraai <mkraai@beckman.com>.
81683 2009-07-25  Jim Meyering  <meyering@redhat.com>
81685         maint.mk: avoid warnings about missing files
81686         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
81687         diagnostic when .prev-version does not exist.
81688         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
81689         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
81690         nonexistent cfg.mk.
81691         Suggestions from Simon Josefsson.
81693 2009-07-25  Bruno Haible  <bruno@clisp.org>
81695         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
81696         defined as macros. Needed on QNX 6.4.1.
81697         Reported by Matt Kraai <mkraai@beckman.com>.
81699 2009-07-23  Jim Meyering  <meyering@redhat.com>
81701         maint.mk: invoke "make dist" with a working value of XZ_OPT
81702         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
81704 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
81706         Make fseeko.c compile on QNX.
81707         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
81709 2009-07-22  Peter Simons  <simons@cryp.to>
81711         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
81712         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
81713         * lib/md4.h: Likewise.
81714         * lib/md5.h: Likewise.
81715         * lib/sha1.h: Likewise.
81716         * lib/sha256.h: Likewise.
81717         * lib/sha512.h: Likewise.
81719         tests-sha1: don't assign literal string to 'char *' variable
81720         * tests/test-sha1.c (main): Declare locals with "const" to match
81721         attributes of the right hand side.
81723 2009-07-21  Eric Blake  <ebb9@byu.net>
81725         dup2: fix more mingw problems
81726         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
81727         fd to itself.
81728         * doc/posix-functions/dup2.texi (dup2): Document the bug.
81729         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
81730         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
81731         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
81732         care of mingw bugs.
81734 2009-07-21  Jim Meyering  <meyering@redhat.com>
81736         vc-list-files: avoid failure when /bin/sh is dash
81737         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
81738         On some Debian based systems, /bin/sh is a symlink to dash, and running
81739         this command would omit the "/" following each 'tests' prefix:
81740           dash -x build-aux/vc-list-files -C . tests
81741         That is because bash and dash work differently:
81742           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
81743           bash ok
81744           dash odd
81746 2009-07-21  Eric Blake  <ebb9@byu.net>
81748         dup2-tests: test previous patch
81749         * modules/dup2-tests: New file.
81750         * tests/test-dup2.c: Likewise.
81751         * tests/test-open.c (main): Avoid unspecified behavior.
81752         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
81753         test.
81755         dup2: work around mingw and cygwin 1.5 bug
81756         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
81757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
81758         * modules/unistd (Makefile.am): Substitute it.
81759         * lib/unistd.in.h (dup2): Declare the replacement.
81760         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
81761         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
81762         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
81763         * modules/execute (Depends-on): Add dup2.
81764         * modules/fseterr (Depends-on): Likewise.
81765         * modules/pipe (Depends-on): Likewise.
81766         * modules/posix_spawn-internal (Depends-on): Likewise.
81768 2009-07-21  Bruno Haible  <bruno@clisp.org>
81770         * modules/.gitattributes: New file.
81772 2009-07-20  Bruno Haible  <bruno@clisp.org>
81774         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
81775         (main): Use it.
81777 2009-07-20  Eric Blake  <ebb9@byu.net>
81779         test-pipe: make a bit more robust.
81780         * tests/test-pipe.c (myerr): Allow error messages regardless of
81781         what we do to stderr.
81782         (test_pipe): Rearrange to avoid deadlock.
81783         (child_main): Try a larger read, to ensure we avoided deadlock.
81784         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
81785         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
81786         if misused.
81788 2009-07-19  Jim Meyering  <meyering@redhat.com>
81790         fts: avoid false-positive cycle-detection
81791         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
81792         for each new command line argument.
81794 2009-07-19  Bruno Haible  <bruno@clisp.org>
81796         Fix build error on mingw with the modules sys_select and unistd.
81797         * modules/acl-tests (Depends-on): Add close.
81798         * modules/binary-io-tests (Depends-on): Likewise.
81799         * modules/closein-tests (Depends-on): Likewise.
81800         * modules/flock-tests (Depends-on): Likewise.
81801         * modules/fsync-tests (Depends-on): Likewise.
81802         * modules/lseek-tests (Depends-on): Likewise.
81803         * modules/pipe-tests (Depends-on): Likewise.
81804         * modules/posix_spawn-tests (Depends-on): Likewise.
81805         * modules/posix_spawnp-tests (Depends-on): Likewise.
81806         * modules/stat-time-tests (Depends-on): Likewise.
81807         * modules/yesno-tests (Depends-on): Likewise.
81809 2009-07-19  Bruno Haible  <bruno@clisp.org>
81811         Unify conditionals.
81812         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
81813         macros, not at the compiler macros.
81814         * lib/pipe.c: Likewise.
81815         * lib/execute.c: Likewise.
81816         * lib/spawni.c: Likewise.
81818 2009-07-19  Bruno Haible  <bruno@clisp.org>
81820         Fix handling of closed stdin/stdout/stderr on mingw.
81821         * lib/w32spawn.h: Include unistd.h.
81822         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
81823         file descriptor with O_NOINHERIT flag.
81824         (fd_safer_noinherit): New function, based on fd-safer.c.
81825         (dup_safer_noinherit): New function, based on dup-safer.c.
81826         (undup_safer_noinherit): New function.
81827         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
81828         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
81829         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
81830         instead of fd_safer.
81831         * tests/test-pipe.c: Include <windows.h>.
81832         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
81833         result.
81835         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
81836         from main.
81837         (test_pipe): Pass an extra argument for disambiguation.
81838         (main): Invoke parent_main or child_main.
81840         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
81841         consistently.
81843 2009-07-18  Eric Blake  <ebb9@byu.net>
81845         test-pipe: fix mingw build
81846         * tests/test-pipe.c (main): Avoid fcntl on mingw.
81848 2009-07-18  Bruno Haible  <bruno@clisp.org>
81850         * modules/pipe-tests (Makefile.am): Fix typo.
81852 2009-07-18  Eric Blake  <ebb9@byu.net>
81854         error: fix mingw build
81855         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
81856         Reported by Bruno Haible.
81858         error: avoid undefined use of stdout
81859         * lib/error.c (error, error_at_line): Check that fd 1 is open
81860         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
81861         is handling faults and the close_stdout module wants to report the
81862         detection of closed stdout as an error.
81864 2009-07-17  Eric Blake  <ebb9@byu.net>
81866         pipe: be robust in face of closed fds
81867         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
81868         should cause child to misbehave.
81869         * modules/pipe-tests: New module.
81870         * tests/test-pipe.c: New file.
81871         * tests/test-pipe.sh: New file.
81872         Reported by Akim Demaille.
81874 2009-07-14  Bruno Haible  <bruno@clisp.org>
81876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
81877         Reported by anonymous kc.
81879 2009-07-07  Jim Meyering  <meyering@redhat.com>
81881         maint.mk: don't look for translatable strings in *.m4 or *.mk
81882         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
81883         when searching for translatable strings.
81885 2009-07-05  Jim Meyering  <meyering@redhat.com>
81887         remove superfluous parentheses in STREQ definition
81888         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
81889         * lib/getugroups.c (STREQ): Likewise.
81890         * lib/fnmatch.c (STREQ): Likewise.
81891         Spotted by Bruno Haible.
81893 2009-07-04  Jim Meyering  <meyering@redhat.com>
81895         argv-iter: new module
81896         * MODULES.html.sh: Add argv-iter.
81897         * lib/argv-iter.c, lib/argv-iter.h: New files.
81898         * modules/argv-iter: New file.
81899         * modules/argv-iter-tests: New file.
81900         * tests/test-argv-iter.c: Test it.
81902 2009-07-04  Bruno Haible  <bruno@clisp.org>
81904         Fix assertion.
81905         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
81906         contains more exact copies of a given entry than file2, leave the extra
81907         copies unpaired rather than aborting.
81908         Reported by Eric Blake.
81910 2009-07-02  Bruno Haible  <bruno@clisp.org>
81912         Speedup git-merge-changelog for git cherry-pick.
81913         * lib/git-merge-changelog.c (struct entries_mapping): New type.
81914         (entries_mapping_get): New function, extracted from compute_mapping.
81915         (entries_mapping_reverse_get): New function.
81916         (compute_mapping): Add a 'full' argument. Return the result in a
81917         'struct entries_mapping'.
81918         (main): Update. Access the mappings through entries_mapping_get.
81919         Reported by Eric Blake.
81921 2009-07-02  Bruno Haible  <bruno@clisp.org>
81923         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
81924         best_i.
81926 2009-07-02  Bruno Haible  <bruno@clisp.org>
81928         Speed up approximate search for matching ChangeLog entries.
81929         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
81930         argument. Call fstrcmp_bounded instead of fstrcmp.
81931         (compute_mapping, try_split_merged_entry, main): Update callers.
81933 2009-07-02  Bruno Haible  <bruno@clisp.org>
81935         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
81937 2009-06-30  Bruno Haible  <bruno@clisp.org>
81939         Reduce the number of uc_is_cased calls.
81940         * lib/unicase.h (casing_suffix_context_t): Add
81941         'first_char_except_ignorable' field.
81942         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
81943         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
81944         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
81945         Update initializer.
81946         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
81947         case-ignorable characters.
81948         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
81949         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
81950         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
81951         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
81952         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
81954 2009-06-30  Bruno Haible  <bruno@clisp.org>
81956         Tests for module 'unicase/ignorable'.
81957         * modules/unicase/ignorable-tests: New file.
81958         * tests/unicase/test-ignorable.c: New file, generated by
81959         gen-uni-tables.
81961         Tests for module 'unicase/cased'.
81962         * modules/unicase/cased-tests: New file.
81963         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
81964         * tests/unicase/test-predicate-part1.h: New file, derived from
81965         tests/unictype/test-predicate-part1.h.
81966         * tests/unicase/test-predicate-part2.h: New file, same as
81967         tests/unictype/test-predicate-part2.h.
81969         Fix evaluation of "Before C" condition of FINAL_SIGMA.
81970         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
81971         (output_casing_properties): New function.
81972         (main): Call it.
81973         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
81974         * lib/unicase/cased.c: Include unictype/bitmap.h.
81975         (uc_is_cased): Define through a bitmap lookup.
81976         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
81977         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
81978         (uc_is_case_ignorable): Define through a bitmap lookup.
81979         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
81980         lib/unictype/bitmap.h.
81981         (Depends-on): Add inline. Clean up.
81982         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
81983         lib/unictype/bitmap.h.
81984         (Depends-on): Add inline. Clean up.
81985         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
81986         recognition.
81987         * tests/unicase/test-u16-tolower.c (main): Likewise.
81988         * tests/unicase/test-u32-tolower.c (main): Likewise.
81990 2009-06-30  Bruno Haible  <bruno@clisp.org>
81992         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
81993         * lib/unicase/u16-casemap.c: Likewise.
81994         * lib/unicase/u32-casemap.c: Likewise.
81996 2009-06-29  Bruno Haible  <bruno@clisp.org>
81998         Define u32_casefold as a wrapper around u32_ct_casefold.
81999         * lib/unicase/u32-casefold.c: Update.
82000         * modules/unicase/u32-casefold (Depends-on): Add
82001         unicase/u32-ct-casefold, unicase/empty-prefix-context,
82002         unicase/empty-suffix-context. Clean up.
82004         Define u16_casefold as a wrapper around u16_ct_casefold.
82005         * lib/unicase/u16-casefold.c: Update.
82006         * modules/unicase/u16-casefold (Depends-on): Add
82007         unicase/u16-ct-casefold, unicase/empty-prefix-context,
82008         unicase/empty-suffix-context. Clean up.
82010         Define u8_casefold as a wrapper around u8_ct_casefold.
82011         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
82012         * lib/unicase/u8-casefold.c: Update.
82013         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
82014         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82016         Define u32_totitle as a wrapper around u32_ct_totitle.
82017         * lib/unicase/u32-totitle.c: Update.
82018         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
82019         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82021         Define u16_totitle as a wrapper around u16_ct_totitle.
82022         * lib/unicase/u16-totitle.c: Update.
82023         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
82024         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82026         Define u8_totitle as a wrapper around u8_ct_totitle.
82027         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
82028         functions.
82029         (FUNC): Delegate to U_CT_TOTITLE.
82030         * lib/unicase/u8-totitle.c: Update.
82031         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
82032         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82034         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
82035         invocation.
82036         * modules/unicase/u32-tolower (Depends-on): Add
82037         unicase/empty-prefix-context, unicase/empty-suffix-context.
82039         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
82040         invocation.
82041         * modules/unicase/u16-tolower (Depends-on): Add
82042         unicase/empty-prefix-context, unicase/empty-suffix-context.
82044         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
82045         * modules/unicase/u8-tolower (Depends-on): Add
82046         unicase/empty-prefix-context, unicase/empty-suffix-context.
82048         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
82049         invocation.
82050         * modules/unicase/u32-toupper (Depends-on): Add
82051         unicase/empty-prefix-context, unicase/empty-suffix-context.
82053         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
82054         invocation.
82055         * modules/unicase/u16-toupper (Depends-on): Add
82056         unicase/empty-prefix-context, unicase/empty-suffix-context.
82058         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
82059         * modules/unicase/u8-toupper (Depends-on): Add
82060         unicase/empty-prefix-context, unicase/empty-suffix-context.
82062         New module 'unicase/u32-ct-casefold'.
82063         * lib/unicase/u32-ct-casefold.c: New file.
82064         * modules/unicase/u32-ct-casefold: New file.
82066         New module 'unicase/u16-ct-casefold'.
82067         * lib/unicase/u16-ct-casefold.c: New file.
82068         * modules/unicase/u16-ct-casefold: New file.
82070         New module 'unicase/u8-ct-casefold'.
82071         * lib/unicase/u8-ct-casefold.c: New file.
82072         * lib/unicase/u-ct-casefold.h: New file, derived from
82073         lib/unicase/u-casefold.h.
82074         * modules/unicase/u8-ct-casefold: New file.
82076         New module 'unicase/u32-ct-totitle'.
82077         * lib/unicase/u32-ct-totitle.c: New file.
82078         * modules/unicase/u32-ct-totitle: New file.
82080         New module 'unicase/u16-ct-totitle'.
82081         * lib/unicase/u16-ct-totitle.c: New file.
82082         * modules/unicase/u16-ct-totitle: New file.
82084         New module 'unicase/u8-ct-totitle'.
82085         * lib/unicase/u8-ct-totitle.c: New file.
82086         * lib/unicase/u-ct-totitle.h: New file, derived from
82087         lib/unicase/u-totitle.h.
82088         * modules/unicase/u8-ct-totitle: New file.
82090         New module 'unicase/u32-ct-tolower'.
82091         * lib/unicase/u32-ct-tolower.c: New file.
82092         * modules/unicase/u32-ct-tolower: New file.
82094         New module 'unicase/u16-ct-tolower'.
82095         * lib/unicase/u16-ct-tolower.c: New file.
82096         * modules/unicase/u16-ct-tolower: New file.
82098         New module 'unicase/u8-ct-tolower'.
82099         * lib/unicase/u8-ct-tolower.c: New file.
82100         * modules/unicase/u8-ct-tolower: New file.
82102         New module 'unicase/u32-ct-toupper'.
82103         * lib/unicase/u32-ct-toupper.c: New file.
82104         * modules/unicase/u32-ct-toupper: New file.
82106         New module 'unicase/u16-ct-toupper'.
82107         * lib/unicase/u16-ct-toupper.c: New file.
82108         * modules/unicase/u16-ct-toupper: New file.
82110         New module 'unicase/u8-ct-toupper'.
82111         * lib/unicase/u8-ct-toupper.c: New file.
82112         * modules/unicase/u8-ct-toupper: New file.
82114         Add context arguments to u*_casemap functions.
82115         * lib/unicase/unicasemap.h: Include unicase.h.
82116         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
82117         suffix_context arguments.
82118         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
82119         functions.
82120         (FUNC): Add prefix_context and suffix_context arguments. Use
82121         uc_is_cased and uc_is_case_ignorable.
82122         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
82123         * lib/unicase/u16-casemap.c: Likewise.
82124         * lib/unicase/u32-casemap.c: Likewise.
82125         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
82126         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82127         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
82128         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82129         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
82130         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82132         New module 'unicase/u32-suffix-context'.
82133         * lib/unicase/u32-suffix-context.c: New file.
82134         * modules/unicase/u32-suffix-context: New file.
82136         New module 'unicase/u16-suffix-context'.
82137         * lib/unicase/u16-suffix-context.c: New file.
82138         * modules/unicase/u16-suffix-context: New file.
82140         New module 'unicase/u8-suffix-context'.
82141         * lib/unicase/u8-suffix-context.c: New file.
82142         * lib/unicase/u-suffix-context.h: New file.
82143         * modules/unicase/u8-suffix-context: New file.
82145         New module 'unicase/empty-suffix-context'.
82146         * lib/unicase/empty-suffix-context.c: New file.
82147         * modules/unicase/empty-suffix-context: New file.
82149         New module 'unicase/u32-prefix-context'.
82150         * lib/unicase/u32-prefix-context.c: New file.
82151         * modules/unicase/u32-prefix-context: New file.
82153         New module 'unicase/u16-prefix-context'.
82154         * lib/unicase/u16-prefix-context.c: New file.
82155         * modules/unicase/u16-prefix-context: New file.
82157         New module 'unicase/u8-prefix-context'.
82158         * lib/unicase/u8-prefix-context.c: New file.
82159         * lib/unicase/u-prefix-context.h: New file.
82160         * lib/unicase/context.h: New file.
82161         * modules/unicase/u8-prefix-context: New file.
82163         New module 'unicase/empty-prefix-context'.
82164         * lib/unicase/empty-prefix-context.c: New file.
82165         * modules/unicase/empty-prefix-context: New file.
82167         New module 'unicase/ignorable'.
82168         * lib/unicase/ignorable.c: New file.
82169         * modules/unicase/ignorable: New file.
82171         New module 'unicase/cased'.
82172         * lib/unicase/caseprop.h: New file.
82173         * lib/unicase/cased.c: New file.
82174         * modules/unicase/cased: New file.
82176         New functions for case mapping of substrings.
82177         * lib/unicase.h (casing_prefix_context_t): New type.
82178         (unicase_empty_prefix_context): New variable.
82179         (u8_casing_prefix_context, u16_casing_prefix_context,
82180         u32_casing_prefix_context, u8_casing_prefixes_context,
82181         u16_casing_prefixes_context, u32_casing_prefixes_context): New
82182         declarations.
82183         (casing_suffix_context_t): New type.
82184         (unicase_empty_suffix_context): New variable.
82185         (u8_casing_suffix_context, u16_casing_suffix_context,
82186         u32_casing_suffix_context, u8_casing_suffixes_context,
82187         u16_casing_suffixes_context, u32_casing_suffixes_context,
82188         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
82189         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
82190         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
82191         declarations.
82193 2009-06-28  Jim Meyering  <meyering@redhat.com>
82195         boostrap: indent only with spaces
82196         * build-aux/bootstrap: Indent only with spaces, never TABs.
82198         bootstrap: split long lines
82199         * build-aux/bootstrap: Keep line length < 80.
82201         bootstrap: sync from coreutils
82202         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
82203         just as autoreconf does.  Verify a list of prerequisite
82204         package-name,version-number pairs if defined in bootstrap.conf.
82205         Refer to README-prereq, if prerequisites are not satisfied.
82207 2009-06-27  Eric Blake  <ebb9@byu.net>
82209         tests: add test for bogus NULL definition
82210         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
82211         * tests/test-stdlib.c: Likewise.
82212         * tests/test-string.c: Likewise.
82213         * tests/test-locale.c: Likewise.
82214         * tests/test-unistd.c: Likewise.
82215         * modules/stdio-tests (Depends-on): Add verify.
82216         * modules/stdlib-tests (Depends-on): Likewise.
82217         * modules/string-tests (Depends-on): Likewise.
82218         * modules/locale-tests (Depends-on): Likewise.
82219         * modules/unistd-tests (Depends-on): Likewise.
82221 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
82223         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
82224         self-explaining comment.
82225         * m4/selinux-selinux-h: Update serial.
82226         (gl_LIBSELINUX): New macro, adding a warning for missing development
82227         packages to code extracted from...
82228         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
82229         Add warning for missing development packages here, too.
82231 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
82233         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
82235 2009-06-25  Eric Blake  <ebb9@byu.net>
82237         version-etc: fix regression
82238         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
82239         gcc.
82240         (version_etc): Use it, to catch bugs with trailing NULL.
82241         * lib/version-etc.c (version_etc_arn): Delete unused argument.
82242         (version_etc_va): Fix logic bug.
82243         * modules/version-etc-tests: Add test.
82244         * tests/test-version-etc.c: New file.
82245         * tests/test-version-etc.sh: Likewise.
82247 2009-06-25  Sam Steingold  <sds@gnu.org>
82249         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
82250         mbtowc declaration.
82252 2009-06-25  Eric Blake  <ebb9@byu.net>
82254         fpurge: migrate into <stdio.h>
82255         * lib/fpurge.h: Delete...
82256         * lib/stdio.in.h (fpurge): ...and declare here, instead.
82257         * lib/fpurge.c (fpurge): Change declaring header.
82258         * modules/fpurge (Files): Drop deleted file.
82259         (Depends-on): Add stdio.
82260         (configure.ac): Set witness.
82261         * modules/stdio (Makefile.am): Support fpurge macros.
82262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
82263         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
82264         * lib/fflush.c: Update client.
82265         * tests/test-fpurge.c: Likewise.
82266         * NEWS: Mention the change.
82268 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82270         * lib/argp-version-etc.c (program_authors): Add const
82271         qualifier.
82272         * lib/version-etc.c: Fix typos in the comments.
82273         * modules/argp-version-etc: Depends on version-etc.
82275 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82277         argp-version-etc: new module.
82279         * lib/argp-version-etc.c: New file.
82280         * lib/argp-version-etc.h: New file.
82281         * modules/argp-version-etc: New file.
82282         * modules/argp-version-etc-tests: New file.
82283         * tests/test-argp-version-etc.c: New test.
82284         * tests/test-argp-version-etc-1.sh: New test.
82286 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82288         Provide additional interfaces and documentation for version-etc
82289         module.
82291         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
82292         interfaces.
82293         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
82294         prototypes.
82296 2009-06-24  Bruno Haible  <bruno@clisp.org>
82298         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
82299         HAVE_LIB${NAME} macro.
82300         Reported by Sam Steingold <sds@gnu.org>.
82302 2009-06-23  Simon Josefsson  <simon@josefsson.org>
82304         * modules/hash-tests (test_hash_LDADD): Link to libintl when
82305         needed.
82307 2009-06-21  Bruno Haible  <bruno@clisp.org>
82309         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
82310         work.
82311         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
82312         together with LIB${NAME}, LTLIB${NAME}.
82313         Reported by Sam Steingold <sds@gnu.org>.
82315 2009-06-20  Jim Meyering  <meyering@redhat.com>
82317         tests: make sc_require_test_exit_idiom more generic
82318         * top/maint.mk (Exit_witness_file): New overridable variable.
82319         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
82320         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
82322 2009-06-19  Jim Meyering  <meyering@redhat.com>
82324         hash: reverse order of src/dst parameters in an internal interface
82325         * lib/hash.c (transfer_entries): Reverse order of parameters to
82326         put DST before SRC.  Adjust callers.
82328         tests: test-hash: avoid wholesale duplication
82329         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
82330         Instead, use a loop and add a single conditional.
82332         tests: test-hash: allow seed selection via a command line argument
82333         * tests/test-hash.c (get_seed): New function.
82334         (main): Use it.
82336 2009-06-19  Eric Blake  <ebb9@byu.net>
82338         hash: avoid memory leak on allocation failure
82339         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
82340         failure.  Factor repeated algorithm...
82341         (transfer_entries): ...into new helper routine.
82342         (hash_delete): React to hash_rehash return value.
82344         hash: reduce memory pressure in hash_rehash no-op case
82345         * lib/hash.c (next_prime): Avoid overflow.
82346         (hash_initialize): Factor bucket size computation...
82347         (compute_bucket_size): ...into new helper function.
82348         (hash_rehash): Use new function and open coding to reduce memory
82349         pressure, and avoid a memory leak in USE_OBSTACK code.
82350         Reported by Jim Meyering.
82352 2009-06-18  Eric Blake  <ebb9@byu.net>
82354         hash: make rotation more obvious
82355         * modules/hash (Depends-on): Add bitrotate and stdint.
82356         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
82357         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
82358         (SIZE_MAX): Rely on headers for definition.
82359         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
82360         (raw_hasher): Use rotr_sz.
82361         Suggested by Jim Meyering.
82363         hash: fix memory leak in last patch
82364         * lib/hash.c (hash_rehash): Avoid memory leak.
82366         hash: avoid no-op rehashing
82367         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
82369         hash: provide default callback functions
82370         * lib/hash.c (raw_hasher, raw_comparator): New functions.
82371         (hash_initialize): Use them as defaults.
82372         * tests/test-hash.c (main): Test this.
82374         hash: minor optimization
82375         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
82376         when possible.
82377         (hash_initialize): Document this promise.
82378         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
82379         * tests/test-hash.c (hash_compare_strings): Test this.
82381 2009-06-18  Bruno Haible  <bruno@clisp.org>
82383         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
82384         going to be replaced anyway.
82386 2009-06-18  Bruno Haible  <bruno@clisp.org>
82388         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
82389         in one place.
82390         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
82391         be replaced anyway.
82393 2009-06-18  Eric Blake  <ebb9@byu.net>
82395         hash: check for resize before insertion
82396         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
82397         threshold before insertion, so that a pathological hash_rehash
82398         that fills every bucket can still trigger another rehash.
82400 2009-06-18  Jim Meyering  <meyering@redhat.com>
82402         hash-tests: add a loop around the small tests
82403         * tests/test-hash.c (main): Repeat small tests with selected
82404         small initial table sizes.
82406 2009-06-17  Eric Blake  <ebb9@byu.net>
82408         hash: minor cleanups
82409         * lib/hash.h (hash_entry): Make opaque, by moving...
82410         * lib/hash.c (hash_entry): ...here.
82411         (hash_insert): Clarify restrictions on what can be inserted.
82412         (hash_get_next): Clarify when it is safe to remove an element
82413         during traversal.
82414         (check_tuning): Skip verification when tuning is known safe.
82415         (hash_initialize): Clarify restrictions on tuning.
82417 2009-06-17  Jim Meyering  <jim@meyering.net>
82418         and Eric Blake  <ebb9@byu.net>
82420         hash-tests: new module
82421         * modules/hash-tests: New file.
82422         * tests/test-hash.c: New file.
82424 2009-06-17  Eric Blake  <ebb9@byu.net>
82426         strstr-simple: document new module
82427         * MODULES.html.sh: Document new module.
82429         strstr, strcasestr: replace on platforms with broken memchr
82430         * modules/strstr: Split into...
82431         * modules/strstr-simple: ...new module that does not care about
82432         performance, but does care about glibc bug.
82433         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
82434         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
82435         if platform memchr is broken, per Debian bug 521737.
82436         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
82437         memchr.
82438         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
82439         * doc/posix-functions/strstr.texi (strstr): Document the fix.
82440         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
82441         * modules/mountlist (Depends-on): Add strstr-simple.
82442         * modules/gen-uni-tables (Depends-on): Likewise.
82443         * modules/argz (Depends-on): Add strstr.
82445 2009-06-17  Bruno Haible  <bruno@clisp.org>
82447         * modules/posix_spawn-internal (Depends-on): Add errno.
82449 2009-06-17  Bruno Haible  <bruno@clisp.org>
82451         Define missing ESTALE on Interix 3.5.
82452         * lib/errno.in.h (ESTALE): Assign a value if missing.
82453         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
82454         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
82455         missing.
82456         * doc/posix-headers/errno.texi: Mention the Interix bug.
82457         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
82459 2009-06-15  Eric Blake  <ebb9@byu.net>
82461         memchr, memchr2: add valgrind exception
82462         * lib/memchr.valgrind: New file.
82463         * lib/memchr2.valgrind: New file.
82464         * modules/memchr (Files): Distribute valgrind file.
82465         * modules/memchr2 (Files): Likewise.
82467         docs: memchr is no longer obsolete
82468         * MODULES.html.sh: Move memchr from obsolete to string.h section.
82469         * lib/string.in.h (memchr): Simplify logic.
82471 2009-06-14  Jim Meyering  <meyering@redhat.com>
82473         link-follow: fix the "checking..." message to not mention trailing slash
82474         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
82475         never considered trailing slashes.
82477 2009-06-14  Bruno Haible  <bruno@clisp.org>
82479         * m4/memchr.m4: Mention also the bug on IA-64.
82480         * doc/posix-functions/memchr.texi: Likewise.
82482 2009-06-12  Eric Blake  <ebb9@byu.net>
82484         memchr: detect broken x86_64 and alpha implementations
82485         * modules/memchr-tests (Depends-on): Move mmap detection...
82486         * modules/memchr (Depends-on): ...here.
82487         (configure.ac): Set indicator.
82488         * lib/string.in.h (memchr): Declare replacement.
82489         * modules/string (Makefile.am): Trigger replacement.
82490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
82491         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
82492         bugs.
82493         * doc/posix-functions/memchr.texi (memchr): Document the bug.
82494         * modules/getpagesize (License): Relax license.
82496 2009-06-11  Bruno Haible  <bruno@clisp.org>
82498         * lib/idpriv.h: Add more references.
82500 2009-06-08  Bruno Haible  <bruno@clisp.org>
82502         Tests for module 'idpriv-droptemp'.
82503         * modules/idpriv-droptemp-tests: New file.
82504         * tests/test-idpriv-droptemp.sh: New file.
82505         * tests/test-idpriv-droptemp.su.sh: New file.
82506         * tests/test-idpriv-droptemp.c: New file.
82508         New module 'idpriv-droptemp'.
82509         * lib/idpriv-droptemp.c: New file.
82510         * modules/idpriv-droptemp: New file.
82512 2009-06-08  Bruno Haible  <bruno@clisp.org>
82514         Tests for module 'idpriv-drop'.
82515         * modules/idpriv-drop-tests: New file.
82516         * tests/test-idpriv-drop.sh: New file.
82517         * tests/test-idpriv-drop.su.sh: New file.
82518         * tests/test-idpriv-drop.c: New file.
82520         New module 'idpriv-drop'.
82521         * lib/idpriv.h: New file.
82522         * lib-idpriv-drop.c: New file.
82523         * m4/idpriv.m4: New file.
82524         * modules/idpriv-drop: New file.
82526 2009-06-08  Bruno Haible  <bruno@clisp.org>
82528         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
82529         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
82530         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
82531         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
82532         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
82533         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
82534         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
82536 2009-06-08  Eric Blake  <ebb9@byu.net>
82538         test-strstr: use memory fence, when possible
82539         * tests/test-strstr.c (main): Use memory fence, in order to be
82540         more likely to trigger Debian bug 521737.
82541         * modules/strstr-tests (Files): Pull in additional files.
82543         memchr: no longer obsolete, for wider field testing
82544         * modules/memchr (Status, Notice): Delete, this module is no
82545         longer obsolete.
82546         * modules/vasnprintf (Depends-on): Add memchr.
82548 2009-06-07  Jim Meyering  <meyering@redhat.com>
82550         hash: declare some functions with the warn_unused_result attribute
82551         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
82553 2009-06-07  Bruno Haible  <bruno@clisp.org>
82555         * tests/test-alignof.c: Don't test int64_t if it does not exist.
82556         Reported by Eric Blake.
82558 2009-06-06  Eric Blake  <ebb9@byu.net>
82560         test-alignof: fix typo with long double
82561         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
82562         compiler error.
82564 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
82566         Escape non-texinfo { and }s.
82567         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
82568         markup error.
82570 2009-06-04  Jim Meyering  <meyering@redhat.com>
82572         gitlog-to-changelog: don't infloop on an empty commit log
82573         * build-aux/gitlog-to-changelog: Warn about an empty log message.
82574         Reported by Boris Petersen <transacid@centerim.org>.
82576 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
82578         version-etc: extend for packagers
82579         Add three new configure options, intended for packagers:
82580           --with-packager="packager name"
82581           --with-packager-version="packager-specific version"
82582           --with-packager-bug-reports="packager bug reporting"
82583         An example with coreutils:
82584           $ ./configure \
82585             --with-packager=Gentoo \
82586             --with-packager-bug-report=http://bugs.gentoo.org/ \
82587             --with-packager-version="patchset 1.6"
82588           $ ./src/ls --version | head -n2
82589           ls (GNU coreutils) 7.1-dirty
82590           Packaged by Gentoo (patchset 1.6)
82591         Note that the bug reporting info via --help doesn't show up because
82592         coreutils uses its own custom emit_bug_reporting_address() implementation
82593         in src/system.h.  If it didn't, it'd look like:
82594           $ ./src/ls --help | tail -n4
82595           Report bugs to <bug-coreutils@gnu.org>.
82596           Report Gentoo bugs to <http://bugs.gentoo.org/>.
82597           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
82598           General help using GNU software: <http://www.gnu.org/gethelp/>.
82599         * lib/version-etc.c: Print new information, if provided.
82600         * m4/version-etc.m4: New file.
82601         * modules/version-etc (Files): Add m4/version-etc.m4.
82602         (configure.ac): Add gl_VERSION_ETC.
82604 2009-05-31  Bruno Haible  <bruno@clisp.org>
82606         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
82607         and 'int64_t'.
82608         * modules/alignof-tests (Dependencies): Add stdint.
82609         Reported by Eric Blake.
82611 2009-05-31  Bruno Haible  <bruno@clisp.org>
82613         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
82614         restriction due to compiler bugs.
82615         Reported by Eric Blake.
82617 2009-05-31  Simon Josefsson  <simon@josefsson.org>
82618             Bruno Haible  <bruno@clisp.org>
82620         Fix test-alignof failure.
82621         * lib/alignof.h (alignof_slot): New macro.
82622         (alignof_type): New macro, with the same semantics as the previous
82623         'alignof'.
82624         (alignof): Alias to alignof_slot.
82625         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
82626         check that the results are usable as constant expressions.
82628 2009-05-31  Bruno Haible  <bruno@clisp.org>
82630         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
82631         * tests/test-memchr.c (main): Check that memchr does not read past the
82632         first occurrence of the byte.
82633         * tests/test-strstr.c (main): Update comment.
82634         Suggested by Eric Blake.
82636 2009-05-30  Bruno Haible  <bruno@clisp.org>
82638         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
82639         detail how to use dumpbin.
82640         Reported by David Byron <dbyron@dbyron.com>.
82642 2009-06-02  Simon Josefsson  <simon@josefsson.org>
82644         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
82646 2009-06-02  Simon Josefsson  <simon@josefsson.org>
82648         * m4/manywarnings.m4: Add GCC 4.4 warnings.
82650 2009-05-28  Bruno Haible  <bruno@clisp.org>
82652         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
82653         build-aux/ files.
82655 2009-05-28  Simon Josefsson  <simon@josefsson.org>
82657         * gnulib-tool (func_import): Transform license on build-aux/ files too.
82659 2009-05-27  Simon Josefsson  <simon@josefsson.org>
82661         * gnulib-tool (sed_transform_main_lib_file)
82662         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
82663         regexps.
82665 2009-05-26  Simon Josefsson  <simon@josefsson.org>
82667         * tests/test-strstr.c: Add another self-test.
82668         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
82669         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
82671 2009-05-23  Bruno Haible  <bruno@clisp.org>
82673         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
82674         change.
82676 2009-05-21  Bruno Haible  <bruno@clisp.org>
82678         Simplify use of mode_t varargs.
82679         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
82680         uses 'mode_t' or 'int'.
82681         * lib/openat.c (openat): Likewise.
82682         * lib/open-safer.c (open_safer): Likewise.
82683         * m4/mode_t.m4: New file.
82684         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
82685         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
82686         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
82687         * modules/open (Files): Add m4/mode_t.m4.
82688         * modules/openat (Files): Likewise.
82689         * modules/fcntl-safer (Files): Likewise.
82690         Suggested by Eric Blake.
82692 2009-05-21  Pádraig Brady  <P@draigbrady.com>
82694         * doc/glibc-functions/fallocate.texi: New file.
82695         * doc/gnulib.texi: Include it.
82697 2009-05-21  Eric Blake  <ebb9@byu.net>
82698             Bruno Haible  <bruno@clisp.org>
82700         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
82701         invocations.
82702         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
82704 2009-05-21  Eric Blake  <ebb9@byu.net>
82705             Bruno Haible  <bruno@clisp.org>
82707         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
82708         include_next. Fix of 2008-11-20 commit.
82709         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
82710         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
82711         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
82712         NEXT_MATH_H.
82713         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
82714         instead of NEXT_MATH_H.
82716 2009-05-21  Bruno Haible  <bruno@clisp.org>
82718         Avoid redefinition warnings for SIZE_MAX.
82719         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
82720         Reported by Simon Josefsson.
82722 2009-05-21  Bruno Haible  <bruno@clisp.org>
82724         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
82725         AC_CACHE_VAL.
82727 2009-05-20  Bruno Haible  <bruno@clisp.org>
82729         Make zeroptr.h work on mingw.
82730         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
82731         mprotect.
82732         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
82733         * modules/memchr2-tests (configure.ac): Likewise.
82734         * modules/memcmp-tests (configure.ac): Likewise.
82735         * modules/memmem-tests (configure.ac): Likewise.
82736         * modules/memrchr-tests (configure.ac): Likewise.
82737         Reported by Simon Josefsson.
82739 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82741         * tests/test-glob.c: Include string.h for strcmp prototype.
82743 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82745         * modules/getdelim (Depends-on): Add explicit stdint, although it
82746         was implicitly already pulled in via realloc-posix.
82747         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
82749 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82751         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
82752         G. Christensen" <tgc@jupiterrise.com>.
82753         * m4/sys_socket_h.m4: Check for sa_family_t.
82754         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
82755         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
82756         * tests/test-sys_socket.c: Check that sa_family_t works.
82758 2009-05-18  Eric Blake  <ebb9@byu.net>
82760         maint.mk: allow gnulib_dir in VPATH build
82761         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
82763 2009-05-15  Jim Meyering  <meyering@redhat.com>
82765         maint.mk: Give gnulib_dir a default definition.
82766         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
82767         Thus, most packages no longer need to specify this variable in cfg.mk
82769 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
82771         rename.m4: fix typos that would make non-mingw cross-configure fail
82772         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
82774 2009-05-13  Eric Blake  <ebb9@byu.net>
82776         mmap-anon: avoid out-of-order autoconf expansion
82777         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
82778         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
82779         * modules/memchr-tests (Depends-on): Add extensions.
82780         * modules/memchr2-tests (Depends-on): Add extensions.
82781         * modules/memcmp-tests (Depends-on): Add extensions.
82782         * modules/memmem-tests (Depends-on): Add extensions.
82783         * modules/memrchr-tests (Depends-on): Add extensions.
82785 2009-05-13  Bruno Haible  <bruno@clisp.org>
82787         Make some tests ISO C 99 compliant.
82788         * tests/zerosize-ptr.h: New file.
82789         * tests/test-memchr.c: Include zerosize-ptr.h.
82790         (main): Use a zero-size object pointer instead of NULL.
82791         * tests/test-memchr2.c: Include zerosize-ptr.h.
82792         (main): Use a zero-size object pointer instead of NULL.
82793         * tests/test-memcmp.c: Include zerosize-ptr.h.
82794         (main): Use a zero-size object pointer instead of NULL.
82795         * tests/test-memmem.c: Include zerosize-ptr.h.
82796         (main): Use a zero-size object pointer instead of NULL.
82797         * tests/test-memrchr.c: Include zerosize-ptr.h.
82798         (main): Use a zero-size object pointer instead of NULL.
82799         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
82800         m4/mmap-anon.m4.
82801         (Depends-on): Add getpagesize.
82802         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82803         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
82804         m4/mmap-anon.m4.
82805         (Depends-on): Add getpagesize.
82806         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82807         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
82808         m4/mmap-anon.m4.
82809         (Depends-on): Add getpagesize.
82810         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82811         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
82812         m4/mmap-anon.m4.
82813         (Depends-on): Add getpagesize.
82814         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82815         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
82816         m4/mmap-anon.m4.
82817         (Depends-on): Add getpagesize.
82818         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82820 2009-05-12  Bruno Haible  <bruno@clisp.org>
82822         Tests for module 'alignof'.
82823         * modules/alignof-tests: New file.
82824         * tests/test-alignof.c: New file.
82826 2009-05-12  Bruno Haible  <bruno@clisp.org>
82828         Fix alignof macro.
82829         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
82830         vendor compilers that are always correct.
82832 2009-05-12  Bruno Haible  <bruno@clisp.org>
82834         Make the MAP_ANONYMOUS detection work on HP-UX 11.
82835         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
82836         not whether its fully works.
82838 2009-05-12  Bruno Haible  <bruno@clisp.org>
82840         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
82842 2009-05-12  Jim Meyering  <meyering@redhat.com>
82844         * top/maint.mk: Adjust backslash alignment.
82846 2009-05-11  Simon Josefsson  <simon@josefsson.org>
82848         * top/maint.mk: Make $(srcdir)/build-aux configurable.
82850 2009-05-11  Eric Blake  <ebb9@byu.net>
82852         argp: avoid undefined behavior
82853         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
82854         macros.
82856 2009-05-08  Simon Josefsson  <simon@josefsson.org>
82858         * tests/test-vc-list-files-git.sh: Do git config of user.email and
82859         user.name to prevent git commit from complaining.
82861 2009-05-10  Bruno Haible  <bruno@clisp.org>
82863         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
82864         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
82865         it rewrites every file name only once.
82866         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
82868 2009-05-08  Bruno Haible  <bruno@clisp.org>
82870         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
82871         instead of 'max'.
82873 2009-05-08  Simon Josefsson  <simon@josefsson.org>
82875         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
82876         sockaddr_storage test.
82878 2009-05-07  Simon Josefsson  <simon@josefsson.org>
82880         * modules/sys_socket (Makefile.am): Substitute
82881         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
82882         * m4/sys_socket_h.m4: Check for sockaddr_storage.
82883         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
82884         * tests/test-sys_socket.c: Check sockaddr_storage.
82886 2009-05-08  Bruno Haible  <bruno@clisp.org>
82888         New module 'alignof'.
82889         * lib/alignof.h: New file.
82890         * modules/alignof: New file.
82892 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82893             Bruno Haible  <bruno@clisp.org>
82895         Fix test-file-has-acl on FreeBSD.
82896         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
82897         mask is implicitly added.
82898         * tests/test-file-has-acl.c: Include <signal.h>.
82899         (main): Terminate the test after 5 seconds.
82900         * modules/acl-tests (configure.ac): Check for alarm function.
82902 2009-05-04  Bruno Haible  <bruno@clisp.org>
82904         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
82905         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
82906         * modules/errno (configure.ac): Drop AC_REQUIRE.
82907         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
82908         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
82910 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82912         * modules/glob-tests: New module.
82913         * tests/test-glob.c: Add.
82915 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82917         * modules/fnmatch-tests: New module.
82918         * tests/test-fnmatch.c: Add.
82920 2009-05-04  Eric Blake  <ebb9@byu.net>
82922         maint: make the new no-submodule-changes rule VPATH-safe
82923         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
82925 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82926             Bruno Haible  <bruno@clisp.org>
82928         acl: Fix infinite loop on FreeBSD.
82929         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
82930         of return value from acl_get_entry.
82931         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
82932         Likewise.
82934 2009-05-03  Bruno Haible  <bruno@clisp.org>
82936         * lib/acl-internal.h (acl_entries): Clarify return value.
82937         * lib/acl_entries.c (acl_entries): Likewise.
82939 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82941         Bug fix in acl module.
82942         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
82944 2009-05-03  Bruno Haible  <bruno@clisp.org>
82946         Create gperf-generated file in the source dir, not in the build dir.
82947         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
82948         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
82949         * modules/unicase/locale-language (unicase/locale-languages.h):
82950         Likewise.
82951         * modules/unicase/special-casing (unicase/special-casing-table.h):
82952         Likewise.
82953         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
82954         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
82955         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
82956         Reported by Ralf Wildenhues.
82958 2009-05-03  Bruno Haible  <bruno@clisp.org>
82960         * modules/fnmatch (Description, configure.ac): Taken from
82961         fnmatch-posix.
82962         * modules/fnmatch-posix: Turn into a symbolic reference to the
82963         'fnmatch' module, and deprecate.
82964         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
82966 2009-05-03  Bruno Haible  <bruno@clisp.org>
82968         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
82969         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
82970         Reported by Ralf Wildenhues.
82972 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82974         * m4/fnmatch.m4: Fix fnmatch re-define.
82976 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82978         priv-set: new module and tests; adapt write-any-file
82979         * lib/priv-set.c: New file.
82980         * lib/priv-set.h: New file.
82981         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
82982         * lib/write-any-file.c: Simplify by using priv-set module.
82983         * m4/priv-set.m4: New file.
82984         * modules/priv-set: New file.
82985         * modules/unlinkdir: Add dependency on priv-set module.
82986         * modules/write-any-file: Likewise.
82988         Tests for module 'priv-set'.
82989         * modules/priv-set-tests: New file.
82990         * tests/test-priv-set.c: New file.
82992 2009-05-03  Jim Meyering  <meyering@redhat.com>
82993             Bruno Haible  <bruno@clisp.org>
82995         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
82996         use the converted UTF-8 variant of the name instead.
82998 2009-05-03  Jim Meyering  <meyering@redhat.com>
83000         tests: tighten some getdate tests
83001         * tests/test-getdate.c (main): Tighten tests: require equality,
83002         not just greater than.  Set TZ envvar to UTC0.
83004 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
83006         getdate: correctly interpret "next monday" when run on a Monday
83007         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
83008         that e.g., "next tues" (when run on a tuesday) results in a date
83009         that is one week in the future, and not today's date.
83010         I.e., add a week when the wday is the same as the current one.
83011         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
83012         and earlier by Martin Bernreuther and Jan Minář.
83013         * tests/test-getdate.c (main): Check that "next DAY" is always in
83014         the future and that "last DAY" is always in the past.
83016 2009-05-02  Jim Meyering  <meyering@redhat.com>
83018         build: ensure that a release build fails when a submodule is unclean
83019         * top/maint.mk (no-submodule-changes): New rule.
83020         (alpha beta major): Depend on it.
83022 2009-05-02  Bruno Haible  <bruno@clisp.org>
83024         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
83025         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
83026         shell variable gl_fnmatch_required to detect which variant is
83027         requested.
83028         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
83029         gl_FUNC_FNMATCH_POSIX.
83030         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
83031         exclude fnmatch-posix.
83033 2009-05-02  Bruno Haible  <bruno@clisp.org>
83035         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
83036         * modules/mbsrtowcs (License): Change to LGPLv2+.
83037         * modules/strnlen1 (License): Likewise.
83038         Reported by Simon Josefsson.
83040 2009-05-02  Bruno Haible  <bruno@clisp.org>
83042         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
83043         "cross".
83044         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
83045         gnulib-tool was called with option --source-base=lib.
83047 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83049         Use automake *-local hooks without commands, for extensibility.
83050         * modules/localcharset (Makefile.am): Rename install-exec-local
83051         rule to install-exec-localcharset, and make it a prerequisite of
83052         install-exec-local.  Likewise, rename the uninstall-local rule to
83053         uninstall-localcharset, and make it a prerequisite of the former.
83055 2009-05-01  Bruno Haible  <bruno@clisp.org>
83057         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
83058         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83059         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
83060         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
83061         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
83062         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83063         m4/locale-zh.m4, m4/codeset.m4.
83065         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83066         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
83067         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83068         m4/locale-zh.m4.
83070         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
83071         REPLACE_WCRTOMB if mbstate_t must be replaced.
83072         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
83073         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
83075 2009-05-01  Bruno Haible  <bruno@clisp.org>
83077         Avoid compiler warnings when redefining macros defined by <libintl.h>.
83078         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
83079         dngettext, dcngettext, textdomain, bindtextdomain,
83080         bind_textdomain_codeset): Undefine before redefining.
83082 2009-04-30  Bruno Haible  <bruno@clisp.org>
83084         Fix bug introduced on 2009-04-25.
83085         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
83086         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
83087         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
83088         is defined.
83089         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
83090         is defined.
83091         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
83092         is defined.
83093         Reported by Elbert_Pol <elbert.pol@gmail.com>.
83095 2009-04-28  Bruno Haible  <bruno@clisp.org>
83097         Comment tweaks.
83098         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
83099         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
83100         * lib/unicase.h (u*_casexfrm): Likewise.
83101         Reported by Paolo Bonzini.
83103 2009-04-28  Bruno Haible  <bruno@clisp.org>
83105         Fix a compilation error.
83106         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
83107         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
83108         Reported by Jim Meyering.
83110 2009-04-27  Bruno Haible  <bruno@clisp.org>
83112         New module 'libunistring'.
83113         * modules/libunistring: New file.
83114         * m4/libunistring.m4: New file.
83115         * MODULES.html.sh (Unicode string functions): Add it.
83117 2009-04-27  Eric Blake  <ebb9@byu.net>
83119         maint.mk: allow package-specific header to provide <config.h>
83120         * top/maint.mk (sc_require_config_h): New variable.
83121         (sc_require_config_h, sc_require_config_h_first): Use it.
83123 2009-04-27  Simon Josefsson  <simon@josefsson.org>
83125         * top/maint.mk (sc_avoid_if_before_free): Except
83126         useless-if-before-free script.
83128 2009-04-27  Eric Blake  <ebb9@byu.net>
83130         maintainer-makefile: depend on all required helper scripts
83131         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
83132         useless-if-before-free.
83133         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
83134         version, rather than assuming gnulib checkout is available.
83135         Reported by Simen Josefsson.
83137 2009-04-26  Bruno Haible  <bruno@clisp.org>
83139         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
83140         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
83141         "../" or "..".
83143 2009-04-26  Bruno Haible  <bruno@clisp.org>
83145         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
83146         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
83147         AC_LIB_HAVE_LINKFLAGS.
83149 2009-04-26  Bruno Haible  <bruno@clisp.org>
83151         Simplify calling convention of u*_conv_from_encoding.
83152         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
83153         u32_conv_from_encoding): Expect a resultbuf argument and return the
83154         result directly as a pointer.
83155         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
83156         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
83157         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
83158         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
83159         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
83160         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
83161         Update.
83162         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
83163         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
83164         * lib/vasnprintf.c (VASNPRINTF): Update.
83165         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
83166         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
83167         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
83168         * NEWS: Mention the change.
83170 2009-04-26  Bruno Haible  <bruno@clisp.org>
83172         Simplify calling convention of u*_conv_to_encoding.
83173         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
83174         u32_conv_to_encoding): Expect a resultbuf argument and return the
83175         result directly as a pointer.
83176         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
83177         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
83178         freeing scaled_offsets if mem_iconveha failed.
83179         * lib/unicase/u-casexfrm.h (FUNC): Update.
83180         * lib/uninorm/u-normxfrm.h (FUNC): Update.
83181         * lib/vasnprintf.c (VASNPRINTF): Update.
83182         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
83183         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
83184         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
83185         * NEWS: Mention the change.
83187 2009-04-26  Bruno Haible  <bruno@clisp.org>
83189         Avoid test failures on AIX and OSF/1.
83190         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
83191         malloc(0).
83192         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
83193         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
83194         Likewise.
83195         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
83196         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
83197         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
83198         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
83199         * doc/posix-functions/malloc.texi: Document the portability problem
83200         related to malloc(0).
83202 2009-04-26  Bruno Haible  <bruno@clisp.org>
83204         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
83205         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
83206         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
83208 2009-04-25  Bruno Haible  <bruno@clisp.org>
83210         Avoid link error when creating a namespace clean library.
83211         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
83212         as macro with arguments if already defined as an alias.
83213         * lib/signbitf.c (gl_signbitf): Don't undefine.
83214         * lib/signbitd.c (gl_signbitd): Don't undefine.
83215         * lib/signbitl.c (gl_signbitl): Don't undefine.
83217 2009-04-25  Jim Meyering  <meyering@redhat.com>
83219         vc-list-files: fix another quoting bug
83220         * build-aux/vc-list-files: Avoid sed backslash expansion
83221         of pathological directory names.
83223 2009-04-25  Eric Blake  <ebb9@byu.net>
83225         vc-list-files: fix shell quoting error
83226         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
83227         timestamp.
83229 2009-04-25  Jim Meyering  <meyering@redhat.com>
83231         vc-list-files: restore lost functionality with subdir argument
83232         * build-aux/vc-list-files: When given a non-"." sub-directory
83233         argument, substitute the $dir/ prefix back onto each resulting name.
83234         Otherwise, coreutils' root_tests check would fail.
83236 2009-04-24  Eric Blake  <ebb9@byu.net>
83238         vc-list-files: ignore git symlinks
83239         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
83240         than ls-files, to ignore git symlinks.
83242         maint.mk: import improvements from m4
83243         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
83244         (move_if_change): Delete unused macro.
83245         (news-date-check, vc-diff-check): Support VPATH builds.
83246         (announcement): Likewise.  Split --bootstrap-tools list...
83247         (boostrap-tools): ...into separate list, which can be overridden
83248         in cfg.mk.
83249         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
83250         requiring dependency on useless-if-before-free module.
83251         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
83252         Support VPATH builds.
83254 2009-04-24  Jim Meyering  <meyering@redhat.com>
83256         maint.mk: remove coreutils-specific rules and variables
83257         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
83258         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
83259         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
83261         maint.mk: remove obsolete rule
83262         * top/maint.mk (rel-check): Remove rule.
83263         (WGET, WGETFLAGS): Remove now-unused variables.
83265 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83267         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
83268         consistency.
83270         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
83271         '$(PATH_SEPARATOR)' instead of ':'.
83273 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83275         * lib/getopt1.c (main): Use 'const' for static array.
83277 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83279         * top/maint.mk: Sync with coreutils.
83280         * NEWS: Explain incompatibilities.
83282 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83283             Bruno Haible  <bruno@clisp.org>
83285         Fix cross-compilation results.
83286         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
83287         statement, as third argument of AC_TRY_RUN.
83288         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
83289         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
83290         Likewise.
83291         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
83292         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
83293         Likewise.
83294         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
83295         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
83296         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
83298 2009-04-20  Bruno Haible  <bruno@clisp.org>
83300         Avoid test failure on mingw.
83301         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
83303 2009-04-20  Bruno Haible  <bruno@clisp.org>
83305         Avoid compilation error on mingw.
83306         * modules/localename-tests (Depends-on): Add locale.
83308 2009-04-19  Bruno Haible  <bruno@clisp.org>
83310         Support for building a shared library on Windows platforms.
83311         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
83312         (main): Test the presence of UNINORM_NFC here.
83313         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
83314         (main): Test the presence of UNINORM_NFD here.
83315         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
83316         (main): Test the presence of UNINORM_NFKC here.
83317         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
83318         (main): Test the presence of UNINORM_NFKD here.
83320 2009-04-19  Bruno Haible  <bruno@clisp.org>
83322         Avoid a compiler warning.
83323         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
83324         Change type of variable 'sequence'.
83326 2009-04-19  Bruno Haible  <bruno@clisp.org>
83328         * modules/configmake (Makefile.am): When the contents of configmake.h
83329         does not change, arrange to preserve its modification time.
83331 2009-04-17  Simon Josefsson  <simon@josefsson.org>
83333         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
83334         gettext domain.
83336 2009-04-16  Jim Meyering  <meyering@redhat.com>
83338         useless-if-before-free: improve conversion code
83339         * build-aux/useless-if-before-free: Adjust code-in-comment to match
83340         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
83342 2009-04-14  Bruno Haible  <bruno@clisp.org>
83344         * modules/fcntl (Depends-on): Add extensions.
83345         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
83347 2009-04-12  Ben Pfaff  <blp@gnu.org>
83349         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
83350         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
83352 2009-03-20  Ben Pfaff  <blp@gnu.org>
83354         Make rename replace existing destinations on Windows.
83355         * m4/rename.m4: Add test for Mingw.
83356         * lib/rename.c: Add rename replacement that uses MoveFileEx with
83357         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
83358         * doc/posix-functions/rename.texi: Document.
83360 2009-04-10  Bruno Haible  <bruno@clisp.org>
83362         New include file "iconveh.h".
83363         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
83364         * lib/striconveh.h: Include it.
83365         (enum iconv_ilseq_handler): Remove definition.
83366         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
83367         striconveh.h.
83368         * lib/striconveha.c: Include striconveh.h.
83369         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
83370         * modules/striconveh (Files): Add lib/iconveh.h.
83371         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
83372         lib/striconveh.h.
83374 2009-04-10  Bruno Haible  <bruno@clisp.org>
83376         * lib/uniconv.h: Update comment.
83378 2009-04-10  Bruno Haible  <bruno@clisp.org>
83380         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
83381         always.
83382         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
83383         * lib/unistr/u16-mbtouc-aux.c: Likewise.
83384         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
83385         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
83386         "unistring-notinline.h", so that the function gets defined always.
83387         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
83388         * lib/unistr/u8-uctomb.c: Likewise.
83389         * lib/unistr/u16-mbtouc.c: Likewise.
83390         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
83391         * lib/unistr/u16-uctomb.c: Likewise.
83392         * lib/unistr/u32-mbtouc.c: Likewise.
83393         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
83394         * lib/unistr/u32-uctomb.c: Likewise.
83396 2009-04-10  Bruno Haible  <bruno@clisp.org>
83398         Mark 'utime' obsolete.
83399         * modules/utime (Status, Notice): New sections.
83400         Suggested by Jim Meyering.
83402         Fix cross-compile guess for utime test.
83403         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
83404         autoconf.
83405         * doc/posix-functions/utime.texi: Give more precisions.
83406         Reported by Jan <ipif@ymail.com>.
83408 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
83410         filevercmp: correct today's change
83411         * lib/filevercmp.c: Also handle coreutils' test inputs.
83412         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
83414         Fix regression in 'filevercmp' module. Thanks Sven Joachim
83415         for reporting it.
83416         * lib/filevercmp.c: Special handle for "", "." and "..".
83417         * tests/test-filevercmp.c: Enlarge the set suite.
83419 2009-04-07  Jim Meyering  <meyering@redhat.com>
83421         useless-if-before-free: show how to remove braced useless free, too
83422         * build-aux/useless-if-before-free: still only in a comment, though.
83424 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
83426         maint.mk: import changes to syntax-check macros from coreutils
83427         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
83428         Use them in the relevant macros.
83430 2009-04-06  Bruno Haible  <bruno@clisp.org>
83432         Fix unportable use of bit-fields.
83433         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
83434         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
83435         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
83437 2009-04-06  Bruno Haible  <bruno@clisp.org>
83439         Avoid test failures on AIX and OSF/1.
83440         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
83441         that malloc(0) = NULL.
83442         * tests/unicase/test-u8-tolower.c (check): Likewise.
83443         * tests/unicase/test-u8-totitle.c (check): Likewise.
83444         * tests/unicase/test-u8-toupper.c (check): Likewise.
83445         * tests/unicase/test-u16-casefold.c (check): Likewise.
83446         * tests/unicase/test-u16-tolower.c (check): Likewise.
83447         * tests/unicase/test-u16-totitle.c (check): Likewise.
83448         * tests/unicase/test-u16-toupper.c (check): Likewise.
83449         * tests/unicase/test-u32-casefold.c (check): Likewise.
83450         * tests/unicase/test-u32-tolower.c (check): Likewise.
83451         * tests/unicase/test-u32-totitle.c (check): Likewise.
83452         * tests/unicase/test-u32-toupper.c (check): Likewise.
83453         * tests/uninorm/test-u8-nfc.c (check): Likewise.
83454         * tests/uninorm/test-u8-nfd.c (check): Likewise.
83455         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
83456         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
83457         * tests/uninorm/test-u16-nfc.c (check): Likewise.
83458         * tests/uninorm/test-u16-nfd.c (check): Likewise.
83459         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
83460         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
83461         * tests/uninorm/test-u32-nfc.c (check): Likewise.
83462         * tests/uninorm/test-u32-nfd.c (check): Likewise.
83463         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
83464         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
83466 2009-04-05  Bruno Haible  <bruno@clisp.org>
83468         Work around an autoconf limitation.
83469         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
83470         comment line if it would be longer than 3 KB.
83472 2009-04-05  Bruno Haible  <bruno@clisp.org>
83474         Avoid test failure with libiconv-1.13.
83475         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
83476         of the expected test results.
83478 2009-04-05  Bruno Haible  <bruno@clisp.org>
83480         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
83481         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
83482         that it should be installed.
83484 2009-04-05  Bruno Haible  <bruno@clisp.org>
83486         * gnulib-tool: New option --copy-file.
83487         (func_usage): Document it.
83488         (func_dest_tmpfilename): Moved out of func_import.
83489         (func_add_file, func_update_file): New functions, extracted from
83490         func_import.
83491         (func_import): Update.
83493 2009-04-05  Karl Berry  <karl@gnu.org>
83495         * README: prominently mention gnulib-tool.
83496         Rearrange sections so getting the code is near the top.
83498 2009-04-05  Bruno Haible  <bruno@clisp.org>
83500         * lib/unicase.h: Mention u*_cmp2.
83501         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83502         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
83503         * lib/unicase/ulc-casecmp.c: Likewise.
83504         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
83505         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
83506         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
83507         unistr/u8-cmp.
83508         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
83509         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
83510         unistr/u16-cmp.
83511         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
83512         unistr/u32-cmp.
83514         * lib/uninorm.h: Mention u*_cmp2.
83515         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83516         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
83517         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
83518         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
83519         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
83520         unistr/u8-cmp.
83521         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
83522         unistr/u16-cmp.
83523         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
83524         unistr/u32-cmp.
83526         New module 'unistr/u32-cmp2'.
83527         * lib/unistr/u32-cmp2.c: New file.
83528         * modules/unistr/u32-cmp2: New file.
83530         New module 'unistr/u16-cmp2'.
83531         * lib/unistr/u16-cmp2.c: New file.
83532         * modules/unistr/u16-cmp2: New file.
83534         New module 'unistr/u8-cmp2'.
83535         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
83536         * lib/unistr/u8-cmp2.c: New file.
83537         * lib/unistr/u-cmp2.h: New file.
83538         * modules/unistr/u8-cmp2: New file.
83540 2009-04-05  Bruno Haible  <bruno@clisp.org>
83542         * lib/unictype.h (uc_property_is_valid): New macro.
83543         * tests/unictype/test-pr_byname.c (main): Use it.
83545         * lib/unistr.h: Doc fixes.
83546         * lib/uniconv.h: Doc fixes.
83547         * lib/unictype.h: Doc fixes.
83549 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
83551         Port coreutils 7.2 to Solaris 8.
83553         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
83554         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
83555         for Solaris 8.  This is a bit of a hack, as it means it's the
83556         caller's responsibility to add -lnsl if needed, but most likely it
83557         won't be needed since only getaddrinfo uses this and getaddrinfo
83558         isn't needed on Solaris 8.
83560         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
83561         problem to Solaris 8 encountered with coreutils 7.2, which
83562         resulted in a message "fnmatch.c:292: warning: passing argument 4
83563         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
83564         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
83566 2009-04-03  Simon Josefsson  <simon@josefsson.org>
83568         * m4/ld-version-script.m4: Add FIXME comment.
83570 2009-04-02  Simon Josefsson  <simon@josefsson.org>
83572         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
83573         SOVERSION variable.
83575 2009-04-02  Bruno Haible  <bruno@clisp.org>
83577         * Makefile (info, html, dvi, pdf): Combine the rules.
83578         Suggested by Jim Meyering.
83580 2009-04-01  Bruno Haible  <bruno@clisp.org>
83582         * Makefile (info, html, dvi, pdf): New targets.
83583         Reported by Reuben Thomas <rrt@sc3d.org>.
83585 2009-04-01  Bruno Haible  <bruno@clisp.org>
83587         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
83588         can be put into PATH.
83589         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
83591 2009-04-01  Bruno Haible  <bruno@clisp.org>
83593         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
83595 2009-04-01  Bruno Haible  <bruno@clisp.org>
83597         Rename module 'visibility'.
83598         * modules/lib-symbol-visibility: Renamed from modules/visibility.
83599         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
83600         * doc/gnulib.texi: Update.
83601         * MODULES.html.sh (Misc): Update.
83602         * NEWS: Mention the change.
83604 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83606         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
83607         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
83608         Eric Blake <ebb9@byu.net> for review.
83609         * MODULES.html.sh: Add lib-msvc-compat.
83610         * doc/gnulib.texi: Link to new section.
83611         * m4/ld-output-def.m4: New file.
83612         * doc/ld-output-def.texi: New file.
83614 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83616         Rename ld-version-script to lib-symbol-versions.  Suggested by
83617         Bruno Haible <bruno@clisp.org>.
83618         * modules/ld-version-script: Renamed to lib-symbol-versions.
83619         * doc/ld-version-script.texi: Fix module name.
83620         * MODULES.html.sh: Add lib-symbol-versions.
83622 2009-03-31  Simon Josefsson  <simon@josefsson.org>
83624         * modules/u64-tests: New file.
83625         * tests/test-u64.c: New file.
83627 2009-03-04  Simon Josefsson  <simon@josefsson.org>
83629         * MODULES.html.sh: Mention u64.
83630         * modules/u64: New module.
83631         * modules/crypto/sha512: Depend on u64 module instead of providing
83632         u64.h.
83634 2009-03-27  Eric Blake  <ebb9@byu.net>
83636         test-strerror: make debugging EAI_SYSTEM easier
83637         * modules/getaddrinfo-tests (Depends-on): Add strerror.
83638         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
83639         failure was EAI_SYSTEM.
83641 2009-03-25  Bruno Haible  <bruno@clisp.org>
83643         Fix a problem with --enable-relocatable on Solaris 7.
83644         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
83645         since 2008-02-24.
83647 2009-03-25  Eric Blake  <ebb9@byu.net>
83649         test-sockets: avoid gcc warning
83650         * tests/test-sockets.c (main): Silence compiler warning.
83652 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83654         New modules nproc, pthread, contributed by Glen Lenker.
83656         * MODULES.html.sh: Add pthread, nproc.
83657         * lib/nproc.c: New file.
83658         * lib/nproc.h: New file.
83659         * lib/pthread.in.h: New file.
83660         * m4/pthread.m4: New file.
83661         * modules/nproc: New file.
83662         * modules/pthread: New file.
83664 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83666         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
83667         New variable.
83669 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
83671         filevercmp: handle simple~ and numbered.~3~ backup suffixes
83672         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
83673         * tests/test-filevercmp.c: Add tests for backup suffixes.
83675 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83677         * modules/stdlib (Depends-on): Add stdint, needed when defining
83678         struct random_data on, for example, HP-UX 10.20.  Reported by
83679         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83681 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83683         * lib/readline.c (readline): Call fflush on stdout after printing
83684         prompt.
83686 2009-03-20  Bruno Haible  <bruno@clisp.org>
83688         Remove dependency from 'close' module to -lws2_32 on native Windows.
83689         * lib/close-hook.h: New file.
83690         * lib/close-hook.c: New file.
83691         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
83692         w32sock.h.
83693         (_gl_close_fd_maybe_socket): Remove function.
83694         (rpl_close): Invoke execute_all_close_hooks instead of
83695         _gl_close_fd_maybe_socket.
83696         * lib/sockets.c: Include close-hook.h, w32sock.h.
83697         (close_fd_maybe_socket): New function, essentially from lib/close.c.
83698         (close_sockets_hook): New variable.
83699         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
83700         (gl_sockets_cleanup): Unregister it.
83701         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
83702         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
83703         * modules/close-hook: New file.
83704         * modules/close (Files): Remove lib/w32sock.h.
83705         (Depends-on): Add close-hook.
83706         (Link): Remove section.
83707         * modules/sockets (Files): Add lib/w32sock.h.
83708         (Depends-on): Add close-hook.
83709         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
83710         invocation.
83711         * NEWS: Mention that LIB_CLOSE is gone.
83713 2009-03-23  Eric Blake  <ebb9@byu.net>
83715         signal-tests: test previous patch
83716         * tests/test-signal.c: New file.
83717         * modules/signal-tests: Likewise.
83719         signal.h: always support 'volatile sig_atomic_t'
83720         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
83721         (gl_SIGNAL_H_DEFAULTS): Add a default.
83722         * modules/signal (Makefile.am): Substitute if needed.
83723         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
83724         users can blindly add volatile.
83725         * doc/posix-headers/signal.texi (signal.h): Document it.
83726         Reported by Matthew Woehlke.
83728 2009-03-23  Jim Meyering  <meyering@redhat.com>
83730         pathmax: PATH_MAX: use pathconf only when available
83731         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
83732         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
83733         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
83734         This avoids a link failure in a PSP cross-compilation environment
83735         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
83737         * lib/vasnprintf.c (divide): Fix typo in comment.
83739 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83741         * gnulib-tool (func_filter_filelist): Fix comment.
83743 2009-03-20  Bruno Haible  <bruno@clisp.org>
83745         Make sockets.h self-contained.
83746         * lib/sockets.c: Include sockets.h first.
83747         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
83749 2009-03-19  Eric Blake  <ebb9@byu.net>
83751         doc: mention more functions added in cygwin 1.7.0
83752         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
83753         addition.
83754         * doc/posix-functions/log2f.texi: Likewise.
83756 2009-03-19  Jim Meyering  <meyering@redhat.com>
83758         fsusage: avoid syntax error due to statement-before-declaration
83759         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
83760         after all declarations.  Reported by Matthew Woehlke in
83761         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
83763 2009-03-18  Eric Blake  <ebb9@byu.net>
83765         build-aux/compile: sync from automake
83766         * build-aux/compile: New file, from automake.
83767         * config/srclist.txt: Mention build-aux/compile.
83769 2009-03-17  Bruno Haible  <bruno@clisp.org>
83771         * lib/git-merge-changelog.c: Fix typo in comment.
83772         Reported by Reuben Thomas <rrt@sc3d.org>.
83774 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
83776         * m4/regex.m4: update and improve help for
83777         --without-included-regex.
83779 2009-03-17  Simon Josefsson  <simon@josefsson.org>
83781         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
83782         failure on missing include files.
83784 2009-03-17  Eric Blake  <ebb9@byu.net>
83786         doc: mention more functions added in cygwin 1.7.0
83787         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
83788         addition.
83789         * doc/posix-functions/fwscanf.texi: Likewise.
83790         * doc/posix-functions/swprintf.texi: Likewise.
83791         * doc/posix-functions/swscanf.texi: Likewise.
83792         * doc/posix-functions/vfwprintf.texi: Likewise.
83793         * doc/posix-functions/vfwscanf.texi: Likewise.
83794         * doc/posix-functions/vswprintf.texi: Likewise.
83795         * doc/posix-functions/vswscanf.texi: Likewise.
83796         * doc/posix-functions/vwprintf.texi: Likewise.
83797         * doc/posix-functions/vwscanf.texi: Likewise.
83798         * doc/posix-functions/wcscasecmp.texi: Likewise.
83799         * doc/posix-functions/wcsdup.texi: Likewise.
83800         * doc/posix-functions/wcsftime.texi: Likewise.
83801         * doc/posix-functions/wcsncasecmp.texi: Likewise.
83802         * doc/posix-functions/wprintf.texi: Likewise.
83803         * doc/posix-functions/wscanf.texi: Likewise.
83804         * doc/glibc-functions/gethostbyname2.texi: Likewise.
83806 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83808         maint.mk: really add $(AM_MAKEFLAGS)
83809         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
83810         was inadvertently omitted in the last commit.
83811         Spotted by Bruno Haible.
83813         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
83814         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
83815         $(AM_MAKEFLAGS)' rather than plain `make'.
83817         gnulib-tool: execute $MAKE not make
83818         * gnulib-tool: Default $MAKE to 'make'.
83819         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
83820         than make.  Initialize $MAKE in the do-autobuild script.
83822         gnulib-tool: use $MAKE not make in generated files
83823         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
83824         make, in generated files.  Initialize $MAKE in the do-autobuild
83825         script.
83827         * top/GNUmakefile (_have-git-version-gen): Fix typo.
83829         GNUmakefile: disable parallelism only for multiple, recursive targets
83830         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
83831         additions in the Makefile.
83832         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
83833         by Automake.
83834         (.NOTPARALLEL): Only disable parallel builds if multiple targets
83835         are listed on the command line and at least one of them is
83836         listed in $(ALL_RECURSIVE_TARGETS).
83838 2009-03-14  Bruno Haible  <bruno@clisp.org>
83840         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
83841         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
83842         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
83843         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
83844         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
83845         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
83846         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
83847         unistr/u8-uctomb.
83848         * modules/unistr/u8-strchr (Depends-on): Likewise.
83849         * modules/unistr/u8-strrchr (Depends-on): Likewise.
83850         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
83851         unistr/u16-uctomb.
83852         * modules/unistr/u16-strchr (Depends-on): Likewise.
83853         * modules/unistr/u16-strrchr (Depends-on): Likewise.
83855 2009-03-12  Bruno Haible  <bruno@clisp.org>
83857         Work around select() bug on Interix 3.5.
83858         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
83859         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
83860         * m4/select.m4: New file.
83861         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
83862         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
83863         * modules/select (Files): Add m4/select.m4.
83864         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
83865         * modules/nanosleep (Depends-on): Add select.
83866         * modules/poll (Depends-on): Likewise.
83867         * doc/posix-functions/select.texi: Mention the Interix bug.
83868         Reported by Markus Duft <mduft@gentoo.org>.
83870         * lib/select.c: Renamed from lib/winsock-select.c.
83871         * modules/select (Files): Add lib/select.c, remove
83872         lib/winsock-select.c.
83873         (configure.ac): Update.
83875 2009-03-12  Jim Meyering  <meyering@redhat.com>
83877         avoid gcc warnings about unused macro definitions
83878         * lib/readtokens.c (STREQ): Remove unused definition.
83879         * lib/xmalloc.c (SIZE_MAX): Likewise.
83880         * lib/openat-die.c (N_): Likewise.
83881         * lib/mountlist.c (SIZE_MAX): Remove definition.
83882         Instead, include <stdint.h>.
83883         * lib/readutmp.c: Likewise.
83884         * modules/readutmp (Depends-on): Add stdint.
83885         * modules/mountlist (Depends-on): Add stdint.
83886         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
83888 2009-03-10  Bruno Haible  <bruno@clisp.org>
83890         Tests for module 'mbmemcasecoll'.
83891         * modules/mbmemcasecoll-tests: New file.
83892         * tests/test-mbmemcasecoll1.sh: New file.
83893         * tests/test-mbmemcasecoll2.sh: New file.
83894         * tests/test-mbmemcasecoll3.sh: New file.
83895         * tests/test-mbmemcasecoll.c: New file.
83897         New module 'mbmemcasecoll'.
83898         * lib/mbmemcasecoll.h: New file.
83899         * lib/mbmemcasecoll.c: New file.
83900         * modules/mbmemcasecoll: New file.
83902         * tests/test-mbmemcasecmp.h: New file, extracted from
83903         tests/test-mbmemcasecmp.c.
83904         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
83905         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
83906         (main): Update.
83907         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
83909 2009-03-09  Bruno Haible  <bruno@clisp.org>
83911         Tests for module 'mbmemcasecmp'.
83912         * modules/mbmemcasecmp-tests: New file.
83913         * tests/test-mbmemcasecmp1.sh: New file.
83914         * tests/test-mbmemcasecmp2.sh: New file.
83915         * tests/test-mbmemcasecmp3.sh: New file.
83916         * tests/test-mbmemcasecmp.c: New file.
83918         New module 'mbmemcasecmp'.
83919         * lib/mbmemcasecmp.h: New file.
83920         * lib/mbmemcasecmp.c: New file.
83921         * modules/mbmemcasecmp: New file.
83923 2009-03-09  Bruno Haible  <bruno@clisp.org>
83925         Tests for module 'unicase/ulc-casecoll'.
83926         * modules/unicase/ulc-casecoll-tests: New file.
83927         * tests/unicase/test-ulc-casecoll1.sh: New file.
83928         * tests/unicase/test-ulc-casecoll2.sh: New file.
83929         * tests/unicase/test-ulc-casecoll.c: New file.
83931         New module 'unicase/ulc-casecoll'.
83932         * lib/unicase.h (ulc_casecoll): New declaration.
83933         * lib/unicase/ulc-casecoll.c: New file.
83934         * modules/unicase/ulc-casecoll: New file.
83936         New module 'unicase/ulc-casexfrm'.
83937         * lib/unicase.h (ulc_casexfrm): New declaration.
83938         * lib/unicase/ulc-casexfrm.c: New file.
83939         * modules/unicase/ulc-casexfrm: New file.
83941 2009-03-09  Bruno Haible  <bruno@clisp.org>
83943         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
83944         invocations.
83946         * m4/mbscasecmp.m4: Remove file.
83947         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
83948         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
83950         * m4/mbscasestr.m4: Remove file.
83951         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
83952         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
83954         * m4/mbschr.m4: Remove file.
83955         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
83956         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
83958         * m4/mbscspn.m4: Remove file.
83959         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
83960         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
83962         * m4/mbslen.m4: Remove file.
83963         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
83964         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
83966         * m4/mbsncasecmp.m4: Remove file.
83967         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
83968         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
83970         * m4/mbsnlen.m4: Remove file.
83971         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
83972         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
83974         * m4/mbspbrk.m4: Remove file.
83975         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
83976         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
83978         * m4/mbspcasecmp.m4: Remove file.
83979         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
83980         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
83982         * m4/mbsrchr.m4: Remove file.
83983         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
83984         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
83986         * m4/mbssep.m4: Remove file.
83987         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
83988         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
83990         * m4/mbsspn.m4: Remove file.
83991         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
83992         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
83994         * m4/mbsstr.m4: Remove file.
83995         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
83996         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
83998         * m4/mbstok_r.m4: Remove file.
83999         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
84000         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
84002         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
84004         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
84005         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
84007         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
84009 2009-03-08  Bruno Haible  <bruno@clisp.org>
84011         Tests for module 'unicase/ulc-casecmp'.
84012         * modules/unicase/ulc-casecmp-tests: New file.
84013         * tests/unicase/test-ulc-casecmp1.sh: New file.
84014         * tests/unicase/test-ulc-casecmp2.sh: New file.
84015         * tests/unicase/test-ulc-casecmp.c: New file.
84017         New module 'unicase/ulc-casecmp'.
84018         * lib/unicase.h (ulc_casecmp): New declaration.
84019         * lib/unicase/ulc-casecmp.c: New file.
84020         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
84021         'const SRC_UNIT *'.
84022         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
84023         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
84024         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
84025         * modules/unicase/ulc-casecmp: New file.
84027         Tests for module 'unicase/u32-is-cased'.
84028         * modules/unicase/u32-is-cased-tests: New file.
84029         * tests/unicase/test-u32-is-cased.c: New file.
84031         Tests for module 'unicase/u16-is-cased'.
84032         * modules/unicase/u16-is-cased-tests: New file.
84033         * tests/unicase/test-u16-is-cased.c: New file.
84035         Tests for module 'unicase/u8-is-cased'.
84036         * modules/unicase/u8-is-cased-tests: New file.
84037         * tests/unicase/test-u8-is-cased.c: New file.
84038         * tests/unicase/test-is-cased.h: New file.
84040         New module 'unicase/u32-is-cased'.
84041         * lib/unicase/u32-is-cased.c: New file.
84042         * modules/unicase/u32-is-cased: New file.
84044         New module 'unicase/u16-is-cased'.
84045         * lib/unicase/u16-is-cased.c: New file.
84046         * modules/unicase/u16-is-cased: New file.
84048         New module 'unicase/u8-is-cased'.
84049         * lib/unicase/u8-is-cased.c: New file.
84050         * lib/unicase/u-is-cased.h: New file.
84051         * modules/unicase/u8-is-cased: New file.
84053         Tests for module 'unicase/u32-is-casefolded'.
84054         * modules/unicase/u32-is-casefolded-tests: New file.
84055         * tests/unicase/test-u32-is-casefolded.c: New file.
84057         Tests for module 'unicase/u16-is-casefolded'.
84058         * modules/unicase/u16-is-casefolded-tests: New file.
84059         * tests/unicase/test-u16-is-casefolded.c: New file.
84061         Tests for module 'unicase/u8-is-casefolded'.
84062         * modules/unicase/u8-is-casefolded-tests: New file.
84063         * tests/unicase/test-u8-is-casefolded.c: New file.
84064         * tests/unicase/test-is-casefolded.h: New file.
84066         New module 'unicase/u32-is-casefolded'.
84067         * lib/unicase/u32-is-casefolded.c: New file.
84068         * modules/unicase/u32-is-casefolded: New file.
84070         New module 'unicase/u16-is-casefolded'.
84071         * lib/unicase/u16-is-casefolded.c: New file.
84072         * modules/unicase/u16-is-casefolded: New file.
84074         New module 'unicase/u8-is-casefolded'.
84075         * lib/unicase/u8-is-casefolded.c: New file.
84076         * modules/unicase/u8-is-casefolded: New file.
84078         Tests for module 'unicase/u32-is-titlecase'.
84079         * modules/unicase/u32-is-titlecase-tests: New file.
84080         * tests/unicase/test-u32-is-titlecase.c: New file.
84082         Tests for module 'unicase/u16-is-titlecase'.
84083         * modules/unicase/u16-is-titlecase-tests: New file.
84084         * tests/unicase/test-u16-is-titlecase.c: New file.
84086         Tests for module 'unicase/u8-is-titlecase'.
84087         * modules/unicase/u8-is-titlecase-tests: New file.
84088         * tests/unicase/test-u8-is-titlecase.c: New file.
84089         * tests/unicase/test-is-titlecase.h: New file.
84091         New module 'unicase/u32-is-titlecase'.
84092         * lib/unicase/u32-is-titlecase.c: New file.
84093         * modules/unicase/u32-is-titlecase: New file.
84095         New module 'unicase/u16-is-titlecase'.
84096         * lib/unicase/u16-is-titlecase.c: New file.
84097         * modules/unicase/u16-is-titlecase: New file.
84099         New module 'unicase/u8-is-titlecase'.
84100         * lib/unicase/u8-is-titlecase.c: New file.
84101         * modules/unicase/u8-is-titlecase: New file.
84103         Tests for module 'unicase/u32-is-lowercase'.
84104         * modules/unicase/u32-is-lowercase-tests: New file.
84105         * tests/unicase/test-u32-is-lowercase.c: New file.
84107         Tests for module 'unicase/u16-is-lowercase'.
84108         * modules/unicase/u16-is-lowercase-tests: New file.
84109         * tests/unicase/test-u16-is-lowercase.c: New file.
84111         Tests for module 'unicase/u8-is-lowercase'.
84112         * modules/unicase/u8-is-lowercase-tests: New file.
84113         * tests/unicase/test-u8-is-lowercase.c: New file.
84114         * tests/unicase/test-is-lowercase.h: New file.
84116         New module 'unicase/u32-is-lowercase'.
84117         * lib/unicase/u32-is-lowercase.c: New file.
84118         * modules/unicase/u32-is-lowercase: New file.
84120         New module 'unicase/u16-is-lowercase'.
84121         * lib/unicase/u16-is-lowercase.c: New file.
84122         * modules/unicase/u16-is-lowercase: New file.
84124         New module 'unicase/u8-is-lowercase'.
84125         * lib/unicase/u8-is-lowercase.c: New file.
84126         * modules/unicase/u8-is-lowercase: New file.
84128         Tests for module 'unicase/u32-is-uppercase'.
84129         * modules/unicase/u32-is-uppercase-tests: New file.
84130         * tests/unicase/test-u32-is-uppercase.c: New file.
84132         Tests for module 'unicase/u16-is-uppercase'.
84133         * modules/unicase/u16-is-uppercase-tests: New file.
84134         * tests/unicase/test-u16-is-uppercase.c: New file.
84136         Tests for module 'unicase/u8-is-uppercase'.
84137         * modules/unicase/u8-is-uppercase-tests: New file.
84138         * tests/unicase/test-u8-is-uppercase.c: New file.
84139         * tests/unicase/test-is-uppercase.h: New file.
84141         New module 'unicase/u32-is-uppercase'.
84142         * lib/unicase/u32-is-uppercase.c: New file.
84143         * modules/unicase/u32-is-uppercase: New file.
84145         New module 'unicase/u16-is-uppercase'.
84146         * lib/unicase/u16-is-uppercase.c: New file.
84147         * modules/unicase/u16-is-uppercase: New file.
84149         New module 'unicase/u8-is-uppercase'.
84150         * lib/unicase/u8-is-uppercase.c: New file.
84151         * modules/unicase/u8-is-uppercase: New file.
84153         New module 'unicase/u32-is-invariant'.
84154         * lib/unicase/u32-is-invariant.c: New file.
84155         * modules/unicase/u32-is-invariant: New file.
84157         New module 'unicase/u16-is-invariant'.
84158         * lib/unicase/u16-is-invariant.c: New file.
84159         * modules/unicase/u16-is-invariant: New file.
84161         New module 'unicase/u8-is-invariant'.
84162         * lib/unicase/u8-is-invariant.c: New file.
84163         * lib/unicase/invariant.h: New file.
84164         * lib/unicase/u-is-invariant.h: New file.
84165         * modules/unicase/u8-is-invariant: New file.
84167         Tests for module 'unicase/u32-casecoll'.
84168         * modules/unicase/u32-casecoll-tests: New file.
84169         * tests/unicase/test-u32-casecoll.c: New file.
84171         Tests for module 'unicase/u16-casecoll'.
84172         * modules/unicase/u16-casecoll-tests: New file.
84173         * tests/unicase/test-u16-casecoll.c: New file.
84175         Tests for module 'unicase/u8-casecoll'.
84176         * modules/unicase/u8-casecoll-tests: New file.
84177         * tests/unicase/test-u8-casecoll.c: New file.
84179         New module 'unicase/u32-casecoll'.
84180         * lib/unicase/u32-casecoll.c: New file.
84181         * modules/unicase/u32-casecoll: New file.
84183         New module 'unicase/u16-casecoll'.
84184         * lib/unicase/u16-casecoll.c: New file.
84185         * modules/unicase/u16-casecoll: New file.
84187         New module 'unicase/u8-casecoll'.
84188         * lib/unicase/u8-casecoll.c: New file.
84189         * lib/unicase/u-casecoll.h: New file.
84190         * modules/unicase/u8-casecoll: New file.
84192         New module 'unicase/u32-casexfrm'.
84193         * lib/unicase/u32-casexfrm.c: New file.
84194         * modules/unicase/u32-casexfrm: New file.
84196         New module 'unicase/u16-casexfrm'.
84197         * lib/unicase/u16-casexfrm.c: New file.
84198         * modules/unicase/u16-casexfrm: New file.
84200         New module 'unicase/u8-casexfrm'.
84201         * lib/unicase/u8-casexfrm.c: New file.
84202         * lib/unicase/u-casexfrm.h: New file.
84203         * modules/unicase/u8-casexfrm: New file.
84205         Tests for module 'unicase/u32-casecmp'.
84206         * modules/unicase/u32-casecmp-tests: New file.
84207         * tests/unicase/test-u32-casecmp.c: New file.
84209         Tests for module 'unicase/u16-casecmp'.
84210         * modules/unicase/u16-casecmp-tests: New file.
84211         * tests/unicase/test-u16-casecmp.c: New file.
84213         Tests for module 'unicase/u8-casecmp'.
84214         * modules/unicase/u8-casecmp-tests: New file.
84215         * tests/unicase/test-u8-casecmp.c: New file.
84216         * tests/unicase/test-casecmp.h: New file.
84218         New module 'unicase/u32-casecmp'.
84219         * lib/unicase/u32-casecmp.c: New file.
84220         * modules/unicase/u32-casecmp: New file.
84222         New module 'unicase/u16-casecmp'.
84223         * lib/unicase/u16-casecmp.c: New file.
84224         * modules/unicase/u16-casecmp: New file.
84226         New module 'unicase/u8-casecmp'.
84227         * lib/unicase/u8-casecmp.c: New file.
84228         * lib/unicase/u-casecmp.h: New file.
84229         * modules/unicase/u8-casecmp: New file.
84231         Tests for module 'unicase/u32-casefold'.
84232         * modules/unicase/u32-casefold-tests: New file.
84233         * tests/unicase/test-u32-casefold.c: New file.
84235         Tests for module 'unicase/u16-casefold'.
84236         * modules/unicase/u16-casefold-tests: New file.
84237         * tests/unicase/test-u16-casefold.c: New file.
84239         Tests for module 'unicase/u8-casefold'.
84240         * modules/unicase/u8-casefold-tests: New file.
84241         * tests/unicase/test-u8-casefold.c: New file.
84243         New module 'unicase/u32-casefold'.
84244         * lib/unicase/u32-casefold.c: New file.
84245         * modules/unicase/u32-casefold: New file.
84247         New module 'unicase/u16-casefold'.
84248         * lib/unicase/u16-casefold.c: New file.
84249         * modules/unicase/u16-casefold: New file.
84251         New module 'unicase/u8-casefold'.
84252         * lib/unicase/u8-casefold.c: New file.
84253         * lib/unicase/u-casefold.h: New file.
84254         * modules/unicase/u8-casefold: New file.
84256         New module 'unicase/tocasefold'.
84257         * lib/unicase/casefold.h: New file.
84258         * lib/unicase/tocasefold.c: New file.
84259         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
84260         * modules/unicase/tocasefold: New file.
84262         Tests for module 'unicase/u32-totitle'.
84263         * modules/unicase/u32-totitle-tests: New file.
84264         * tests/unicase/test-u32-totitle.c: New file.
84266         Tests for module 'unicase/u16-totitle'.
84267         * modules/unicase/u16-totitle-tests: New file.
84268         * tests/unicase/test-u16-totitle.c: New file.
84270         Tests for module 'unicase/u8-totitle'.
84271         * modules/unicase/u8-totitle-tests: New file.
84272         * tests/unicase/test-u8-totitle.c: New file.
84274         New module 'unicase/u32-totitle'.
84275         * lib/unicase/u32-totitle.c: New file.
84276         * modules/unicase/u32-totitle: New file.
84278         New module 'unicase/u16-totitle'.
84279         * lib/unicase/u16-totitle.c: New file.
84280         * modules/unicase/u16-totitle: New file.
84282         New module 'unicase/u8-totitle'.
84283         * lib/unicase/u8-totitle.c: New file.
84284         * lib/unicase/u-totitle.h: New file.
84285         * modules/unicase/u8-totitle: New file.
84287         Tests for module 'unicase/u32-tolower'.
84288         * modules/unicase/u32-tolower-tests: New file.
84289         * tests/unicase/test-u32-tolower.c: New file.
84291         Tests for module 'unicase/u16-tolower'.
84292         * modules/unicase/u16-tolower-tests: New file.
84293         * tests/unicase/test-u16-tolower.c: New file.
84295         Tests for module 'unicase/u8-tolower'.
84296         * modules/unicase/u8-tolower-tests: New file.
84297         * tests/unicase/test-u8-tolower.c: New file.
84299         New module 'unicase/u32-tolower'.
84300         * lib/unicase/u32-tolower.c: New file.
84301         * modules/unicase/u32-tolower: New file.
84303         New module 'unicase/u16-tolower'.
84304         * lib/unicase/u16-tolower.c: New file.
84305         * modules/unicase/u16-tolower: New file.
84307         New module 'unicase/u8-tolower'.
84308         * lib/unicase/u8-tolower.c: New file.
84309         * modules/unicase/u8-tolower: New file.
84311         Tests for module 'unicase/u32-toupper'.
84312         * modules/unicase/u32-toupper-tests: New file.
84313         * tests/unicase/test-u32-toupper.c: New file.
84315         Tests for module 'unicase/u16-toupper'.
84316         * modules/unicase/u16-toupper-tests: New file.
84317         * tests/unicase/test-u16-toupper.c: New file.
84319         Tests for module 'unicase/u8-toupper'.
84320         * modules/unicase/u8-toupper-tests: New file.
84321         * tests/unicase/test-u8-toupper.c: New file.
84323         New module 'unicase/u32-toupper'.
84324         * lib/unicase/u32-toupper.c: New file.
84325         * modules/unicase/u32-toupper: New file.
84327         New module 'unicase/u16-toupper'.
84328         * lib/unicase/u16-toupper.c: New file.
84329         * modules/unicase/u16-toupper: New file.
84331         New module 'unicase/u8-toupper'.
84332         * lib/unicase/u8-toupper.c: New file.
84333         * modules/unicase/u8-toupper: New file.
84335         New module 'unicase/u32-casemap'.
84336         * lib/unicase/u32-casemap.c: New file.
84337         * modules/unicase/u32-casemap: New file.
84339         New module 'unicase/u16-casemap'.
84340         * lib/unicase/u16-casemap.c: New file.
84341         * modules/unicase/u16-casemap: New file.
84343         New module 'unicase/u8-casemap'.
84344         * lib/unicase/unicasemap.h: New file.
84345         * lib/unicase/u8-casemap.c: New file.
84346         * lib/unicase/u-casemap.h: New file.
84347         * modules/unicase/u8-casemap: New file.
84349         New module 'unicase/special-casing'.
84350         * lib/unicase/special-casing.h: New file.
84351         * lib/unicase/special-casing.c: New file.
84352         * lib/unicase/special-casing-table.gperf: New file, generated by
84353         gen-uni-tables.c.
84354         * modules/unicase/special-casing: New file.
84356         Tests for module 'unicase/locale-language'.
84357         * modules/unicase/locale-language-tests: New file.
84358         * tests/unicase/test-locale-language.sh: New file.
84359         * tests/unicase/test-locale-language.c: New file.
84361         New module 'unicase/locale-language'.
84362         * lib/unicase/locale-language.c: New file.
84363         * lib/unicase/locale-languages.gperf: New file.
84364         * modules/unicase/locale-language: New file.
84366         Generate more tables for case conversion and case folding.
84367         * lib/gen-uni-tables.c (SCC_*): New enum items.
84368         (struct special_casing_rule): New type.
84369         (casing_rules, num_casing_rules, allocated_casing_rules): New
84370         variables.
84371         (add_casing_rule, fill_casing_rules): New functions.
84372         (struct casefold_rule): New type.
84373         (casefolding_rules, num_casefolding_rules,
84374         allocated_casefolding_rules): New variables.
84375         (fill_casefolding_rules): New function.
84376         (unicode_casefold): New variable.
84377         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
84378         sort_casing_rules, output_casing_rules): New functions.
84379         (main): Accept to more arguments: SpecialCasing.txt and
84380         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
84381         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
84382         Output mapping for casefolding.
84384         * lib/unicase.h: Include stdbool.h, uninorm.h.
84385         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
84386         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
84387         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
84388         arguments.
84389         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
84390         resultp arguments.
84391         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
84392         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
84393         resultp arguments.
84394         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
84395         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
84396         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
84397         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
84398         declarations.
84399         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
84401 2009-03-08  Bruno Haible  <bruno@clisp.org>
84403         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84404         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
84405         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
84406         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84408 2009-03-07  Bruno Haible  <bruno@clisp.org>
84410         Adjust u*_normcmp, u*_normcoll API.
84411         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84412         u16_normcoll, u32_normcoll): Change failure conventions.
84413         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
84414         errno and return -1.
84415         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84417 2009-03-07  Bruno Haible  <bruno@clisp.org>
84419         Tests for module 'uninorm/u32-normcoll'.
84420         * modules/uninorm/u32-normcoll-tests: New file.
84421         * tests/uninorm/test-u32-normcoll.c: New file.
84423         Tests for module 'uninorm/u16-normcoll'.
84424         * modules/uninorm/u16-normcoll-tests: New file.
84425         * tests/uninorm/test-u16-normcoll.c: New file.
84427         Tests for module 'uninorm/u8-normcoll'.
84428         * modules/uninorm/u8-normcoll-tests: New file.
84429         * tests/uninorm/test-u8-normcoll.c: New file.
84431 2009-03-07  Bruno Haible  <bruno@clisp.org>
84433         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
84434         tests/uninorm/test-u32-normcmp.c.
84435         * tests/uninorm/test-u32-normcmp.c: Include it.
84436         (test_nonascii): New function, extracted from main. Add some more
84437         tests.
84438         (main): Invoke test_ascii and test_nonascii.
84439         * modules/uninorm/u32-normcmp-tests (Files): Add
84440         tests/uninorm/test-u32-normcmp.h.
84441         (Depends-on): Remove uninorm/u32-normcmp.
84443         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
84444         tests/uninorm/test-u16-normcmp.c.
84445         * tests/uninorm/test-u16-normcmp.c: Include it.
84446         (test_nonascii): New function, extracted from main. Add some more
84447         tests.
84448         (main): Invoke test_ascii and test_nonascii.
84449         * modules/uninorm/u16-normcmp-tests (Files): Add
84450         tests/uninorm/test-u16-normcmp.h.
84451         (Depends-on): Remove uninorm/u16-normcmp.
84453         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
84454         tests/uninorm/test-u8-normcmp.c.
84455         * tests/uninorm/test-u8-normcmp.c: Include it.
84456         (test_nonascii): New function, extracted from main. Add some more
84457         tests.
84458         (main): Invoke test_ascii and test_nonascii.
84459         * modules/uninorm/u8-normcmp-tests (Files): Add
84460         tests/uninorm/test-u8-normcmp.h.
84461         (Depends-on): Remove uninorm/u8-normcmp.
84463 2009-03-07  Bruno Haible  <bruno@clisp.org>
84465         New module 'uninorm/u32-normcoll'.
84466         * lib/uninorm/u32-normcoll.c: New file.
84467         * modules/uninorm/u32-normcoll: New file.
84469         New module 'uninorm/u16-normcoll'.
84470         * lib/uninorm/u16-normcoll.c: New file.
84471         * modules/uninorm/u16-normcoll: New file.
84473         New module 'uninorm/u8-normcoll'.
84474         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
84475         declarations.
84476         * lib/uninorm/u8-normcoll.c: New file.
84477         * lib/uninorm/u-normcoll.h: New file.
84478         * modules/uninorm/u8-normcoll: New file.
84480         New module 'uninorm/u32-normxfrm'.
84481         * lib/uninorm/u32-normxfrm.c: New file.
84482         * modules/uninorm/u32-normxfrm: New file.
84484         New module 'uninorm/u16-normxfrm'.
84485         * lib/uninorm/u16-normxfrm.c: New file.
84486         * modules/uninorm/u16-normxfrm: New file.
84488         New module 'uninorm/u8-normxfrm'.
84489         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
84490         declarations.
84491         * lib/uninorm/u8-normxfrm.c: New file.
84492         * lib/uninorm/u-normxfrm.h: New file.
84493         * modules/uninorm/u8-normxfrm: New file.
84495 2009-03-07  Bruno Haible  <bruno@clisp.org>
84497         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
84498         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
84499         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
84501 2009-03-07  Bruno Haible  <bruno@clisp.org>
84503         New module 'memxfrm'.
84504         * lib/memxfrm.h: New file.
84505         * lib/memxfrm.c: New file.
84506         * modules/memxfrm: New file.
84508 2009-03-07  Bruno Haible  <bruno@clisp.org>
84510         New module 'memcmp2'.
84511         * lib/memcmp2.h: New file.
84512         * lib/memcmp2.c: New file.
84513         * modules/memcmp2: New file.
84515 2009-03-07  Bruno Haible  <bruno@clisp.org>
84517         Tests for module 'uninorm/decomposing-form'.
84518         * modules/uninorm/decomposing-form-tests: New file.
84519         * tests/uninorm/test-decomposing-form.c: New file.
84521         New module 'uninorm/decomposing-form'.
84522         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
84523         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
84524         Add 'decomposing_variant' field.
84525         * lib/uninorm/decomposing-form.c: New file.
84526         * lib/uninorm/nfc.c (uninorm_nfc): Update.
84527         * lib/uninorm/nfd.c (uninorm_nfd): Update.
84528         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
84529         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
84530         * modules/uninorm/decomposing-form: New file.
84531         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
84532         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
84534 2009-03-07  Bruno Haible  <bruno@clisp.org>
84536         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
84537         strings.
84539 2009-03-06  Bruno Haible  <bruno@clisp.org>
84541         Tests for module 'uninorm/u32-normcmp'.
84542         * tests/uninorm/test-u32-normcmp.c: New file.
84543         * modules/uninorm/u32-normcmp-tests: New file.
84545         Tests for module 'uninorm/u16-normcmp'.
84546         * tests/uninorm/test-u16-normcmp.c: New file.
84547         * modules/uninorm/u16-normcmp-tests: New file.
84549         Tests for module 'uninorm/u8-normcmp'.
84550         * tests/uninorm/test-u8-normcmp.c: New file.
84551         * modules/uninorm/u8-normcmp-tests: New file.
84553         New module 'uninorm/u32-normcmp'.
84554         * lib/uninorm/u32-normcmp.c: New file.
84555         * modules/uninorm/u32-normcmp: New file.
84557         New module 'uninorm/u16-normcmp'.
84558         * lib/uninorm/u16-normcmp.c: New file.
84559         * modules/uninorm/u16-normcmp: New file.
84561         New module 'uninorm/u8-normcmp'.
84562         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
84563         declarations.
84564         * lib/uninorm/u8-normcmp.c: New file.
84565         * lib/uninorm/u-normcmp.h: New file.
84566         * modules/uninorm/u8-normcmp: New file.
84568 2009-03-06  Bruno Haible  <bruno@clisp.org>
84570         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
84571         Reported by Eric Blake.
84573 2009-03-06  Eric Blake  <ebb9@byu.net>
84574             Bruno Haible  <bruno@clisp.org>
84576         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
84577         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
84578         condition.
84579         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84580         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
84581         condition.
84582         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84584 2009-03-06  Eric Blake  <ebb9@byu.net>
84586         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
84587         to avoid compiler warnings.
84588         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
84590 2009-03-05  Bruno Haible  <bruno@clisp.org>
84592         * tests/test-ftell.c (main): Disable test beyond end of file on
84593         FreeMiNT.
84594         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84596 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
84598         * lib/filevercmp.c: Move hidden files up in ordering.
84599         * tests/test-filevercmp.c: Add tests for hidden files.
84601 2009-03-04  Bruno Haible  <bruno@clisp.org>
84603         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
84604         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
84605         AM_CFLAGS.
84606         Reported by Simon Josefsson.
84608 2009-03-03  Bruno Haible  <bruno@clisp.org>
84610         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
84611         Reported by Simon Josefsson.
84613         * doc/ld-version-script.texi: Update node reference.
84615 2009-03-03  Bruno Haible  <bruno@clisp.org>
84617         * modules/visibility (License): Change to 'unlimited'.
84618         Suggested by Simon Josefsson.
84620 2009-03-03  Jim Meyering  <meyering@redhat.com>
84622         unlinkdir: cannot_unlink_dir may modify process state
84623         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
84624         it's neither thread-safe nor appropriate for use in a library.
84626 2009-03-03  Eric Blake  <ebb9@byu.net>
84628         test-closein: silence test under Darwin
84629         * tests/test-closein.sh: Ignore stderr from cat, since we don't
84630         care if it dies from EPIPE or EBADF.
84632 2009-03-03  Bruno Haible  <bruno@clisp.org>
84634         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
84635         earlier.
84636         * doc/visibility.texi: Fix @node and @section.
84638 2009-03-03  Simon Josefsson  <simon@josefsson.org>
84640         * doc/gnulib.texi: Link to sections for ld version script and
84641         visibility.
84642         * doc/visibility.texi: Add @node and @section.
84643         * modules/ld-version-script: New module.
84644         * m4/ld-version-script.m4: New file.
84645         * doc/ld-version-script.texi: New file.
84647 2009-03-02  David Lutterkort  <lutter@redhat.com>
84649         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
84650         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84652 2009-03-02  Bruno Haible  <bruno@clisp.org>
84654         * doc/visibility.texi: Mention libtool's -export-symbols option.
84656 2009-03-02  Jim Meyering  <meyering@redhat.com>
84658         announce-gen: new option: --no-print-checksums
84659         * build-aux/announce-gen (usage): Describe it.
84660         (print_checksums): Print a newline here, not in the [*] footnote.
84661         (main): Honor it.
84663 2009-03-01  Bruno Haible  <bruno@clisp.org>
84665         Use socklen_t in the native Windows replacements prototypes.
84666         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
84667         instead of 'int'.
84668         * lib/getsockopt.c (rpl_getsockopt): Likewise.
84669         * lib/setsockopt.c (rpl_setsockopt): Likewise.
84670         * modules/getsockopt (Depends-on): Add socklen.
84671         * modules/setsockopt (Depends-on): Add socklen.
84673 2009-03-01  Bruno Haible  <bruno@clisp.org>
84675         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
84676         least 4.2.
84678 2009-03-01  Eric Blake  <ebb9@byu.net>
84679             Bruno Haible  <bruno@clisp.org>
84681         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
84682         error messages.
84683         * lib/wait-process.c (wait_subprocess): Omit error message about
84684         deadly signal sent to the child of termsigp != NULL.
84686 2009-03-01  Eric Blake  <ebb9@byu.net>
84688         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
84690 2009-03-01  Bruno Haible  <bruno@clisp.org>
84692         Avoid a gcc warning.
84693         * tests/test-sched.c (b): Make global.
84694         Reported by Eric Blake.
84696 2009-01-19  Martin Lambers  <marlam@marlam.de>
84698         Provide POSIX semantics for socket timeout options on W32.
84699         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
84700         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
84701         * modules/setsockopt: Depend on sys_time module for struct timeval.
84702         * modules/getsockopt: Depend on sys_time module for struct timeval.
84704 2009-03-01  Simon Josefsson  <simon@josefsson.org>
84706         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
84707         __USE_GNU, for consistency with netdb.in.h.
84708         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84710 2009-03-01  Bruno Haible  <bruno@clisp.org>
84712         More support for FreeMiNT.
84713         * lib/fseeko.c (rpl_fseeko): Complete last commit.
84714         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84716 2009-03-01  Bruno Haible  <bruno@clisp.org>
84718         More support for FreeMiNT.
84719         * lib/fpurge.c (fpurge): Correct last commit.
84720         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84722 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84724         Fix unportable awk script in vc-list-files.
84725         * build-aux/vc-list-files: In the replacement awk script, use
84726         substr with a second argument of 1, not zero.
84727         Report by Simon Josefsson.
84729 2009-02-28  Bruno Haible  <bruno@clisp.org>
84731         More support for FreeMiNT.
84732         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
84733         to FreeMiNT today.
84734         * lib/fwriting.c (fwriting): Likewise.
84735         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
84737 2009-02-28  Bruno Haible  <bruno@clisp.org>
84739         * tests/test-freadseek.c (main): Disable test beyond end of file on
84740         FreeMiNT.
84741         * tests/test-ftello.c (main): Likewise.
84742         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84744 2009-02-28  Bruno Haible  <bruno@clisp.org>
84746         Add tentative support for FreeMiNT.
84747         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
84748         * lib/fpurge.c (fpurge): Likewise.
84749         * lib/freadable.c (freadable): Likewise.
84750         * lib/freading.c (freading): Likewise.
84751         * lib/freadptr.c (freadptr): Likewise.
84752         * lib/freadseek.c (freadptrinc): Likewise.
84753         * lib/fseeko.c (rpl_fseeko): Likewise.
84754         * lib/fseterr.c (fseterr): Likewise.
84755         * lib/fwritable.c (fwritable): Likewise.
84756         * lib/fwriting.c (fwriting): Likewise.
84757         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
84758         Hourihane.
84759         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84761 2009-02-28  Bruno Haible  <bruno@clisp.org>
84763         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
84764         SIGCHLD.
84765         Reported by Jim Meyering.
84767 2009-02-28  Bruno Haible  <bruno@clisp.org>
84769         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
84770         Mention the results of these tests on various platforms.
84771         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
84772         order.
84773         * doc/posix-functions/printf.texi: Likewise.
84774         * doc/posix-functions/snprintf.texi: Likewise.
84775         * doc/posix-functions/sprintf.texi: Likewise.
84776         * doc/posix-functions/vfprintf.texi: Likewise.
84777         * doc/posix-functions/vprintf.texi: Likewise.
84778         * doc/posix-functions/vsnprintf.texi: Likewise.
84779         * doc/posix-functions/vsprintf.texi: Likewise.
84780         * doc/glibc-functions/obstack_printf.texi: Likewise.
84781         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
84783 2009-02-28  Bruno Haible  <bruno@clisp.org>
84785         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
84786         Reported by Loïc Minier <lool@dooz.org>.
84788 2009-02-27  Bruno Haible  <bruno@clisp.org>
84790         * gnulib-tool (func_import): Make the sed expression used to create the
84791         sed script for updating the .gitignore file POSIX compliant.
84792         Reported by Eric Blake.
84794 2009-02-27  Bruno Haible  <bruno@clisp.org>
84796         * gnulib-tool (sed): Don't alias as "sed --posix".
84797         Reported by Eric Blake.
84799 2009-02-27  Bruno Haible  <bruno@clisp.org>
84801         Avoid test link errors.
84802         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
84803         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
84804         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
84805         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
84806         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84808 2009-02-27  Bruno Haible  <bruno@clisp.org>
84810         Avoid spurious "(cached)" in configure output.
84811         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
84812         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
84813         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
84814         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
84815         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
84816         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
84817         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
84818         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
84819         Reported by Eric Blake.
84821 2009-02-27  Eric Blake  <ebb9@byu.net>
84823         printf: fix regression in previous patch
84824         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
84826 2009-02-27  Bruno Haible  <bruno@clisp.org>
84828         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
84829         value.
84830         * lib/stdint.in.h: Likewise.
84831         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
84833 2009-02-27  Eric Blake  <ebb9@byu.net>
84835         doc: mention more functions added in cygwin 1.7.0
84836         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
84837         addition.
84838         * doc/posix-functions/open_wmemstream.texi: Likewise.
84839         * doc/posix-functions/wcsnlen.texi: Likewise.
84840         * doc/posix-functions/wcsnrtombs.texi: Likewise.
84841         * doc/posix-functions/wcstod.texi: Likewise.
84842         * doc/posix-functions/wcstof.texi: Likewise.
84843         * doc/posix-functions/wcstoimax.texi: Likewise.
84844         * doc/posix-functions/wcstok.texi: Likewise.
84845         * doc/posix-functions/wcstoumax.texi: Likewise.
84847         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
84848         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
84849         * doc/posix-functions/fprintf.texi: Update.
84850         * doc/posix-functions/printf.texi: Update.
84851         * doc/posix-functions/snprintf.texi: Update.
84852         * doc/posix-functions/sprintf.texi: Update.
84853         * doc/posix-functions/vfprintf.texi: Update.
84854         * doc/posix-functions/vprintf.texi: Update.
84855         * doc/posix-functions/vsnprintf.texi: Update.
84856         * doc/posix-functions/vsprintf.texi: Update.
84857         * doc/glibc-functions/obstack_printf.texi: Update.
84858         * doc/glibc-functions/obstack_vprintf.texi: Update.
84860 2009-02-26  Eric Blake  <ebb9@byu.net>
84862         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
84863         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
84864         compilation bug by using runtime conversion.
84865         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
84866         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
84867         * modules/ceill-tests (Files): Use nan.h.
84868         * modules/floorl-tests (Files): Likewise.
84869         * modules/frexpl-tests (Files): Likewise.
84870         * modules/isnanl-tests (Files): Likewise.
84871         * modules/ldexpl-tests (Files): Likewise.
84872         * modules/roundl-tests (Files): Likewise.
84873         * modules/truncl-tests (Files): Likewise.
84874         * tests/test-ceill.c (main): Use a working NaN.
84875         * tests/test-floorl.c (main): Likewise.
84876         * tests/test-frexpl.c (main): Likewise.
84877         * tests/test-isnan.c (test_long_double): Likewise.
84878         * tests/test-isnanl.h (main): Likewise.
84879         * tests/test-ldexpl.h (main): Likewise.
84880         * tests/test-roundl.h (main): Likewise.
84881         * tests/test-truncl.h (main): Likewise.
84882         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
84884 2009-02-26  Eric Blake  <ebb9@byu.net>
84885             Bruno Haible  <bruno@clisp.org>
84887         Work around a *printf bug with %ls on Solaris.
84888         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
84889         precision is specified, sprintf stops converting the wide string
84890         argument when the number of bytes that have been produced by this
84891         conversion equals or exceeds the precision.
84892         * doc/posix-functions/fprintf.texi: Update.
84893         * doc/posix-functions/printf.texi: Update.
84894         * doc/posix-functions/snprintf.texi: Update.
84895         * doc/posix-functions/sprintf.texi: Update.
84896         * doc/posix-functions/vfprintf.texi: Update.
84897         * doc/posix-functions/vprintf.texi: Update.
84898         * doc/posix-functions/vsnprintf.texi: Update.
84899         * doc/posix-functions/vsprintf.texi: Update.
84900         * doc/glibc-functions/obstack_printf.texi: Update.
84901         * doc/glibc-functions/obstack_vprintf.texi: Update.
84903 2009-02-26  Eric Blake  <ebb9@byu.net>
84905         stdlib: favor compiler check of random.h
84906         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
84907         to avoid an ObjC random.h installed by Swarm.
84909 2009-02-26  Bruno Haible  <bruno@clisp.org>
84911         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
84912         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
84913         Reported by Gary V. Vaughan <gary@gnu.org>.
84915 2009-02-26  Bruno Haible  <bruno@clisp.org>
84917         Fix *printf behaviour regarding the %ls directive.
84918         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
84919         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
84920         NEED_PRINTF_DIRECTIVE_LS.
84921         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
84922         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
84923         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84924         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
84925         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
84926         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
84927         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
84928         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84929         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84931         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84932         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
84933         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84934         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84935         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84936         * doc/posix-functions/fprintf.texi: Update.
84937         * doc/posix-functions/printf.texi: Update.
84938         * doc/posix-functions/snprintf.texi: Update.
84939         * doc/posix-functions/sprintf.texi: Update.
84940         * doc/posix-functions/vfprintf.texi: Update.
84941         * doc/posix-functions/vprintf.texi: Update.
84942         * doc/posix-functions/vsnprintf.texi: Update.
84943         * doc/posix-functions/vsprintf.texi: Update.
84944         * doc/glibc-functions/obstack_printf.texi: Update.
84945         * doc/glibc-functions/obstack_vprintf.texi: Update.
84946         Reported by Eric Blake.
84948 2009-02-25  Bruno Haible  <bruno@clisp.org>
84950         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
84951         with known value.
84952         Reported by Gary V. Vaughan <gary@gnu.org>.
84954 2009-02-25  Bruno Haible  <bruno@clisp.org>
84956         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
84957         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
84958         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
84959         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
84960         Reported by Gary V. Vaughan <gary@gnu.org>.
84962 2009-02-25  Bruno Haible  <bruno@clisp.org>
84964         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
84965         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
84966         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
84967         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
84968         Reported by Gary V. Vaughan <gary@gnu.org>.
84970 2009-02-25  Eric Blake  <ebb9@byu.net>
84972         tests: skip fseek/ftell tests if ungetc is broken
84973         * m4/ungetc.m4: New file.
84974         * modules/fseek-tests: Split test, so ungetc dependency is
84975         separate from rest of test.
84976         * modules/fseeko-tests: Likewise.
84977         * modules/ftell-tests: Likewise.
84978         * modules/ftello-tests: Likewise.
84979         * tests/test-fseek.c (main): Isolate ungetc dependency.
84980         * tests/test-fseeko.c (main): Likewise.
84981         * tests/test-ftell.c (main): Likewise.
84982         * tests/test-ftello.c (main): Likewise.
84983         * tests/test-fseek2.sh: New file.
84984         * tests/test-fseeko2.sh: Likewise.
84985         * tests/test-ftell2.sh: Likewise.
84986         * tests/test-ftello2.sh: Likewise.
84988 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
84990         test-getaddrinfo: fix usage of skip return code 77
84991         * tests/test-gettaddrinfo.c: Return skip code 77 only
84992         for first occurrence of skip (4x77 is not 77)
84994 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
84996         strtod: avoid C99 decl-after-statement
84997         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
84999 2009-02-24  Eric Blake  <ebb9@byu.net>
85001         strtod: detect HP-UX 11.31 bug
85002         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
85003         Reported by Gary V. Vaughan.
85005 2009-02-23  Bruno Haible  <bruno@clisp.org>
85007         Fix invalid read past end of memory block.
85008         * lib/vasnprintf.c (DCHAR_SET): Define.
85009         (local_wcslen): Define only when needed.
85010         (local_strnlen, local_wcsnlen): New functions.
85011         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
85012         directives that involve a conversion ourselves.
85013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
85014         wcsnlen, mbrtowc, wcrtomb.
85015         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
85016         * tests/test-vasprintf-posix.c (test_function): Likewise.
85017         * tests/test-snprintf-posix.h (test_function): Likewise.
85018         * tests/test-sprintf-posix.h (test_function): Likewise.
85019         Reported by Ben Pfaff <blp@cs.stanford.edu>.
85021 2009-02-22  Bruno Haible  <bruno@clisp.org>
85023         Implement new clarified decomposition of Hangul syllables.
85024         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
85025         of type LTV, return only a pairwise decomposition.
85026         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
85027         Likewise.
85028         * tests/uninorm/test-decomposition.c (main): Updated expected result.
85029         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
85030         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
85032 2009-02-22  Bruno Haible  <bruno@clisp.org>
85034         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
85035         zero-length results and shrink excess allocated memory.
85036         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
85037         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
85038         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
85039         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
85040         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
85041         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
85042         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
85043         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
85044         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
85045         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
85046         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
85047         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
85049 2009-02-21  Bruno Haible  <bruno@clisp.org>
85051         * doc/gnulib.texi: Include safe-alloc.texi earlier.
85052         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
85053         spaces after a period. Put a space between a macro name and its
85054         argument list. Trivial rewordings.
85055         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
85056         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
85057         (main): Return 0 explicitly.
85059 2009-02-21  Bruno Haible  <bruno@clisp.org>
85061         Tests for module 'uninorm/filter'.
85062         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
85063         * modules/uninorm/filter-tests: New file.
85065         New module 'uninorm/filter'.
85066         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
85067         uninorm_filter_flush, uninorm_filter_free): New declarations.
85068         * lib/uninorm/uninorm-filter.c: New file.
85069         * modules/uninorm/filter: New file.
85071 2009-02-21  Bruno Haible  <bruno@clisp.org>
85073         Tests for module 'uninorm/nfkc'.
85074         * tests/uninorm/test-nfkc.c: New file.
85075         * tests/uninorm/test-u8-nfkc.c: New file.
85076         * tests/uninorm/test-u16-nfkc.c: New file.
85077         * tests/uninorm/test-u32-nfkc.c: New file.
85078         * tests/uninorm/test-u32-nfkc-big.sh: New file.
85079         * tests/uninorm/test-u32-nfkc-big.c: New file.
85080         * modules/uninorm/nfkc-tests: New file.
85082         New module 'uninorm/nfkc'.
85083         * lib/uninorm/nfkc.c: New file.
85084         * modules/uninorm/nfkc: New file.
85086         Tests for module 'uninorm/nfkd'.
85087         * tests/uninorm/test-nfkd.c: New file.
85088         * tests/uninorm/test-u8-nfkd.c: New file.
85089         * tests/uninorm/test-u16-nfkd.c: New file.
85090         * tests/uninorm/test-u32-nfkd.c: New file.
85091         * tests/uninorm/test-u32-nfkd-big.sh: New file.
85092         * tests/uninorm/test-u32-nfkd-big.c: New file.
85093         * modules/uninorm/nfkd-tests: New file.
85095         New module 'uninorm/nfkd'.
85096         * lib/uninorm/nfkd.c: New file.
85097         * modules/uninorm/nfkd: New file.
85099         Tests for module 'uninorm/nfc'.
85100         * tests/uninorm/test-nfc.c: New file.
85101         * tests/uninorm/test-u8-nfc.c: New file.
85102         * tests/uninorm/test-u16-nfc.c: New file.
85103         * tests/uninorm/test-u32-nfc.c: New file.
85104         * tests/uninorm/test-u32-nfc-big.sh: New file.
85105         * tests/uninorm/test-u32-nfc-big.c: New file.
85106         * modules/uninorm/nfc-tests: New file.
85108         New module 'uninorm/nfc'.
85109         * lib/uninorm/nfc.c: New file.
85110         * modules/uninorm/nfc: New file.
85112         Tests for module 'uninorm/nfd'.
85113         * tests/uninorm/test-nfd.c: New file.
85114         * tests/uninorm/test-u8-nfd.c: New file.
85115         * tests/uninorm/test-u16-nfd.c: New file.
85116         * tests/uninorm/test-u32-nfd.c: New file.
85117         * tests/uninorm/test-u32-nfd-big.sh: New file.
85118         * tests/uninorm/test-u32-nfd-big.c: New file.
85119         * tests/uninorm/test-u32-normalize-big.h: New file.
85120         * tests/uninorm/test-u32-normalize-big.c: New file.
85121         * tests/uninorm/NormalizationTest.txt: New file, created from
85122         Unicode 5.1.0 NormalizationTest.txt.
85123         * modules/uninorm/nfd-tests: New file.
85125         New module 'uninorm/nfd'.
85126         * lib/uninorm/nfd.c: New file.
85127         * modules/uninorm/nfd: New file.
85129         New module 'uninorm/u32-normalize'.
85130         * lib/uninorm/u32-normalize.c: New file.
85131         * modules/uninorm/u32-normalize: New file.
85133         New module 'uninorm/u16-normalize'.
85134         * lib/uninorm/u16-normalize.c: New file.
85135         * modules/uninorm/u16-normalize: New file.
85137         New module 'uninorm/u8-normalize'.
85138         * lib/uninorm/u8-normalize.c: New file.
85139         * lib/uninorm/normalize-internal.h: New file.
85140         * lib/uninorm/u-normalize-internal.h: New file.
85141         * modules/uninorm/u8-normalize: New file.
85143         New module 'uninorm/decompose-internal'.
85144         * lib/uninorm/decompose-internal.c: New file.
85145         * modules/uninorm/decompose-internal: New file.
85147         Tests for module 'uninorm/composition'.
85148         * tests/uninorm/test-composition.c: New file.
85149         * modules/uninorm/composition-tests: New file.
85151         New module 'uninorm/composition'.
85152         * lib/uninorm/composition.c: New file.
85153         * lib/uninorm/composition-table.gperf: New file, generated by
85154         gen-uni-tables.
85155         * modules/uninorm/composition: New file.
85157         Tests for module 'uninorm/compat-decomposition'.
85158         * tests/uninorm/test-compat-decomposition.c: New file.
85159         * modules/uninorm/compat-decomposition-tests: New file.
85161         New module 'uninorm/compat-decomposition'.
85162         * lib/uninorm/decompose-internal.h: New file.
85163         * lib/uninorm/compat-decomposition.c: New file.
85164         * modules/uninorm/compat-decomposition: New file.
85166         Tests for module 'uninorm/canonical-decomposition'.
85167         * tests/uninorm/test-canonical-decomposition.c: New file.
85168         * modules/uninorm/canonical-decomposition-tests: New file.
85170         New module 'uninorm/canonical-decomposition'.
85171         * lib/uninorm/canonical-decomposition.c: New file.
85172         * modules/uninorm/canonical-decomposition: New file.
85174         Tests for module 'uninorm/decomposition'.
85175         * tests/uninorm/test-decomposition.c: New file.
85176         * modules/uninorm/decomposition-tests: New file.
85178         New module 'uninorm/decomposition'.
85179         * lib/uninorm/decomposition.c: New file.
85180         * modules/uninorm/decomposition: New file.
85182         New module 'uninorm/decomposition-table'.
85183         * lib/uninorm/decomposition-table.h: New file.
85184         * lib/uninorm/decomposition-table.c: New file.
85185         * lib/uninorm/decomposition-table1.h: New file, generated by
85186         gen-uni-tables.
85187         * lib/uninorm/decomposition-table2.h: New file, generated by
85188         gen-uni-tables.
85189         * modules/uninorm/decomposition-table: New file.
85191         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
85192         (UC_DECOMP_*): New enumeration items.
85193         (get_decomposition): New function.
85194         (struct decomp_table): New type.
85195         (output_decomposition, output_decomposition_tables): New functions.
85196         (unicode_composition_exclusions): New variable.
85197         (fill_composition_exclusions, debug_output_composition_tables): New
85198         functions.
85199         (main): Accept one more argument. Invoke fill_composition_exclusions.
85200         Output decomposition and composition tables.
85202         New module 'uninorm/base'.
85203         * lib/uninorm.h: New file.
85204         * lib/unictype.h: Update comment.
85205         * modules/uninorm/base: New file.
85207 2009-02-21  David Lutterkort  <lutter@redhat.com>
85209         Tests for module 'safe-alloc'.
85210         * tests/test-safe-alloc.c: New file.
85211         * modules/safe-alloc-tests: New file.
85213         New module 'safe-alloc'.
85214         * lib/safe-alloc.h: New file.
85215         * lib/safe-alloc.c: New file.
85216         * m4/safe-alloc.m4: New file.
85217         * modules/safe-alloc: New file.
85218         * doc/safe-alloc.texi: New file.
85219         * doc/gnulib.texi: Include it.
85220         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
85221         safe-alloc.
85223 2009-02-18  Bruno Haible  <bruno@clisp.org>
85225         Fix link error on non-glibc systems.
85226         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
85227         variable.
85228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85230 2009-02-18  Jim Meyering  <meyering@redhat.com>
85232         fts: avoid used-uninitialized error due to recent change
85233         * lib/fts.c (fts_read): Guard uses of the new member,
85234         parent->fts_n_dirs_remaining, since it's not relevant for
85235         the parent of a directory specified on the command-line.
85237 2009-02-17  James Youngman  <jay@gnu.org>
85238             Bruno Haible  <bruno@clisp.org>
85240         * m4/include_next.m4: Reformulate comment.
85242 2009-02-16  Jim Meyering  <meyering@redhat.com>
85244         fts: add #if guards so that the fts_lgpl module still builds
85245         * lib/fts.c: Guard just-added hash-table-using parts with
85246         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
85247         Reported by Simon Josefsson.
85249 2009-02-15  Bruno Haible  <bruno@clisp.org>
85251         * modules/array-mergesort-tests: New file.
85252         * tests/test-array-mergesort.c: New file.
85254         New module 'array-mergesort'.
85255         * modules/array-mergesort: New file.
85256         * lib/array-mergesort.h: New file.
85258 2009-02-15  Bruno Haible  <bruno@clisp.org>
85260         Fix 2009-02-07 commit.
85261         * lib/gen-uni-tables.c (output_predicate, output_category,
85262         output_combclass, output_bidi_category, output_decimal_digit,
85263         output_digit, output_numeric, output_mirror, output_scripts,
85264         output_ident_category, output_simple_mapping): Fix format directives.
85265         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
85267 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
85269         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
85270         fixes are available from IBM.
85272 2009-02-13  Jim Meyering  <meyering@redhat.com>
85274         fts: arrange not to stat non-directories in more cases
85275         This makes GNU find (when it doesn't need to stat each file)
85276         *much* more efficient at traversing reiserfs file systems.
85277         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
85278         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
85279         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
85280         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
85281         (leaf_optimization_applies): New function.
85282         (LCO_hash, LCO_compare): New helper functions.
85283         (link_count_optimize_ok): New function.
85284         (fts_stat): Initialize new member (if dir).
85285         (fts_read): Decrement parent's fts_n_dirs_remaining count if
85286         we've just stat'ed a directory.  Skip the stat call when possible.
85287         ---
85288         Note this AFS-related exchange:
85289         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
85290         and note find's pioctl call in find/fstype.c.
85291         But that is necessary only if you want to enable the
85292         optimization for AFS, and for now, I don't.
85294         fts: move a function definition "up" (no semantic change)
85295         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
85296         "up" to precede upcoming use of a related function.
85298 2009-02-11  Jim Meyering  <meyering@redhat.com>
85300         fts: correct internal computation of nlinks (optimization-related)
85301         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
85302         whether the current entry is a directory, so don't test it.
85304 2009-02-10  Bruno Haible  <bruno@clisp.org>
85306         Tests for module 'uniwbrk/ulc-wordbreaks'.
85307         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
85308         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
85309         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
85311         Tests for module 'uniwbrk/u32-wordbreaks'.
85312         * modules/uniwbrk/u32-wordbreaks-tests: New file.
85313         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
85315         Tests for module 'uniwbrk/u16-wordbreaks'.
85316         * modules/uniwbrk/u16-wordbreaks-tests: New file.
85317         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
85319         Tests for module 'uniwbrk/u8-wordbreaks'.
85320         * modules/uniwbrk/u8-wordbreaks-tests: New file.
85321         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
85323 2009-02-10  Bruno Haible  <bruno@clisp.org>
85325         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
85326         property.
85327         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
85328         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
85329         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
85331 2009-02-10  Simon Josefsson  <simon@josefsson.org>
85333         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
85334         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
85336 2009-02-10  Bruno Haible  <bruno@clisp.org>
85338         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
85339         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
85340         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
85341         * lib/unilbrk/u8-possible-linebreaks.c: Update.
85342         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
85343         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
85345 2009-02-09  Simon Josefsson  <simon@josefsson.org>
85347         * lib/sockets.h (gl_fd_to_handle): New function.
85349         * tests/test-sockets.c: Call gl_fd_to_handle.
85351 2009-02-09  Bruno Haible  <bruno@clisp.org>
85353         * doc/havelib.texi: Document the conventions on bi-arch systems.
85355 2009-02-08  Bruno Haible  <bruno@clisp.org>
85357         Document the AC_LIB_LINKFLAGS macro.
85358         * doc/havelib.texi: New file, mostly written on 2005-05-24.
85359         * doc/gnulib.texi: Include it.
85361 2009-02-08  Bruno Haible  <bruno@clisp.org>
85363         Fix wrong order of sections, compared to TOC.
85364         * doc/gnulib.texi: Include relocatable-maint.texi after the
85365         "Regular expressions" node, not before.
85367 2009-02-08  Bruno Haible  <bruno@clisp.org>
85369         Tests for module 'unicase/totitle'.
85370         * modules/unicase/totitle-tests: New file.
85372         Tests for module 'unicase/tolower'.
85373         * modules/unicase/tolower-tests: New file.
85375         Tests for module 'unicase/toupper'.
85376         * modules/unicase/toupper-tests: New file.
85377         * tests/unicase/test-mapping-part1.h: New file.
85378         * tests/unicase/test-mapping-part2.h: New file.
85380         New module 'unicase/totitle'.
85381         * modules/unicase/totitle: New file.
85382         * lib/unicase/totitle.c: New file.
85384         New module 'unicase/tolower'.
85385         * modules/unicase/tolower: New file.
85386         * lib/unicase/tolower.c: New file.
85388         New module 'unicase/toupper'.
85389         * modules/unicase/toupper: New file.
85390         * lib/unicase/toupper.c: New file.
85391         * lib/unicase/simple-mapping.h: New file.
85393         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
85394         (mapping_table): New structure.
85395         (output_simple_mapping): New function.
85396         (main): Invoke output_simple_mapping_test and output_simple_mapping.
85397         * modules/gen-uni-tables (Description): Update.
85398         * lib/unicase/toupper.h: New file, automatically generated by
85399         gen-uni-tables.
85400         * lib/unicase/tolower.h: New file, automatically generated by
85401         gen-uni-tables.
85402         * lib/unicase/totitle.h: New file, automatically generated by
85403         gen-uni-tables.
85404         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
85405         gen-uni-tables.
85406         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
85407         gen-uni-tables.
85408         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
85409         gen-uni-tables.
85411         New module 'unicase/base'.
85412         * modules/unicase/base: New file.
85413         * lib/unicase.h: New file.
85415 2009-02-08  Bruno Haible  <bruno@clisp.org>
85417         New module 'uniwbrk/ulc-wordbreaks'.
85418         * modules/uniwbrk/ulc-wordbreaks: New file.
85419         * lib/uniwbrk/ulc-wordbreaks.c: New file.
85421         New module 'uniwbrk/u32-wordbreaks'.
85422         * modules/uniwbrk/u32-wordbreaks: New file.
85423         * lib/uniwbrk/u32-wordbreaks.c: New file.
85425         New module 'uniwbrk/u16-wordbreaks'.
85426         * modules/uniwbrk/u16-wordbreaks: New file.
85427         * lib/uniwbrk/u16-wordbreaks.c: New file.
85429         New module 'uniwbrk/u8-wordbreaks'.
85430         * modules/uniwbrk/u8-wordbreaks: New file.
85431         * lib/uniwbrk/u8-wordbreaks.c: New file.
85432         * lib/uniwbrk/u-wordbreaks.h: New file.
85434         New module 'uniwbrk/table'.
85435         * modules/uniwbrk/table: New file.
85436         * lib/uniwbrk/wbrktable.h: New file.
85437         * lib/uniwbrk/wbrktable.c: New file.
85439         New module 'uniwbrk/wordbreak-property'.
85440         * modules/uniwbrk/wordbreak-property: New file.
85441         * lib/uniwbrk/wordbreak-property.c: New file.
85443         * lib/gen-uni-tables.c (WBP_*): New enum items.
85444         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
85445         (unicode_org_wbp): New variable.
85446         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
85447         New functions.
85448         (wbp_table): New structure.
85449         (output_wbp, output_wbrk_tables): New functions.
85450         (main): Accept additional argument. Invoke fill_org_wbp,
85451         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
85452         output_wbrk_tables.
85453         * modules/gen-uni-tables (Description): Update.
85454         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
85455         gen-uni-tables.
85457         New module 'uniwbrk/base'.
85458         * modules/uniwbrk/base: New file.
85459         * lib/uniwbrk.h: New file.
85461 2009-02-08  Bruno Haible  <bruno@clisp.org>
85463         Update to Unicode 5.1.0.
85464         * lib/gen-uni-tables.c (is_property_alphabetic): Include
85465         U+2185..U+2188.
85466         (is_property_default_ignorable_code_point): Don't include characters
85467         of category Cc or Cs and not-a-characters.
85468         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
85469         U+0D79, U+109E, U+109F, U+A60C.
85470         * lib/unictype/bidi_of.h: Regenerated.
85471         * lib/unictype/blocks.h: Regenerated.
85472         * lib/unictype/categ_C.h: Regenerated.
85473         * lib/unictype/categ_Cf.h: Regenerated.
85474         * lib/unictype/categ_Cn.h: Regenerated.
85475         * lib/unictype/categ_L.h: Regenerated.
85476         * lib/unictype/categ_Ll.h: Regenerated.
85477         * lib/unictype/categ_Lm.h: Regenerated.
85478         * lib/unictype/categ_Lo.h: Regenerated.
85479         * lib/unictype/categ_Lu.h: Regenerated.
85480         * lib/unictype/categ_M.h: Regenerated.
85481         * lib/unictype/categ_Mc.h: Regenerated.
85482         * lib/unictype/categ_Me.h: Regenerated.
85483         * lib/unictype/categ_Mn.h: Regenerated.
85484         * lib/unictype/categ_N.h: Regenerated.
85485         * lib/unictype/categ_Nd.h: Regenerated.
85486         * lib/unictype/categ_Nl.h: Regenerated.
85487         * lib/unictype/categ_No.h: Regenerated.
85488         * lib/unictype/categ_P.h: Regenerated.
85489         * lib/unictype/categ_Pd.h: Regenerated.
85490         * lib/unictype/categ_Pe.h: Regenerated.
85491         * lib/unictype/categ_Pf.h: Regenerated.
85492         * lib/unictype/categ_Pi.h: Regenerated.
85493         * lib/unictype/categ_Po.h: Regenerated.
85494         * lib/unictype/categ_Ps.h: Regenerated.
85495         * lib/unictype/categ_S.h: Regenerated.
85496         * lib/unictype/categ_Sk.h: Regenerated.
85497         * lib/unictype/categ_Sm.h: Regenerated.
85498         * lib/unictype/categ_So.h: Regenerated.
85499         * lib/unictype/categ_of.h: Regenerated.
85500         * lib/unictype/combining.h: Regenerated.
85501         * lib/unictype/ctype_alnum.h: Regenerated.
85502         * lib/unictype/ctype_alpha.h: Regenerated.
85503         * lib/unictype/ctype_graph.h: Regenerated.
85504         * lib/unictype/ctype_lower.h: Regenerated.
85505         * lib/unictype/ctype_print.h: Regenerated.
85506         * lib/unictype/ctype_punct.h: Regenerated.
85507         * lib/unictype/ctype_upper.h: Regenerated.
85508         * lib/unictype/decdigit.h: Regenerated.
85509         * lib/unictype/digit.h: Regenerated.
85510         * lib/unictype/mirror.h: Regenerated.
85511         * lib/unictype/numeric.h: Regenerated.
85512         * lib/unictype/pr_alphabetic.h: Regenerated.
85513         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
85514         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
85515         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
85516         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
85517         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
85518         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
85519         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
85520         * lib/unictype/pr_combining.h: Regenerated.
85521         * lib/unictype/pr_dash.h: Regenerated.
85522         * lib/unictype/pr_decimal_digit.h: Regenerated.
85523         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
85524         * lib/unictype/pr_deprecated.h: Regenerated.
85525         * lib/unictype/pr_diacritic.h: Regenerated.
85526         * lib/unictype/pr_extender.h: Regenerated.
85527         * lib/unictype/pr_format_control.h: Regenerated.
85528         * lib/unictype/pr_grapheme_base.h: Regenerated.
85529         * lib/unictype/pr_grapheme_extend.h: Regenerated.
85530         * lib/unictype/pr_grapheme_link.h: Regenerated.
85531         * lib/unictype/pr_id_continue.h: Regenerated.
85532         * lib/unictype/pr_id_start.h: Regenerated.
85533         * lib/unictype/pr_ideographic.h: Regenerated.
85534         * lib/unictype/pr_ignorable_control.h: Regenerated.
85535         * lib/unictype/pr_lowercase.h: Regenerated.
85536         * lib/unictype/pr_math.h: Regenerated.
85537         * lib/unictype/pr_numeric.h: Regenerated.
85538         * lib/unictype/pr_other_alphabetic.h: Regenerated.
85539         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
85540         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
85541         * lib/unictype/pr_other_id_continue.h: Regenerated.
85542         * lib/unictype/pr_other_lowercase.h: Regenerated.
85543         * lib/unictype/pr_other_math.h: Regenerated.
85544         * lib/unictype/pr_punctuation.h: Regenerated.
85545         * lib/unictype/pr_sentence_terminal.h: Regenerated.
85546         * lib/unictype/pr_soft_dotted.h: Regenerated.
85547         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
85548         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
85549         * lib/unictype/pr_unified_ideograph.h: Regenerated.
85550         * lib/unictype/pr_uppercase.h: Regenerated.
85551         * lib/unictype/pr_xid_continue.h: Regenerated.
85552         * lib/unictype/pr_xid_start.h: Regenerated.
85553         * lib/unictype/pr_zero_width.h: Regenerated.
85554         * lib/unictype/scripts.h: Regenerated.
85555         * lib/unictype/scripts_byname.gperf: Regenerated.
85556         * lib/unictype/sy_java_ident.h: Regenerated.
85557         * lib/unilbrk/lbrkprop1.h: Regenerated.
85558         * lib/unilbrk/lbrkprop2.h: Regenerated.
85559         * tests/unictype/test-categ_C.c: Regenerated.
85560         * tests/unictype/test-categ_Cf.c: Regenerated.
85561         * tests/unictype/test-categ_Cn.c: Regenerated.
85562         * tests/unictype/test-categ_L.c: Regenerated.
85563         * tests/unictype/test-categ_Ll.c: Regenerated.
85564         * tests/unictype/test-categ_Lm.c: Regenerated.
85565         * tests/unictype/test-categ_Lo.c: Regenerated.
85566         * tests/unictype/test-categ_Lu.c: Regenerated.
85567         * tests/unictype/test-categ_M.c: Regenerated.
85568         * tests/unictype/test-categ_Mc.c: Regenerated.
85569         * tests/unictype/test-categ_Me.c: Regenerated.
85570         * tests/unictype/test-categ_Mn.c: Regenerated.
85571         * tests/unictype/test-categ_N.c: Regenerated.
85572         * tests/unictype/test-categ_Nd.c: Regenerated.
85573         * tests/unictype/test-categ_Nl.c: Regenerated.
85574         * tests/unictype/test-categ_No.c: Regenerated.
85575         * tests/unictype/test-categ_P.c: Regenerated.
85576         * tests/unictype/test-categ_Pd.c: Regenerated.
85577         * tests/unictype/test-categ_Pe.c: Regenerated.
85578         * tests/unictype/test-categ_Pf.c: Regenerated.
85579         * tests/unictype/test-categ_Pi.c: Regenerated.
85580         * tests/unictype/test-categ_Po.c: Regenerated.
85581         * tests/unictype/test-categ_Ps.c: Regenerated.
85582         * tests/unictype/test-categ_S.c: Regenerated.
85583         * tests/unictype/test-categ_Sk.c: Regenerated.
85584         * tests/unictype/test-categ_Sm.c: Regenerated.
85585         * tests/unictype/test-categ_So.c: Regenerated.
85586         * tests/unictype/test-ctype_alnum.c: Regenerated.
85587         * tests/unictype/test-ctype_alpha.c: Regenerated.
85588         * tests/unictype/test-ctype_graph.c: Regenerated.
85589         * tests/unictype/test-ctype_lower.c: Regenerated.
85590         * tests/unictype/test-ctype_print.c: Regenerated.
85591         * tests/unictype/test-ctype_punct.c: Regenerated.
85592         * tests/unictype/test-ctype_upper.c: Regenerated.
85593         * tests/unictype/test-decdigit.h: Regenerated.
85594         * tests/unictype/test-digit.h: Regenerated.
85595         * tests/unictype/test-numeric.h: Regenerated.
85596         * tests/unictype/test-pr_alphabetic.c: Regenerated.
85597         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
85598         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
85599         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
85600         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
85601         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
85602         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
85603         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
85604         * tests/unictype/test-pr_combining.c: Regenerated.
85605         * tests/unictype/test-pr_dash.c: Regenerated.
85606         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
85607         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
85608         * tests/unictype/test-pr_deprecated.c: Regenerated.
85609         * tests/unictype/test-pr_diacritic.c: Regenerated.
85610         * tests/unictype/test-pr_extender.c: Regenerated.
85611         * tests/unictype/test-pr_format_control.c: Regenerated.
85612         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
85613         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
85614         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
85615         * tests/unictype/test-pr_id_continue.c: Regenerated.
85616         * tests/unictype/test-pr_id_start.c: Regenerated.
85617         * tests/unictype/test-pr_ideographic.c: Regenerated.
85618         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
85619         * tests/unictype/test-pr_lowercase.c: Regenerated.
85620         * tests/unictype/test-pr_math.c: Regenerated.
85621         * tests/unictype/test-pr_numeric.c: Regenerated.
85622         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
85623         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
85624         Regenerated.
85625         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
85626         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
85627         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
85628         * tests/unictype/test-pr_other_math.c: Regenerated.
85629         * tests/unictype/test-pr_punctuation.c: Regenerated.
85630         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
85631         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
85632         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
85633         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
85634         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
85635         * tests/unictype/test-pr_uppercase.c: Regenerated.
85636         * tests/unictype/test-pr_xid_continue.c: Regenerated.
85637         * tests/unictype/test-pr_xid_start.c: Regenerated.
85638         * tests/unictype/test-pr_zero_width.c: Regenerated.
85640         Update to Unicode 5.1.0.
85641         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
85642         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
85643         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
85644         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
85645         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
85646         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
85647         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
85648         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
85649         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
85650         (nonspacing_table_ind): Update.
85651         * tests/uniwidth/test-uc_width2.sh: Update expected result.
85653         Update to Unicode 5.1.0.
85654         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
85655         code transform.
85656         * lib/uniname/uniname.c (unicode_character_name,
85657         unicode_name_character): Add the range 0x1Fxxx to the code transform.
85658         * lib/uniname/uninames.h: Regenerated.
85659         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
85661 2009-02-07  Bruno Haible  <bruno@clisp.org>
85663         Merge gen-ctype and gen-lbrk into a single program.
85664         * lib/gen-uni-tables.c: New file, incorporating
85665         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
85666         Add directory prefixes to the names of the generated files.
85667         * lib/unictype/gen-ctype.c: Remove file.
85668         * lib/unilbrk/gen-lbrk.c: Remove file.
85669         * modules/gen-uni-tables: New file.
85670         * modules/unictype/gen-ctype: Remove file.
85671         * modules/unilbrk/gen-lbrk: Remove file.
85673 2009-02-07  Bruno Haible  <bruno@clisp.org>
85675         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
85677         New module 'unistr/u32-strcoll'.
85678         * modules/unistr/u32-strcoll: New file.
85679         * lib/unistr/u32-strcoll.c: New file.
85681         New module 'unistr/u16-strcoll'.
85682         * modules/unistr/u16-strcoll: New file.
85683         * lib/unistr/u16-strcoll.c: New file.
85685         New module 'unistr/u8-strcoll'.
85686         * modules/unistr/u8-strcoll: New file.
85687         * lib/unistr/u8-strcoll.c: New file.
85688         * lib/unistr/u-strcoll.h: New file.
85690 2009-02-07  Bruno Haible  <bruno@clisp.org>
85692         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
85693         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85694         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85695         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
85696         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
85697         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
85699 2009-02-07  Bruno Haible  <bruno@clisp.org>
85701         Make 64-bit clean.
85702         * lib/unictype/gen-ctype.c (output_predicate, output_category,
85703         output_combclass, output_bidi_category, output_decimal_digit,
85704         output_digit, output_numeric, output_mirror, output_scripts,
85705         output_ident_category): Use proper width specifier in format strings.
85707 2009-02-07  Bruno Haible  <bruno@clisp.org>
85709         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
85710         failure behaviour.
85712 2009-02-07  Jim Meyering  <meyering@redhat.com>
85714         regex: avoid compilation failure with upcoming gcc-4.4
85715         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
85716         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
85717         "... error: integer overflow in preprocessor expression".
85719 2009-02-05  Ben Pfaff  <blp@gnu.org>
85721         Fix link errors on Windows when close module is used.
85722         * modules/close: Add $(LIB_CLOSE) to Link section.
85723         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
85724         $(LIB_CLOSE) on Windows.
85726 2009-02-05  Jim Meyering  <meyering@redhat.com>
85728         still avoid unused-parameter warnings, but do it cleanly
85729         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
85730         (get_fs_usage): Cast to void instead.
85731         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
85732         (dev_from_mount_options, read_file_system_list): Cast to void.
85733         Prompted by Bruno Haible.
85735 2009-02-04  Jim Meyering  <meyering@redhat.com>
85737         fsusage.c: correct copyright year
85738         * lib/fsusage.c: Reflect year in which the change is pushed into
85740         avoid misc. warnings
85741         * lib/fsusage.c (UNUSED_PARAM): Define.
85742         (get_fs_usage): Mark parameter "disk" as unused.
85743         * lib/getugroups.c (getgrent): Use "void" in prototype.
85744         * lib/mountlist.c: Mark unused parameters.
85745         (read_file_system_list): Declare a local with "const".
85746         * lib/nanosleep.c (getnow): Declare static.
85747         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
85749         dirfd: set errno upon failure
85750         * lib/dirfd.c: Include <errno.h>.
85751         Set errno to ENOTSUP when returning -1.
85752         * modules/dirfd (Depends-on): Add errno.
85753         Suggested by John Kodis <kodis@comcast.net>.
85755 2009-02-01  Bruno Haible  <bruno@clisp.org>
85757         Don't assume sizeof (long) >= sizeof (void *).
85758         * lib/memcmp.c: Include stdint.h.
85759         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
85760         srcp2 to 'const byte *'.
85761         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
85762         types to uintptr_t.
85763         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
85764         * modules/memcmp (Depends-on): Add stdint.
85765         Reported by Ozkan Sezer <sezeroz@gmail.com>.
85767 2009-01-30  Eric Blake  <ebb9@byu.net>
85769         fix more require-before-expand issues
85770         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
85771         expand, AC_PROG_AWK.
85772         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
85774 2009-01-28  Eric Blake  <ebb9@byu.net>
85776         version-etc: use consistent URL formatting
85777         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
85778         Improve formatting.  Use fputs for string without %.
85780 2009-01-28  Jim Meyering  <meyering@redhat.com>
85782         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
85783         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
85784         "underquoted definition of NAME" from autoconf-2.59.
85786 2009-01-28  Bruno Haible  <bruno@clisp.org>
85788         * doc/gnulib.texi: Add "Obsolete modules" to index.
85790 2009-01-28  Jim Meyering  <meyering@redhat.com>
85792         useless-if-before-free: recognize more variants
85793         * build-aux/useless-if-before-free: Also recognize e.g.,
85794         if (NULL != p) free (p);
85796 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
85798         test-getaddrinfo: skip (don't fail) this test when there's no network
85799         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
85800         on the presumption that it means you lack network access.
85802 2009-01-26  Jim Meyering  <meyering@redhat.com>
85804         fflush: avoid warnings on modern systems
85805         * lib/fflush.c (rpl_fflush): Move declarations of locals,
85806         pos and result, into scopes where they're used.
85808 2009-01-26  Eric Blake  <ebb9@byu.net>
85810         Silence warning reintroduced by recent extensions patch.
85811         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
85812         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
85813         autoconf.
85815         Backport improved autoconf semantics of AC_DEFUN_ONCE.
85816         * m4/00gnulib.m4: New file.
85817         * gnulib-tool (func_get_filelist): Always use it.
85818         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
85819         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
85821 2009-01-25  Bruno Haible  <bruno@clisp.org>
85823         Make test-quotearg work on MacOS X and AIX.
85824         * tests/test-quotearg.sh: New file.
85825         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
85826         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
85827         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
85828         include <libintl.h>.
85829         (fake_locale): Remove variable.
85830         (gettext, dgettext, dcgettext): Remove functions.
85831         (main): Instead of setting a fake locale, set a real locale. Call
85832         textdomain and bindtextdomain.
85833         * modules/quotearg-tests (Files): Add the new files.
85834         (Depends-on): Add gettext, setenv, unsetenv.
85835         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
85836         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
85837         Augment TESTS_ENVIRONMENT.
85839 2009-01-25  Bruno Haible  <bruno@clisp.org>
85841         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
85842         fr_FR.ISO8859-1 locale on MacOS X.
85843         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
85844         ja_JP.eucJP locale on MacOS X.
85845         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
85846         zh_CN.GB18030 locale on MacOS X.
85848 2009-01-25  Bruno Haible  <bruno@clisp.org>
85850         Avoid link errors on MacOS X 10.3.
85851         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
85852         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
85854 2009-01-25  Bruno Haible  <bruno@clisp.org>
85856         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
85857         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
85858         * modules/pipe (Files): Remove m4/posix_spawn.m4.
85859         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
85860         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
85861         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
85862         posix_spawnattr_init, posix_spawnattr_setsigmask,
85863         posix_spawnattr_setflags, posix_spawnattr_destroy.
85865         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
85866         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
85867         * modules/execute (Files): Remove m4/posix_spawn.m4.
85868         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
85869         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
85870         posix_spawnattr_init, posix_spawnattr_setsigmask,
85871         posix_spawnattr_setflags, posix_spawnattr_destroy.
85873 2009-01-25  Bruno Haible  <bruno@clisp.org>
85875         * lib/glthread/threadlib.c: Include <stdlib.h>.
85877 2009-01-25  Bruno Haible  <bruno@clisp.org>
85879         * lib/glthread/threadlib.c (dummy): New declaration.
85881 2009-01-25  Bruno Haible  <bruno@clisp.org>
85883         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
85884         multibyte characters also for the GB18030 encoding. Don't crash when
85885         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
85887 2009-01-25  Bruno Haible  <bruno@clisp.org>
85889         Avoid redefining 'struct random_data' on OSF/1 5.1.
85890         * lib/stdlib.in.h: Include <random.h> if it exists.
85891         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
85892         HAVE_RANDOM_H. Include <random.h> when testing whether
85893         'struct random_data' exists.
85894         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
85896 2009-01-25  Bruno Haible  <bruno@clisp.org>
85898         Don't install charset.alias on MacOS X >= 10.3.
85899         * lib/localcharset.c (DARWIN7): New macro.
85900         (get_charset_aliases): Hardcode the result for Darwin7.
85901         * modules/localcharset (install-exec-local): Don't install
85902         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
85904 2009-01-25  Bruno Haible  <bruno@clisp.org>
85906         Don't install charset.alias on mingw and Cygwin.
85907         * modules/localcharset (install-exec-local): Don't install
85908         charset.alias on mingw and Cygwin, if the file does not yet exist.
85909         The result for these platforms is hardcoded in localcharset.c.
85911 2009-01-25  Bruno Haible  <bruno@clisp.org>
85913         Make it possible again to use AC_GNU_SOURCE together with gnulib.
85914         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
85915         before requiring AC_USE_SYSTEM_EXTENSIONS.
85917 2009-01-25  Jim Meyering  <meyering@redhat.com>
85919         c-strtod: avoid warnings
85920         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
85921         "assignment discards qualifiers from pointer target type" warnings.
85923 2009-01-24  Bruno Haible  <bruno@clisp.org>
85925         Add support for non-UTF-8 locales on MacOS X.
85926         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
85927         canonical encodings. For Darwin 7 and newer, don't map traditional
85928         encodings to UTF-8.
85929         Reported by Vincent Lefevre <vincent@vinc17.org>
85930         at <http://savannah.gnu.org/bugs/?25235>.
85932 2009-01-24  Bruno Haible  <bruno@clisp.org>
85934         * doc/gnulib.texi (Obsolete modules): New section.
85935         Reported by Mike Frysinger <vapier@gentoo.org>.
85937 2009-01-24  Bruno Haible  <bruno@clisp.org>
85939         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
85940         (%.dvi): New rule.
85942 2009-01-24  Bruno Haible  <bruno@clisp.org>
85944         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
85945         Reported by Eric Blake.
85947 2009-01-24  Bruno Haible  <bruno@clisp.org>
85949         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
85950         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
85951         Reported by Gary V. Vaughan <gary@gnu.org>.
85953 2009-01-24  Bruno Haible  <bruno@clisp.org>
85955         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
85957 2009-01-23  Bruno Haible  <bruno@clisp.org>
85959         Make c-strtod, c-strtold usable in libraries.
85960         * lib/c-strtod.c: Include string.h instead of xalloc.h.
85961         (C_STRTOD): Call strdup instead of xstrdup.
85962         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
85963         * modules/c-strtold (Depends-on): Likewise.
85964         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
85965         * NEWS: Mention the change.
85966         Reported by Michael Gold <mgold@ncf.ca>.
85968 2009-01-23  Jim Meyering  <meyering@redhat.com>
85970         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
85971         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
85972         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
85974 2009-01-23  Simon Josefsson  <simon@josefsson.org>
85976         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
85977         GNU CoreUtils.
85978         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
85979         * modules/version-etc (Description): Update.
85981 2009-01-22  Bruno Haible  <bruno@clisp.org>
85983         Cache the C locale object.
85984         * lib/c-strtod.c (c_locale_cache): New variable.
85985         (c_locale): New function.
85986         (C_STRTOD): Use it, and don't call freelocale.
85987         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
85988         Suggested by Paolo Bonzini.
85990 2009-01-21  Bruno Haible  <bruno@clisp.org>
85992         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
85993         conditions other than overflow.
85995 2009-01-21  Bruno Haible  <bruno@clisp.org>
85997         * lib/c-strtod.c: Include errno.h.
85998         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
85999         value from STRTOD_L and STRTOD.
86001 2009-01-21  Bruno Haible  <bruno@clisp.org>
86002         and Jim Meyering  <meyering@redhat.com>
86004         nanosleep: skip configure test (fail it) for apple universal builds
86005         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
86006         universal builds, assume that nanosleep does not work.
86007         * modules/nanosleep (Depends-on): Add multiarch.
86009         mktime: skip configure test (fail it) for apple universal builds
86010         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
86011         universal builds, assume that mktime does not work.
86012         * modules/mktime (Depends-on): Add multiarch.
86014 2009-01-21  Eric Blake  <ebb9@byu.net>
86016         multiarch: avoid expand-before-require warning
86017         * modules/multiarch (configure.ac): Require, rather than expand,
86018         gl_MULTIARCH.
86019         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
86020         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
86021         enforce that all clients require it.  Partial reversion of
86022         2008-12-29 patch.
86024         error: avoid expand-before-require warning
86025         * modules/errno (configure.ac): Require, rather than expand,
86026         gl_HEADER_ERRNO_H.
86027         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
86028         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
86029         enforce that all clients require it.
86031         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
86032         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
86033         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
86034         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
86036 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
86038         Revert:
86039         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86041         regex: do not depend on obsolete modules.
86042         * modules/regex: Remove memcmp and memmove.
86044 2009-01-20  Bruno Haible  <bruno@clisp.org>
86046         Make the 'link' module link on Windows NT 4.
86047         * lib/link.c (_WIN32_WINNT): Don't define.
86048         (CreateHardLinkFuncType): New type.
86049         (CreateHardLinkFunc, initialized): New variables.
86050         (initialize): New function.
86051         (link): Invoke CreateHardLink indirectly through the function pointer.
86053 2009-01-20  Bruno Haible  <bruno@clisp.org>
86055         Fix compilation failure on mingw.
86056         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
86058 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
86060         * doc/c-strtod.texi: Mention a couple of restrictions.
86062 2009-01-20  Jim Meyering  <meyering@redhat.com>
86064         gettimeofday: move more declarations out of functions
86065         * lib/gettimeofday.c: Move extern declarations of tzset and
86066         gmtime out of containing functions.  Prompted by Bruno Haible.
86068 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86070         regex: do not depend on obsolete modules.
86071         * modules/regex: Remove memcmp and memmove.
86073 2009-01-19  Bruno Haible  <bruno@clisp.org>
86075         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
86076         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
86077         gl_BIGENDIAN, not AC_C_BIGENDIAN.
86078         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
86079         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
86081 2009-01-19  Bruno Haible  <bruno@clisp.org>
86083         * tests/test-link.c: Include <errno.h>.
86084         (main): Exit with code 77 when a hard link cannot be created due to
86085         the file system.
86086         * tests/test-link.sh: Skip test when a hard link cannot be created due
86087         to the file system.
86088         Suggested by Eric Blake.
86090 2009-01-19  Martin Lambers  <marlam@marlam.de>
86092         * modules/link-tests: New file.
86093         * tests/test-link.sh: New file.
86094         * tests/test-link.c: New file.
86096 2009-01-19  Eric Blake  <ebb9@byu.net>
86098         doc: mention another function added in cygwin 1.7.0
86099         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
86100         Another new function in cygwin 1.7.
86102 2009-01-19  Bruno Haible  <bruno@clisp.org>
86104         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
86105         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
86106         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
86107         gl_BIGENDIAN, not AC_C_BIGENDIAN.
86108         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
86109         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
86110         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
86111         * m4/md4.m4 (gl_MD4): Likewise.
86112         * m4/md5.m4 (gl_MD5): Likewise.
86113         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
86114         * m4/sha1.m4 (gl_SHA1): Likewise.
86115         * m4/sha256.m4 (gl_SHA256): Likewise.
86116         * m4/sha512.m4 (gl_SHA512): Likewise.
86118 2009-01-19  Bruno Haible  <bruno@clisp.org>
86120         * modules/uniname/uniname-tests (Depends-on): Add progname.
86121         * tests/uniname/test-uninames.c: Include progname.h.
86122         (main): Call set_program_name.
86124         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
86125         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
86126         (main): Call set_program_name.
86128         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
86129         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
86130         (main): Call set_program_name.
86132         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
86133         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
86134         (main): Call set_program_name.
86136         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
86137         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
86138         (main): Call set_program_name.
86140         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
86141         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
86142         (main): Call set_program_name.
86144         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
86145         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
86146         (main): Call set_program_name.
86148         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
86149         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
86150         (main): Call set_program_name.
86152         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
86153         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
86154         (main): Call set_program_name.
86156 2009-01-19  Eric Blake  <ebb9@byu.net>
86158         test-unistd: test previous patch
86159         * tests/test-unistd.c: Test *_FILENO macros.
86161         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
86162         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86163         Guarantee a definition.
86164         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
86165         * modules/unistd-safer (Depends-on): Add dependency on unistd.
86166         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
86167         * lib/dup-safer.c (STDERR_FILENO): Likewise.
86168         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86169         Likewise.
86170         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
86171         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
86172         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86173         Likewise.
86174         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
86175         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
86176         (STDERR_FILENO): Likewise.
86177         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
86178         (STDERR_FILENO): Likewise.
86179         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
86180         (STDERR_FILENO): Likewise.
86181         Reported by Elbert Pol.
86183 2009-01-19  Eric Blake  <ebb9@byu.net>
86185         doc: mention more functions added in cygwin 1.7.0
86186         * doc/posix-functions/abort.texi (abort): Update wording related
86187         to cygwin.
86188         * doc/posix-functions/daylight.texi (daylight): Likewise.
86189         * doc/posix-functions/optarg.texi (optarg): Likewise.
86190         * doc/posix-functions/optarg.texi (opterr): Likewise.
86191         * doc/posix-functions/optarg.texi (optind): Likewise.
86192         * doc/posix-functions/optarg.texi (optopt): Likewise.
86193         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
86194         worked in 1.5.x, and was withdrawn in 1.7.
86195         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
86196         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
86197         cygwin versions.
86198         * doc/posix-functions/perror.texi (perror): Likewise.
86199         * doc/posix-functions/printf.texi (printf): Likewise.
86200         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
86201         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
86202         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
86203         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
86204         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
86205         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
86206         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
86207         Likewise.
86208         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
86209         Likewise.
86210         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
86211         this function.
86212         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
86213         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
86214         Likewise.
86215         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
86216         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
86217         * doc/posix-functions/confstr.texi (confstr): Likewise.
86218         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
86219         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
86220         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
86221         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
86222         * doc/posix-functions/fputws.texi (fputws): Likewise.
86223         * doc/posix-functions/fwide.texi (fwide): Likewise.
86224         * doc/posix-functions/getwc.texi (getwc): Likewise.
86225         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
86226         * doc/posix-functions/putwc.texi (putwc): Likewise.
86227         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
86228         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
86229         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
86230         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
86231         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
86232         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
86233         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
86234         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
86235         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
86236         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
86237         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
86239 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
86241         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
86242         * lib/ioctl.c: Include <sys/ioctl.h>.
86244 2009-01-19  Simon Josefsson  <simon@josefsson.org>
86246         * modules/getdate-tests (Depends-on): Add progname.
86247         * tests/test-getdate.c: Use progname module, to avoid link errors
86248         on non-glibc systems.
86250 2009-01-18  Simon Josefsson  <simon@josefsson.org>
86252         * modules/filenamecat-tests (Depends-on): Add progname.
86253         * modules/fstrcmp-tests (Depends-on): Likewise.
86255         * tests/test-filenamecat.c: Use progname module, to avoid link
86256         errors on non-glibc systems.
86257         * tests/test-fstrcmp.c: Likewise.
86259 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
86261         gettimeofday: avoid warning: nested extern declaration of 'localtime'
86262         * lib/gettimeofday.c: Move extern declaration out of function.
86264 2009-01-18  Bruno Haible  <bruno@clisp.org>
86266         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
86267         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
86268         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
86270 2009-01-18  Bruno Haible  <bruno@clisp.org>
86272         * lib/strftime.c (MEMPCPY): Remove unused macro.
86273         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
86275 2009-01-18  Martin Lambers  <marlam@marlam.de>
86277         New module 'link'.
86278         * lib/unistd.in.h (link): New declaration.
86279         * lib/link.c: New file.
86280         * m4/link.m4: New file.
86281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
86282         HAVE_LINK.
86283         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
86284         * modules/link: New file.
86285         * doc/posix-functions/link.texi: Mention the new module.
86287 2009-01-18  Bruno Haible  <bruno@clisp.org>
86289         * tests/test-avltree_list.c (main): Call set_program_name.
86290         * tests/test-avltree_oset.c (main): Likewise.
86291         * tests/test-obstack-printf.c: Include progname.h.
86292         (main): Call set_program_name.
86293         * tests/test-quotearg.c: Include progname.h.
86294         (main): Call set_program_name.
86295         * tests/test-xmemdup0.c: Include progname.h.
86296         (main): Call set_program_name.
86298 2009-01-18  Bruno Haible  <bruno@clisp.org>
86300         New module 'alphasort'.
86301         * lib/dirent.in.h (alphasort): New declaration.
86302         * lib/alphasort.c: New file, from glibc with modifications.
86303         * m4/alphasort.m4: New file.
86304         * modules/alphasort: New file.
86305         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
86306         HAVE_ALPHASORT.
86307         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
86308         HAVE_ALPHASORT.
86309         * doc/posix-functions/alphasort.texi: Mention the new module and the
86310         portability problems.
86312 2009-01-18  Bruno Haible  <bruno@clisp.org>
86314         New module 'scandir'.
86315         * lib/dirent.in.h (scandir): New declaration.
86316         * lib/scandir.c: New file, from glibc with modifications.
86317         * m4/scandir.m4: New file.
86318         * modules/scandir: New file.
86319         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
86320         HAVE_SCANDIR.
86321         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
86322         HAVE_SCANDIR.
86323         * doc/posix-functions/scandir.texi: Mention the new module and the
86324         portability problems.
86326 2009-01-17  Bruno Haible  <bruno@clisp.org>
86328         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
86329         Update documentation.
86330         (func_remove_suffix): Escape all dots in the suffix. Update
86331         documentation.
86332         (func_filter_filelist): Update documentation.
86333         Reported by Ralf Wildenhues.
86335 2009-01-17  Bruno Haible  <bruno@clisp.org>
86337         * modules/dprintf-posix-tests: New file.
86338         * tests/test-dprintf-posix.sh: New file.
86339         * tests/test-dprintf-posix.c: New file.
86341         New modules 'dprintf', 'dprintf-posix'.
86342         * lib/stdio.in.h (dprintf): New declaration.
86343         * lib/dprintf.c: New file.
86344         * m4/dprintf.m4: New file.
86345         * m4/dprintf-posix.m4: New file.
86346         * modules/dprintf: New file.
86347         * modules/dprintf-posix: New file.
86348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
86349         HAVE_DPRINTF, REPLACE_DPRINTF.
86350         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
86351         HAVE_DPRINTF, REPLACE_DPRINTF.
86352         * doc/posix-functions/dprintf.texi: Mention the new modules.
86354 2009-01-17  Bruno Haible  <bruno@clisp.org>
86356         * modules/vdprintf-posix-tests: New file.
86357         * tests/test-vdprintf-posix.sh: New file.
86358         * tests/test-vdprintf-posix.c: New file.
86360         New modules 'vdprintf', 'vdprintf-posix'.
86361         * lib/stdio.in.h (vdprintf): New declaration.
86362         * lib/vdprintf.c: New file.
86363         * m4/vdprintf.m4: New file.
86364         * m4/vdprintf-posix.m4: New file.
86365         * modules/vdprintf: New file.
86366         * modules/vdprintf-posix: New file.
86367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
86368         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86369         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
86370         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86371         * doc/posix-functions/vdprintf.texi: Mention the new modules.
86373 2009-01-17  Bruno Haible  <bruno@clisp.org>
86375         Fix replacement of fopen on mingw.
86376         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
86377         mingw.
86379 2009-01-17  Bruno Haible  <bruno@clisp.org>
86381         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
86382         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
86384 2009-01-17  Bruno Haible  <bruno@clisp.org>
86386         Avoid test-fflush2.sh failure on mingw.
86387         * tests/test-fflush2.c: Include binary-io.h.
86388         (main): Put standard input into binary mode.
86389         * modules/fflush-tests (Depends-on): Add binary-io.
86391 2009-01-17  Bruno Haible  <bruno@clisp.org>
86393         * lib/wchar.in.h: In another particular situation, include only the
86394         system's <wchar.h> file.
86395         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
86396         Reported by Albert Chin-A-Young <china@thewrittenword.com>
86397         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
86399 2009-01-17  Bruno Haible  <bruno@clisp.org>
86401         Support for stripping executables in --enable-relocatable.
86402         * build-aux/install-reloc: Expect one more argument, or an environment
86403         variable RELOC_STRIP_PROG. If set, strip the destination program and
86404         its wrapper.
86405         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
86406         RELOC_STRIP_PROG.
86407         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
86408         to set RELOCATABLE_STRIP.
86409         * NEWS: Mention the new Makefile requirement.
86411 2009-01-17  Bruno Haible  <bruno@clisp.org>
86413         * build-aux/install-reloc: Remove debugging information left over by
86414         C compiler on MacOS X.
86416 2009-01-17  Bruno Haible  <bruno@clisp.org>
86418         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
86419         * lib/progreloc.c (find_executable): Fix type of pointer passed to
86420         _NSGetExecutablePath.
86422 2009-01-16  Jim Meyering  <meyering@redhat.com>
86424         strerror: avoid warnings about discarding "const"
86425         * lib/strerror.c (rpl_strerror): Instead of returning a const
86426         string from each and every "case", use a variable, and add a single
86427         cast after the switch.
86429 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
86431         * lib/arpa_inet.in.h: Add extern "C" block for C++.
86433 2009-01-16  Bruno Haible  <bruno@clisp.org>
86435         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
86436         array initializer syntax that also works in C++ mode.
86437         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86439 2009-01-16  Jim Meyering  <meyering@redhat.com>
86441         poll: suppress a warning
86442         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
86443         to ignore "...unsigned expression < 0 is always false" warnings.
86445 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
86447         poll: remove declarations of unused variables
86448         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
86449         sockbuf and optlen.
86451 2009-01-15  Bruno Haible  <bruno@clisp.org>
86453         Make fflush-after-ungetc POSIX compliant on BSD systems.
86454         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
86455         (clear_ungetc_buffer): Implement also for other systems.
86456         (rpl_fflush): On glibc systems, invoke
86457         clear_ungetc_buffer_preserving_position. Otherwise, invoke
86458         clear_ungetc_buffer after fetching the stream's position, not before.
86460 2009-01-15  Bruno Haible  <bruno@clisp.org>
86462         Make fflush-after-ungetc POSIX compliant on glibc systems.
86463         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
86464         after ungetc.
86465         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
86466         (rpl_fflush): On glibc systems, simply call the system's fflush
86467         function after clearing the ungetc buffer.
86468         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
86469         Instead, lseek only to the end of file, then use the system's fseeko
86470         for the rest. On glibc systems, reset the EOF indicator bit.
86472 2009-01-15  Jim Meyering  <meyering@redhat.com>
86474         openmp.m4: revert quote-adding change, for portability to older autoconf
86475         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
86476         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
86477         Simon Josefsson noticed the problem when using autoconf-2.61.
86479 2009-01-15  Bruno Haible  <bruno@clisp.org>
86481         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
86482         * tests/test-fflush2.c (ASSERT): Always fail.
86483         (main): Add two tests for fflush() after ungetc(), taking into account
86484         the Austin Group's clarification.
86485         Suggested by Eric Blake.
86487 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
86489         mktime.m4: remove K&R-style function prototypes
86490         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
86491         for the Sun C++ compiler.
86493 2009-01-14  Bruno Haible  <bruno@clisp.org>
86495         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
86496         while including <wchar.h>.
86497         * lib/wchar.in.h: In two particular situations on HP-UX, include only
86498         the system's <wchar.h> file.
86499         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86501 2009-01-14  Bruno Haible  <bruno@clisp.org>
86503         * m4/csharp.m4: Don't mention gettext on the serial number line.
86504         * m4/csharpexec.m4: Likewise.
86505         * m4/eaccess.m4: Likewise.
86506         * m4/javaexec.m4: Likewise.
86507         * m4/sig_atomic_t.m4: Likewise.
86508         * m4/tmpdir.m4: Likewise.
86509         * m4/intldir.m4: Bump gettext version.
86510         * m4/lib-ld.m4: Likewise.
86512 2009-01-14  Bruno Haible  <bruno@clisp.org>
86514         * lib/progname.c (set_program_name): Add more comments.
86515         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
86517 2009-01-14  Simon Josefsson  <simon@josefsson.org>
86519         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
86520         were sys/stat.h does not define it.
86522 2009-01-14  Jim Meyering  <meyering@redhat.com>
86524         many *.m4 files: improve m4 quoting
86525         99% of this change was performed by running the following commands:
86526         git ls-files | grep '\.m4$' | xargs perl -pi \
86527           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
86528           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86529           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86530           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
86531         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
86532         The remainder were to add Copyright dates, increment serial numbers,
86533         undo some changes in comments, exclude m4/intl.m4, and add quotes
86534         around the "1" in ",1" where the unusual spacing prohibited the
86535         above regexps from doing the job.  For more details, see
86536         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
86537         * m4/acl.m4: Modified.
86538         * m4/afs.m4: Likewise.
86539         * m4/alloca.m4: Likewise.
86540         * m4/argp.m4: Likewise.
86541         * m4/argz.m4: Likewise.
86542         * m4/atexit.m4: Likewise.
86543         * m4/bison-i18n.m4: Likewise.
86544         * m4/bison.m4: Likewise.
86545         * m4/byteswap.m4: Likewise.
86546         * m4/c-stack.m4: Likewise.
86547         * m4/c-strtod.m4: Likewise.
86548         * m4/calloc.m4: Likewise.
86549         * m4/canonicalize-lgpl.m4: Likewise.
86550         * m4/chown.m4: Likewise.
86551         * m4/clock_time.m4: Likewise.
86552         * m4/codeset.m4: Likewise.
86553         * m4/copy-file.m4: Likewise.
86554         * m4/csharp.m4: Likewise.
86555         * m4/csharpcomp.m4: Likewise.
86556         * m4/csharpexec.m4: Likewise.
86557         * m4/d-ino.m4: Likewise.
86558         * m4/d-type.m4: Likewise.
86559         * m4/dirfd.m4: Likewise.
86560         * m4/double-slash-root.m4: Likewise.
86561         * m4/eaccess.m4: Likewise.
86562         * m4/eealloc.m4: Likewise.
86563         * m4/environ.m4: Likewise.
86564         * m4/errno_h.m4: Likewise.
86565         * m4/euidaccess.m4: Likewise.
86566         * m4/execute.m4: Likewise.
86567         * m4/fatal-signal.m4: Likewise.
86568         * m4/fchdir.m4: Likewise.
86569         * m4/fcntl_h.m4: Likewise.
86570         * m4/fileblocks.m4: Likewise.
86571         * m4/filenamecat.m4: Likewise.
86572         * m4/findprog.m4: Likewise.
86573         * m4/flexmember.m4: Likewise.
86574         * m4/fnmatch.m4: Likewise.
86575         * m4/fopen.m4: Likewise.
86576         * m4/fpending.m4: Likewise.
86577         * m4/fprintf-posix.m4: Likewise.
86578         * m4/free.m4: Likewise.
86579         * m4/frexp.m4: Likewise.
86580         * m4/frexpl.m4: Likewise.
86581         * m4/fsusage.m4: Likewise.
86582         * m4/ftruncate.m4: Likewise.
86583         * m4/gc-camellia.m4: Likewise.
86584         * m4/gc-random.m4: Likewise.
86585         * m4/gc.m4: Likewise.
86586         * m4/getaddrinfo.m4: Likewise.
86587         * m4/getcwd-abort-bug.m4: Likewise.
86588         * m4/getcwd-path-max.m4: Likewise.
86589         * m4/getdate.m4: Likewise.
86590         * m4/getdomainname.m4: Likewise.
86591         * m4/getgroups.m4: Likewise.
86592         * m4/gethostname.m4: Likewise.
86593         * m4/gethrxtime.m4: Likewise.
86594         * m4/getline.m4: Likewise.
86595         * m4/getloadavg.m4: Likewise.
86596         * m4/getndelim2.m4: Likewise.
86597         * m4/getpass.m4: Likewise.
86598         * m4/gettext.m4: Likewise.
86599         * m4/gettime.m4: Likewise.
86600         * m4/gettimeofday.m4: Likewise.
86601         * m4/gnulib-common.m4: Likewise.
86602         * m4/group-member.m4: Likewise.
86603         * m4/host-os.m4: Likewise.
86604         * m4/iconv.m4: Likewise.
86605         * m4/iconv_open.m4: Likewise.
86606         * m4/inet_ntop.m4: Likewise.
86607         * m4/inet_pton.m4: Likewise.
86608         * m4/inline.m4: Likewise.
86609         * m4/intldir.m4: Likewise.
86610         * m4/intlmacosx.m4: Likewise.
86611         * m4/intmax.m4: Likewise.
86612         * m4/intmax_t.m4: Likewise.
86613         * m4/inttypes.m4: Likewise.
86614         * m4/inttypes_h.m4: Likewise.
86615         * m4/inttypes-pri.m4: Likewise.
86616         * m4/isapipe.m4: Likewise.
86617         * m4/isnand.m4: Likewise.
86618         * m4/isnanf.m4: Likewise.
86619         * m4/isnanl.m4: Likewise.
86620         * m4/javacomp.m4: Likewise.
86621         * m4/javaexec.m4: Likewise.
86622         * m4/jm-winsz1.m4: Likewise.
86623         * m4/jm-winsz2.m4: Likewise.
86624         * m4/lchown.m4: Likewise.
86625         * m4/lcmessage.m4: Likewise.
86626         * m4/ldexpl.m4: Likewise.
86627         * m4/lib-ld.m4: Likewise.
86628         * m4/lib-link.m4: Likewise.
86629         * m4/libsigsegv.m4: Likewise.
86630         * m4/link-follow.m4: Likewise.
86631         * m4/localcharset.m4: Likewise.
86632         * m4/locale-fr.m4: Likewise.
86633         * m4/locale-ja.m4: Likewise.
86634         * m4/locale-tr.m4: Likewise.
86635         * m4/locale-zh.m4: Likewise.
86636         * m4/lock.m4: Likewise.
86637         * m4/longlong.m4: Likewise.
86638         * m4/ls-mntd-fs.m4: Likewise.
86639         * m4/lstat.m4: Likewise.
86640         * m4/malloc.m4: Likewise.
86641         * m4/mathl.m4: Likewise.
86642         * m4/mbrtowc.m4: Likewise.
86643         * m4/mbstate_t.m4: Likewise.
86644         * m4/mbswidth.m4: Likewise.
86645         * m4/memchr.m4: Likewise.
86646         * m4/memcmp.m4: Likewise.
86647         * m4/memcpy.m4: Likewise.
86648         * m4/memmem.m4: Likewise.
86649         * m4/memmove.m4: Likewise.
86650         * m4/mempcpy.m4: Likewise.
86651         * m4/memrchr.m4: Likewise.
86652         * m4/memset.m4: Likewise.
86653         * m4/minmax.m4: Likewise.
86654         * m4/mkdir-slash.m4: Likewise.
86655         * m4/mkdtemp.m4: Likewise.
86656         * m4/mktime.m4: Likewise.
86657         * m4/mmap-anon.m4: Likewise.
86658         * m4/mountlist.m4: Likewise.
86659         * m4/nanosleep.m4: Likewise.
86660         * m4/nls.m4: Likewise.
86661         * m4/nocrash.m4: Likewise.
86662         * m4/open.m4: Likewise.
86663         * m4/openat.m4: Likewise.
86664         * m4/openmp.m4: Likewise.
86665         * m4/pathmax.m4: Likewise.
86666         * m4/perl.m4: Likewise.
86667         * m4/physmem.m4: Likewise.
86668         * m4/pipe.m4: Likewise.
86669         * m4/po.m4: Likewise.
86670         * m4/poll.m4: Likewise.
86671         * m4/posixtm.m4: Likewise.
86672         * m4/posixver.m4: Likewise.
86673         * m4/printf-frexp.m4: Likewise.
86674         * m4/printf-frexpl.m4: Likewise.
86675         * m4/printf-posix.m4: Likewise.
86676         * m4/printf-posix-rpl.m4: Likewise.
86677         * m4/printf.m4: Likewise.
86678         * m4/progtest.m4: Likewise.
86679         * m4/putenv.m4: Likewise.
86680         * m4/readline.m4: Likewise.
86681         * m4/readlink.m4: Likewise.
86682         * m4/readutmp.m4: Likewise.
86683         * m4/realloc.m4: Likewise.
86684         * m4/regex.m4: Likewise.
86685         * m4/relocatable.m4: Likewise.
86686         * m4/relocatable-lib.m4: Likewise.
86687         * m4/rename-dest-slash.m4: Likewise.
86688         * m4/rename.m4: Likewise.
86689         * m4/rmdir-errno.m4: Likewise.
86690         * m4/rmdir.m4: Likewise.
86691         * m4/roundf.m4: Likewise.
86692         * m4/roundl.m4: Likewise.
86693         * m4/rpmatch.m4: Likewise.
86694         * m4/save-cwd.m4: Likewise.
86695         * m4/selinux-selinux-h.m4: Likewise.
86696         * m4/setenv.m4: Likewise.
86697         * m4/settime.m4: Likewise.
86698         * m4/sig2str.m4: Likewise.
86699         * m4/sig_atomic_t.m4: Likewise.
86700         * m4/signalblocking.m4: Likewise.
86701         * m4/signbit.m4: Likewise.
86702         * m4/sigpipe.m4: Likewise.
86703         * m4/sockets.m4: Likewise.
86704         * m4/sockpfaf.m4: Likewise.
86705         * m4/st_dm_mode.m4: Likewise.
86706         * m4/stat-time.m4: Likewise.
86707         * m4/stdbool.m4: Likewise.
86708         * m4/stdint.m4: Likewise.
86709         * m4/stdint_h.m4: Likewise.
86710         * m4/stpcpy.m4: Likewise.
86711         * m4/stpncpy.m4: Likewise.
86712         * m4/strcase.m4: Likewise.
86713         * m4/strchrnul.m4: Likewise.
86714         * m4/strcspn.m4: Likewise.
86715         * m4/strdup.m4: Likewise.
86716         * m4/strftime.m4: Likewise.
86717         * m4/strndup.m4: Likewise.
86718         * m4/strnlen.m4: Likewise.
86719         * m4/strpbrk.m4: Likewise.
86720         * m4/strptime.m4: Likewise.
86721         * m4/strsep.m4: Likewise.
86722         * m4/strtod.m4: Likewise.
86723         * m4/strtoimax.m4: Likewise.
86724         * m4/strtok_r.m4: Likewise.
86725         * m4/strtol.m4: Likewise.
86726         * m4/strtoll.m4: Likewise.
86727         * m4/strtoul.m4: Likewise.
86728         * m4/strtoull.m4: Likewise.
86729         * m4/strtoumax.m4: Likewise.
86730         * m4/strverscmp.m4: Likewise.
86731         * m4/threadlib.m4: Likewise.
86732         * m4/timegm.m4: Likewise.
86733         * m4/tm_gmtoff.m4: Likewise.
86734         * m4/tmpdir.m4: Likewise.
86735         * m4/tmpfile.m4: Likewise.
86736         * m4/tzset.m4: Likewise.
86737         * m4/uintmax_t.m4: Likewise.
86738         * m4/unlinkdir.m4: Likewise.
86739         * m4/unlocked-io.m4: Likewise.
86740         * m4/uptime.m4: Likewise.
86741         * m4/userspec.m4: Likewise.
86742         * m4/utimbuf.m4: Likewise.
86743         * m4/utime.m4: Likewise.
86744         * m4/utimes-null.m4: Likewise.
86745         * m4/utimes.m4: Likewise.
86746         * m4/vararrays.m4: Likewise.
86747         * m4/vasnprintf.m4: Likewise.
86748         * m4/vfprintf-posix.m4: Likewise.
86749         * m4/vprintf-posix.m4: Likewise.
86750         * m4/wait-process.m4: Likewise.
86751         * m4/wchar_t.m4: Likewise.
86752         * m4/wint_t.m4: Likewise.
86753         * m4/write-any-file.m4: Likewise.
86754         * m4/yield.m4: Likewise.
86756 2009-01-13  Bruno Haible  <bruno@clisp.org>
86758         Avoid test-copy-file.sh failures when ACL support insufficient.
86759         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
86760         TESTS_ENVIRONMENT.
86761         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
86762         Reported by Jim Meyering.
86764 2009-01-13  Bruno Haible  <bruno@clisp.org>
86766         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
86767         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
86768         * modules/unistdio/u8-printf-parse (Files): Likewise.
86769         * modules/unistdio/u32-printf-parse (Files): Likewise.
86770         * modules/unistdio/ulc-printf-parse (Files): Likewise.
86772 2009-01-13  Simon Josefsson  <simon@josefsson.org>
86774         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
86775         and m4/inttypes_h.m4 too.
86777 2009-01-12  Eric Blake  <ebb9@byu.net>
86779         tests: IRIX 6.2 cc can't compile -0.0 into .data
86780         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
86781         rather than at compile-time.
86782         * tests/test-floorl.c (minus_zero): Likewise.
86783         * tests/test-frexpl.c (minus_zero): Likewise.
86784         * tests/test-isnan.c (minus_zerol): Likewise.
86785         * tests/test-isnanl.h (minus_zero): Likewise.
86786         * tests/test-ldexpl.c (minus_zero): Likewise.
86787         * tests/test-roundl.c (minus_zero): Likewise.
86788         * tests/test-signbit.c (minus_zerol): Likewise.
86789         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86790         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86791         * tests/test-truncl.c (minus_zero): Likewise.
86792         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86793         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86794         Reported by Tom G. Christensen and Nelson H. F. Beebe.
86796 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86798         regex: fix glibc bug 9697
86799         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
86800         handling.
86802 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86804         regex: fix glibc bug 697
86805         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
86806         being NULL also if there are no backreferences.
86808 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86810         regex: merge glibc changes
86811         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
86812         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
86813         re_string_skip_chars, re_string_reconstruct): Likewise.
86814         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
86816 2009-01-07  Jim Meyering  <meyering@redhat.com>
86818         poll: filter through cppi
86819         * lib/poll.c: Indent cpp directives to reflect nesting.
86821 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
86823         poll: don't return uninitialized
86824         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
86826 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
86828         avoid compile failure on AIX 6.1
86829         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
86830         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
86832 2009-01-04  Jim Meyering  <meyering@redhat.com>
86834         remove duplicate inclusion of <stdio.h>
86835         * tests/test-fprintf-posix.c: Likewise.
86836         * tests/test-printf-posix.c: Likewise.
86837         * tests/test-snprintf-posix.c: Likewise.
86838         * tests/test-sprintf-posix.c: Likewise.
86839         * tests/test-vasprintf-posix.c: Likewise.
86840         * tests/test-vfprintf-posix.c: Likewise.
86841         * tests/test-vprintf-posix.c: Likewise.
86842         * tests/test-vsnprintf-posix.c: Likewise.
86843         * tests/test-vsprintf-posix.c: Likewise.
86845 2009-01-03  Jim Meyering  <meyering@redhat.com>
86847         gnulib-tool: fix sed-based filtering
86848         * gnulib-tool (func_filter_filelist): Remove extra backslash
86849         in sed_fff_filter definition.
86851 2009-01-02  Jim Meyering  <meyering@redhat.com>
86853         strftime: avoid compilation failure on Solaris 2.6
86854         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
86855         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
86856         Don't #define mbrlen or mbsinit, since now they're guaranteed to
86857         be available.  Reported by Tom G. Christensen.  Details in
86858         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
86860 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86861             Bruno Haible  <bruno@clisp.org>
86863         Speed up gnulib-tool by doing more string processing through shell
86864         built-ins.
86865         * gnulib-tool (fast_func_append): New variable.
86866         (func_remove_prefix, func_remove_suffix): New functions.
86867         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
86868         (func_filter_filelist): New function.
86869         (func_get_dependencies): Use func_remove_suffix instead of sed.
86870         (func_get_automake_snippet): Use func_filter_filelist instead of a
86871         subshell and sed invocation.
86873 2009-01-01  Bruno Haible  <bruno@clisp.org>
86875         Fix a security bug.
86876         * gnulib-tool (func_import, import, update): Don't allow the characters
86877         '"', '$', '`', '\' in macro arguments that become part of commands that
86878         are evaluated.
86880 2009-01-01  Bruno Haible  <bruno@clisp.org>
86882         * gnulib-tool (func_reset_sigpipe): Add more comments.
86884 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86886         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
86887         func_emit_tests_Makefile_am, func_import): Abort loops early if we
86888         already know the answer.
86890 2009-01-01  Jim Meyering  <meyering@redhat.com>
86892         * lib/version-etc.c (version_etc_va): Update copyright year.
86894 2008-12-30  Bruno Haible  <bruno@clisp.org>
86896         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
86897         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
86898         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
86900 2008-12-29  Eric Blake  <ebb9@byu.net>
86902         multiarch: avoid autoconf AC_REQUIRE bug
86903         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
86904         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
86905         2.63 and older.
86906         Reported by Bruno Haible, and analyzed in
86907         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
86909 2008-12-29  Bruno Haible  <bruno@clisp.org>
86911         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
86912         files in subdirectories correctly.
86913         Reported by Ralf Wildenhues.
86915 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86917         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
86918         rather than 'join FILE -', for Solaris join.
86920 2008-12-29  Bruno Haible  <bruno@clisp.org>
86922         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
86923         quoting.
86924         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86925         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
86926         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
86927         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
86928         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
86929         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
86930         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
86931         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
86932         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
86933         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
86934         * m4/nls.m4 (AM_NLS): Likewise.
86935         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
86936         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
86937         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86938         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
86939         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
86940         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
86941         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
86942         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
86943         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
86944         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
86945         * m4/xsize.m4 (gl_XSIZE): Likewise.
86946         Suggested by Jim Meyering.
86948 2008-11-17  Bruce Korb  <bkorb@gnu.org>
86950         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
86951         * lib/parse-duration.c: use a switch instead of cascading if's.
86953 2008-12-29  Eric Blake  <ebb9@byu.net>
86955         wchar.h: supply WEOF on Irix 5.3
86956         * lib/wchar.in.h (wint_t): Also supply WEOF.
86957         * lib/wctype.in.h (wint_t): Likewise.
86958         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
86959         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
86960         Reported by Tom G. Christensen.
86962 2008-12-26  Bruno Haible  <bruno@clisp.org>
86964         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
86965         i486, i586, i686.
86967 2008-12-26  Bruno Haible  <bruno@clisp.org>
86969         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
86971 2008-12-26  Bruno Haible  <bruno@clisp.org>
86973         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
86974         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
86975         not __STDC_CONSTANT_MACROS.
86976         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
86978 2008-12-25  Bruno Haible  <bruno@clisp.org>
86980         Add support for universal builds to vasnprintf.
86981         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
86982         universal builds, guess no.
86983         * modules/vasnprintf-posix (Depends-on): Add multiarch.
86984         * modules/vasprintf-posix (Depends-on): Likewise.
86985         * modules/fprintf-posix (Depends-on): Likewise.
86986         * modules/vfprintf-posix (Depends-on): Likewise.
86987         * modules/snprintf-posix (Depends-on): Likewise.
86988         * modules/vsnprintf-posix (Depends-on): Likewise.
86989         * modules/sprintf-posix (Depends-on): Likewise.
86990         * modules/vsprintf-posix (Depends-on): Likewise.
86991         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
86992         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
86993         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
86994         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
86995         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
86996         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
86997         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
86999         Add support for universal builds to <inttypes.h>.
87000         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
87001         _SCNu64_PREFIX): In Apple
87002         universal builds, define directly, using _LP64.
87003         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
87004         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
87005         * modules/inttypes (Depends-on): Add multiarch.
87006         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87008         Add support for universal builds to <stdint.h>.
87009         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
87010         universal builds, define directly, using _LP64.
87011         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
87012         Apple universal builds, don't test for the size and suffix of ptrdiff_t
87013         and size_t.
87014         * modules/stdint (Depends-on): Add multiarch.
87015         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87017         New module 'multiarch'.
87018         * modules/multiarch: New file.
87019         * m4/multiarch.m4: New file.
87021 2008-12-25  Bruno Haible  <bruno@clisp.org>
87023         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
87025 2008-12-25  Bruno Haible  <bruno@clisp.org>
87027         * modules/btowc (License): Relicense under LGPLv2+.
87028         * modules/mbsinit (License): Likewise.
87029         * modules/mbrtowc (License): Likewise.
87030         * modules/wcrtomb (License): Likewise.
87031         * modules/streq (License): Likewise.
87032         Reported by David Lutterkort <lutter@redhat.com>.
87034 2008-12-23  Bruno Haible  <bruno@clisp.org>
87036         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
87038 2008-12-23  Bruno Haible  <bruno@clisp.org>
87040         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
87041         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
87042         GETADDRINFO_LIB, not in LIBS.
87043         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
87044         * modules/canon-host (Link): Likewise.
87045         * NEWS: Mention the change.
87046         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
87047         GETADDRINFO_LIB.
87049 2008-12-22  Bruno Haible  <bruno@clisp.org>
87051         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
87052         * doc/posix-functions/iswalpha_l.texi: Likewise.
87053         * doc/posix-functions/iswblank_l.texi: Likewise.
87054         * doc/posix-functions/iswcntrl_l.texi: Likewise.
87055         * doc/posix-functions/iswctype_l.texi: Likewise.
87056         * doc/posix-functions/iswdigit_l.texi: Likewise.
87057         * doc/posix-functions/iswgraph_l.texi: Likewise.
87058         * doc/posix-functions/iswlower_l.texi: Likewise.
87059         * doc/posix-functions/iswprint_l.texi: Likewise.
87060         * doc/posix-functions/iswpunct_l.texi: Likewise.
87061         * doc/posix-functions/iswspace_l.texi: Likewise.
87062         * doc/posix-functions/iswupper_l.texi: Likewise.
87063         * doc/posix-functions/iswxdigit_l.texi: Likewise.
87064         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
87065         * doc/posix-functions/open_wmemstream.texi: Likewise.
87066         * doc/posix-functions/swscanf.texi: Likewise.
87067         * doc/posix-functions/towctrans_l.texi: Likewise.
87068         * doc/posix-functions/towlower.texi: Likewise.
87069         * doc/posix-functions/towlower_l.texi: Likewise.
87070         * doc/posix-functions/towupper.texi: Likewise.
87071         * doc/posix-functions/towupper_l.texi: Likewise.
87072         * doc/posix-functions/vfwprintf.texi: Likewise.
87073         * doc/posix-functions/vfwscanf.texi: Likewise.
87074         * doc/posix-functions/vswscanf.texi: Likewise.
87075         * doc/posix-functions/vwprintf.texi: Likewise.
87076         * doc/posix-functions/vwscanf.texi: Likewise.
87077         * doc/posix-functions/wcpcpy.texi: Likewise.
87078         * doc/posix-functions/wcpncpy.texi: Likewise.
87079         * doc/posix-functions/wcscasecmp.texi: Likewise.
87080         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
87081         * doc/posix-functions/wcscoll_l.texi: Likewise.
87082         * doc/posix-functions/wcsdup.texi: Likewise.
87083         * doc/posix-functions/wcsncasecmp.texi: Likewise.
87084         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
87085         * doc/posix-functions/wcsnlen.texi: Likewise.
87086         * doc/posix-functions/wcsnrtombs.texi: Likewise.
87087         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
87088         * doc/posix-functions/wctrans_l.texi: Likewise.
87089         * doc/posix-functions/wctype_l.texi: Likewise.
87090         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
87091         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
87092         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
87093         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
87094         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
87095         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
87096         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
87097         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
87098         * doc/glibc-functions/wcschrnul.texi: Likewise.
87099         * doc/glibc-functions/wcsftime_l.texi: Likewise.
87100         * doc/glibc-functions/wcstod_l.texi: Likewise.
87101         * doc/glibc-functions/wcstof_l.texi: Likewise.
87102         * doc/glibc-functions/wcstol_l.texi: Likewise.
87103         * doc/glibc-functions/wcstold_l.texi: Likewise.
87104         * doc/glibc-functions/wcstoll_l.texi: Likewise.
87105         * doc/glibc-functions/wcstoq.texi: Likewise.
87106         * doc/glibc-functions/wcstoul_l.texi: Likewise.
87107         * doc/glibc-functions/wcstoull_l.texi: Likewise.
87108         * doc/glibc-functions/wcstouq.texi: Likewise.
87109         * doc/glibc-functions/wmempcpy.texi: Likewise.
87111 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
87112             Eric Blake  <ebb9@byu.net>
87113             Paolo Bonzini  <bonzini@gnu.org>
87114             Bruno Haible  <bruno@clisp.org>
87116         Make c-stack work on Haiku.
87117         * lib/c-stack.c (SA_ONSTACK): Define fallback.
87118         (c_stack_action): Use SA_ONSTACK flag.
87120 2008-12-22  Bruno Haible  <bruno@clisp.org>
87122         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
87124 2008-12-22  Bruno Haible  <bruno@clisp.org>
87126         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
87127         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
87128         being overridden.
87129         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
87130         New macros.
87131         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
87132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
87133         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
87134         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
87136 2008-12-22  Bruno Haible  <bruno@clisp.org>
87138         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
87139         from test code.
87141 2008-12-22  Eric Blake  <ebb9@byu.net>
87143         Avoid gcc warnings on cygwin.
87144         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
87145         Avoid unused variable.
87146         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
87147         Likewise.
87149 2008-12-22  Bruno Haible  <bruno@clisp.org>
87151         Remove HAVE_MBRTOWC conditionals.
87152         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
87153         (mbscasecmp): Assume mbrtowc function.
87154         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
87155         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
87156         * lib/mbschr.c: Include mbuiter.h unconditionally.
87157         (mbschr): Assume mbrtowc function.
87158         * lib/mbscspn.c: Include mbuiter.h unconditionally.
87159         (mbscspn): Assume mbrtowc function.
87160         * lib/mbslen.c: Include mbuiter.h unconditionally.
87161         (mbslen): Assume mbrtowc function.
87162         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
87163         (mbsncasecmp): Assume mbrtowc function.
87164         * lib/mbsnlen.c: Include mbiter.h unconditionally.
87165         (mbsnlen): Assume mbrtowc function.
87166         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
87167         (mbspbrk): Assume mbrtowc function.
87168         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
87169         (mbspcasecmp): Assume mbrtowc function.
87170         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
87171         (mbsrchr): Assume mbrtowc function.
87172         * lib/mbssep.c: Include mbuiter.h unconditionally.
87173         (mbssep): Assume mbrtowc function.
87174         * lib/mbsspn.c: Include mbuiter.h unconditionally.
87175         (mbsspn): Assume mbrtowc function.
87176         * lib/mbsstr.c: Include mbuiter.h unconditionally.
87177         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
87178         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
87179         (mbstok_r): Assume mbrtowc function.
87180         * lib/propername.c: Include mbuiter.h unconditionally.
87181         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
87182         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
87183         (trim2): Assume mbrtowc function.
87184         * lib/mbswidth.c (mbsinit): Remove fallback definition.
87185         (mbsnwidth): Assume mbrtowc function.
87186         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
87187         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
87188         fallback definitions.
87189         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
87191 2008-12-22  Bruno Haible  <bruno@clisp.org>
87193         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
87195 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
87197         * modules/regex: Request emulations for the mb*/wc* functions we need.
87198         * m4/regex.m4: Don't look for those functions here.
87199         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
87201 2008-12-22  Bruno Haible  <bruno@clisp.org>
87203         * modules/fnmatch (Depends-on): Remove duplicated dependency.
87205 2008-12-21  Bruno Haible  <bruno@clisp.org>
87207         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
87208         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
87209         (Include): Remove conditionalization.
87210         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
87211         (Include): Remove conditionalization.
87212         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
87213         (Include): Remove conditionalization.
87214         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
87215         * m4/mbfile.m4 (gl_MBFILE): Likewise.
87216         * NEWS: Mention the change.
87217         Reported by Alan Hourihane <alanh@fairlite.co.uk>
87218         via Sergey Poznyakoff <gray@gnu.org.ua>.
87220 2008-12-21  Bruno Haible  <bruno@clisp.org>
87222         * MODULES.html.sh (Extended multibyte and wide character utilities
87223         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
87224         wcrtomb, wcsrtombs.
87225         (Support for systems lacking POSIX:2008): Add accept, bind, close,
87226         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
87227         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
87228         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
87230 2008-12-21  Bruno Haible  <bruno@clisp.org>
87232         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
87234 2008-12-21  Bruno Haible  <bruno@clisp.org>
87236         * modules/wcsnrtombs-tests: New file.
87237         * tests/test-wcsnrtombs1.sh: New file.
87238         * tests/test-wcsnrtombs2.sh: New file.
87239         * tests/test-wcsnrtombs3.sh: New file.
87240         * tests/test-wcsnrtombs4.sh: New file.
87241         * tests/test-wcsnrtombs.c: New file.
87243         New module 'wcsnrtombs'.
87244         * lib/wchar.in.h (wcsnrtombs): New declaration.
87245         * lib/wcsnrtombs.c: New file.
87246         * lib/wcsrtombs-state.c: New file.
87247         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
87248         (internal_state): Remove variable.
87249         * m4/wcsnrtombs.m4: New file.
87250         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
87251         compilation units.
87252         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
87253         HAVE_WCSNRTOMBS.
87254         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
87255         HAVE_WCSNRTOMBS.
87256         * modules/wcsnrtombs: New file.
87257         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
87258         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
87260 2008-12-21  Bruno Haible  <bruno@clisp.org>
87262         * modules/wcsrtombs-tests: New file.
87263         * tests/test-wcsrtombs1.sh: New file.
87264         * tests/test-wcsrtombs2.sh: New file.
87265         * tests/test-wcsrtombs3.sh: New file.
87266         * tests/test-wcsrtombs4.sh: New file.
87267         * tests/test-wcsrtombs.c: New file.
87269         New module 'wcsrtombs'.
87270         * lib/wchar.in.h (wcsrtombs): New declaration.
87271         * lib/wcsrtombs.c: New file.
87272         * m4/wcsrtombs.m4: New file.
87273         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
87274         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
87275         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
87276         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
87277         * modules/wcsrtombs: New file.
87278         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
87279         bugs.
87281 2008-12-21  Bruno Haible  <bruno@clisp.org>
87283         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
87284         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
87285         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
87286         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
87287         if not correct.
87288         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
87289         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
87290         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87291         m4/locale-zh.m4, m4/codeset.m4.
87292         * doc/posix-functions/wcrtomb.texi: Document the bug.
87294 2008-12-21  Bruno Haible  <bruno@clisp.org>
87296         Work around a btowc() bug on IRIX 6.5.
87297         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
87298         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
87299         REPLACE_WTOBC if not.
87300         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
87301         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
87302         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
87304 2008-12-21  Bruno Haible  <bruno@clisp.org>
87306         * modules/wcrtomb-tests: New file.
87307         * tests/test-wcrtomb.sh: New file.
87308         * tests/test-wcrtomb.c: New file.
87310         New module 'wcrtomb'.
87311         * lib/wchar.in.h (wcrtomb): New declaration.
87312         * lib/wcrtomb.c: New file.
87313         * m4/wcrtomb.m4: New file.
87314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
87315         HAVE_WCRTOMB.
87316         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
87317         HAVE_WCRTOMB.
87318         * modules/wcrtomb: New file.
87319         * doc/posix-functions/wcrtomb.texi: Mention the new module.
87321 2008-12-21  Bruno Haible  <bruno@clisp.org>
87323         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
87324         * modules/mbsrtowcs (Files): Likewise.
87325         * modules/wctob (Files): Likewise.
87326         * modules/c-strcase-tests (Files): Likewise.
87327         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
87328         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
87329         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
87330         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
87331         * modules/vasnprintf-posix-tests (Files): Likewise.
87333 2008-12-21  William Pursell  <bill.pursell@gmail.com>
87335         gitlog-to-changelog: pass all command-line arguments to git-log
87336         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
87337         it is sometimes convenient to filter the commits in various ways.
87338         gitlog-to-changelog only allows --since to specify a start date,
87339         but git-log itself supports many other filtering mechanisms.
87340         At the moment, I want to filter by branch name.  Rather than
87341         adding a --branch option to gitlog-to-changelog, it seems more
87342         flexible to simply pass all options directly to git-log and let
87343         git do the work.  Notice that this effectively makes --since a
87344         redundant option for gitlog-to-changelog, but removing it would
87345         require current usage to change since calls would then require
87346         an additional '--'.
87348 2008-12-21  Bruno Haible  <bruno@clisp.org>
87350         * modules/mbsnrtowcs-tests: New file.
87351         * tests/test-mbsnrtowcs1.sh: New file.
87352         * tests/test-mbsnrtowcs2.sh: New file.
87353         * tests/test-mbsnrtowcs3.sh: New file.
87354         * tests/test-mbsnrtowcs4.sh: New file.
87355         * tests/test-mbsnrtowcs.c: New file.
87357         New module 'mbsnrtowcs'.
87358         * lib/wchar.in.h (mbsnrtowcs): New declaration.
87359         * lib/mbsnrtowcs.c: New file.
87360         * lib/mbsrtowcs-state.c: New file.
87361         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
87362         (internal_state): Remove variable.
87363         * m4/mbsnrtowcs.m4: New file.
87364         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
87365         compilation units.
87366         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
87367         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87368         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
87369         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87370         * modules/mbsnrtowcs: New file.
87371         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
87372         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
87373         portability problem.
87375 2008-12-21  Bruno Haible  <bruno@clisp.org>
87377         Work around mbsrtowcs bug.
87378         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
87379         (gl_FUNC_MBSRTOWCS): Invoke it.
87380         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87381         m4/locale-zh.m4.
87382         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
87384 2008-12-21  Bruno Haible  <bruno@clisp.org>
87386         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
87388 2008-12-21  Bruno Haible  <bruno@clisp.org>
87390         Update doc for AIX.
87391         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
87392         16-bit wchar_t type.
87393         * doc/posix-functions/btowc.texi: Likewise.
87394         * doc/posix-functions/fgetwc.texi: Likewise.
87395         * doc/posix-functions/fgetws.texi: Likewise.
87396         * doc/posix-functions/fputwc.texi: Likewise.
87397         * doc/posix-functions/fputws.texi: Likewise.
87398         * doc/posix-functions/fwide.texi: Likewise.
87399         * doc/posix-functions/fwprintf.texi: Likewise.
87400         * doc/posix-functions/fwscanf.texi: Likewise.
87401         * doc/posix-functions/getwchar.texi: Likewise.
87402         * doc/posix-functions/getwc.texi: Likewise.
87403         * doc/posix-functions/iswalnum.texi: Likewise.
87404         * doc/posix-functions/iswalpha.texi: Likewise.
87405         * doc/posix-functions/iswblank.texi: Likewise.
87406         * doc/posix-functions/iswcntrl.texi: Likewise.
87407         * doc/posix-functions/iswctype.texi: Likewise.
87408         * doc/posix-functions/iswdigit.texi: Likewise.
87409         * doc/posix-functions/iswgraph.texi: Likewise.
87410         * doc/posix-functions/iswlower.texi: Likewise.
87411         * doc/posix-functions/iswprint.texi: Likewise.
87412         * doc/posix-functions/iswpunct.texi: Likewise.
87413         * doc/posix-functions/iswspace.texi: Likewise.
87414         * doc/posix-functions/iswupper.texi: Likewise.
87415         * doc/posix-functions/iswxdigit.texi: Likewise.
87416         * doc/posix-functions/mbrtowc.texi: Likewise.
87417         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87418         * doc/posix-functions/mbstowcs.texi: Likewise.
87419         * doc/posix-functions/mbtowc.texi: Likewise.
87420         * doc/posix-functions/putwchar.texi: Likewise.
87421         * doc/posix-functions/putwc.texi: Likewise.
87422         * doc/posix-functions/swprintf.texi: Likewise.
87423         * doc/posix-functions/tolower.texi: Likewise.
87424         * doc/posix-functions/toupper.texi: Likewise.
87425         * doc/posix-functions/towctrans.texi: Likewise.
87426         * doc/posix-functions/ungetwc.texi: Likewise.
87427         * doc/posix-functions/vswprintf.texi: Likewise.
87428         * doc/posix-functions/wcrtomb.texi: Likewise.
87429         * doc/posix-functions/wcscat.texi: Likewise.
87430         * doc/posix-functions/wcschr.texi: Likewise.
87431         * doc/posix-functions/wcscmp.texi: Likewise.
87432         * doc/posix-functions/wcscoll.texi: Likewise.
87433         * doc/posix-functions/wcscpy.texi: Likewise.
87434         * doc/posix-functions/wcscspn.texi: Likewise.
87435         * doc/posix-functions/wcsftime.texi: Likewise.
87436         * doc/posix-functions/wcslen.texi: Likewise.
87437         * doc/posix-functions/wcsncat.texi: Likewise.
87438         * doc/posix-functions/wcsncmp.texi: Likewise.
87439         * doc/posix-functions/wcsncpy.texi: Likewise.
87440         * doc/posix-functions/wcspbrk.texi: Likewise.
87441         * doc/posix-functions/wcsrchr.texi: Likewise.
87442         * doc/posix-functions/wcsrtombs.texi: Likewise.
87443         * doc/posix-functions/wcsspn.texi: Likewise.
87444         * doc/posix-functions/wcsstr.texi: Likewise.
87445         * doc/posix-functions/wcstod.texi: Likewise.
87446         * doc/posix-functions/wcstof.texi: Likewise.
87447         * doc/posix-functions/wcstoimax.texi: Likewise.
87448         * doc/posix-functions/wcstok.texi: Likewise.
87449         * doc/posix-functions/wcstold.texi: Likewise.
87450         * doc/posix-functions/wcstoll.texi: Likewise.
87451         * doc/posix-functions/wcstol.texi: Likewise.
87452         * doc/posix-functions/wcstombs.texi: Likewise.
87453         * doc/posix-functions/wcstoull.texi: Likewise.
87454         * doc/posix-functions/wcstoul.texi: Likewise.
87455         * doc/posix-functions/wcstoumax.texi: Likewise.
87456         * doc/posix-functions/wcswidth.texi: Likewise.
87457         * doc/posix-functions/wcsxfrm.texi: Likewise.
87458         * doc/posix-functions/wctob.texi: Likewise.
87459         * doc/posix-functions/wctomb.texi: Likewise.
87460         * doc/posix-functions/wctrans.texi: Likewise.
87461         * doc/posix-functions/wctype.texi: Likewise.
87462         * doc/posix-functions/wcwidth.texi: Likewise.
87463         * doc/posix-functions/wmemchr.texi: Likewise.
87464         * doc/posix-functions/wmemcmp.texi: Likewise.
87465         * doc/posix-functions/wmemcpy.texi: Likewise.
87466         * doc/posix-functions/wmemmove.texi: Likewise.
87467         * doc/posix-functions/wmemset.texi: Likewise.
87468         * doc/posix-functions/wprintf.texi: Likewise.
87469         * doc/posix-functions/wscanf.texi: Likewise.
87471 2008-12-21  Bruno Haible  <bruno@clisp.org>
87473         Update doc for HP-UX 11.11.
87474         * doc/posix-functions/btowc.texi: Clarify that the function is missing
87475         in HP-UX version 11.00, not in all versions of HP-UX 11.
87476         * doc/posix-functions/fwide.texi: Likewise.
87477         * doc/posix-functions/fwprintf.texi: Likewise.
87478         * doc/posix-functions/fwscanf.texi: Likewise.
87479         * doc/posix-functions/inet_ntop.texi: Likewise.
87480         * doc/posix-functions/inet_pton.texi: Likewise.
87481         * doc/posix-functions/mbrlen.texi: Likewise.
87482         * doc/posix-functions/mbrtowc.texi: Likewise.
87483         * doc/posix-functions/mbsinit.texi: Likewise.
87484         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87485         * doc/posix-functions/swprintf.texi: Likewise.
87486         * doc/posix-functions/swscanf.texi: Likewise.
87487         * doc/posix-functions/towctrans.texi: Likewise.
87488         * doc/posix-functions/vfwprintf.texi: Likewise.
87489         * doc/posix-functions/vswprintf.texi: Likewise.
87490         * doc/posix-functions/vwprintf.texi: Likewise.
87491         * doc/posix-functions/wcrtomb.texi: Likewise.
87492         * doc/posix-functions/wcsrtombs.texi: Likewise.
87493         * doc/posix-functions/wcsstr.texi: Likewise.
87494         * doc/posix-functions/wctob.texi: Likewise.
87495         * doc/posix-functions/wctrans.texi: Likewise.
87496         * doc/posix-functions/wmemchr.texi: Likewise.
87497         * doc/posix-functions/wmemcmp.texi: Likewise.
87498         * doc/posix-functions/wmemcpy.texi: Likewise.
87499         * doc/posix-functions/wmemmove.texi: Likewise.
87500         * doc/posix-functions/wmemset.texi: Likewise.
87501         * doc/posix-functions/wprintf.texi: Likewise.
87502         * doc/posix-functions/wscanf.texi: Likewise.
87504 2008-12-21  Bruno Haible  <bruno@clisp.org>
87506         Work around a portability problem.
87507         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
87508         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
87510 2008-12-20  Bruno Haible  <bruno@clisp.org>
87512         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
87513         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
87514         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
87515         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
87516         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
87518         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
87519         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
87520         set.
87521         (GNULIB_defined_mbstate_t): New macro.
87522         (mbsinit): Redefine if REPLACE_MBSINIT is set.
87523         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
87524         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
87525         reuses the system's mbrtowc function but works around the bugs.
87526         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
87527         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
87528         macros.
87529         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
87530         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
87531         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
87532         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
87533         REPLACE_MBSINIT if mbsinit needs to be overridden.
87534         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
87535         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87536         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
87537         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87538         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87539         m4/locale-zh.m4.
87540         (Depends): Add mbsinit.
87541         * modules/mbsinit (Depends): Add mbrtowc.
87542         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
87544 2008-12-20  Bruno Haible  <bruno@clisp.org>
87546         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
87547         so that there are no conversion errors on AIX.
87548         * tests/test-mbsrtowcs.c (main): LIkewise.
87550 2008-12-20  Bruno Haible  <bruno@clisp.org>
87552         Work around wctob bug on Solaris <= 9.
87553         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
87554         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
87555         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
87556         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
87557         * modules/wctob (Files): Add m4/locale-fr.m4.
87558         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
87560 2008-12-20  Bruno Haible  <bruno@clisp.org>
87562         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
87563         /dev/null.
87564         * tests/test-select-in.sh: Likewise.
87565         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87567 2008-12-20  Bruno Haible  <bruno@clisp.org>
87569         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
87570         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
87571         Cygwin 1.5.x.
87573 2008-12-20  Bruno Haible  <bruno@clisp.org>
87575         Ensure mbstate_t is defined on HP-UX 11.11.
87576         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
87577         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
87578         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
87579         AC_USE_SYSTEM_EXTENSIONS.
87580         * modules/fnmatch (Depends-on): Add extensions.
87581         * modules/mbrlen (Depends-on): Likewise.
87582         * modules/mbrtowc (Depends-on): Likewise.
87583         * modules/mbsinit (Depends-on): Likewise.
87584         * modules/mbsrtowcs (Depends-on): Likewise.
87585         * modules/mbswidth (Depends-on): Likewise.
87586         * modules/quotearg (Depends-on): Likewise.
87587         * modules/strftime (Depends-on): Likewise.
87589 2008-12-20  Bruno Haible  <bruno@clisp.org>
87591         Ensure wctob is declared on IRIX 6.5.
87592         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
87593         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
87594         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
87595         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
87596         of HAVE_WCTOB.
87597         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
87598         HAVE_WCTOB.
87599         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
87601 2008-12-19  Bruno Haible  <bruno@clisp.org>
87603         * modules/mbsrtowcs-tests: New file.
87604         * tests/test-mbsrtowcs1.sh: New file.
87605         * tests/test-mbsrtowcs2.sh: New file.
87606         * tests/test-mbsrtowcs3.sh: New file.
87607         * tests/test-mbsrtowcs4.sh: New file.
87608         * tests/test-mbsrtowcs.c: New file.
87610         New module 'mbsrtowcs'.
87611         * lib/wchar.in.h (mbsrtowcs): New declaration.
87612         * lib/mbsrtowcs.c: New file.
87613         * m4/mbsrtowcs.m4: New file.
87614         * modules/mbsrtowcs: New file.
87615         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
87616         HAVE_MBSRTOWCS.
87617         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
87618         HAVE_MBSRTOWCS.
87619         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
87621 2008-12-19  Bruno Haible  <bruno@clisp.org>
87623         New module 'mbrlen'.
87624         * lib/wchar.in.h (mbrlen): New declaration.
87625         * lib/mbrlen.c: New file.
87626         * m4/mbrlen.m4: New file.
87627         * modules/mbrlen: New file.
87628         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
87629         HAVE_MBRLEN.
87630         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
87631         HAVE_MBRLEN.
87632         * doc/posix-functions/mbrlen.texi: Document the new module.
87634 2008-12-19  Bruno Haible  <bruno@clisp.org>
87636         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
87637         * modules/mbrtowc (Depends-on): Add verify.
87638         Suggested by Paul Eggert.
87640 2008-12-18  Bruno Haible  <bruno@clisp.org>
87642         * modules/mbsinit-tests: New file.
87643         * tests/test-mbsinit.sh: New file.
87644         * tests/test-mbsinit.c: New file.
87646 2008-12-18  Bruno Haible  <bruno@clisp.org>
87648         * modules/mbrtowc-tests: New file.
87649         * tests/test-mbrtowc1.sh: New file.
87650         * tests/test-mbrtowc2.sh: New file.
87651         * tests/test-mbrtowc3.sh: New file.
87652         * tests/test-mbrtowc4.sh: New file.
87653         * tests/test-mbrtowc.c: New file.
87655         New module 'mbrtowc'.
87656         * lib/wchar.in.h (mbstate_t): Override when the system does not have
87657         mbsinit and mbrtowc.
87658         (mbrtowc): New declaration.
87659         * lib/mbrtowc.c: New file.
87660         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
87661         * modules/mbrtowc: New file.
87662         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
87663         HAVE_MBRTOWC.
87664         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
87665         HAVE_MBRTOWC.
87666         * doc/posix-functions/mbrtowc.texi: Document the new module.
87668 2008-12-18  Bruno Haible  <bruno@clisp.org>
87670         New module 'wctob'.
87671         * lib/wchar.in.h (wctob): New declaration.
87672         * lib/wctob.c: New file.
87673         * m4/wctob.m4: New file.
87674         * modules/wctob: New file.
87675         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
87676         HAVE_WCTOB.
87677         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
87678         * doc/posix-functions/wctob.texi: Document the new module.
87680 2008-12-18  Bruno Haible  <bruno@clisp.org>
87682         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
87683         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
87685 2008-12-18  Simon Josefsson  <simon@josefsson.org>
87687         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
87688         G. Christensen" <tgc@jupiterrise.com>.
87690         * lib/flock.c: Need to include errno.h.  Reported by "Tom
87691         G. Christensen" <tgc@jupiterrise.com>.
87693         * lib/flock.c: Need to include string.h.  Reported by "Tom
87694         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
87695         <ebb9@byu.net>.
87697 2008-12-18  Bruno Haible  <bruno@clisp.org>
87699         * m4/locale-ja.m4: New file, from GNU gettext.
87701 2008-12-17  Bruno Haible  <bruno@clisp.org>
87703         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
87704         Suggested by Eric Blake.
87706 2008-12-17  Bruno Haible  <bruno@clisp.org>
87708         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
87710 2008-12-17  Bruno Haible  <bruno@clisp.org>
87712         * lib/mbsinit.c: Include verify.h. Verify an assumption.
87713         * modules/mbsinit (Depends-on): Add verify.
87714         Suggested by Paul Eggert.
87716 2008-12-17  Bruno Haible  <bruno@clisp.org>
87718         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
87719         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
87720         gl_FUNC_MBRTOWC.
87721         * m4/mbiter.m4 (gl_MBITER): LIkewise.
87722         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
87723         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
87724         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
87725         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
87726         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
87727         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
87728         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
87729         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
87730         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
87731         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
87732         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
87733         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
87734         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
87735         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
87736         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
87737         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
87738         * modules/trim (configure.ac): Likewise.
87740 2008-12-17  Bruno Haible  <bruno@clisp.org>
87742         * modules/btowc-tests: New file.
87743         * tests/test-btowc1.sh: New file.
87744         * tests/test-btowc2.sh: New file.
87745         * tests/test-btowc.c: New file.
87747         New module 'btowc'.
87748         * lib/wchar.in.h (btowc): New declaration.
87749         * lib/btowc.c: New file.
87750         * m4/btowc.m4: New file.
87751         * modules/btowc: New file.
87752         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
87753         HAVE_BTOWC.
87754         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
87755         * doc/posix-functions/btowc.texi: Document the new module.
87757 2008-12-17  Bruno Haible  <bruno@clisp.org>
87759         New module 'mbsinit'.
87760         * lib/wchar.in.h (mbsinit): New declaration.
87761         * lib/mbsinit.c: New file.
87762         * m4/mbsinit.m4: New file.
87763         * modules/mbsinit: New file.
87764         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
87765         HAVE_MBSINIT.
87766         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
87767         HAVE_MBSINIT.
87768         * doc/posix-functions/mbsinit.texi: Document the new module.
87770 2008-12-16  Bruno Haible  <bruno@clisp.org>
87772         * lib/unistd.in.h: Add comment.
87773         * tests/test-environ.c: Don't include <stdlib.h>.
87775 2008-12-16  Bruno Haible  <bruno@clisp.org>
87777         * lib/parse-duration.h (parse_duration): Document return value
87778         convention.
87779         * lib/parse-duration.c: Include specification header first. Add
87780         comments.
87781         (_): Remove macro.
87782         (parse_year_month_day, parse_hour_minute_second): Move side effects
87783         outside of strchr call.
87784         (parse_non_iso8601): Move side effects outside of isspace call.
87785         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
87786         call.
87788 2008-12-16  Bruno Haible  <bruno@clisp.org>
87790         * tests/test-parse-duration.sh: Produce no output when the test
87791         succeeds.
87793 2008-12-16  Bruno Haible  <bruno@clisp.org>
87795         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
87796         expressions.
87798 2008-12-15  Bruno Haible  <bruno@clisp.org>
87800         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
87801         * doc/glibc-functions/flistxattr.texi: Likewise.
87802         * doc/glibc-functions/fopencookie.texi: Likewise.
87803         * doc/glibc-functions/fremovexattr.texi: Likewise.
87804         * doc/glibc-functions/fsetxattr.texi: Likewise.
87805         * doc/glibc-functions/getxattr.texi: Likewise.
87806         * doc/glibc-functions/lgetxattr.texi: Likewise.
87807         * doc/glibc-functions/listxattr.texi: Likewise.
87808         * doc/glibc-functions/llistxattr.texi: Likewise.
87809         * doc/glibc-functions/lremovexattr.texi: Likewise.
87810         * doc/glibc-functions/lsetxattr.texi: Likewise.
87811         * doc/glibc-functions/removexattr.texi: Likewise.
87812         * doc/glibc-functions/setxattr.texi: Likewise.
87813         * doc/posix-functions/open_memstream.texi: Likewise.
87815 2008-12-15  Eric Blake  <ebb9@byu.net>
87817         Update doc for cygwin 1.7.
87818         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
87819         functions.
87820         * doc/posix-functions/fchmodat.texi: Likewise.
87821         * doc/posix-functions/fchownat.texi: Likewise.
87822         * doc/posix-functions/fdopendir.texi: Likewise.
87823         * doc/posix-functions/fmemopen.texi: Likewise.
87824         * doc/posix-functions/freeaddrinfo.texi: Likewise.
87825         * doc/posix-functions/fstatat.texi: Likewise.
87826         * doc/posix-functions/futimens.texi: Likewise.
87827         * doc/posix-functions/gai_strerror.texi: Likewise.
87828         * doc/posix-functions/getaddrinfo.texi: Likewise.
87829         * doc/posix-functions/getnameinfo.texi: Likewise.
87830         * doc/posix-functions/if_freenameindex.texi: Likewise.
87831         * doc/posix-functions/if_indextoname.texi: Likewise.
87832         * doc/posix-functions/if_nameindex.texi: Likewise.
87833         * doc/posix-functions/if_nametoindex.texi: Likewise.
87834         * doc/posix-functions/insque.texi: Likewise.
87835         * doc/posix-functions/linkat.texi: Likewise.
87836         * doc/posix-functions/llrint.texi: Likewise.
87837         * doc/posix-functions/llrintf.texi: Likewise.
87838         * doc/posix-functions/llrintl.texi: Likewise.
87839         * doc/posix-functions/lockf.texi: Likewise.
87840         * doc/posix-functions/lrintl.texi: Likewise.
87841         * doc/posix-functions/mkdirat.texi: Likewise.
87842         * doc/posix-functions/mkfifoat.texi: Likewise.
87843         * doc/posix-functions/mknodat.texi: Likewise.
87844         * doc/posix-functions/mq_close.texi: Likewise.
87845         * doc/posix-functions/mq_getattr.texi: Likewise.
87846         * doc/posix-functions/mq_notify.texi: Likewise.
87847         * doc/posix-functions/mq_open.texi: Likewise.
87848         * doc/posix-functions/mq_receive.texi: Likewise.
87849         * doc/posix-functions/mq_send.texi: Likewise.
87850         * doc/posix-functions/mq_setattr.texi: Likewise.
87851         * doc/posix-functions/mq_timedreceive.texi: Likewise.
87852         * doc/posix-functions/mq_timedsend.texi: Likewise.
87853         * doc/posix-functions/mq_unlink.texi: Likewise.
87854         * doc/posix-functions/open_memstream.texi: Likewise.
87855         * doc/posix-functions/openat.texi: Likewise.
87856         * doc/posix-functions/posix_fadvise.texi: Likewise.
87857         * doc/posix-functions/posix_fallocate.texi: Likewise.
87858         * doc/posix-functions/posix_madvise.texi: Likewise.
87859         * doc/posix-functions/posix_memalign.texi: Likewise.
87860         * doc/posix-functions/posix_openpt.texi: Likewise.
87861         * doc/posix-functions/readlinkat.texi: Likewise.
87862         * doc/posix-functions/remque.texi: Likewise.
87863         * doc/posix-functions/renameat.texi: Likewise.
87864         * doc/posix-functions/rintl.texi: Likewise.
87865         * doc/posix-functions/sem_unlink.texi: Likewise.
87866         * doc/posix-functions/shm_open.texi: Likewise.
87867         * doc/posix-functions/shm_unlink.texi: Likewise.
87868         * doc/posix-functions/signgam.texi: Likewise.
87869         * doc/posix-functions/sigset.texi: Likewise.
87870         * doc/posix-functions/stpcpy.texi: Likewise.
87871         * doc/posix-functions/stpncpy.texi: Likewise.
87872         * doc/posix-functions/strerror.texi: Likewise.
87873         * doc/posix-functions/strtod.texi: Likewise.
87874         * doc/posix-functions/symlinkat.texi: Likewise.
87875         * doc/posix-functions/unlinkat.texi: Likewise.
87876         * doc/posix-functions/utimensat.texi: Likewise.
87877         * doc/glibc-functions/bindresvport.texi: Likewise.
87878         * doc/glibc-functions/dn_expand.texi: Likewise.
87879         * doc/glibc-functions/exp10.texi: Likewise.
87880         * doc/glibc-functions/exp10f.texi: Likewise.
87881         * doc/glibc-functions/fgetxattr.texi: Likewise.
87882         * doc/glibc-functions/flistxattr.texi: Likewise.
87883         * doc/glibc-functions/fopencookie.texi: Likewise.
87884         * doc/glibc-functions/freeifaddrs.texi: Likewise.
87885         * doc/glibc-functions/fremovexattr.texi: Likewise.
87886         * doc/glibc-functions/fsetxattr.texi: Likewise.
87887         * doc/glibc-functions/getifaddrs.texi: Likewise.
87888         * doc/glibc-functions/getxattr.texi: Likewise.
87889         * doc/glibc-functions/lgetxattr.texi: Likewise.
87890         * doc/glibc-functions/listxattr.texi: Likewise.
87891         * doc/glibc-functions/llistxattr.texi: Likewise.
87892         * doc/glibc-functions/lremovexattr.texi: Likewise.
87893         * doc/glibc-functions/lsetxattr.texi: Likewise.
87894         * doc/glibc-functions/pow10.texi: Likewise.
87895         * doc/glibc-functions/pow10f.texi: Likewise.
87896         * doc/glibc-functions/rcmd_af.texi: Likewise.
87897         * doc/glibc-functions/removexattr.texi: Likewise.
87898         * doc/glibc-functions/res_init.texi: Likewise.
87899         * doc/glibc-functions/res_mkquery.texi: Likewise.
87900         * doc/glibc-functions/res_query.texi: Likewise.
87901         * doc/glibc-functions/res_querydomain.texi: Likewise.
87902         * doc/glibc-functions/res_send.texi: Likewise.
87903         * doc/glibc-functions/rresvport_af.texi: Likewise.
87904         * doc/glibc-functions/setxattr.texi: Likewise.
87905         * doc/glibc-functions/strcasestr.texi: Likewise.
87907 2008-12-15  Bruno Haible  <bruno@clisp.org>
87909         Fix compilation error on OSF/1 4.0.
87910         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
87911         <sys/time.h>, simply delegate to the system header.
87912         Reported by Daniel Richard G. <oss@teragram.com>.
87914 2008-12-15  Bruno Haible  <bruno@clisp.org>
87916         * doc/posix-functions/openat.texi: Mention the 'openat' module.
87917         * doc/posix-functions/fchmodat.texi: Likewise.
87918         * doc/posix-functions/fchownat.texi: Likewise.
87919         * doc/posix-functions/fdopendir.texi: Likewise.
87920         * doc/posix-functions/fstatat.texi: Likewise.
87921         * doc/posix-functions/mkdirat.texi: Likewise.
87922         * doc/posix-functions/unlinkat.texi: Likewise.
87924 2008-12-14  Bruno Haible  <bruno@clisp.org>
87926         Update doc for POSIX:2008.
87927         * doc/posix-functions/faccessat.texi: New file.
87928         * doc/posix-functions/fchmodat.texi: New file.
87929         * doc/posix-functions/fchownat.texi: New file.
87930         * doc/posix-functions/fdopendir.texi: New file.
87931         * doc/posix-functions/fstatat.texi: New file.
87932         * doc/posix-functions/futimens.texi: New file.
87933         * doc/posix-functions/linkat.texi: New file.
87934         * doc/posix-functions/mkdirat.texi: New file.
87935         * doc/posix-functions/mkfifoat.texi: New file.
87936         * doc/posix-functions/mknodat.texi: New file.
87937         * doc/posix-functions/open_wmemstream.texi: New file.
87938         * doc/posix-functions/openat.texi: New file.
87939         * doc/posix-functions/psiginfo.texi: New file.
87940         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
87941         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
87942         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
87943         * doc/posix-functions/readlinkat.texi: New file.
87944         * doc/posix-functions/renameat.texi: New file.
87945         * doc/posix-functions/strerror_l.texi: New file.
87946         * doc/posix-functions/symlinkat.texi: New file.
87947         * doc/posix-functions/unlinkat.texi: New file.
87948         * doc/posix-functions/utimensat.texi: New file.
87949         * doc/gnulib.texi (Function Substitutes): Add these subsections.
87951 2008-12-14  Bruno Haible  <bruno@clisp.org>
87953         Update doc for POSIX:2008.
87954         * doc/posix-functions/alphasort.texi: Renamed from
87955         doc/glibc-functions/alphasort.texi.
87956         * doc/posix-functions/dirfd.texi: Renamed from
87957         doc/glibc-functions/dirfd.texi.
87958         * doc/posix-functions/dprintf.texi: Renamed from
87959         doc/glibc-functions/dprintf.texi.
87960         * doc/posix-functions/duplocale.texi: Renamed from
87961         doc/glibc-functions/duplocale.texi.
87962         * doc/posix-functions/fexecve.texi: Renamed from
87963         doc/glibc-functions/fexecve.texi.
87964         * doc/posix-functions/fmemopen.texi: Renamed from
87965         doc/glibc-functions/fmemopen.texi.
87966         * doc/posix-functions/freelocale.texi: Renamed from
87967         doc/glibc-functions/freelocale.texi.
87968         * doc/posix-functions/getdate_err.texi: Renamed from
87969         doc/glibc-functions/getdate_err.texi.
87970         * doc/posix-functions/isalnum_l.texi: Renamed from
87971         doc/glibc-functions/isalnum_l.texi.
87972         * doc/posix-functions/isalpha_l.texi: Renamed from
87973         doc/glibc-functions/isalpha_l.texi.
87974         * doc/posix-functions/isblank_l.texi: Renamed from
87975         doc/glibc-functions/isblank_l.texi.
87976         * doc/posix-functions/iscntrl_l.texi: Renamed from
87977         doc/glibc-functions/iscntrl_l.texi.
87978         * doc/posix-functions/isdigit_l.texi: Renamed from
87979         doc/glibc-functions/isdigit_l.texi.
87980         * doc/posix-functions/isgraph_l.texi: Renamed from
87981         doc/glibc-functions/isgraph_l.texi.
87982         * doc/posix-functions/islower_l.texi: Renamed from
87983         doc/glibc-functions/islower_l.texi.
87984         * doc/posix-functions/isprint_l.texi: Renamed from
87985         doc/glibc-functions/isprint_l.texi.
87986         * doc/posix-functions/ispunct_l.texi: Renamed from
87987         doc/glibc-functions/ispunct_l.texi.
87988         * doc/posix-functions/isspace_l.texi: Renamed from
87989         doc/glibc-functions/isspace_l.texi.
87990         * doc/posix-functions/isupper_l.texi: Renamed from
87991         doc/glibc-functions/isupper_l.texi.
87992         * doc/posix-functions/iswalnum_l.texi: Renamed from
87993         doc/glibc-functions/iswalnum_l.texi.
87994         * doc/posix-functions/iswalpha_l.texi: Renamed from
87995         doc/glibc-functions/iswalpha_l.texi.
87996         * doc/posix-functions/iswblank_l.texi: Renamed from
87997         doc/glibc-functions/iswblank_l.texi.
87998         * doc/posix-functions/iswcntrl_l.texi: Renamed from
87999         doc/glibc-functions/iswcntrl_l.texi.
88000         * doc/posix-functions/iswctype_l.texi: Renamed from
88001         doc/glibc-functions/iswctype_l.texi.
88002         * doc/posix-functions/iswdigit_l.texi: Renamed from
88003         doc/glibc-functions/iswdigit_l.texi.
88004         * doc/posix-functions/iswgraph_l.texi: Renamed from
88005         doc/glibc-functions/iswgraph_l.texi.
88006         * doc/posix-functions/iswlower_l.texi: Renamed from
88007         doc/glibc-functions/iswlower_l.texi.
88008         * doc/posix-functions/iswprint_l.texi: Renamed from
88009         doc/glibc-functions/iswprint_l.texi.
88010         * doc/posix-functions/iswpunct_l.texi: Renamed from
88011         doc/glibc-functions/iswpunct_l.texi.
88012         * doc/posix-functions/iswspace_l.texi: Renamed from
88013         doc/glibc-functions/iswspace_l.texi.
88014         * doc/posix-functions/iswupper_l.texi: Renamed from
88015         doc/glibc-functions/iswupper_l.texi.
88016         * doc/posix-functions/iswxdigit_l.texi: Renamed from
88017         doc/glibc-functions/iswxdigit_l.texi.
88018         * doc/posix-functions/isxdigit_l.texi: Renamed from
88019         doc/glibc-functions/isxdigit_l.texi.
88020         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
88021         doc/glibc-functions/mbsnrtowcs.texi.
88022         * doc/posix-functions/mkdtemp.texi: Renamed from
88023         doc/glibc-functions/mkdtemp.texi.
88024         * doc/posix-functions/newlocale.texi: Renamed from
88025         doc/glibc-functions/newlocale.texi.
88026         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
88027         doc/glibc-functions/nl_langinfo_l.texi.
88028         * doc/posix-functions/open_memstream.texi: Renamed from
88029         doc/glibc-functions/open_memstream.texi.
88030         * doc/posix-functions/opterr.texi: Renamed from
88031         doc/glibc-functions/opterr.texi.
88032         * doc/posix-functions/optind.texi: Renamed from
88033         doc/glibc-functions/optind.texi.
88034         * doc/posix-functions/optopt.texi: Renamed from
88035         doc/glibc-functions/optopt.texi.
88036         * doc/posix-functions/psignal.texi: Renamed from
88037         doc/glibc-functions/psignal.texi.
88038         * doc/posix-functions/scandir.texi: Renamed from
88039         doc/glibc-functions/scandir.texi.
88040         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
88041         doc/glibc-functions/sched_get_priority_min.texi.
88042         * doc/posix-functions/signgam.texi: Renamed from
88043         doc/glibc-functions/signgam.texi.
88044         * doc/posix-functions/stpcpy.texi: Renamed from
88045         doc/glibc-functions/stpcpy.texi.
88046         * doc/posix-functions/stpncpy.texi: Renamed from
88047         doc/glibc-functions/stpncpy.texi.
88048         * doc/posix-functions/strcasecmp_l.texi: Renamed from
88049         doc/glibc-functions/strcasecmp_l.texi.
88050         * doc/posix-functions/strcoll_l.texi: Renamed from
88051         doc/glibc-functions/strcoll_l.texi.
88052         * doc/posix-functions/strfmon_l.texi: Renamed from
88053         doc/glibc-functions/strfmon_l.texi.
88054         * doc/posix-functions/strftime_l.texi: Renamed from
88055         doc/glibc-functions/strftime_l.texi.
88056         * doc/posix-functions/strncasecmp_l.texi: Renamed from
88057         doc/glibc-functions/strncasecmp_l.texi.
88058         * doc/posix-functions/strndup.texi: Renamed from
88059         doc/glibc-functions/strndup.texi.
88060         * doc/posix-functions/strnlen.texi: Renamed from
88061         doc/glibc-functions/strnlen.texi.
88062         * doc/posix-functions/strsignal.texi: Renamed from
88063         doc/glibc-functions/strsignal.texi.
88064         * doc/posix-functions/strxfrm_l.texi: Renamed from
88065         doc/glibc-functions/strxfrm_l.texi.
88066         * doc/posix-functions/timer_gettime.texi: Renamed from
88067         doc/glibc-functions/timer_gettime.texi.
88068         * doc/posix-functions/tolower_l.texi: Renamed from
88069         doc/glibc-functions/tolower_l.texi.
88070         * doc/posix-functions/toupper_l.texi: Renamed from
88071         doc/glibc-functions/toupper_l.texi.
88072         * doc/posix-functions/towctrans_l.texi: Renamed from
88073         doc/glibc-functions/towctrans_l.texi.
88074         * doc/posix-functions/towlower_l.texi: Renamed from
88075         doc/glibc-functions/towlower_l.texi.
88076         * doc/posix-functions/towupper_l.texi: Renamed from
88077         doc/glibc-functions/towupper_l.texi.
88078         * doc/posix-functions/uselocale.texi: Renamed from
88079         doc/glibc-functions/uselocale.texi.
88080         * doc/posix-functions/vdprintf.texi: Renamed from
88081         doc/glibc-functions/vdprintf.texi.
88082         * doc/posix-functions/wcpcpy.texi:
88083         Renamed from doc/glibc-functions/wcpcpy.texi.
88084         * doc/posix-functions/wcpncpy.texi: Renamed from
88085         doc/glibc-functions/wcpncpy.texi.
88086         * doc/posix-functions/wcscasecmp.texi: Renamed from
88087         doc/glibc-functions/wcscasecmp.texi.
88088         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
88089         doc/glibc-functions/wcscasecmp_l.texi.
88090         * doc/posix-functions/wcscoll_l.texi: Renamed from
88091         doc/glibc-functions/wcscoll_l.texi.
88092         * doc/posix-functions/wcsdup.texi: Renamed from
88093         doc/glibc-functions/wcsdup.texi.
88094         * doc/posix-functions/wcsncasecmp.texi: Renamed from
88095         doc/glibc-functions/wcsncasecmp.texi.
88096         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
88097         doc/glibc-functions/wcsncasecmp_l.texi.
88098         * doc/posix-functions/wcsnlen.texi: Renamed from
88099         doc/glibc-functions/wcsnlen.texi.
88100         * doc/posix-functions/wcsnrtombs.texi: Renamed from
88101         doc/glibc-functions/wcsnrtombs.texi.
88102         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
88103         doc/glibc-functions/wcsxfrm_l.texi.
88104         * doc/posix-functions/wctrans_l.texi: Renamed from
88105         doc/glibc-functions/wctrans_l.texi.
88106         * doc/posix-functions/wctype_l.texi: Renamed from
88107         doc/glibc-functions/wctype_l.texi.
88108         * doc/gnulib.texi (Function Substitutes): Add these subsections.
88109         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
88110         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
88111         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
88112         these subsections.
88113         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
88114         Remove sections.
88116 2008-12-14  Bruno Haible  <bruno@clisp.org>
88118         Update doc for POSIX:2008.
88119         * doc/posix-functions/*.texi: Update URL of POSIX specification.
88121 2008-12-14  Bruno Haible  <bruno@clisp.org>
88123         Update doc for POSIX:2008.
88124         * doc/pastposix-functions/bcmp.texi: Renamed from
88125         doc/posix-functions/bcmp.texi.
88126         * doc/pastposix-functions/bcopy.texi: Renamed from
88127         doc/posix-functions/bcopy.texi.
88128         * doc/pastposix-functions/bsd_signal.texi: Renamed from
88129         doc/posix-functions/bsd_signal.texi.
88130         * doc/pastposix-functions/bzero.texi: Renamed from
88131         doc/posix-functions/bzero.texi.
88132         * doc/pastposix-functions/ecvt.texi: Renamed from
88133         doc/posix-functions/ecvt.texi.
88134         * doc/pastposix-functions/fcvt.texi: Renamed from
88135         doc/posix-functions/fcvt.texi.
88136         * doc/pastposix-functions/ftime.texi: Renamed from
88137         doc/posix-functions/ftime.texi.
88138         * doc/pastposix-functions/gcvt.texi: Renamed from
88139         doc/posix-functions/gcvt.texi.
88140         * doc/pastposix-functions/getcontext.texi: Renamed from
88141         doc/posix-functions/getcontext.texi.
88142         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
88143         doc/posix-functions/gethostbyaddr.texi.
88144         * doc/pastposix-functions/gethostbyname.texi: Renamed from
88145         doc/posix-functions/gethostbyname.texi.
88146         * doc/pastposix-functions/getwd.texi: Renamed from
88147         doc/posix-functions/getwd.texi.
88148         * doc/pastposix-functions/h_errno.texi: Renamed from
88149         doc/posix-functions/h_errno.texi.
88150         * doc/pastposix-functions/index.texi: Renamed from
88151         doc/posix-functions/index.texi.
88152         * doc/pastposix-functions/makecontext.texi: Renamed from
88153         doc/posix-functions/makecontext.texi.
88154         * doc/pastposix-functions/mktemp.texi: Renamed from
88155         doc/posix-functions/mktemp.texi.
88156         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
88157         doc/posix-functions/pthread_attr_getstackaddr.texi.
88158         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
88159         doc/posix-functions/pthread_attr_setstackaddr.texi.
88160         * doc/pastposix-functions/rindex.texi: Renamed from
88161         doc/posix-functions/rindex.texi.
88162         * doc/pastposix-functions/scalb.texi: Renamed from
88163         doc/posix-functions/scalb.texi.
88164         * doc/pastposix-functions/setcontext.texi: Renamed from
88165         doc/posix-functions/setcontext.texi.
88166         * doc/pastposix-functions/swapcontext.texi: Renamed from
88167         doc/posix-functions/swapcontext.texi.
88168         * doc/pastposix-functions/ualarm.texi: Renamed from
88169         doc/posix-functions/ualarm.texi.
88170         * doc/pastposix-functions/usleep.texi: Renamed from
88171         doc/posix-functions/usleep.texi.
88172         * doc/pastposix-functions/vfork.texi: Renamed from
88173         doc/posix-functions/vfork.texi.
88174         * doc/pastposix-functions/wcswcs.texi: Renamed from
88175         doc/posix-functions/wcswcs.texi.
88176         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
88177         (Function Substitutes): Update.
88179 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88181         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
88182         m4/strerror.m4.
88184 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88185             Bruno Haible  <bruno@clisp.org>
88187         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
88189 2008-12-13  Bruno Haible  <bruno@clisp.org>
88191         * modules/strtoull (Depends-on): Remove unistd.
88193 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88195         * modules/strtoull (Depends-on): Add stdlib.
88197 2008-12-11  Simon Josefsson  <simon@josefsson.org>
88199         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
88201 2008-12-10  Jim Meyering  <meyering@redhat.com>
88203         gl_ASSERT: don't say assertions are disabled when they're not
88204         * m4/assert.m4 (gl_ASSERT): Do not make configure report
88205         "checking whether to enable assertions... no", when they are in
88206         fact enabled.  This is solely a bug in the output of configure.
88207         In spite of saying "no", NDEBUG was not defined in that case.
88208         Also, as noted by Eric Blake, leave assertions enabled upon
88209         --enable-assert=INVALID.
88211 2008-12-10  Bruno Haible  <bruno@clisp.org>
88213         Change MODULES.html to refer to POSIX:2008 where possible.
88214         * MODULES.html.sh (POSIX2008_URL): New variable.
88215         (posix_headers): Remove sys/timeb, ucontext.
88216         (posix2001_headers): New variable.
88217         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
88218         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
88219         index, makecontext, mktemp, pthread_attr_getstackaddr,
88220         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
88221         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
88222         (posix2001_functions): New variable.
88223         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
88224         otherwise.
88226 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88228         add missing include to parse-duration.c
88229         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
88230         * modules/parse-duration (Depends-on): Add xalloc.
88232         fix sed script reading maint.mk
88233         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
88234         (syntax-check-rules): Use it.
88236 2008-12-09  Bruno Haible  <bruno@clisp.org>
88238         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
88239         MacOS X 10.4/PowerPC.
88240         Reported by Simon Josefsson.
88242 2008-12-08  Jim Meyering  <meyering@redhat.com>
88244         work around mingw's lack of some S_IF definitions
88245         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
88246         Reported by Simon Josefsson.
88248 2008-12-08  Bruno Haible  <bruno@clisp.org>
88250         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
88251         applied to variables. Needed on MacOS X 10.4/PowerPC.
88252         Reported by Simon Josefsson.
88254 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
88255         and Eric Blake  <ebb9@byu.net>
88257         assert: honor --enable-assert
88258         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
88259         order to honor --enable-assert, rather than treating it as a
88260         synonym for --disable-assert.
88262 2008-12-08  Jim Meyering  <meyering@redhat.com>
88264         * lib/posixtm.c: Remove now-useless declaration of mktime.
88266         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
88268 2008-12-07  Bruno Haible  <bruno@clisp.org>
88270         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
88271         test_once): Mark functions as static.
88272         * tests/test-tls.c (test_tls): Likewise.
88274 2008-12-07  Bruno Haible  <bruno@clisp.org>
88276         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
88277         iconv_register_autodetect.
88279 2008-12-07  Jim Meyering  <meyering@redhat.com>
88281         posixtm.c: avoid a warning
88282         * lib/posixtm.c (posixtime): Don't initialize tm0.
88283         It's no longer needed to placate gcc4's -Wuninitialized,
88284         and the attempt to placate would elicit a new warning.
88286         unicodeio.c: mark unused parameters
88287         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88288         (fallback_failure_callback): Likewise.
88290 2008-12-07  Bruno Haible  <bruno@clisp.org>
88292         * gnulib-tool (func_create_testdir): When building the tests
88293         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
88294         Reported by Simon Josefsson.
88296 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88298         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
88300 2008-12-06  Bruno Haible  <bruno@clisp.org>
88302         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
88303         Suggested by Eric Blake.
88305 2008-12-06  Bruno Haible  <bruno@clisp.org>
88307         Fix a c-stack test failure on MacOS X.
88308         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
88309         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
88310         handler for SIGBUS as well.
88311         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
88312         install a signal handler for SIGBUS as well.
88313         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
88315 2008-12-06  Bruno Haible  <bruno@clisp.org>
88317         Advocacy documentation.
88318         * doc/gnulib-intro.texi (Benefits): New section.
88319         * doc/gnulib.texi: Update.
88321 2008-12-06  Bruno Haible  <bruno@clisp.org>
88323         Document the 'manywarnings' module.
88324         * doc/manywarnings.texi: New file.
88325         * doc/gnulib.texi: Include it.
88327 2008-12-05  Eric Blake  <ebb9@byu.net>
88329         tests: silence some gcc warnings
88330         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
88331         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
88332         type mismatches.
88334 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88335             Bruno Haible  <bruno@clisp.org>
88337         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
88339 2008-11-29  Jim Meyering  <meyering@redhat.com>
88341         unicodeio.c: mark unused parameters
88342         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88343         (fallback_failure_callback): Likewise.
88345         fts: fix a thinko
88346         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
88347         (set_stat_type): Return S_IF*-valued "type" directly.
88348         Prompted by James Youngman's spotting a related bug.
88349         Confirmed by further testing through find.
88351         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
88352         * lib/fts.c (D_TYPE): Define.
88353         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
88354         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
88355         (s_ifmt_shift_bits): New function.
88356         (set_stat_type): New function.
88357         (fts_build): When not calling fts_stat, call set_stat_type
88358         to propagate dirent.d_type info to fts_read caller.
88359         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
88360         fts_statp->st_mode type information may be valid.
88362 2008-11-28  Simon Josefsson  <simon@josefsson.org>
88364         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
88365         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
88366         <sds@gnu.org>.
88368 2008-11-20  Bruno Haible  <bruno@clisp.org>
88370         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
88371         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
88372         INCLUDE_NEXT.
88373         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
88374         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
88375         * modules/math (Makefile.am): Substitute
88376         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
88377         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88379 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
88380             Bruno Haible  <bruno@clisp.org>
88382         * lib/stdint.in.h: Define all type macros so that their expansion is
88383         a single typedef'ed token. Fixes a compilation failure in Boost which
88384         does "using ::int8_t;".
88386 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88388         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
88389         gl_MANYWARN_ALL_GCC.
88390         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
88391         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
88392         * modules/manywarnings: New file.
88393         * MODULES.html.sh: Mention manywarnings module.
88395 2008-11-18  Bruno Haible  <bruno@clisp.org>
88397         * doc/gnulib-tool.texi (Unit tests): New section.
88399 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88401         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
88402         paths like 'lib/po/foo.po'.
88404 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88406         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
88407         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
88409 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88411         * m4/warnings.m4: Use CPPFLAGS to really check whether the
88412         parameter works.
88414 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88416         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
88418 2008-11-17  Bruce Korb  <bkorb@gnu.org>
88420         * modules/parse-duration-tests: New file.
88421         * tests/test-parse-duration.sh: New file.
88422         * tests/test-parse-duration.c: New file.
88424         New module 'parse-duration'.
88425         * lib/parse-duration.h: New file.
88426         * lib/parse-duration.c: New file.
88427         * modules/parse-duration: New file.
88429 2008-11-17  Bruno Haible  <bruno@clisp.org>
88431         * tests/test-select-out.sh: Comment out the first pipe test.
88432         Reported by Simon Josefsson.
88434 2008-11-17  Bruno Haible  <bruno@clisp.org>
88436         * modules/getaddrinfo (Depends-on): Add servent, hostent.
88437         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
88438         gl_HOSTENT.
88440 2008-11-17  Bruno Haible  <bruno@clisp.org>
88442         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
88443         -lnetwork and -lnet. Needed for Haiku and BeOS.
88445 2008-11-16  Bruno Haible  <bruno@clisp.org>
88447         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
88449 2008-11-16  Bruno Haible  <bruno@clisp.org>
88451         Avoid test failure on Haiku.
88452         * tests/test-fsync.c: Include <errno.h>.
88453         (main): Don't require that fsync (0) fails.
88455 2008-11-15  Bruno Haible  <bruno@clisp.org>
88457         New module 'hostent'.
88458         * modules/hostent: New file.
88459         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
88461 2008-11-15  Bruno Haible  <bruno@clisp.org>
88463         New module 'servent'.
88464         * modules/servent: New file.
88465         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
88467 2008-11-15  Bruno Haible  <bruno@clisp.org>
88469         Avoid generating same test program with two different rules.
88470         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
88471         test-frexp to test-frexp-nolibm.
88472         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
88473         test-frexpl to test-frexpl-nolibm.
88475 2008-11-15  Bruno Haible  <bruno@clisp.org>
88477         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
88478         $(FREXPL_LIBM).
88480 2008-11-15  Bruno Haible  <bruno@clisp.org>
88482         * lib/netdb.in.h: Activate the definitions also when the system's
88483         <netdb.h> has 'struct addrinfo'.
88484         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
88485         EAI_OVERFLOW or AI_NUMERICSERV.
88486         * doc/posix-headers/netdb.texi: Document the problem.
88488 2008-11-15  Bruno Haible  <bruno@clisp.org>
88490         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
88492         Make the 'sched' module work on platforms where <sched.h> exists but
88493         is incomplete (such as Haiku).
88494         * lib/sched.in.h; Include the system's <sched.h> if it exists.
88495         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
88496         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
88497         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
88498         HAVE_STRUCT_SCHED_PARAM.
88499         * modules/sched (Depends-on): Add include_next.
88500         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
88501         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
88502         * doc/posix-headers/sched.texi: Document the issue.
88504 2008-11-13  Jim Meyering  <meyering@redhat.com>
88506         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
88507         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
88508         test would fail due to the difference in the Report bugs to ...
88509         line.  The expected address is empty, "<>", while the actual
88510         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
88512 2008-11-12  Bruno Haible  <bruno@clisp.org>
88514         lstat: don't compile lstat.c on systems lacking lstat
88515         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
88516         which don't have lstat; this is handled by lib/sys_stat.in.h already.
88517         Reported by Daniel P. Berrange via Jim Meyering.
88519 2008-11-12  Jim Meyering  <meyering@redhat.com>
88521         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
88523 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88525         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
88526         instead.
88528 2008-11-12  Bruno Haible  <bruno@clisp.org>
88530         * lib/unicodeio.c: Include unistr.h.
88531         (utf8_wctomb): Remove function.
88532         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
88534 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88536         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
88537         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
88538         <bruno@clisp.org>.
88539         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
88541 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88543         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
88544         * doc/gnulib.texi: Add section for warnings.
88546 2008-11-11  Bruno Haible  <bruno@clisp.org>
88548         * lib/sockets.h: Add a comment.
88550 2008-11-11  Karl Berry  <karl@gnu.org>
88552         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
88554 2008-11-11  Eric Blake  <ebb9@byu.net>
88556         fdl.texi: avoid git symlinks
88557         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
88559 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88561         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
88563 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88565         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
88566         (gl_WARN_ADD): Substitute $2 if literal.
88568 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88570         * m4/warning.m4: Remove.
88572 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88574         * m4/warnings.m4: Almost complete rewrite. :-)
88576 2008-11-10  Simon Josefsson  <simon@josefsson.org>
88578         * modules/warnings: New module.
88579         * m4/warnings.m4: New file.
88580         * MODULES.html.sh: Mention warnings module.
88581         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
88582         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88584 2008-11-10  Eric Blake  <ebb9@byu.net>
88586         fdl.texi: make a symlink to the latest version
88587         * doc/standards.texi: Revert today's earlier change.
88588         * doc/fdl-1.2.texi: Rename from old fdl.texi...
88589         * doc/fdl.texi: ...and replace this with a symlink to the newer
88590         fdl-1.3.texi.
88592 2008-11-10  Bruno Haible  <bruno@clisp.org>
88594         * tests/test-select-fd.c (main): Accept the result file name as fourth
88595         argument.
88596         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
88597         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
88599 2008-11-10  Bruno Haible  <bruno@clisp.org>
88601         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
88602         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
88603         as autoconf-substituted macros.
88604         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
88605         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
88606         gl_NETDB_H_DEFAULTS. Set these variables.
88607         * modules/netdb (Makefile.am): Substitute these variables.
88609 2008-11-10  Eric Blake  <ebb9@byu.net>
88611         standards.texi: include correct file for FDL 1.3
88612         * doc/standards.texi (GNU Free Documentation License): Change
88613         include file to pull in FDL 1.3, not 1.2.
88615         fdl.texi: revert accidental change to license
88616         * doc/fdl.texi: This is FDL 1.2, not 1.3.
88618 2008-11-10  Bruno Haible  <bruno@clisp.org>
88620         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
88621         cross-compiling guesses also when the native compile gives no result.
88623 2008-11-10  Bruno Haible  <bruno@clisp.org>
88625         * lib/spawni.c (__spawni): Force variable into the stack.
88627 2008-11-10  Bruno Haible  <bruno@clisp.org>
88629         Add support for Haiku.
88630         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
88631         glibc and BeOS, but also on Haiku.
88632         * lib/fpurge.c (fpurge): Likewise.
88633         * lib/freadable.c (freadable): Likewise.
88634         * lib/freadahead.c (freadahead): Likewise.
88635         * lib/freading.c (freading): Likewise.
88636         * lib/freadptr.c (freadptr): Likewise.
88637         * lib/freadseek.c (freadptrinc): Likewise.
88638         * lib/fseeko.c (rpl_fseeko): Likewise.
88639         * lib/fseterr.c (fseterr): Likewise.
88640         * lib/fwritable.c (fwritable): Likewise.
88641         * lib/fwriting.c (fwriting): Likewise.
88642         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
88644 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
88646         * lib/config.charset: Treat Haiku like BeOS.
88648 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
88650         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
88651         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
88653 2008-11-08  Bruno Haible  <bruno@clisp.org>
88655         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
88656         AC_CACHE_CHECK.
88658 2008-11-08  Bruno Haible  <bruno@clisp.org>
88660         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
88662 2008-11-08  Bruno Haible  <bruno@clisp.org>
88664         * tests/test-select-fd.c: New file.
88665         * tests/test-select-in.sh: New file.
88666         * tests/test-select-out.sh: New file.
88667         * tests/test-select-stdin.c: New file.
88668         * modules/select-tests (Files): Add the new files.
88669         (Depends-on): Add gettimeofday.
88670         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
88671         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
88672         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
88674 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
88675             Bruno Haible  <bruno@clisp.org>
88677         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
88679 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
88681         * build-aux/pmccabe2html: Added support for C++ source files.
88683 2008-11-05  Ben Pfaff  <blp@gnu.org>
88685         Fix lib/close.c build on Windows.
88686         * modules/close (Files): Add lib/w32sock.h.
88688 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
88690         Accept Bison's NEWS format.
88691         * build-aux/announce-gen (print_news_deltas): Tweak
88692         $re_prefix.
88694 2008-11-04  Bruno Haible  <bruno@clisp.org>
88696         * modules/random_r (Maintainer): Add glibc.
88698 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88700         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
88701         by karl@freefriends.org (Karl Berry).
88702         * doc/alloca.texi: Likewise.
88703         * doc/c-ctype.texi: Likewise.
88704         * doc/c-strcase.texi: Likewise.
88705         * doc/c-strcaseeq.texi: Likewise.
88706         * doc/c-strcasestr.texi: Likewise.
88707         * doc/c-strstr.texi: Likewise.
88708         * doc/c-strtod.texi: Likewise.
88709         * doc/c-strtold.texi: Likewise.
88710         * doc/ctime.texi: Likewise.
88711         * doc/error.texi: Likewise.
88712         * doc/fdl.texi: Likewise.
88713         * doc/gcd.texi: Likewise.
88714         * doc/getdate.texi: Likewise.
88715         * doc/gnulib-intro.texi: Likewise.
88716         * doc/gnulib-tool.texi: Likewise.
88717         * doc/gnulib.texi: Likewise.
88718         * doc/inet_ntoa.texi: Likewise.
88719         * doc/maintain.texi: Likewise.
88720         * doc/make-stds.texi: Likewise.
88721         * doc/quote.texi: Likewise.
88722         * doc/regexprops-generic.texi: Likewise.
88723         * doc/standards.texi: Likewise.
88724         * doc/verify.texi: Likewise.
88725         * doc/visibility.texi: Likewise.
88726         * doc/gnulib.texi (GNU Free Documentation License): Include
88727         fdl-1.3.texi instead of fdl.texi.
88729 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88731         * doc/fdl-1.3.texi: New file, from
88732         <http://www.gnu.org/licenses/fdl-1.3.texi>.
88733         * modules/fdl-1.3: Add.
88734         * MODULES.html.sh: Add fdl-1.3.
88736 2008-11-03  Bruno Haible  <bruno@clisp.org>
88738         Make determination of absolute name of header file work with AIX xlc.
88739         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
88740         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
88741         preprocessing.
88742         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
88743         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
88745 2008-11-03  Simon Josefsson  <simon@josefsson.org>
88747         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
88748         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
88749         <ludo@gnu.org>.
88751 2008-11-02  Bruno Haible  <bruno@clisp.org>
88753         Mark 'strpbrk' obsolete.
88754         * modules/strpbrk (Status, Notice): New sections.
88755         * modules/strtok_r (Depends-on): Add strpbrk.
88757 2008-11-02  Bruno Haible  <bruno@clisp.org>
88759         Mark 'strdup' obsolete.
88760         * modules/strdup (Status, Notice): New sections.
88761         * modules/findprog (Depends-on): Add strdup.
88762         * modules/getaddrinfo (Depends-on): Likewise.
88763         * modules/localename (Depends-on): Likewise.
88764         * modules/relocatable-lib (Depends-on): Likewise.
88765         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
88766         * modules/relocatable-prog (Depends-on): Likewise.
88767         * modules/trim (Depends-on): Likewise.
88768         * modules/unictype/gen-ctype (Depends-on): Likewise.
88769         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
88771 2008-11-02  Bruno Haible  <bruno@clisp.org>
88773         Mark 'strcspn' obsolete.
88774         * modules/strcspn (Status, Notice): New sections.
88776 2008-11-02  Bruno Haible  <bruno@clisp.org>
88778         Mark 'rmdir' obsolete.
88779         * modules/rmdir (Status, Notice): New sections.
88780         * modules/clean-temp (Depends-on): Add rmdir.
88781         * modules/openat (Depends-on): Likewise.
88783 2008-11-02  Bruno Haible  <bruno@clisp.org>
88785         Mark 'raise' obsolete.
88786         * modules/raise (Status, Notice): New sections.
88787         (Include): Specify <signal.h>.
88788         * modules/stdio (Depends-on): Add raise.
88789         * modules/write (Depends-on): Likewise.
88791 2008-11-02  Bruno Haible  <bruno@clisp.org>
88793         Mark 'memset' obsolete.
88794         * modules/memset (Status, Notice): New sections.
88796 2008-11-02  Bruno Haible  <bruno@clisp.org>
88798         Mark 'memmove' obsolete.
88799         * modules/memmove (Status, Notice): New sections.
88800         * modules/argp (Depends-on): Add memmove.
88801         * modules/argz (Depends-on): Likewise.
88802         * modules/canonicalize (Depends-on): Likewise.
88803         * modules/canonicalize-lgpl (Depends-on): Likewise.
88804         * modules/fts (Depends-on): Likewise.
88805         * modules/getcwd (Depends-on): Likewise.
88806         * modules/human (Depends-on): Likewise.
88807         * modules/regex (Depends-on): Likewise.
88808         * modules/striconveh (Depends-on): Likewise.
88809         * modules/trim (Depends-on): Likewise.
88810         * modules/unistr/u8-move (Depends-on): Likewise.
88811         * modules/unistr/u16-move (Depends-on): Likewise.
88812         * modules/unistr/u32-move (Depends-on): Likewise.
88814 2008-11-02  Bruno Haible  <bruno@clisp.org>
88816         Mark 'memcpy' obsolete.
88817         * modules/memcpy (Status, Notice): New sections.
88819 2008-11-02  Bruno Haible  <bruno@clisp.org>
88821         Mark 'memcmp' obsolete.
88822         * modules/memcmp (Status, Notice): New sections.
88823         * modules/argmatch (Depends-on): Add memchr.
88824         * modules/backupfile (Depends-on): Likewise.
88825         * modules/c-strcasestr (Depends-on): Likewise.
88826         * modules/crypto/des (Depends-on): Likewise.
88827         * modules/csharpcomp (Depends-on): Likewise.
88828         * modules/fnmatch (Depends-on): Likewise.
88829         * modules/git-merge-changelog (Depends-on): Likewise.
88830         * modules/isnand (Depends-on): Likewise.
88831         * modules/isnand-nolibm (Depends-on): Likewise.
88832         * modules/isnanf (Depends-on): Likewise.
88833         * modules/isnanf-nolibm (Depends-on): Likewise.
88834         * modules/isnanl (Depends-on): Likewise.
88835         * modules/isnanl-nolibm (Depends-on): Likewise.
88836         * modules/mbchar (Depends-on): Likewise.
88837         * modules/memcoll (Depends-on): Likewise.
88838         * modules/quotearg (Depends-on): Likewise.
88839         * modules/regex (Depends-on): Likewise.
88840         * modules/relocatable-prog (Depends-on): Likewise.
88841         * modules/same (Depends-on): Likewise.
88842         * modules/signbit (Depends-on): Likewise.
88843         * modules/strcasestr-simple (Depends-on): Likewise.
88844         * modules/unictype/gen-ctype (Depends-on): Likewise.
88845         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
88846         * modules/uniname/uniname (Depends-on): Likewise.
88847         * modules/unistr/u8-cmp (Depends-on): Likewise.
88849 2008-11-02  Bruno Haible  <bruno@clisp.org>
88851         Mark 'memchr' obsolete.
88852         * modules/memchr (Status, Notice): New sections.
88853         * modules/argp (Depends-on): Add memchr.
88854         * modules/base64 (Depends-on): Likewise.
88855         * modules/c-strcasestr (Depends-on): Likewise.
88856         * modules/chdir-long (Depends-on): Likewise.
88857         * modules/fnmatch (Depends-on): Likewise.
88858         * modules/getsubopt (Depends-on): Likewise.
88859         * modules/git-merge-changelog (Depends-on): Likewise.
88860         * modules/glob (Depends-on): Likewise.
88861         * modules/strcasestr-simple (Depends-on): Likewise.
88862         * modules/strnlen (Depends-on): Likewise.
88864 2008-11-02  Bruno Haible  <bruno@clisp.org>
88866         Mark 'atexit' obsolete.
88867         * modules/atexit (Status, Notice): New sections.
88868         * modules/chdir-long (Depends-on): Add atexit.
88869         * modules/wait-process (Depends-on): Likewise.
88871 2008-11-02  Bruno Haible  <bruno@clisp.org>
88873         * gnulib-tool: New option --with-obsolete.
88874         (func_usage): Document it.
88875         (func_modules_transitive_closure): Drop obsolete dependencies if
88876         incobsolete is not true.
88877         (func_import): Read and save the incobsolete variable to the cache.
88879 2008-11-02  Bruno Haible  <bruno@clisp.org>
88881         * modules/TEMPLATE-EXTENDED: New field 'Status'.
88882         * gnulib-tool: New option --extract-status.
88883         (func_usage): Document it.
88884         (sed_extract_prog): Recognize it.
88885         (func_get_status): New function.
88887 2008-10-30  Simon Josefsson  <simon@josefsson.org>
88889         * modules/sockets (License): Change from LGPL to LGPLv2+.
88891 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88893         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
88895 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88897         * MODULES.html.sh (Support for systems lacking POSIX:2001):
88898         Mention times and sys_times.
88899         * modules/sys_times, modules/sys_times-tests: New modules.
88900         * modules/times, modules/times-tests: Likewise
88901         * m4/sys_times_h.m4: New file.
88902         * lib/sys_times.in.h: Likewise
88903         * lib/times.c: Likewise.
88904         * tests/test-sys_times.c: Likewise.
88905         * tests/test-times.c: Likewise.
88906         * doc/posix-headers/sys_times.texi: Update.
88907         * doc/posix-functions/times.texi: Update.
88909 2008-10-28  Jim Meyering  <meyering@redhat.com>
88911         * modules/tempname (Depends-on): Add lstat.
88913         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
88915 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88917         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
88918         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
88919         using idiom used elsewhere in gnulib.
88921 2008-10-27  Jim Meyering  <meyering@redhat.com>
88923         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
88925 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88927         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
88928         TESTS_ENVIRONMENT, for shell scripts that needs to call built
88929         programs.
88930         * tests/test-argp-2.sh: Use $EXEEXT when needed.
88932 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88934         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
88936 2008-10-27  Bruno Haible  <bruno@clisp.org>
88938         * tests/test-lstat.c: Include <stdio.h>.
88940 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88942         * modules/lstat-tests: New module.
88943         * tests/test-lstat.c: New file.
88945 2008-10-26  Jim Meyering  <meyering@redhat.com>
88947         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
88949 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88950             Bruno Haible  <bruno@clisp.org>
88952         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
88953         * modules/configmake (Include): Add a note that the include must come
88954         after all system headers.
88955         * lib/javaversion.c: Include configmake.h after all other includes.
88957 2008-10-26  Bruno Haible  <bruno@clisp.org>
88959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
88960         HAVE_STRUCT_RANDOM_DATA to 1.
88961         (gl_STDLIB_H): Simplify.
88963 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88965         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
88966         substitute HAVE_STRUCT_RANDOM_DATA.
88967         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
88968         random_data.
88969         * modules/stdlib (Makefile.am): Substitute
88970         HAVE_STRUCT_RANDOM_DATA.
88972 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88974         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
88975         * doc/gnulib-intro.texi (Copyright): Likewise.
88977 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88979         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
88980         findings.
88982 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
88983             Bruno Haible  <bruno@clisp.org>
88985         * lib/unistd.in.h: Include <winsock2.h>.
88986         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
88987         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
88988         Provide dummy declarations.
88989         (gethostname): Override.
88990         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
88991         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
88992         gl_PREREQ_SYS_H_WINSOCK2.
88993         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
88994         * doc/posix-functions/gethostname.texi: More details.
88996 2008-10-25  Bruno Haible  <bruno@clisp.org>
88998         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
88999         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
89000         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
89002         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
89003         here ...
89004         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
89005         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
89006         gl_UNISTD_H_DEFAULTS.
89008 2008-10-25  Eric Blake  <ebb9@byu.net>
89010         signbit: avoid spurious compiler failure
89011         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
89012         declarations inside function.
89014 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89015             Bruno Haible  <bruno@clisp.org>
89017         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
89018         * modules/random_r (Depends-on): Add stdint.
89020 2008-10-24  Bruno Haible  <bruno@clisp.org>
89022         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
89023         Eggert.
89024         * modules/strerror (License): Likewise.
89026 2008-10-24  Jim Meyering  <meyering@redhat.com>
89028         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
89029         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
89031 2008-10-24  Eric Blake  <ebb9@byu.net>
89033         getgroups: fix compilation when getgroups is available
89034         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
89035         but with <config.h> override of getgroups disabled.
89037 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89039         * doc/gnulib.texi (Header files): Add note about C++ problems.
89040         Explained by Bruno Haible <bruno@clisp.org>.
89042 2008-10-23  Bruno Haible  <bruno@clisp.org>
89044         Define a dummy SA_NODEFER macro on Interix.
89045         * lib/signal.in.h (SA_NODEFER): Define fallback.
89046         Reported by Aleksey Cheusov <cheusov@tut.by> via
89047         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
89049 2008-10-23  Bruno Haible  <bruno@clisp.org>
89051         * modules/freadahead (License): Change to LGPLv2+.
89052         Suggested by Simon Josefsson.
89054 2008-10-23  Jim Meyering  <meyering@redhat.com>
89056         random_r: new module
89057         * modules/random_r: New file.
89058         * m4/random_r.m4: New file.
89059         * lib/random_r.c: New file, from glibc.
89060         * modules/random_r-tests: New file.
89061         * tests/test-random_r.c: New file.
89062         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
89063          Declare.
89064         (RAND_MAX): Define.
89065         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
89066         * modules/stdlib: Substitute them, too.
89067         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
89068         * doc/glibc-functions/initstate_r.texi: Mention the new module.
89069         * doc/glibc-functions/random_r.texi: Likewise.
89070         * doc/glibc-functions/setstate_r.texi: Likewise.
89071         * doc/glibc-functions/srandom_r.texi: Likewise.
89072         * config/srclist.txt: Mention it.
89074 2008-10-23  David Lutterkort  <lutter@redhat.com>
89076         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
89077         link requirement
89079 2008-10-23  Jim Meyering  <meyering@redhat.com>
89081         selinux-h: mark parameters of stub functions as intentionally unused
89082         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
89083         * lib/se-context.in.h: Likewise.
89085 2008-10-22  Simon Josefsson  <simon@josefsson.org>
89087         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
89089 2008-10-22  Simon Josefsson  <simon@josefsson.org>
89091         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
89093 2008-10-22  Eric Blake  <ebb9@byu.net>
89095         glthread/thread: avoid compiler warning
89096         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
89097         Add unreachable abort to silence compiler.
89099 2008-10-22  Eric Blake  <ebb9@byu.net>
89101         netdb: also supply struct addrinfo for cygwin 1.5.x
89102         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
89103         older cygwin.
89104         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
89105         cygwin.
89106         * doc/posix-headers/netdb.texi (netdb.h): Document this.
89108 2008-10-22  Bruno Haible  <bruno@clisp.org>
89110         * users.txt: Update entry about pspp.
89112 2008-10-21  Bruno Haible  <bruno@clisp.org>
89114         Simplification.
89115         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
89116         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
89118         Simplification.
89119         * lib/ioctl.c (ioctl): Don't undefine.
89120         * lib/socket.c (socket): Don't undefine.
89122         Remove unused module indicator macros.
89123         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
89124         GNULIB_$1 as a C macro.
89126         * doc/posix-functions/close.texi: Undo last change.
89127         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
89128         Windows platforms.
89130 2008-10-21  Bruno Haible  <bruno@clisp.org>
89132         Add gethostname() declaration to <unistd.h>.
89133         * lib/unistd.in.h (gethostname): New declaration.
89134         * lib/gethostname.c: Include <unistd.h>.
89135         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
89136         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
89137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
89138         and HAVE_GETHOSTNAME.
89139         * modules/gethostname (Depends-on): Add unistd.
89140         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89141         (Include): Specify <unistd.h>.
89142         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
89143         HAVE_GETHOSTNAME.
89144         * tests/test-gethostname.c: Include <unistd.h> first.
89146 2008-10-21  Bruno Haible  <bruno@clisp.org>
89148         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
89149         * modules/select-tests (Depends-on): Likewise.
89150         Reported by Simon Josefsson.
89152 2008-10-21  Simon Josefsson  <simon@josefsson.org>
89154         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
89155         * lib/accept.c: New file, based on winsock.c.
89156         * lib/bind.c: New file, based on winsock.c.
89157         * lib/connect.c: New file, based on winsock.c.
89158         * lib/getpeername.c: New file, based on winsock.c.
89159         * lib/getsockname.c: New file, based on winsock.c.
89160         * lib/getsockopt.c: New file, based on winsock.c.
89161         * lib/ioctl.c: New file, based on winsock.c.
89162         * lib/listen.c: New file, based on winsock.c.
89163         * lib/recv.c: New file, based on winsock.c.
89164         * lib/recvfrom.c: New file, based on winsock.c.
89165         * lib/send.c: New file, based on winsock.c.
89166         * lib/sendto.c: New file, based on winsock.c.
89167         * lib/setsockopt.c: New file, based on winsock.c.
89168         * lib/shutdown.c: New file, based on winsock.c.
89169         * lib/socket.c: New file, based on winsock.c.
89170         * lib/w32sock.h: New file, based on winsock.c.
89171         * lib/winsock.c: Remove file.
89172         * modules/accept: Likewise.
89173         * modules/bind: Likewise.
89174         * modules/connect: Likewise.
89175         * modules/getpeername: Likewise.
89176         * modules/getsockname: Likewise.
89177         * modules/getsockopt: Likewise.
89178         * modules/ioctl: Likewise.
89179         * modules/listen: Likewise.
89180         * modules/recv: Likewise.
89181         * modules/recvfrom: Likewise.
89182         * modules/send: Likewise.
89183         * modules/sendto: Likewise.
89184         * modules/setsockopt: Likewise.
89185         * modules/shutdown: Likewise.
89186         * modules/socket: Use socket.c instead of winsock.c.
89187         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
89188         * doc/posix-functions/accept.texi: Doc fix.
89189         * doc/posix-functions/bind.texi: Doc fix.
89190         * doc/posix-functions/close.texi: Doc fix.
89191         * doc/posix-functions/connect.texi: Doc fix.
89192         * doc/posix-functions/getpeername.texi: Doc fix.
89193         * doc/posix-functions/getsockname.texi: Doc fix.
89194         * doc/posix-functions/getsockopt.texi: Doc fix.
89195         * doc/posix-functions/ioctl.texi: Doc fix.
89196         * doc/posix-functions/listen.texi: Doc fix.
89197         * doc/posix-functions/recv.texi: Doc fix.
89198         * doc/posix-functions/recvfrom.texi: Doc fix.
89199         * doc/posix-functions/send.texi: Doc fix.
89200         * doc/posix-functions/sendto.texi: Doc fix.
89201         * doc/posix-functions/setsockopt.texi: Doc fix.
89202         * doc/posix-functions/shutdown.texi: Doc fix.
89203         * doc/posix-functions/socket.texi: Doc fix.
89205 2008-10-20  Bruno Haible  <bruno@clisp.org>
89207         Take into account the role of SIGABRT_COMPAT on Windows 2008.
89208         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
89209         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
89210         as an alias for SIGABRT.
89211         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
89212         (sigaction): Map it to SIGABRT.
89213         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
89215 2008-10-20  Bruno Haible  <bruno@clisp.org>
89217         * lib/fts.c: Don't include lstat.h.
89218         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
89220         Move the lstat() declaration to <sys/stat.h>.
89221         * lib/lstat.h: Remove file.
89222         * lib/sys_stat.in.h: Add special invocation convention.
89223         (lstat): New declaration.
89224         * lib/lstat.c (orig_lstat): New function.
89225         (rpl_lstat): Use orig_lstat instead of lstat.
89226         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
89227         AC_C_INLINE. Set REPLACE_LSTAT.
89228         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
89229         and REPLACE_LSTAT.
89230         * modules/lstat (Files): Remove lib/lstat.h.
89231         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89232         (Include): Specify <sys/stat.h> instead of lstat.h.
89233         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
89234         REPLACE_LSTAT.
89235         * NEWS: Mention the change.
89237 2008-10-20  Bruno Haible  <bruno@clisp.org>
89239         * modules/posix_spawn-tests: New file.
89240         * tests/test-posix_spawn3.c: New file.
89242 2008-10-20  Bruno Haible  <bruno@clisp.org>
89244         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
89245         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
89246         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
89247         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
89248         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
89250 2008-10-20  Bruno Haible  <bruno@clisp.org>
89252         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
89253         of posix_spawn on AIX 5.3.
89255 2008-10-20  Bruno Haible  <bruno@clisp.org>
89257         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
89259 2008-10-20  Bruno Haible  <bruno@clisp.org>
89261         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
89262         of AC_LANG_PROGRAM.
89264 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89266         * lib/netdb.in.h: Don't define GNU specific constants until they
89267         are supported or needed.  Reported by Bruno Haible
89268         <bruno@clisp.org>.
89270 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89272         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
89274 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89276         * lib/getaddrinfo.h: Remove file.
89277         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
89278         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
89279         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
89280         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
89281         * modules/netdb: Substitute GNULIB_GETADDRINFO.
89282         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
89283         * tests/test-getaddrinfo.c: Likewise.
89284         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
89285         * NEWS: Mention change.
89287 2008-10-19  Bruno Haible  <bruno@clisp.org>
89289         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
89291 2008-10-19  Bruno Haible  <bruno@clisp.org>
89293         * lib/wait-process.c: Include simply <sys/wait.h>.
89294         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
89295         WIFSTOPPED): Remove fallback definitions.
89296         * modules/wait-process (Depends-on): Add sys_wait.
89298         New module 'sys_wait'.
89299         * modules/sys_wait: New file.
89300         * lib/sys_wait.in.h: New file, partially copied from
89301         lib/wait-process.c.
89302         * m4/sys_wait_h.m4: New file.
89303         * doc/posix-headers/sys_wait.texi: Mention the new module.
89305 2008-10-19  Bruno Haible  <bruno@clisp.org>
89307         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
89309 2008-10-19  Bruno Haible  <bruno@clisp.org>
89311         Assume that waitpid() fills an 'int' status, not a 'union wait'.
89312         * lib/wait-process.c (WAIT_T): Remove type.
89313         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
89314         (wait_subprocess): Update.
89316 2008-10-19  Bruno Haible  <bruno@clisp.org>
89318         New module 'atoll'.
89319         * modules/atoll: New file.
89320         * lib/stdlib.in.h (atoll): New declaration.
89321         * lib/atoll.c: New file, from glibc with modifications.
89322         * m4/atoll.m4: New file.
89323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
89324         HAVE_ATOLL.
89325         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
89326         * doc/posix-functions/atoll.texi: Mention the new module.
89328 2008-10-19  Bruno Haible  <bruno@clisp.org>
89330         Add strtoull() declaration to <stdlib.h>.
89331         * lib/stdlib.in.h (strtoull): New declaration.
89332         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89333         Set HAVE_STRTOULL.
89334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
89335         HAVE_STRTOULL.
89336         * modules/strtoull (Depends-on): Add stdlib.
89337         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89338         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
89339         HAVE_STRTOULL.
89341 2008-10-19  Bruno Haible  <bruno@clisp.org>
89343         Add strtoll() declaration to <stdlib.h>.
89344         * lib/stdlib.in.h (strtoll): New declaration.
89345         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89346         Set HAVE_STRTOLL.
89347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
89348         HAVE_STRTOLL.
89349         * modules/strtoll (Depends-on): Add stdlib.
89350         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89351         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
89353 2008-10-19  Bruno Haible  <bruno@clisp.org>
89355         * modules/bcopy (Depends-on): Add strings.
89356         (Include): Specify <strings.h>.
89358 2008-10-19  Bruno Haible  <bruno@clisp.org>
89360         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
89362 2008-10-19  Bruno Haible  <bruno@clisp.org>
89364         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
89365         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
89366         mingw.
89368 2008-10-19  Bruno Haible  <bruno@clisp.org>
89370         * lib/atanl.c: Don't include isnanl.h.
89371         * lib/cosl.c: Likewise.
89372         * lib/ldexpl.c: Likewise.
89373         * lib/logl.c: Likewise.
89374         * lib/sinl.c: Likewise.
89375         * lib/sqrtl.c: Likewise.
89376         * lib/tanl.c: Likewise.
89378         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
89379         * lib/isnanf.h: Remove file.
89380         * lib/isnand.h: Remove file.
89381         * lib/isnanl.h: Remove file.
89382         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
89383         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
89384         macros.
89385         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
89386         HAVE_ISNANF, don't define it as a C macro.
89387         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
89388         HAVE_ISNAND, don't define it as a C macro.
89389         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
89390         HAVE_ISNANL, don't define it as a C macro.
89391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
89392         HAVE_ISNAN[FDL].
89393         * modules/isnanf (Files): Remove lib/isnanf.h.
89394         (Depends-on): Add math.
89395         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89396         (Include): Specify <math.h> instead of isnanf.h.
89397         * modules/isnand (Files): Remove lib/isnand.h.
89398         (Depends-on): Add math.
89399         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89400         (Include): Specify <math.h> instead of isnand.h.
89401         * modules/isnanl (Files): Remove lib/isnanl.h.
89402         (Depends-on): Add math.
89403         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89404         (Include): Specify <math.h> instead of isnanl.h.
89405         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
89406         HAVE_ISNAN[FDL].
89407         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
89408         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
89409         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
89410         * NEWS: Mention the change.
89412 2008-10-18  Bruno Haible  <bruno@clisp.org>
89414         Add getusershell(), setusershell(), endusershell() declarations to
89415         <unistd.h>.
89416         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
89417         declarations.
89418         * lib/getusershell.c: Include unistd.h.
89419         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
89420         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89421         HAVE_GETUSERSHELL.
89422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
89423         and HAVE_GETUSERSHELL.
89424         * modules/getusershell (Depends-on): Add unistd, extensions.
89425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89426         (Include): Specify <unistd.h>.
89427         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
89428         HAVE_GETUSERSHELL.
89430 2008-10-18  Bruno Haible  <bruno@clisp.org>
89432         Add a getloadavg() declaration to <stdlib.h>.
89433         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
89434         getloadavg declaration.
89435         (getloadavg): New declaration.
89436         * lib/getloadavg.c: Include <stdlib.h> first.
89437         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
89438         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
89439         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
89440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
89441         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89442         * modules/getloadavg (Depends-on): Add stdlib, extensions.
89443         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89444         (Include): Specify <stdlib.h>.
89445         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
89446         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89448 2008-10-18  Bruno Haible  <bruno@clisp.org>
89450         * lib/dirchownmod.c: Don't include lchmod.h.
89452         Move the lchmod() declaration to <sys/stat.h>.
89453         * lib/lchmod.h: Remove file.
89454         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
89455         (lchmod): New declaration, moved here from lib/lchown.h.
89456         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
89457         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
89458         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
89459         and HAVE_LCHMOD.
89460         * modules/lchmod (Files): Remove lib/lchmod.h.
89461         (Depends-on): Add sys_stat, extensions.
89462         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89463         (Include): Specify <sys/stat.h> instead of lchmod.h.
89464         * modules/sys_stat (Depends-on): Add link-warning.
89465         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
89466         definition of GL_LINK_WARNING.
89467         * NEWS: Mention the change.
89469 2008-10-18  Bruno Haible  <bruno@clisp.org>
89471         * lib/fchdir.c: Don't include dirfd.h.
89472         * lib/fts.c: Likewise.
89473         * lib/getcwd.c: Likewise.
89474         * lib/glob.c: Likewise.
89476         Move the dirfd() declaration to <dirent.h>.
89477         * lib/dirfd.h: Remove file.
89478         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
89479         (dirfd): New declaration.
89480         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
89481         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
89482         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
89483         HAVE_DECL_DIRFD.
89484         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
89485         HAVE_DECL_DIRFD.
89486         * modules/dirfd (Files): Remove lib/dirfd.h.
89487         (Depends-on): Add dirent, extensions.
89488         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
89489         (Include): Specify <dirent.h> instead of dirfd.h.
89490         * modules/dirent (Depends-on): Add link-warning.
89491         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
89492         definition of GL_LINK_WARNING.
89493         * NEWS: Mention the change.
89495 2008-10-18  Bruno Haible  <bruno@clisp.org>
89497         Move the euidaccess() declaration to <unistd.h>.
89498         * lib/euidaccess.h: Remove file.
89499         * lib/unistd.in.h (euidaccess): New declaration.
89500         * lib/euidaccess.c: Don't include euidaccess.h.
89501         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
89502         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
89503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
89504         and HAVE_EUIDACCESS.
89505         * modules/euidaccess (Files): Remove lib/euidaccess.h.
89506         (Depends-on): Add unistd.
89507         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89508         (Include): Specify <unistd.h> instead of euidaccess.h.
89509         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
89510         HAVE_EUIDACCESS.
89511         * NEWS: Mention the change.
89513 2008-10-18  Bruno Haible  <bruno@clisp.org>
89515         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
89517         Move the getdomainname() declaration to <unistd.h>.
89518         * lib/getdomainname.h: Remove file.
89519         * lib/unistd.in.h (getdomainname): New declaration.
89520         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
89521         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
89522         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89523         HAVE_GETDOMAINNAME.
89524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89525         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
89526         * modules/getdomainname (Files): Remove lib/getdomainname.h.
89527         (Depends-on): Add unistd, extensions.
89528         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89529         (Includes): Specify <unistd.h> instead of getdomainname.h.
89530         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
89531         HAVE_GETDOMAINNAME.
89532         * NEWS: Mention the change.
89534 2008-10-18  Bruno Haible  <bruno@clisp.org>
89536         * modules/dirent: New file.
89537         * m4/dirent_h.m4: New file.
89538         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
89539         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
89540         * modules/fchdir (Files): Remove lib/dirent.in.h.
89541         (Depends-on): Add dirent.
89542         (Makefile.am): Move rules to modules/dirent.
89543         * doc/posix-headers/dirent.texi: Mention the new module.
89545 2008-10-18  Bruno Haible  <bruno@clisp.org>
89547         Avoid -Wunused-parameter warnings in public gnulib header files.
89548         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
89549         macro.
89550         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
89552 2008-10-18  Bruno Haible  <bruno@clisp.org>
89554         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
89555         * doc/glibc-functions/error.texi: Mention the module 'error'.
89556         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
89557         * doc/glibc-functions/getdomainname.texi: Mention the module
89558         'getdomainname'.
89559         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
89560         * doc/glibc-functions/getpagesize.texi: Mention the module
89561         'getpagesize'.
89562         * doc/glibc-functions/getusershell.texi: Mention the module
89563         'getusershell'.
89564         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
89565         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
89566         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
89567         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
89568         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
89569         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
89570         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
89571         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
89572         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
89573         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
89574         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
89575         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
89576         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
89577         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
89579 2008-10-17  Bruno Haible  <bruno@clisp.org>
89581         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
89582         HP-UX and IRIX, use -0.0L.
89583         * tests/test-ceill.c (minus_zero): Likewise.
89584         * tests/test-floorl.c (minus_zero): Likewise.
89585         * tests/test-frexpl.c (minus_zero): Likewise.
89586         * tests/test-isnan.c (minus_zerol): Likewise.
89587         * tests/test-isnanl.h (minus_zero): Likewise.
89588         * tests/test-ldexpl.c (minus_zero): Likewise.
89589         * tests/test-roundl.c (minus_zero): Likewise.
89590         * tests/test-signbit.c (minus_zerol): Likewise.
89591         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
89592         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
89593         * tests/test-truncl.c (minus_zero): Likewise.
89594         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
89595         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
89596         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
89597         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
89599 2008-10-17  Bruno Haible  <bruno@clisp.org>
89601         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
89602         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
89603         that it gets activated only for gcc >= 3.0.
89604         * lib/dirent.in.h: Likewise.
89605         * lib/errno.in.h: Likewise.
89606         * lib/fcntl.in.h: Likewise.
89607         * lib/float.in.h: Likewise.
89608         * lib/iconv.in.h: Likewise.
89609         * lib/inttypes.in.h: Likewise.
89610         * lib/locale.in.h: Likewise.
89611         * lib/math.in.h: Likewise.
89612         * lib/netdb.in.h: Likewise.
89613         * lib/netinet_in.in.h: Likewise.
89614         * lib/search.in.h: Likewise.
89615         * lib/signal.in.h: Likewise.
89616         * lib/spawn.in.h: Likewise.
89617         * lib/stdarg.in.h: Likewise.
89618         * lib/stdint.in.h: Likewise.
89619         * lib/stdio.in.h: Likewise.
89620         * lib/stdlib.in.h: Likewise.
89621         * lib/string.in.h: Likewise.
89622         * lib/strings.in.h: Likewise.
89623         * lib/sys_file.in.h: Likewise.
89624         * lib/sys_ioctl.in.h: Likewise.
89625         * lib/sys_select.in.h: Likewise.
89626         * lib/sys_socket.in.h: Likewise.
89627         * lib/sys_stat.in.h: Likewise.
89628         * lib/sys_time.in.h: Likewise.
89629         * lib/sysexits.in.h: Likewise.
89630         * lib/time.in.h: Likewise.
89631         * lib/unistd.in.h: Likewise.
89632         * lib/wchar.in.h: Likewise.
89633         * lib/wctype.in.h: Likewise.
89634         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
89636 2008-10-17  Jim Meyering  <meyering@redhat.com>
89638         ignore-value: don't depend on inline module
89639         * modules/ignore-value (Depends-on): Remove 'inline'.
89640         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
89641         Suggestion from Bruno Haible.
89643 2008-10-17  Bruno Haible  <bruno@clisp.org>
89645         New implementation of condition variables for Win32.
89646         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
89647         (gl_linked_waitqueue_t): New type.
89648         (gl_cond_t): Use it.
89649         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
89650         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
89651         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
89652         (glthread_cond_init_func, glthread_cond_wait_func,
89653         glthread_cond_timedwait_func, glthread_cond_signal_func,
89654         glthread_cond_broadcast_func, glthread_cond_destroy_func):
89655         Reimplemented on the basis of gl_linked_waitqueue_t.
89656         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
89657         gl_waitqueue_t.
89658         (gl_rwlock_t): Update.
89659         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
89661 2008-10-17  Simon Josefsson  <simon@josefsson.org>
89663         * modules/recvfrom (Depends-on): Add dependency on getpeername.
89664         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89666 2008-10-17  Jim Meyering  <meyering@redhat.com>
89668         ignore-value: new module
89669         * modules/ignore-value: New file.
89670         * lib/ignore-value.h: New file.
89671         * MODULES.html.sh (Compiler warning management): New section,
89672         just for this module.  More to come.
89674 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89676         open-safer.c: avoid 'signed and unsigned in conditional...' warning
89677         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
89678         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
89680 2008-10-16  Jim Meyering  <meyering@redhat.com>
89682         openat-die.c: avoid 'no previous prototype' warning
89683         * lib/openat-die.c: Include "openat.h".
89684         Reported by Reuben Thomas <rrt@sc3d.org>.
89686 2008-10-16  Simon Josefsson  <simon@josefsson.org>
89688         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
89689         * lib/netdb.in.h: Fix typo.
89690         Reported by Bruno Haible  <bruno@clisp.org>
89692         * lib/netdb.in.h: Include sys/socket.h for platforms without
89693         netdb.h, to get structures like hostent on MinGW.
89694         * modules/netdb (Depends-on): Add sys_socket.
89696 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89698         * modules/netdb, modules/netdb-tests: New file.
89699         * m4/netdb_h.m4: New file.
89700         * lib/netdb.in.h: Add, currently just an empty file pending
89701         definitions.
89702         * tests/test-netdb.c: New file.
89703         * doc/posix-headers/netdb.texi: Mention that we replace it if
89704         needed.
89705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89706         netdb.
89708 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89710         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
89711         with code.
89713 2008-10-13  Bruno Haible  <bruno@clisp.org>
89715         * lib/glthread/cond.c (glthread_cond_wait_func,
89716         glthread_cond_timedwait_func): Add a comment.
89718 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89720         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
89721         * tests/test-select.c: Likewise,
89723 2008-10-13  Bruno Haible  <bruno@clisp.org>
89725         * lib/glthread/cond.c (glthread_cond_wait_func,
89726         glthread_cond_timedwait_func): Fix variable name.
89727         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89729 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
89731         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
89732         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
89733         struct sockaddr.sa_len.
89734         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
89736 2008-10-13  Simon Josefsson  <simon@josefsson.org>
89738         * build-aux/pmccabe2html: Add css and css_url parameters.
89740 2008-10-12  Bruno Haible  <bruno@clisp.org>
89742         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
89743         calling aclx_get.
89744         Reported by Rainer Tammer <tammer@tammer.net>.
89746 2008-10-12  Bruno Haible  <bruno@clisp.org>
89748         Use msvcrt aware primitives for creation/termination of Win32 threads.
89749         * lib/glthread/thread.c: Include <process.h>.
89750         (glthread_create_func): Use _beginthreadex instead of CreateThread.
89751         (wrapper_func): Update signature.
89752         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
89754 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89755             Bruno Haible  <bruno@clisp.org>
89757         Provide a Win32 implementation of the 'cond' module.
89758         * lib/glthread/cond.h [USE_WIN32]: New implementation.
89759         * lib/glthread/cond.c (glthread_cond_init_func,
89760         glthread_cond_wait_func, glthread_cond_timedwait_func,
89761         glthread_cond_signal_func, glthread_cond_broadcast_func,
89762         glthread_cond_destroy_func) [USE_WIN32]: New functions.
89763         * modules/cond (Dependencies): Add gettimeofday.
89765 2008-10-11  Bruno Haible  <bruno@clisp.org>
89767         Make sleep work on older versions of mingw.
89768         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
89769         only whether it exists.
89770         * doc/posix-functions/sleep.texi: Mention the problem with older
89771         versions of mingw.
89773 2008-10-11  Bruno Haible  <bruno@clisp.org>
89775         New module 'shutdown'.
89776         * modules/shutdown: New file.
89777         * lib/sys_socket.in.h (shutdown): New declaration.
89778         * lib/winsock.c (shutdown): New function.
89779         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
89780         GNULIB_SHUTDOWN.
89781         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
89782         * doc/posix-functions/shutdown.texi: Document the new module.
89784 2008-10-11  Jim Meyering  <meyering@redhat.com>
89786         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
89788 2008-10-11  Bruno Haible  <bruno@clisp.org>
89790         New module 'fclose'.
89791         * modules/fclose: New file.
89792         * lib/stdio.in.h (fclose): New declaration.
89793         * lib/fclose.c: New file.
89794         * m4/fclose.m4: New file.
89795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
89796         REPLACE_FCLOSE.
89797         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
89798         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
89799         REPLACE_FCLOSE.
89800         * modules/close (Depends-on): fclose.
89801         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
89803 2008-10-11  Bruno Haible  <bruno@clisp.org>
89805         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
89806         set errno and don't call _close.
89808 2008-10-10  Bruno Haible  <bruno@clisp.org>
89810         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
89811         ACL, not afterwards. Fixes test failure on Cygwin.
89813 2008-10-09  Ben Pfaff  <blp@gnu.org>
89815         * build-aux/announce-gen: Fix gnulib version related part of usage
89816         message.  Die with a useful error message if no tarballs are
89817         found.
89819 2008-10-10  Jim Meyering  <meyering@redhat.com>
89821         bootstrap: use git's --depth=N option only if it's supported
89822         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
89823         recognize the --depth option.  Reported by Pádraig Brady.
89825 2008-10-09  Bruno Haible  <bruno@clisp.org>
89827         New module 'ioctl'.
89828         * modules/ioctl: New file.
89829         * lib/sys_socket.in.h (ioctl): Remove declaration.
89830         * lib/winsock.c: Include <sys/ioctl.h>.
89831         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
89832         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
89833         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
89834         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
89835         * doc/posix-functions/ioctl.texi: Mention the new module.
89837 2008-10-09  Bruno Haible  <bruno@clisp.org>
89839         New module 'sys_ioctl'.
89840         * lib/sys_ioctl.in.h: New file.
89841         * m4/sys_ioctl_h.m4: New file.
89842         * modules/sys_ioctl: New file.
89843         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
89845 2008-10-09  Bruno Haible  <bruno@clisp.org>
89847         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
89848         * lib/winsock.c: Include <stdarg.h>.
89849         (rpl_ioctl): Change to second argument 'int' and then varargs.
89851 2008-10-09  Bruno Haible  <bruno@clisp.org>
89853         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
89854         when the sys_socket module is present and the system has <winsock2.h>.
89856 2008-10-09  Bruno Haible  <bruno@clisp.org>
89858         * doc/posix-functions/close.texi: Mention module 'close' instead of
89859         module 'sys_socket'.
89861 2008-10-09  Bruno Haible  <bruno@clisp.org>
89863         * doc/glibc-headers/sys_ioctl.texi: New file.
89864         * doc/gnulib.texi: Include it.
89866 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89867             Bruno Haible  <bruno@clisp.org>
89869         Combine the two replacements of 'close'.
89870         * lib/sys_socket.in.h (close): Define to a reminder to include
89871         <unistd.h>.
89872         (_gl_close_fd_maybe_socket): New declaration.
89873         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
89874         * lib/winsock.c (close): Remove undefinition.
89875         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
89876         needed for the gnulib module 'close'.
89877         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
89878         define to an error symbol or to a warning, if suitable.
89879         * lib/close.c: Include <sys/socket.h>.
89880         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
89881         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
89882         UNISTD_H_HAVE_WINSOCK2_H.
89883         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
89884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89885         UNISTD_H_HAVE_WINSOCK2_H.
89886         * modules/sys_socket (Files): Add m4/unistd_h.m4.
89887         (configure.ac): Set a module indicator.
89888         (Makefile.am): Substitute GNULIB_CLOSE.
89889         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
89890         * modules/poll-tests (Depends-on): Add close.
89891         * modules/select-tests (Depends-on): Likewise.
89893 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89894             Bruno Haible  <bruno@clisp.org>
89896         New module 'close'.
89897         * modules/close: New file.
89898         * lib/unistd.in.h (close): Move declaration out of the
89899         FCHDIR_REPLACEMENT scope.
89900         (_gl_unregister_fd): New declaration.
89901         * lib/close.c: New file.
89902         * lib/fchdir.c (rpl_close): Remove function.
89903         * m4/close.m4: New file.
89904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
89905         close.
89906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
89907         REPLACE_CLOSE.
89908         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
89909         REPLACE_CLOSE.
89910         * modules/fchdir (Depends-on): Add close.
89912 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89913             Bruno Haible  <bruno@clisp.org>
89915         * lib/fcntl.in.h (open): Simplify conditionals.
89916         (_gl_register_fd): New declaration.
89917         * lib/fchdir.c (rpl_open): Remove function.
89918         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
89919         also.
89920         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
89921         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
89922         open.
89924 2008-10-09  Jim Meyering  <meyering@redhat.com>
89926         GNUmakefile: use the more name-space-friendly "_version"
89927         * top/GNUmakefile (_dummy): Update.
89928         (_version): Rename from "version".
89930 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89931             Bruno Haible  <bruno@clisp.org>
89933         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
89934         rpl_close.
89935         (_gl_register_fd): New function, extracted from rpl_open.
89936         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
89937         (rpl_open, rpl_opendir): Use _gl_register_fd.
89939 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89941         Fix organization of 'open' replacement.
89942         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
89943         (gl_FUNC_OPEN): Use it.
89944         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
89946 2008-10-08  Bruno Haible  <bruno@clisp.org>
89948         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
89950 2008-10-08  Simon Josefsson  <simon@josefsson.org>
89952         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
89953         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
89954         listen).
89956 2008-10-08  Eric Blake  <ebb9@byu.net>
89958         GNUmakefile: add 'make version' target
89959         * top/GNUmakefile (_curr-ver): Split version update rules...
89960         (version): ...into a target.
89962 2008-10-07  Bruno Haible  <bruno@clisp.org>
89964         Use a more portable replacement expression for -0.0L.
89965         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
89966         instead of -0.0L. Fix m4 quotation.
89968         * tests/test-signbit.c: Include <float.h>.
89969         (minus_zero): New variable.
89970         (test_signbitl): Use minus_zero instead of -zero.
89971         * modules/signbit-tests (Depends-on): Add float.
89973         * tests/test-ceill.c: Include <float.h>.
89974         (zero): Remove variable.
89975         (minus_zero): New variable.
89976         (main): Use minus_zero instead of -zero.
89977         * modules/ceill-tests (Depends-on): Add float.
89979         * tests/test-floorl.c: Include <float.h>.
89980         (zero): Remove variable.
89981         (minus_zero): New variable.
89982         (main): Use minus_zero instead of -zero.
89983         * modules/floorl-tests (Depends-on): Add float.
89985         * tests/test-roundl.c: Include <float.h>.
89986         (zero): Remove variable.
89987         (minus_zero): New variable.
89988         (main): Use minus_zero instead of -zero.
89989         * modules/roundl-tests (Depends-on): Add float.
89991         * tests/test-truncl.c: Include <float.h>.
89992         (zero): Remove variable.
89993         (minus_zero): New variable.
89994         (main): Use minus_zero instead of -zero.
89995         * modules/truncl-tests (Depends-on): Add float.
89997         * tests/test-frexpl.c (zero): Remove variable.
89998         (minus_zero): New variable.
89999         (main): Use minus_zero instead of -zero.
90000         * modules/frexpl-tests (Depends-on): Add float.
90002         * tests/test-isnan.c (zerol): Remove variable.
90003         (minus_zerol): New variable.
90004         (test_long_double): Use minus_zerol instead of -zerol.
90005         * modules/isnan-tests (Depends-on): Add float.
90007         * tests/test-isnanl.h (zero): Remove variable.
90008         (minus_zero): New variable.
90009         (main): Use minus_zero instead of -zero.
90010         * modules/isnanl-nolibm-tests (Depends-on): Add float.
90011         * modules/isnanl-tests (Depends-on): Add float.
90013         * tests/test-ldexpl.c (zero): Remove variable.
90014         (minus_zero): New variable.
90015         (main): Use minus_zero instead of -zero.
90016         * modules/ldexpl-tests (Depends-on): Add float.
90018         * tests/test-snprintf-posix.h (zerol): Remove variable.
90019         (minus_zerol): New variable.
90020         (test_function): Use minus_zerol instead of -zerol.
90021         * modules/snprintf-posix-tests (Depends-on): Add float.
90022         * modules/vsnprintf-posix-tests (Depends-on): Add float.
90024         * tests/test-sprintf-posix.h (zerol): Remove variable.
90025         (minus_zerol): New variable.
90026         (test_function): Use minus_zerol instead of -zerol.
90027         * modules/sprintf-posix-tests (Depends-on): Add float.
90028         * modules/vsprintf-posix-tests (Depends-on): Add float.
90030         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
90031         (minus_zerol): New variable.
90032         (test_function): Use minus_zerol instead of -zerol.
90033         * modules/vasnprintf-posix-tests (Depends-on): Add float.
90035         * tests/test-vasprintf-posix.c (zerol): Remove variable.
90036         (minus_zerol): New variable.
90037         (test_function): Use minus_zerol instead of -zerol.
90038         * modules/vasprintf-posix-tests (Depends-on): Add float.
90040 2008-10-07  Simon Josefsson  <simon@josefsson.org>
90042         * MODULES.html.sh (Support for building documentation): Mention
90043         pmccabe2html.  Sort entries.
90045         Add pmccabe2html module, from gnupdf.
90046         * build-aux/pmccabe.css: New file.
90047         * build-aux/pmccabe2html: New file.
90048         * m4/pmccabe2html.m4: New file.
90049         * modules/pmccabe2html: New file.
90051 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
90053         flock: new module
90054         * MODULES.html.sh: Add to list of modules.
90055         * lib/flock.c: flock implementation for Windows and Unix systems
90056         which have fcntl.
90057         * doc/glibc-functions/flock.texi: Update documentation.
90058         * lib/sys_file.in.h: <sys/file.h> header file.
90059         * m4/flock.m4: M4 macros.
90060         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
90061         * modules/flock: flock module.
90062         * modules/flock-tests: flock tests module.
90063         * modules/sys_file: sys/file.h module.
90064         * tests/test-flock.c: test suite for flock.
90066 2008-10-06  Jim Meyering  <meyering@redhat.com>
90068         bootstrap: check for LT_INIT more portably still ;-)
90069         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
90070         Spotted by Bruno Haible.
90072 2008-10-06  Eric Blake  <ebb9@byu.net>
90074         test-signbit: avoid tripping Irix cc bug on -0.0L
90075         * tests/test-signbit.c (minus_zerol): Delete, and replace with
90076         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
90077         entire testsuite consistent and avoids an Irix 6.2 bug.
90079 2008-10-05  Bruno Haible  <bruno@clisp.org>
90080             Jim Meyering  <jim@meyering.net>
90082         Add an option for ignoring EPIPE during close_stdout.
90083         * lib/closeout.h: Include <stdbool.h>.
90084         (close_stdout_set_ignore_EPIPE): New declaration.
90085         * lib/closeout.c: Include <stdbool.h>.
90086         (ignore_EPIPE): New variable.
90087         (close_stdout_set_ignore_EPIPE): New function.
90088         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
90089         * lib/close-stream.c (close_stream): Mention the possible EPIPE
90090         failure.
90091         * modules/closeout (Depends-on): Add stdbool.
90093 2008-10-05  Bruno Haible  <bruno@clisp.org>
90095         * modules/accept: New file.
90096         * modules/bind: New file.
90097         * modules/connect: New file.
90098         * modules/getpeername: New file.
90099         * modules/getsockname: New file.
90100         * modules/getsockopt: New file.
90101         * modules/listen: New file.
90102         * modules/recv: New file.
90103         * modules/recvfrom: New file.
90104         * modules/send: New file.
90105         * modules/sendto: New file.
90106         * modules/setsockopt: New file.
90107         * modules/socket: New file.
90108         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
90109         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
90110         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
90111         the particular module is requested. Add a link warning when the
90112         particular module is not requested.
90113         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
90114         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
90115         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
90116         the particular module is requested.
90117         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
90118         gl_SYS_SOCKET_H_DEFAULTS): New macros.
90119         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
90120         * modules/sys_socket (Depends-on): Add link-warning.
90121         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
90122         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
90123         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
90124         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
90125         GL_LINK_WARNING.
90126         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
90127         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
90128         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
90129         * doc/posix-functions/getpeername.texi: Mention the new module
90130         'getpeername'.
90131         * doc/posix-functions/getsockname.texi: Mention the new module
90132         'getsockname'.
90133         * doc/posix-functions/getsockopt.texi: Mention the new module
90134         'getsockopt'.
90135         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
90136         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
90137         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
90138         * doc/posix-functions/send.texi: Mention the new module 'send'.
90139         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
90140         * doc/posix-functions/setsockopt.texi: Mention the new module
90141         'setsockopt'.
90142         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
90143         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
90144         listen, connect, accept.
90145         * modules/select-tests (Depends-on): Likewise.
90147 2008-10-05  Bruno Haible  <bruno@clisp.org>
90149         * lib/winsock.c (strerror): Remove unused #undef.
90150         (rpl_close): Remove unused local variable.
90152         * modules/sys_socket (Depends-on); Add errno.
90154 2008-10-05  Bruno Haible  <bruno@clisp.org>
90156         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
90157         (select): Add a link warning when the 'select' module is not used.
90158         * modules/sys_select (Depends-on): Add link-warning.
90159         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
90160         Suggested by Paolo Bonzini.
90162 2008-10-05  Jim Meyering  <meyering@redhat.com>
90164         bootstrap: check for LT_INIT more portably
90165         * build-aux/bootstrap: Avoid using grep -E, since it's not
90166         portable enough.  Suggestion from Bruno Haible.
90168 2008-10-05  Bruno Haible  <bruno@clisp.org>
90170         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
90171         as being fixed by gnulib.
90173 2008-10-05  Bruno Haible  <bruno@clisp.org>
90175         * modules/select-tests: New file, mostly copied from
90176         modules/sys_select-tests.
90177         * tests/test-select.c: New file, mostly copied from
90178         tests/test-sys_select.c.
90179         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
90180         * modules/sys_select-tests (Depends-on): Remove all dependencies.
90181         (Makefile.am): Remove test_sys_select_LDADD.
90183         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
90184         to an undefined symbol, for an error message.
90185         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
90186         (gl_SYS_SELECT_H_DEFAULTS): New macro.
90187         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
90188         winsock-select.c here.
90189         * modules/sys_select (Files): Remove lib/winsock-select.c.
90190         (Depends-on): Remove alloca.
90191         (Makefile.am): Substitute GNULIB_SELECT.
90192         * modules/select: New file.
90193         * doc/posix-functions/select.texi: Update.
90195 2008-10-05  Bruno Haible  <bruno@clisp.org>
90197         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
90198         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
90199         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
90200         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
90201         getdtablesize.
90202         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
90203         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
90205 2008-10-05  Bruno Haible  <bruno@clisp.org>
90207         * modules/getdtablesize-tests: New file.
90208         * tests/test-getdtablesize.c: New file.
90210         New module 'getdtablesize'.
90211         * lib/unistd.in.h (getdtablesize): New declaration.
90212         * lib/getdtablesize.c: New file.
90213         * m4/getdtablesize.m4: New file.
90214         * modules/getdtablesize: New file.
90215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90216         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
90217         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
90218         HAVE_GETDTABLESIZE.
90219         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
90221 2008-10-05  Bruno Haible  <bruno@clisp.org>
90223         * modules/sched (Makefile.am): Fix typo.
90224         Reported by Simon Josefsson.
90226 2008-10-05  Jim Meyering  <meyering@redhat.com>
90228         bootstrap: check for LT_INIT, too
90229         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
90230         are deprecated.  Suggestion from Ralf Wildenhues.
90232 2008-10-05  Bruno Haible  <bruno@clisp.org>
90234         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
90235         overriding them by ours.
90236         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
90238 2008-10-05  Jim Meyering  <meyering@redhat.com>
90240         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
90241         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
90242         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
90244 2008-10-04  Bruno Haible  <bruno@clisp.org>
90246         * modules/dup2 (License): Change to LGPLv2+.
90247         * modules/sleep (License): Likewise.
90248         * modules/perror (License): Likewise.
90249         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
90250         Blake.
90251         * modules/signal (License): Likewise.
90252         * modules/sigprocmask (License): Likewise.
90253         * modules/raise (License): Change to LGPLv2+, with approval by Jim
90254         Meyering.
90256 2008-10-04  Bruno Haible  <bruno@clisp.org>
90258         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
90259         Reported by Rainer Tammer <tammer@tammer.net>.
90261 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
90262             Bruno Haible  <bruno@clisp.org>
90264         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
90265         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
90266         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
90268 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
90270         filevercmp: new module
90271         * lib/filevercmp.h: New function filevercmp comparing version strings.
90272         * lib/filevercmp.c: Implementation of filevercmp function.
90273         * modules/filevercmp: Module metadata.
90274         * tests/test-filevercmp.c: Unit test for new module.
90275         * modules/filevercmp-tests: Unit test metadata.
90276         * MODULES.html.sh: Add filevercmp module.
90278 2008-10-03  Bruno Haible  <bruno@clisp.org>
90280         * lib/c-ctype.h: Add comment.
90281         Reported by Jim Meyering.
90283 2008-10-02  Bruno Haible  <bruno@clisp.org>
90285         * modules/posix_spawn-internal (Depends-on): Add 'open'.
90287 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90289         * build-aux/bootstrap: Allow renaming bootstrap, and change the
90290         name of bootstrap.conf accordingly.
90292 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90294         * build-aux/bootstrap: Install git-merge-changelog configuration
90295         items into .gitconfig if needed.
90297 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90299         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
90300         git repository, and initialize/update it accordingly.
90302 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
90304         * modules/fsync-tests: New file.
90305         * tests/test-fsync.c: New file.
90307         New module 'fsync'.
90308         * lib/fsync.c: New file.
90309         * m4/fsync.m4: New file.
90310         * modules/fsync: New file.
90311         * lib/unistd.in.h (fsync): New declaration.
90312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
90313         GNULIB_FSYNC and HAVE_FSYNC.
90314         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
90315         * MODULES.html.sh (posix_functions): Add fsync.
90316         * doc/posix-functions/fsync.texi: Mention the new module.
90318 2008-10-02  Jim Meyering  <meyering@redhat.com>
90320         fts.c: sync with similar code from coreutils' remove.c
90321         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
90322         Guard also with "#if defined __linux__", since for now at least,
90323         this code is Linux-kernel-specific.
90325 2008-10-02  Jim Meyering  <meyering@redhat.com>
90327         fts: bug fixes
90328         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
90329         Include <sys/vfs.h>, not <sys/statfs.h>.
90331         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
90332         Include <sys/vfs.h>, not <sys/statfs.h>.
90334 2008-10-01  Bruno Haible  <bruno@clisp.org>
90336         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
90337         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
90338         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
90339         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
90340         * doc/posix-functions/posix_spawnp.texi: Likewise.
90341         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
90342         whether posix_spawn actually works.
90343         * m4/pipe.m4 (gl_PIPE): Likewise.
90344         * modules/execute (Files): Add m4/posix_spawn.m4.
90345         * modules/pipe (Files): Add m4/posix_spawn.m4.
90346         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
90348 2008-10-01  Jim Meyering  <meyering@redhat.com>
90350         remove trailing spaces
90351         * NEWS: Likewise.
90352         * lib/poll.c (poll): Likewise.
90353         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
90354         * lib/winsock.c (rpl_close): Likewise.
90355         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
90356         * modules/yield: Likewise.
90357         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
90358         * tests/test-sys_select.c (connect_to_socket): Likewise.
90360         fts.c: adjust a new interface to be more generally useful
90361         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
90362         (fts_build): Adjust caller.
90364 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90366         * modules/cond-tests: New file.
90367         * tests/test-cond.c: New file.
90369 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90370             Bruno Haible  <bruno@clisp.org>
90372         * modules/cond (Dependencies): Add errno, time.
90373         * lib/glthread/cond.h: Include <time.h>.
90374         (gl_cond_define, gl_cond_define_initialized): Use the same definition
90375         across platforms.
90377 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90378             Bruno Haible  <bruno@clisp.org>
90380         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
90382 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90383             Bruno Haible  <bruno@clisp.org>
90385         * modules/tls-tests (Depends-on): Add thread, yield.
90386         (configure.ac): Remove all checks.
90387         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
90388         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90389         gl_thread_self): Remove definitions. Include glthread/thread.h and
90390         glthread/yield.h instead.
90391         (test_tls): Pass an additional NULL argument to gl_thread_join.
90393 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90394             Bruno Haible  <bruno@clisp.org>
90396         * modules/lock-tests (Depends-on): Add thread, yield.
90397         (configure.ac): Remove all checks.
90398         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
90399         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90400         gl_thread_self): Remove definitions. Include glthread/thread.h and
90401         glthread/yield.h instead.
90402         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
90403         additional NULL argument to gl_thread_join.
90405 2008-09-30  Bruno Haible  <bruno@clisp.org>
90407         Fix the Win32 implementation of the 'thread' module.
90408         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
90409         pointer type.
90410         (gl_thread_self): Invoke gl_thread_self_func.
90411         (gl_thread_self_func): New declaration.
90412         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
90413         (do_init_self_key, init_self_key): New functions.
90414         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
90415         Remove some fields.
90416         (running_threads, running_lock): Remove variables.
90417         (get_current_thread_handle): New function.
90418         (gl_thread_self_func, wrapper_func, glthread_create_func,
90419         glthread_join_func, gl_thread_exit_func): Largely rewritten and
90420         simplified.
90422 2008-09-30  Bruno Haible  <bruno@clisp.org>
90424         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
90425         files.
90427 2008-09-30  Jim Meyering  <meyering@redhat.com>
90429         fts.m4: correct the test for statfs.f_type
90430         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
90431         when checking for statfs.f_type.
90433 2008-09-15  Simon Josefsson  <simon@josefsson.org>
90435         tests: avoid some compiler warnings
90436         * tests/test-memchr.c (main): Pass NULL indirectly.
90437         * tests/test-getdate.c (main): Remove unused variable 'ret'.
90439 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
90441         getdate.y: disallow countable dayshifts like "4 yesterday ago"
90442         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
90443         exactly specified dayshifts.
90444         (dayshift): New rule.
90445         (rel): Add dayshift.
90446         (relative_time_table) [tomorrow, yesterday, today, now]:
90447         Use tDAY_SHIFT in place of tDAY_UNIT.
90448         * tests/test-getdate.c: Add tests for now-disallowed countable
90449         dayshifts, e.g., "4 yesterday ago".
90451 2008-09-29  Bruno Haible  <bruno@clisp.org>
90453         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
90454         * tests/test-posix_spawn1.in.sh: Renamed from
90455         tests/test-posix_spawn.in.sh.
90456         * tests/test-posix_spawn2.c: New file.
90457         * tests/test-posix_spawn2.in.sh: New file.
90458         * modules/posix_spawnp-tests (Files): Update.
90459         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
90461 2008-09-29  Bruno Haible  <bruno@clisp.org>
90463         Propagate effects of putenv/setenv/unsetenv to child processes.
90464         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
90465         * lib/pipe.c (create_pipe): Likewise.
90467 2008-09-29  Bruno Haible  <bruno@clisp.org>
90469         Enable use of shell scripts as executables in mingw.
90470         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
90471         run the program as a shell script.
90472         * lib/pipe.c (create_pipe): Likewise.
90473         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
90474         resulting array.
90476 2008-09-29  Eric Blake  <ebb9@byu.net>
90478         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
90480 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
90482         * doc/posix-functions/accept.texi: Update mingw problems.
90483         * doc/posix-functions/bind.texi: Update mingw problems.
90484         * doc/posix-functions/close.texi: Update mingw problems.
90485         * doc/posix-functions/connect.texi: Update mingw problems.
90486         * doc/posix-functions/getpeername.texi: Update mingw problems.
90487         * doc/posix-functions/getsockname.texi: Update mingw problems.
90488         * doc/posix-functions/getsockopt.texi: Update mingw problems.
90489         * doc/posix-functions/ioctl.texi: Update mingw problems.
90490         * doc/posix-functions/listen.texi: Update mingw problems.
90491         * doc/posix-functions/recv.texi: Update mingw problems.
90492         * doc/posix-functions/recvfrom.texi: Update mingw problems.
90493         * doc/posix-functions/select.texi: Update mingw problems.
90494         * doc/posix-functions/send.texi: Update mingw problems.
90495         * doc/posix-functions/sendto.texi: Update mingw problems.
90496         * doc/posix-functions/setsockopt.texi: Update mingw problems.
90497         * doc/posix-functions/socket.texi: Update mingw problems.
90499 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
90500             Bruno Haible  <bruno@clisp.org>
90502         * lib/sys_select.in.h: Include sys/time.h.
90503         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
90504         * modules/sys_select: Depend on sys_time.
90505         * tests/test-sys_select.c: Test that sys/select.h defines struct
90506         timeval fully.
90508 2008-09-29  Bruno Haible  <bruno@clisp.org>
90510         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
90511         * lib/sys_select.in.h: Likewise.
90513 2008-09-29  Bruno Haible  <bruno@clisp.org>
90515         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
90517 2008-09-29  Bruno Haible  <bruno@clisp.org>
90519         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
90520         Set LIBSOCKET instead of augmenting LIBS.
90521         * modules/sockets (Link): New section.
90522         * modules/sockets-tests (test_sockets_LDADD): New variable.
90523         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
90524         * modules/poll-tests (test_poll_LDADD): New variable.
90525         * NEWS: Document the change.
90527 2008-09-29  Bruno Haible  <bruno@clisp.org>
90529         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
90530         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
90531         ARPA_INET_H directly.
90532         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90534 2008-09-28  Bruno Haible  <bruno@clisp.org>
90536         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
90537         from gl_HEADER_SYS_SOCKET.
90538         (gl_HEADER_SYS_SOCKET): Invoke it.
90539         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
90541 2008-09-28  Bruno Haible  <bruno@clisp.org>
90543         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
90544         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
90545         Needed on OSF/1 4.0.
90547 2008-09-28  Bruno Haible  <bruno@clisp.org>
90549         Override open more carefully.
90550         * lib/open.c (orig_open): New function.
90551         (rpl_open): Use orig_open instead of open.
90552         * lib/fcntl.in.h: Add special invocation convention.
90553         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
90554         (gl_FUNC_OPEN): Invoke it.
90556         Override freopen more carefully.
90557         * lib/freopen.c (orig_freopen): New function.
90558         (rpl_freopen): Use orig_freopen instead of freopen.
90559         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
90560         (gl_FUNC_FREOPEN): Invoke it.
90562         Override fopen more carefully.
90563         * lib/fopen.c (orig_fopen): New function.
90564         (rpl_fopen): Use orig_fopen instead of fopen.
90565         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
90566         (gl_FUNC_FOPEN): Invoke it.
90567         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
90569 2008-09-28  Bruno Haible  <bruno@clisp.org>
90571         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
90572         SIGPIPE.
90574 2008-09-28  Bruno Haible  <bruno@clisp.org>
90576         * tests/test-sigaction.c (handler, main): Disable the check whether
90577         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
90578         glibc systems with LinuxThreads.
90580 2008-09-28  Bruno Haible  <bruno@clisp.org>
90582         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
90584         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
90585         with AIX xlc.
90586         * lib/fcntl.in.h (open): Likewise.
90587         Reported by Rainer Tammer <tammer@tammer.net>.
90589 2008-09-28  Bruno Haible  <bruno@clisp.org>
90591         * modules/posix_spawnp-tests: New file.
90592         * tests/test-posix_spawn.c: New file.
90593         * tests/test-posix_spawn.in.sh: New file.
90595         New module 'posix_spawnp'.
90596         * modules/posix_spawnp: New file.
90597         * lib/spawnp.c: New file, from GNU libc with modifications.
90598         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
90600         New module 'posix_spawn'.
90601         * modules/posix_spawn: New file.
90602         * lib/spawn.c: New file, from GNU libc with modifications.
90603         * doc/posix-functions/posix_spawn.texi: Mention the new module.
90605         New module 'posix_spawnattr_destroy'.
90606         * modules/posix_spawnattr_destroy: New file.
90607         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
90608         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
90609         module.
90611         New module 'posix_spawnattr_setsigmask'.
90612         * modules/posix_spawnattr_setsigmask: New file.
90613         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
90614         modifications.
90615         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
90616         new module.
90618         New module 'posix_spawnattr_getsigmask'.
90619         * modules/posix_spawnattr_getsigmask: New file.
90620         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
90621         modifications.
90622         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
90623         new module.
90625         New module 'posix_spawnattr_setsigdefault'.
90626         * modules/posix_spawnattr_setsigdefault: New file.
90627         * lib/spawnattr_setdefault.c: New file, from GNU libc with
90628         modifications.
90629         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
90630         new module.
90632         New module 'posix_spawnattr_getsigdefault'.
90633         * modules/posix_spawnattr_getsigdefault: New file.
90634         * lib/spawnattr_getdefault.c: New file, from GNU libc with
90635         modifications.
90636         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
90637         new module.
90639         New module 'posix_spawnattr_setschedpolicy'.
90640         * modules/posix_spawnattr_setschedpolicy: New file.
90641         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
90642         modifications.
90643         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
90644         new module.
90646         New module 'posix_spawnattr_getschedpolicy'.
90647         * modules/posix_spawnattr_getschedpolicy: New file.
90648         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
90649         modifications.
90650         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
90651         new module.
90653         New module 'posix_spawnattr_setschedparam'.
90654         * modules/posix_spawnattr_setschedparam: New file.
90655         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
90656         modifications.
90657         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
90658         new module.
90660         New module 'posix_spawnattr_getschedparam'.
90661         * modules/posix_spawnattr_getschedparam: New file.
90662         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
90663         modifications.
90664         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
90665         new module.
90667         New module 'posix_spawnattr_setpgroup'.
90668         * modules/posix_spawnattr_setpgroup: New file.
90669         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
90670         modifications.
90671         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
90672         module.
90674         New module 'posix_spawnattr_getpgroup'.
90675         * modules/posix_spawnattr_getpgroup: New file.
90676         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
90677         modifications.
90678         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
90679         module.
90681         New module 'posix_spawnattr_setflags'.
90682         * modules/posix_spawnattr_setflags: New file.
90683         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
90684         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
90685         module.
90687         New module 'posix_spawnattr_getflags'.
90688         * modules/posix_spawnattr_getflags: New file.
90689         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
90690         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
90691         module.
90693         New module 'posix_spawnattr_init'.
90694         * modules/posix_spawnattr_init: New file.
90695         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
90696         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
90697         module.
90699         New module 'posix_spawn_file_actions_destroy'.
90700         * modules/posix_spawn_file_actions_destroy: New file.
90701         * lib/spawn_faction_destroy.c: New file, from GNU libc with
90702         modifications.
90703         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
90704         the new module.
90706         New module 'posix_spawn_file_actions_addopen'.
90707         * modules/posix_spawn_file_actions_addopen: New file.
90708         * lib/spawn_faction_addopen.c: New file, from GNU libc with
90709         modifications.
90710         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
90711         the new module.
90713         New module 'posix_spawn_file_actions_adddup2'.
90714         * modules/posix_spawn_file_actions_adddup2: New file.
90715         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
90716         modifications.
90717         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
90718         the new module.
90720         New module 'posix_spawn_file_actions_addclose'.
90721         * modules/posix_spawn_file_actions_addclose: New file.
90722         * lib/spawn_faction_addclose.c: New file, from GNU libc with
90723         modifications.
90724         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
90725         the new module.
90727         New module 'posix_spawn_file_actions_init'.
90728         * modules/posix_spawn_file_actions_init: New file.
90729         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
90730         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
90731         new module.
90733         New module 'posix_spawn-internal'.
90734         * modules/posix_spawn-internal: New file.
90735         * lib/spawn_int.h: New file, from GNU libc with modifications.
90736         * lib/spawni.c: New file, from GNU libc with modifications.
90737         * m4/posix_spawn.m4: New file.
90739         New module 'spawn'.
90740         * modules/spawn: New file.
90741         * lib/spawn.in.h: New file, from GNU libc with modifications.
90742         * m4/spawn_h.m4: New file.
90743         * doc/posix-headers/spawn.texi: Mention the new module.
90745 2008-09-28  Bruno Haible  <bruno@clisp.org>
90747         * modules/sched-tests: New file.
90748         * tests/test-sched.c: New file.
90750         New module 'sched'.
90751         * modules/sched: New file.
90752         * lib/sched.in.h: New file.
90753         * m4/sched_h.m4: New file.
90754         * doc/posix-headers/sched.texi: Mention the new module.
90756 2008-09-27  Eric Blake  <ebb9@byu.net>
90758         Fix previous patch, and tweak references to $0.
90759         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
90760         (func_version, func_gnulib_dir): Don't call this program
90761         gnulib-tool.
90762         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
90763         with using $0 in function.
90764         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
90765         (func_fatal_error): Reuse the name the user invoked us with.
90767 2008-09-27  Bruno Haible  <bruno@clisp.org>
90769         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
90770         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
90771         (gl_ICONV_H): Not here.
90772         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
90773         instead of assigning ICONV_H directly.
90775         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
90776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
90777         WCHAR_H directly.
90779 2008-09-27  Bruno Haible  <bruno@clisp.org>
90781         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
90782         * modules/arpa_inet (Depends-on): Add link-warning.
90783         (Makefile.am): Insert the definition of GL_LINK-WARNING.
90784         * modules/unistd (Makefile.am): Likewise.
90786 2008-09-26  Bruno Haible  <bruno@clisp.org>
90788         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
90789         variables.
90790         (func_version): Essentially copied from gnulib-tool.
90791         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
90792         func_readlink): Copied from gnulib-tool.
90794 2008-09-26  Bruno Haible  <bruno@clisp.org>
90796         * gnulib-tool (func_version): Change directory to $gnulib_dir before
90797         invoking git-version-gen.
90799 2008-09-26  Bruno Haible  <bruno@clisp.org>
90801         * posix-modules: Update to directory names changed on 2008-01-19.
90802         Remove commas in output before splitting into words. No more need to
90803         avoid 'ftruncate' since 2007-02-19.
90805 2008-09-26  Bruno Haible  <bruno@clisp.org>
90807         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
90809 2008-09-26  Bruno Haible  <bruno@clisp.org>
90811         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
90812         * modules/fwriteerror (Depends-on): Add errno.
90814 2008-09-26  Bruno Haible  <bruno@clisp.org>
90816         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
90817         * tests/test-vc-list-files-cvs.sh: Likewise.
90819 2008-09-26  Bruno Haible  <bruno@clisp.org>
90821         * doc/posix-headers/sys_resource.texi: Reorder items.
90823 2008-09-26  Jim Meyering  <meyering@redhat.com>
90825         fts: tweak inode comparison function
90826         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
90827         inode numbers, as documented.
90829         fts: sort dirent entries on inode number before traversing
90830         This avoids a quadratic, seek-related performance penalty when
90831         operating on a directory containing many entries (measurable at 10k;
90832         3.5 hours at 2 million entries with a cold cache) on certain types
90833         of file systems, including ext3 and ext4, but not tmpfs.
90834         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
90835         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
90836         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
90837         (fs_handles_readdir_ordered_dirents_efficiently): New function.
90838         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
90839         (fts_build): Set the stat.st_ino member from D_INO.
90840         If it is likely to be useful, sort dirent entries on inode number.
90842         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
90843         and the struct statfs.f_type member.
90844         * modules/fts (Depends-on): Add d-ino.
90846 2008-09-26  Bruno Haible  <bruno@clisp.org>
90848         * modules/sigpipe-die (Depends-on): Add sigpipe.
90850         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
90851         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
90852         and GNULIB_STDIO_H_SIGPIPE are set.
90853         * lib/stdio-write.c: New file.
90854         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
90855         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90856         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90857         REPLACE_STDIO_WRITE_FUNCS.
90858         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
90859         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90860         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90861         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
90862         * modules/stdio (Files): Add lib/stdio-write.c.
90863         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
90864         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90865         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90866         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
90867         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
90868         REPLACE_FPRINTF_POSIX.
90869         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
90870         REPLACE_PRINTF_POSIX.
90871         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
90872         REPLACE_VFPRINTF_POSIX.
90873         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
90874         REPLACE_VPRINTF_POSIX.
90875         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
90876         SIGPIPE issue.
90877         * doc/posix-functions/fputc.texi: Likewise.
90878         * doc/posix-functions/fputs.texi: Likewise.
90879         * doc/posix-functions/fwrite.texi: Likewise.
90880         * doc/posix-functions/printf.texi: Likewise.
90881         * doc/posix-functions/putc.texi: Likewise.
90882         * doc/posix-functions/putchar.texi: Likewise.
90883         * doc/posix-functions/puts.texi: Likewise.
90884         * doc/posix-functions/vfprintf.texi: Likewise.
90885         * doc/posix-functions/vprintf.texi: Likewise.
90887         * modules/safe-write (Depends-on): Add write.
90889         * modules/sigpipe-tests: New file.
90890         * tests/test-sigpipe.c: New file.
90891         * tests/test-sigpipe.sh: New file.
90893         * modules/write: New file.
90894         * lib/unistd.in.h: Include <sys/types.h>.
90895         (write): New declaration.
90896         * lib/write.c: New file.
90897         * m4/write.m4: New file.
90898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90899         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
90900         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
90901         GNULIB_WRITE, REPLACE_WRITE.
90902         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
90903         and the SIGPIPE issue.
90905         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
90906         (raise): New declaration.
90907         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
90908         (ext_signal): New function.
90909         (rpl_raise): New function.
90910         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
90911         GNULIB_SIGNAL_H_SIGPIPE.
90912         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
90913         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
90915         * modules/sigpipe: New file.
90916         * m4/sigpipe.m4: New file.
90918 2008-09-25  Derek Price  <derek@ximbiot.com>
90919             Bruno Haible  <bruno@clisp.org>
90921         * gnulib-tool (func_import): Report all license incompatibilities, not
90922         just the first one.
90924 2008-09-25  Bruno Haible  <bruno@clisp.org>
90926         * gnulib-tool (func_import): When computing the edits, consider not
90927         only the Makefile.ams that exist but also those that will be generated.
90929 2008-09-25  Simon Josefsson  <simon@josefsson.org>
90931         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
90932         fixes gnulib-tool --test warning about duplicate dependency.
90934 2008-09-25  Bruno Haible  <bruno@clisp.org>
90936         * gnulib-tool: Don't ask the user to perform edits in the generated
90937         Makefile.ams.
90938         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
90939         apply to the Makefile.am being generated.
90940         (func_emit_tests_Makefile_am): Execute edits that apply to the
90941         Makefile.am being generated.
90942         (func_import): Setup list of Makefile.am edits before emitting the
90943         Makefile.ams, not at the end.
90944         (func_create_testdir): Update.
90945         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90947 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90949         * gnulib-tool (func_import): Store the --tests-base option in the
90950         comment in gnulib-cache.m4.
90952 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
90954         * NEWS: Document increased portability that sys_select now provides.
90956         * lib/sys_select.in.h: Install select wrapper.
90957         * lib/sys_socket.in.h: Use more descriptive name when there is no
90958         select wrapper.
90959         * lib/winsock-select.c: New.
90960         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
90961         Require gl_HEADER_SYS_SOCKET.
90962         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
90963         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
90964         * tests/test-sys_select.c: Add functional tests.
90966 2008-09-24  Eric Blake  <ebb9@byu.net>
90968         open, fopen: close fd leak in last patch
90969         * lib/open.c (rpl_open): Close fd before returning error.
90970         * lib/fopen.c (rpl_fopen): Close fd before returning error.
90971         * doc/posix-functions/open.texi (open): Document that Irix also
90972         has the bug.
90973         * doc/posix-functions/fopen.texi (fopen): Likewise.
90974         Reported by Paolo Bonzini.
90976 2008-09-24  Bruno Haible  <bruno@clisp.org>
90978         Ensure that a filename ending in a slash cannot be used to access a
90979         non-directory.
90980         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
90981         to check whether it's really a directory.
90982         * lib/fopen.c: Include fcntl.h, unistd.h.
90983         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
90984         and fdopen().
90985         * modules/fopen (Depends-on): Add unistd.
90986         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
90987         * tests/test-fopen.c (main): Likewise.
90988         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
90989         * doc/posix-functions/fopen.texi: Likewise.
90990         Reported by Eric Blake.
90992 2008-09-23  Eric Blake  <ebb9@byu.net>
90994         c-stack: avoid compiler optimizations when provoking overflow
90995         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
90996         recursion harder to optimize, to ensure a stack overflow occurs.
90997         * tests/test-c-stack.c (recurse): Likewise.
90998         Borrowed from libsigsegv.
91000         c-stack: work around Irix sigaltstack bug
91001         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
91002         whether sigaltstack uses wrong end of stack_t (copied in part from
91003         libsigsegv).
91004         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
91005         Irix bug, without requiring an over-allocation.
91006         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
91007         bug.
91009         fopen: document mingw bug on directories
91010         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
91011         not allowing a stream visiting a directory, even though reading
91012         from such a stream is not portable.
91014 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91016         * lib/poll.c: Rewrite.
91017         * modules/poll: Depend on alloca.
91019 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91021         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
91022         instead define prototypes for a full set of wrappers.  Ensure
91023         that Cygwin does not use the compatibility code, which is only
91024         for MinGW.
91025         * lib/winsock.c: New.
91026         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
91027         * modules/sys_socket: Add lib/winsock.c.
91029         * modules/poll-tests: Add errno and perror.
91030         * tests/test-poll.c: Use ioctl, not ioctlsocket.
91032 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91034         * tests/test-poll.c: Downgrade minimum needed Winsock version.
91036 2008-09-23  Bruno Haible  <bruno@clisp.org>
91038         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
91039         * doc/glibc-functions/*: Likewise.
91041 2008-09-23  Simon Josefsson  <simon@josefsson.org>
91043         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
91044         success.
91046 2008-09-22  Eric Blake  <ebb9@byu.net>
91047             Bruno Haible  <bruno@clisp.org>
91049         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
91050         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
91051         supply %A but mishandle pseudo-NaN.
91052         Reported by Simon Josefsson.
91054 2008-09-21  Bruno Haible  <bruno@clisp.org>
91056         * tests/test-lock.c (main): Tweak skip message.
91057         * tests/test-tls.c (main): Likewise.
91059 2008-09-21  Bruno Haible  <bruno@clisp.org>
91061         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
91062         whether 'struct sigaction' has sa_sigaction here...
91063         (gl_PREREQ_SIG_HANDLER_H): ... not here.
91064         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
91066 2008-09-21  Bruno Haible  <bruno@clisp.org>
91068         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
91069         section.
91070         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
91071         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
91072         the new section.
91073         (Support for obsolete systems lacking POSIX:2001): New section.
91074         (String handling <string.h>): Move strdup to the new section.
91075         Suggested by Simon Josefsson and Paolo Bonzini.
91077 2008-09-21  Bruno Haible  <bruno@clisp.org>
91079         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
91080         exponents in %e and %g results on 'long double'. Needed for mingw's
91081         improved *printf functions.
91082         * tests/test-vasprintf-posix.c (test_function): Likewise.
91083         * tests/test-snprintf-posix.h (test_function): Likewise.
91084         * tests/test-sprintf-posix.h (test_function): Likewise.
91085         Reported by Eric Blake.
91087 2008-09-21  Bruno Haible  <bruno@clisp.org>
91089         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
91090         * tests/test-sprintf-posix.h (test_function): Likewise.
91092 2008-09-21  Bruno Haible  <bruno@clisp.org>
91094         * modules/getpass (Depends-on): Add strdup-posix.
91096         New module 'strdup-posix'.
91097         * modules/strdup-posix: New file.
91098         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
91099         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
91100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
91101         REPLACE_STRDUP.
91102         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
91103         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
91104         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91105         strdup-posix.
91107         * modules/strdup (Depends-on): Remove malloc-posix.
91109 2008-09-20  Bruno Haible  <bruno@clisp.org>
91111         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
91112         Wildenhues.
91114 2008-09-20  Bruno Haible  <bruno@clisp.org>
91116         Ensure that wint_t gets defined on IRIX 5.3.
91117         * lib/wchar.in.h (wint_t): Define if not defined by the system.
91118         * lib/wctype.in.h (wint_t): Likewise.
91119         (__wctype_wint_t): Remove type.
91120         (isw*): Use wint_t instead of __wctype_wint_t.
91121         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
91122         * modules/wchar (Files): Add m4/wint_t.m4.
91123         (Makefile.am): Substitute HAVE_WINT_T.
91124         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
91125         * tests/test-wctype.c: Check that wint_t is defined.
91126         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
91127         * doc/posix-headers/wctype.texi: Likewise.
91128         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
91130 2008-09-18  Bruno Haible  <bruno@clisp.org>
91132         * gnulib-tool (func_exit): Update comment.
91134 2008-09-18  Simon Josefsson  <simon@josefsson.org>
91136         * modules/getaddrinfo (Depends-on): Remove strdup, this module
91137         assumes strdup exists and does not depend on strdup to return
91138         ENOMEM on out of memory conditions.
91140 2008-09-18  Bruno Haible  <bruno@clisp.org>
91142         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
91143         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
91144         digits for the exponent.
91146 2008-09-18  Jim Meyering  <meyering@redhat.com>
91147             Bruno Haible  <bruno@clisp.org>
91149         * lib/vasnprintf.c (decimal_point_char): Define also if
91150         NEED_PRINTF_INFINITE_LONG_DOUBLE.
91152 2008-09-16  Bruno Haible  <bruno@clisp.org>
91153         and Eric Blake  <ebb9@byu.net>
91155         vasnprintf: support Irix 5.3
91156         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
91157         that mishandle long double infinity.
91158         Reported by Tom G. Christensen.
91160 2008-09-16  Bruno Haible  <bruno@clisp.org>
91162         * doc/glibc-functions/scandir.texi: Mention the function is missing on
91163         Solaris 9.
91164         * doc/glibc-functions/alphasort.texi: Likewise.
91165         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
91167 2008-09-16  Jim Meyering  <meyering@redhat.com>
91169         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
91170         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
91171         a umask modification leak out of a subshell.  Otherwise, the
91172         opensolaris /bin/sh would be accepted and thus cause unwarranted
91173         failures in the coreutils test suite.
91175 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
91177         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
91178         to succeed.
91180 2008-09-16  Jim Meyering  <meyering@redhat.com>
91182         avoid spurious test failure when library is built without ACL support
91183         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
91184         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
91185         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
91186         * tests/test-copy-acl.sh: Likewise.
91188 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91190         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
91191         based on character occurrence counts.
91193 2008-09-15  Eric Blake  <ebb9@byu.net>
91195         tests: avoid some compiler warnings
91196         * tests/test-memchr.c (main): Pass NULL indirectly.
91197         * tests/test-closein.c (main): Avoid unused variable.
91199 2008-09-15  Bruno Haible  <bruno@clisp.org>
91201         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
91202         are missing on OpenBSD 4.0 individually.
91203         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91205 2008-09-15  Bruno Haible  <bruno@clisp.org>
91207         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
91208         * doc/posix-functions/strerror.texi: Mention also Cygwin.
91209         * doc/posix-functions/perror.texi: Likewise.
91210         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
91211         is missing.
91212         Reported by Eric Blake.
91214         * lib/errno.in.h: Use replacement values >= 2000.
91215         Reported by Eric Blake.
91217 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91219         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
91220         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
91221         limit.
91222         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
91223         compareseq was aborted.
91225 2008-09-14  Bruno Haible  <bruno@clisp.org>
91227         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
91228         yvec_edit_count.
91229         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
91230         (fstrcmp_bounded): Simplify result computation accordingly.
91232 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91234         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
91235         (fstrcmp): Define in terms of fstrcmp_bounded.
91236         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
91237         lower_bound argument.
91238         Return quickly if the result is certainly < lower_bound.
91239         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
91241 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91243         * lib/diffseq.h (EARLY_ABORT): New macro.
91244         (compareseq): Change return type to bool. Return true when EARLY_ABORT
91245         evaluates to true.
91247 2008-09-14  Bruno Haible  <bruno@clisp.org>
91249         * modules/perror-tests: New file.
91250         * tests/test-perror.sh: New file.
91251         * tests/test-perror.c: New file.
91253         New module 'perror'.
91254         * lib/stdio.in.h (perror): New declaration.
91255         * lib/perror.c: New file.
91256         * m4/perror.m4: New file.
91257         * modules/perror: New file.
91258         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
91259         * doc/posix-functions/perror.texi: Mention the perror module.
91260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
91261         REPLACE_PERROR.
91262         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
91263         REPLACE_PERROR.
91265 2008-09-14  Bruno Haible  <bruno@clisp.org>
91267         * modules/stdio (Makefile.am): Reorder to match the order in
91268         lib/stdio.in.h.
91269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
91271 2008-09-13  Bruno Haible  <bruno@clisp.org>
91273         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
91275 2008-09-13  Bruno Haible  <bruno@clisp.org>
91277         Extend strerror to cover the added errno values.
91278         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
91279         (rpl_strerror): Provide error messages for the added errno values and
91280         for the WSA* values.
91281         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
91282         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
91283         strerror.
91284         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
91285         * modules/strerror (Depends-on): Add errno.
91286         * doc/posix-functions/strerror.texi: Document the change.
91287         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
91288         and EOVERFLOW.
91290 2008-09-13  Bruno Haible  <bruno@clisp.org>
91292         * modules/EOVERFLOW: Remove file.
91293         * m4/eoverflow.m4: Remove file.
91294         * modules/EOVERFLOW-tests: Remove file.
91295         * tests/test-EOVERFLOW.c: Remove file.
91296         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
91297         * modules/ftell (Depends-on): Likewise.
91298         * modules/getdelim (Depends-on): Likewise.
91299         * modules/getugroups (Depends-on): Likewise.
91300         * modules/poll (Depends-on): Likewise.
91301         * modules/snprintf (Depends-on): Likewise.
91302         * modules/sprintf-posix (Depends-on): Likewise.
91303         * modules/vasnprintf (Depends-on): Likewise.
91304         * modules/vasprintf (Depends-on): Likewise.
91305         * modules/vfprintf-posix (Depends-on): Likewise.
91306         * modules/vsnprintf (Depends-on): Likewise.
91307         * modules/vsprintf-posix (Depends-on): Likewise.
91308         * modules/xvasprintf (Depends-on): Likewise.
91309         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
91310         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
91311         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
91312         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
91313         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
91314         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
91315         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
91316         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
91317         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
91318         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
91319         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
91320         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
91321         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
91322         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
91323         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
91324         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
91325         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
91326         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
91327         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
91328         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
91329         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
91330         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
91331         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
91332         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
91333         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
91334         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
91335         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
91336         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
91337         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
91338         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
91339         * MODULES.html.sh: Remove EOVERFLOW.
91340         * NEWS: Mention the change.
91342 2008-09-13  Bruno Haible  <bruno@clisp.org>
91344         * modules/errno-tests: New file.
91345         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
91347         * lib/errno.in.h: New file.
91348         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
91349         * modules/errno: New file.
91350         * doc/posix-headers/errno.texi: Update documentation.
91351         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
91353 2008-09-13  Bruno Haible  <bruno@clisp.org>
91355         * tests/test-poll.c: Use #if for native Windows, rather than testing
91356         __MSVCRT__.
91358 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91359             Bruno Haible  <bruno@clisp.org>
91361         * lib/glob.c: Don't include <pwd.h> on native Windows.
91362         (WINDOWS32): New macro.
91363         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
91365 2008-09-13  Bruno Haible  <bruno@clisp.org>
91367         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
91368         (ETIMEDOUT): Remove macro.
91369         (glthread_cond_timedwait_multithreaded): New declaration.
91370         (glthread_cond_timedwait): Use it.
91371         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
91372         (glthread_cond_timedwait_multithreaded): New function.
91374 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91376         * modules/poll-tests: Do not check for io.h.
91377         * tests/test-poll.c: Check for __MSVCRT__ instead.
91379 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91381         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
91382         * modules/poll-tests: Add inet_pton, stdbool, sockets.
91383         * tests/test-poll.c: Use them.  Use _pipe on Windows.
91385 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91387         * modules/poll-tests: New.
91388         * tests/test-poll.c: New.
91390 2008-09-12  Eric Blake  <ebb9@byu.net>
91392         frexp: test for NetBSD failure on -0.0
91393         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
91394         not all, bugs from NetBSD 3.0 have been fixed.
91395         * doc/posix-functions/frexp.texi (frexp): Document bug.
91396         Reported by Thomas Klausner.
91398         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
91399         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
91400         literal -0.0.
91401         Reported by Jonathan C. Patschke <jp@centtech.com>.
91403 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91405         * lib/glthread/cond.h: Use dummy implementation also if
91406         USE_WIN32_THREADS.
91408 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91410         * modules/fnmatch-posix (License): Change to LGPLv2+.
91411         * modules/fnmatch-gnu (License): Likewise.
91413 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91415         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
91417 2008-09-11  Jim Meyering  <meyering@redhat.com>
91419         * users.txt: Add gtk-vnc.
91421 2008-09-08  Simon Josefsson  <simon@josefsson.org>
91423         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
91424         rotate amounts.
91426         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
91427         required for 16-bit and 8-bit rotates.
91428         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
91429         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
91430         UINT8_MAX instead of hard-coded constants.
91431         Suggested by Paul Eggert.
91433 2008-09-07  Bruno Haible  <bruno@clisp.org>
91435         * tests/test-striconveh.c (main): Check behaviour when converting from
91436         UTF-7.
91438         Make striconveh work better with stateful encodings.
91439         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
91440         that iconv does not increment the inptr when returning -1/EINVAL.
91442 2008-09-07  Bruno Haible  <bruno@clisp.org>
91444         * build-aux/config.rpath: Update according to libtool-2.2.6.
91445         * build-aux/config.libpath: Likewise.
91447 2008-09-06  Bruno Haible  <bruno@clisp.org>
91449         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
91450         * lib/freadptr.c (freadptr): Likewise.
91451         * lib/freadseek.c (freadptrinc): Likewise.
91452         Reported by Simon Josefsson.
91454 2008-09-06  Bruno Haible  <bruno@clisp.org>
91456         * modules/freadptr (License): Change to LGPLv2+.
91457         * modules/freadseek (License): Likewise.
91458         Suggested by Eric Blake.
91460         * modules/memchr2 (License): Change to LGPLv2+.
91461         Approved by Eric Blake.
91463 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91464             Bruno Haible  <bruno@clisp.org>
91466         Make gnulib-tool work with native 'sed' on AIX.
91467         * gnulib-tool (sed_noop): New variable.
91468         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
91469         func_add_or_update, func_create_testdir): Use it to initialize sed
91470         script variables.
91471         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91473 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
91474             Bruno Haible  <bruno@clisp.org>
91476         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
91477         also works after #include directives.
91479 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
91481         getdate.y: reject an out-of-range timezone value
91482         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
91483         the range [-24...+24].  When specified with only one or two digits,
91484         * tests/test-getdate.c: Tests for the fix.
91485         * doc/getdate.texi: Document this change.
91487 2008-09-03  Bruno Haible  <bruno@clisp.org>
91489         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
91491 2008-09-02  Simon Josefsson  <simon@josefsson.org>
91493         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
91494         <bruce.korb@gmail.com> with ideas from Ben Pfaff
91495         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
91496         Blake <ebb9@byu.net>.
91498         * tests/test-bitrotate.c: Add more test vectors.
91500 2008-09-02  Eric Blake  <ebb9@byu.net>
91502         vasnprintf-posix: handle large precision via %.*d
91503         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
91504         when handling it ourselves.
91505         * tests/test-vasnprintf-posix.c (test_function): Add test.
91506         * tests/test-snprintf-posix.h (test_function): Likewise.
91507         * tests/test-sprintf-posix.h (test_function): Likewise.
91508         * tests/test-vasprintf-posix.c (test_function): Likewise.
91509         Reported by Alain Guibert.
91511 2008-09-01  Eric Blake  <ebb9@byu.net>
91513         c-stack: make configure-time check more robust
91514         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
91515         successful sigaction call.
91516         Reported by Tom G. Christensen.
91518 2008-09-01  Bruno Haible  <bruno@clisp.org>
91520         New module 'findprog-lgpl'.
91521         * modules/findprog-lgpl: New file.
91522         * lib/findprog-lgpl.c: New file.
91523         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
91524         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
91525         to decide whether to use strdup or xstrdup, concatenated_filename or
91526         xconcatenated_filename.
91528 2008-09-01  Bruno Haible  <bruno@clisp.org>
91530         Split module 'concat-filename' into 'concat-filename' (LGPL) and
91531         'xconcat-filename' (GPL).
91532         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
91533         (License): Change to LGPLv2+.
91534         * modules/xconcat-filename: New file.
91535         * lib/concat-filename.h (concatenated_filename): Change specification.
91536         (xconcatenated_filename): New declaration.
91537         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
91538         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
91539         memory situations.
91540         * lib/xconcat-filename.c: New file.
91541         * NEWS: Mention the change.
91542         * lib/findprog.c: Include concat-filename.h, not filename.h.
91543         (find_in_path): Use xconcatenated_filename instead of
91544         concatenated_filename.
91545         * lib/javacomp.c: Include concat-filename.h, not filename.h.
91546         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91547         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91548         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91549         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
91550         instead of concatenated_filename.
91551         * lib/javaexec.c: Include concat-filename.h, not filename.h.
91552         (execute_java_class): Use xconcatenated_filename instead of
91553         concatenated_filename.
91554         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
91555         * modules/javacomp (Depends-on): Likewise.
91556         * modules/javaexec (Depends-on): Likewise.
91558 2008-09-01  Bruno Haible  <bruno@clisp.org>
91560         Split module 'filename' into 'filename' and 'concat-filename'.
91561         * modules/filename: Keep only lib/filename.h.
91562         (License): Change to LGPLv2+.
91563         * modules/concat-filename: New file, extracted from modules/filename.
91564         * lib/filename.h (concatenated_filename): Remove declaration.
91565         * lib/concat-filename.h: New file, extracted from lib/filename.h.
91566         * lib/concat-filename.c: Include concat-filename.h.
91567         * NEWS: Mention the change.
91569 2008-09-01  Simon Josefsson  <simon@josefsson.org>
91571         * lib/bitrotate.h (rotl8, rotr8): Add.
91573         * modules/bitrotate (configure.ac): Need
91574         AC_REQUIRE([AC_C_INLINE]).
91575         (Description): Mention stdint.h.  Reported by Bruno Haible
91576         <bruno@clisp.org>.
91578         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
91579         Paolo Bonzini <bonzini@gnu.org>.
91581 2008-08-31  Bruno Haible  <bruno@clisp.org>
91583         Assume Solaris specific bi-arch conventions on Solaris systems.
91584         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
91585         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
91586         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
91587         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
91588         like acl_libdirstem.
91589         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
91590         acl_libdirstem.
91591         * NEWS: Mention the change.
91592         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
91594 2008-08-31  Jim Meyering  <meyering@redhat.com>
91596         * lib/strftime.h: Add comments describing the two added arguments.
91598         remove duplicate #include directives
91599         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
91600         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
91602 2008-08-31  Bruno Haible  <bruno@clisp.org>
91604         New module 'sigpipe-die'.
91605         * modules/sigpipe-die: New file.
91606         * lib/sigpipe-die.h: New file.
91607         * lib/sigpipe-die.c: New file.
91608         * MODULES.html.sh (Signal handling): Add sigpipe-die.
91610 2008-08-31  Bruno Haible  <bruno@clisp.org>
91612         Don't override previously installed signal handlers.
91613         * lib/fatal-signal.c (saved_sigactions): New variable.
91614         (uninstall_handlers): Reset the signal to the saved handler, not
91615         to SIG_DFL (except when ignored).
91616         (install_handlers): Save the previous handlers.
91618 2008-08-30  Bruno Haible  <bruno@clisp.org>
91620         * gnulib-tool (func_reset_sigpipe): New function.
91621         (func_get_automake_snippet, func_modules_transitive_closure,
91622         func_import): Invoke it before a join command that reads from stdin,
91623         to avoid "echo: write error: Broken pipe" error messages on stderr.
91624         Reported by Sam Steingold <sds@gnu.org>.
91626 2008-08-30  Bruno Haible  <bruno@clisp.org>
91628         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
91629         Code copied from m4/open.m4.
91630         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
91631         access and the filename ends in a slash. Code copied from lib/open.c.
91632         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
91633         * tests/test-fopen.c (main): Check against bug with trailing slash.
91635 2008-08-29  Bruno Haible  <bruno@clisp.org>
91637         Avoid some "gcc -pedantic" warnings.
91638         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
91639         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
91640         * lib/dirent.in.h: Likewise.
91641         * lib/fcntl.in.h: Likewise.
91642         * lib/float.in.h: Likewise.
91643         * lib/iconv.in.h: Likewise.
91644         * lib/inttypes.in.h: Likewise.
91645         * lib/locale.in.h: Likewise.
91646         * lib/math.in.h: Likewise.
91647         * lib/netinet_in.in.h: Likewise.
91648         * lib/search.in.h: Likewise.
91649         * lib/signal.in.h: Likewise.
91650         * lib/stdarg.in.h: Likewise.
91651         * lib/stdint.in.h: Likewise.
91652         * lib/stdio.in.h: Likewise.
91653         * lib/stdlib.in.h: Likewise.
91654         * lib/string.in.h: Likewise.
91655         * lib/strings.in.h: Likewise.
91656         * lib/sys_select.in.h: Likewise.
91657         * lib/sys_socket.in.h: Likewise.
91658         * lib/sys_stat.in.h: Likewise.
91659         * lib/sys_time.in.h: Likewise.
91660         * lib/sysexits.in.h: Likewise.
91661         * lib/time.in.h: Likewise.
91662         * lib/unistd.in.h: Likewise.
91663         * lib/wchar.in.h: Likewise.
91664         * lib/wctype.in.h: Likewise.
91665         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
91666         * modules/fchdir (Makefile.am): Likewise.
91667         * modules/fcntl (Makefile.am): Likewise.
91668         * modules/float (Makefile.am): Likewise.
91669         * modules/iconv_open (Makefile.am): Likewise.
91670         * modules/inttypes (Makefile.am): Likewise.
91671         * modules/locale (Makefile.am): Likewise.
91672         * modules/math (Makefile.am): Likewise.
91673         * modules/netinet_in (Makefile.am): Likewise.
91674         * modules/search (Makefile.am): Likewise.
91675         * modules/signal (Makefile.am): Likewise.
91676         * modules/stdarg (Makefile.am): Likewise.
91677         * modules/stdint (Makefile.am): Likewise.
91678         * modules/stdio (Makefile.am): Likewise.
91679         * modules/stdlib (Makefile.am): Likewise.
91680         * modules/string (Makefile.am): Likewise.
91681         * modules/strings (Makefile.am): Likewise.
91682         * modules/sys_select (Makefile.am): Likewise.
91683         * modules/sys_socket (Makefile.am): Likewise.
91684         * modules/sys_stat (Makefile.am): Likewise.
91685         * modules/sys_time (Makefile.am): Likewise.
91686         * modules/sysexits (Makefile.am): Likewise.
91687         * modules/time (Makefile.am): Likewise.
91688         * modules/unistd (Makefile.am): Likewise.
91689         * modules/wchar (Makefile.am): Likewise.
91690         * modules/wctype (Makefile.am): Likewise.
91691         Reported by Reuben Thomas <rrt@sc3d.org>.
91693 2008-08-29  Bruno Haible  <bruno@clisp.org>
91695         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
91696         any more.
91698 2008-08-29  Simon Josefsson  <simon@josefsson.org>
91700         * MODULES.html.sh (Misc): Add bitrotate.
91702         * modules/bitrotate: New file.
91704         * lib/bitrotate.h: New file.
91706         * modules/bitrotate-tests: New file.
91708         * tests/test-bitrotate.c: New file.
91710         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
91711         on the bitrotate module.
91713         * lib/arctwo.c: Use new bitrotate module.
91715 2008-08-29  Jim Meyering  <meyering@redhat.com>
91717         bootstrap: merge changes from coreutils
91718         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
91719         of copied files.  Remove a kludge, now that this is fixed.
91720         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
91721         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
91722         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
91724 2008-08-29  Bruno Haible  <bruno@clisp.org>
91726         * MODULES.html.sh: Remove --cvs-urls option.
91728 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
91730         maint.mk: adjust to file name change
91731         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
91733 2008-08-28  Jim Meyering  <meyering@redhat.com>
91735         * modules/getndelim2 (License): Relicense to LGPLv2+.
91736         Approved by Richard Stallman for the version of 1995, and by
91737         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
91739 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
91741         * lib/getdelim.c (flockfile, funlockfile): Make all of them
91742         dummy if one is not available.  Do not touch them if
91743         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
91744         (getc_maybe_unlocked): New.
91745         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
91747 2008-08-26  Eric Blake  <ebb9@byu.net>
91749         doc/INSTALL: resync from autoconf
91750         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
91751         (INSTALL_PRELUDE): Delete; this is done more efficiently by
91752         moving...
91753         * install.texi [!autoconf]: ...here.  Resync from autoconf.
91754         * INSTALL: Regenerate.
91755         * INSTALL.ISO: New file.
91756         * INSTALL.UTF-8: Likewise.
91758 2008-08-26  Jim Meyering  <meyering@redhat.com>
91760         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
91761         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
91762         these definitions conditional, so that they may be overridden, too.
91764 2008-08-26  Bruno Haible  <bruno@clisp.org>
91766         Generate INSTALL file variants with prettier quotes.
91767         * doc/Makefile (INSTALL_PRELUDE): New macro.
91768         (INSTALL): Use it.
91769         (INSTALL.ISO, INSTALL.UTF-8): New rules.
91771 2008-08-26  Bruno Haible  <bruno@clisp.org>
91773         Run makeinfo in an English locale.
91774         * doc/Makefile (MAKEINFO): New variable.
91776 2008-08-26  Bruno Haible  <bruno@clisp.org>
91778         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
91779         Suggested by Eric Blake.
91781 2008-08-25  Bruno Haible  <bruno@clisp.org>
91783         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
91785 2008-08-25  Eric Blake  <ebb9@byu.net>
91787         c-stack: test that stack overflow can be caught
91788         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
91789         that platform allows handling stack overflow; at least OS/2 EMX
91790         has sigaltstack, but crashes before transferring control to
91791         handler on stack overflow.
91792         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
91793         check for HAVE_STACK_OVERFLOW_HANDLING.
91794         Reported by Elbert Pol.
91796 2008-08-25  Bruno Haible  <bruno@clisp.org>
91798         * doc/posix-functions/strftime.texi: Fix description of strftime
91799         module.
91801 2008-08-24  Bruno Haible  <bruno@clisp.org>
91803         * tests/uniwidth/test-uc_width2.c: New file.
91804         * tests/uniwidth/test-uc_width2.sh: New file.
91805         * modules/uniwidth/width-tests (Files): Add the new files.
91806         (TESTS): Add uniwidth/test-uc_width2.sh.
91807         (TESTS_ENVIRONMENT): New variable.
91808         (check_PROGRAMS): Add test-uc_width2.
91809         (test_uc_width2_SOURCES): New variable.
91811         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
91812         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
91813         not 0x00AB.
91814         Reported by Alexander V. Lukyanov <lav@netis.ru>.
91816 2008-08-22  Eric Blake  <ebb9@byu.net>
91818         test-lock, test-tls: mention why a test is skipped
91819         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
91820         skipped.
91821         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
91823         count-one-bits: relax license
91824         * modules/count-one-bits (License): Relicense to LGPLv2+.
91825         Suggested by Ludovic Courtès, approved by Ben Pfaff.
91827 2008-08-22  Andreas Schwab  <schwab@suse.de>
91829         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
91830         Remove spurious space in assignment.
91832 2008-08-21  Simon Josefsson  <simon@josefsson.org>
91834         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
91835         Paul Eggert <eggert@CS.UCLA.EDU>.
91837 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
91839         * modules/gettext: Add m4/threadlib.m4.
91841 2008-08-19  Eric Blake  <ebb9@byu.net>
91843         test-c-stack: fix compilation failure on FreeBSD 5.0
91844         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
91845         headers before <sys/resource.h>.
91846         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
91847         the bug.
91848         Reported by Nelson H. F. Beebe.
91850         strverscmp: migrate from "strverscmp.h" to <string.h>
91851         * modules/string (Makefile.am): Add new hooks.
91852         * modules/strverscmp (Files): Remove strverscmp.h.
91853         (Depends-on): Add string.
91854         (configure.ac): Add indicator.
91855         (Include): Mention new header.
91856         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
91857         defaults.
91858         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
91859         results.
91860         * lib/strverscmp.h: Delete.
91861         * lib/string.in.h (strverscmp): Provide declaration, when needed.
91862         * tests/test-strverscmp.c (includes): Adjust client.
91863         * lib/check-version.c (includes): Likewise.
91864         * NEWS: Document the change.
91866         strverscmp: add unit test
91867         * modules/strverscmp-tests: New file.
91868         * tests/test-strverscmp.c: Likewise.
91870 2008-08-19  Simon Josefsson  <simon@josefsson.org>
91872         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
91873         regarding Windows crypto stuff, from Mono.
91875 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
91877         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
91878         if present, for intel RND.  Return error on failures.
91880 2008-08-18  Ben Pfaff  <blp@gnu.org>
91882         gitlog-to-changelog: give better diagnostic for failed pipe-open
91883         * build-aux/gitlog-to-changelog: Improve error message: suggest
91884         that the version of Git may be too old.
91886 2008-08-18  Simon Josefsson  <simon@josefsson.org>
91888         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
91889         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
91891 2008-08-18  Bruno Haible  <bruno@clisp.org>
91893         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
91894         pthread_in_use().
91896 2008-08-18  Bruno Haible  <bruno@clisp.org>
91898         * lib/glthread/threadlib.c: Include <pthread.h>.
91900 2008-08-18  Bruno Haible  <bruno@clisp.org>
91902         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
91903         glthread_recursive_lock_* macros.
91904         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
91905         Fix syntax error.
91907 2008-08-18  Bruno Haible  <bruno@clisp.org>
91909         * lib/glthread/thread.c: Avoid forcing a context switch right after
91910         thread creation.
91912 2008-08-17  Bruno Haible  <bruno@clisp.org>
91914         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
91915         * lib/glthread/thread.h: Provide Win32 specific implementation.
91916         * modules/thread (Files): Add lib/glthread/thread.c.
91917         (Depends-on): Add lock.
91918         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
91920 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91922         New module 'yield'.
91923         * modules/yield: New file.
91924         * lib/glthread/yield.h: New file.
91925         * m4/yield.m4: New file.
91926         * MODULES.html.sh (Multithreading): Add yield.
91928 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91930         New module 'thread'.
91931         * modules/thread: New file.
91932         * lib/glthread/thread.h: New file.
91933         * m4/thread.m4: New file.
91934         * MODULES.html.sh (Multithreading): Add thread.
91936 2008-08-17  Bruno Haible  <bruno@clisp.org>
91938         * lib/glthread/lock.h: Include <stdlib.h> always.
91939         * lib/glthread/tls.h: Likewise.
91940         * lib/glthread/cond.h: Likewise.
91942 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91944         New module 'cond'.
91945         * modules/cond: New file.
91946         * lib/glthread/cond.h: New file.
91947         * lib/glthread/cond.c: New file.
91948         * m4/cond.m4: New file.
91949         * MODULES.html.sh (Multithreading): Add cond.
91951 2008-08-16  Eric Blake  <ebb9@byu.net>
91953         c-stack: fix regression on Irix 5.3 from 2008-06-21
91954         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
91955         sa_sigaction...
91956         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
91957         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
91958         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
91959         * modules/signal (Makefile.am): Use the value.
91960         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
91961         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
91962         * doc/posix-headers/signal.texi (signal.h): Document this
91963         portability issue.
91964         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
91965         Reported by Tom G. Christensen.
91967 2008-08-17  Bruno Haible  <bruno@clisp.org>
91969         New module 'threadlib'.
91970         * modules/threadlib: New file.
91971         * lib/glthread/threadlib.c: New file, extracted from
91972         lib/glthread/lock.c.
91973         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
91974         functions.
91975         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
91976         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
91977         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
91978         macros.
91979         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
91980         (gl_DISABLE_THREADS): Remove macro.
91981         * modules/lock (Files): Remove build-aux/config.rpath.
91982         (Depends-on): Remove havelib. Add threadlib.
91983         (configure.ac-early): Remove section.
91984         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
91985         * modules/tls (Depends-on): Remove lock. Add threadlib.
91986         (Link): New section, copied from threadlib.
91987         * MODULES.html.sh (Multithreading): Add threadlib.
91989 2008-08-14  Bruno Haible  <bruno@clisp.org>
91991         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
91992         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
91993         glthread_rwlock_unlock, glthread_rwlock_destroy,
91994         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
91995         glthread_recursive_lock_destroy): Define as macros always.
91996         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
91997         glthread_lock_lock.
91998         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
91999         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
92000         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
92001         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
92002         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
92003         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
92004         (glthread_recursive_lock_lock_func): Renamed from
92005         glthread_recursive_lock_lock.
92006         (glthread_recursive_lock_unlock_func): Renamed from
92007         glthread_recursive_lock_unlock.
92008         (glthread_recursive_lock_destroy_func): Renamed from
92009         glthread_recursive_lock_destroy.
92011 2008-08-14  Bruno Haible  <bruno@clisp.org>
92013         * lib/glthread/lock.h: Renamed from lib/lock.h.
92014         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
92015         * lib/glthread/tls.h: Renamed from lib/tls.h.
92016         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
92017         * lib/fstrcmp.c: Update includes.
92018         * lib/strsignal.c: Update includes.
92019         * modules/lock (Files, Makefile.am): Update.
92020         (Include): Change to "glthread/lock.h".
92021         * modules/tls (Files, Makefile.am): Update.
92022         (Include): Change to "glthread/tls.h".
92023         * tests/test-lock.c: Update includes.
92024         * tests/test-tls.c: Update includes.
92025         * NEWS: Mention the renamed header files.
92027 2008-08-11  Jim Meyering  <meyering@redhat.com>
92029         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
92031 2008-08-11  Eric Blake  <ebb9@byu.net>
92033         test-c-stack: avoid C99-ism
92034         * tests/test-c-stack.c (main): Fix whitespace, move declaration
92035         before statement.
92036         Reported by Alain Guibert.
92038 2008-08-10  Jim Meyering  <meyering@redhat.com>
92040         ensure that return value of uinttostr et al are not ignored
92041         * lib/inttostr.h (__GNUC_PREREQ): Define.
92042         (__attribute_warn_unused_result__): Define.
92043         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
92045 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
92047         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
92048         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
92050 2008-08-07  Jim Meyering  <meyering@redhat.com>
92052         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
92054         * modules/mkstemp (License): Relicense under LGPLv2+.
92055         * modules/tempname (License): Likewise.
92057 2008-08-06  Bruno Haible  <bruno@clisp.org>
92059         * lib/poll.c (poll): Further micro-optimization.
92061 2008-08-06  Jim Meyering  <meyering@redhat.com>
92063         inet_pton.c: use locale-independent tolower
92064         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
92065         (inet_pton6): Use c_tolower rather than tolower.
92066         * modules/inet_pton (Depends-on): Add c-ctype.
92068 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
92070         * lib/poll.c (poll): Avoid division when timeout is 0, cache
92071         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
92073 2008-08-06  Jim Meyering  <meyering@redhat.com>
92075         * modules/inet_pton (License): Relicense under LGPLv2+.
92077 2008-08-03  Bruno Haible  <bruno@clisp.org>
92079         Additional non-aborting API for lock and tls.
92080         * lib/lock.h: Include <errno.h>.
92081         (glthread_lock_init): New macro/function.
92082         (gl_lock_init): Define as wrapper around glthread_lock_init.
92083         (glthread_lock_lock): New macro/function.
92084         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
92085         (glthread_lock_unlock): New macro/function.
92086         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
92087         (glthread_lock_destroy): New macro/function.
92088         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
92089         (glthread_rwlock_init): New macro/function.
92090         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
92091         (glthread_rwlock_rdlock): New macro/function.
92092         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
92093         (glthread_rwlock_wrlock): New macro/function.
92094         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
92095         (glthread_rwlock_unlock): New macro/function.
92096         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
92097         (glthread_rwlock_destroy): New macro/function.
92098         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
92099         (glthread_recursive_lock_init): New macro/function.
92100         (gl_recursive_lock_init): Define as wrapper around
92101         glthread_recursive_lock_init.
92102         (glthread_recursive_lock_lock): New macro/function.
92103         (gl_recursive_lock_lock): Define as wrapper around
92104         glthread_recursive_lock_lock.
92105         (glthread_recursive_lock_unlock): New macro/function.
92106         (gl_recursive_lock_unlock): Define as wrapper around
92107         glthread_recursive_lock_unlock.
92108         (glthread_recursive_lock_destroy): New macro/function.
92109         (gl_recursive_lock_destroy): Define as wrapper around
92110         glthread_recursive_lock_destroy.
92111         (glthread_once): New macro/function.
92112         (gl_once): Define as wrapper around glthread_once.
92113         Update function declarations.
92114         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
92115         glthread_rwlock_init. Return error code.
92116         (glthread_rwlock_rdlock_multithreaded): Renamed from
92117         glthread_rwlock_rdlock. Return error code.
92118         (glthread_rwlock_wrlock_multithreaded): Renamed from
92119         glthread_rwlock_wrlock. Return error code.
92120         (glthread_rwlock_unlock_multithreaded): Renamed from
92121         glthread_rwlock_unlock. Return error code.
92122         (glthread_rwlock_destroy_multithreaded): Renamed from
92123         glthread_rwlock_destroy. Return error code.
92124         (glthread_recursive_lock_init_multithreaded): Renamed from
92125         glthread_recursive_lock_init. Return error code.
92126         (glthread_recursive_lock_lock_multithreaded): Renamed from
92127         glthread_recursive_lock_lock. Return error code.
92128         (glthread_recursive_lock_unlock_multithreaded): Renamed from
92129         glthread_recursive_lock_unlock. Return error code.
92130         (glthread_recursive_lock_destroy_multithreaded): Renamed from
92131         glthread_recursive_lock_destroy. Return error code.
92132         (glthread_once_call): Make static.
92133         (glthread_once_multithreaded): Renamed from glthread_once.
92134         * lib/tls.h: Include <errno.h>.
92135         (glthread_tls_key_init): New macro/function.
92136         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
92137         (glthread_tls_set): New macro/function.
92138         (gl_tls_set): Define as wrapper around glthread_tls_set.
92139         (glthread_tls_key_destroy): New macro/function.
92140         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
92141         Update function declarations.
92142         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
92143         glthread_tls_get.
92144         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
92146 2008-08-04  Eric Blake  <ebb9@byu.net>
92148         gnumakefile: use space, not TAB, outside of targets
92149         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
92151 2008-08-02  Jim Meyering  <meyering@redhat.com>
92153         getdate.y: avoid locale-dependent date parsing failure
92154         In Turkish locales, getdate would fail to recognize keywords
92155         containing a lowercase "i".  The solution is not to rely on
92156         locale-sensitive case-conversion.
92157         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
92158         (lookup_word): Use c_toupper in place of toupper.
92159         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
92160         Reported by Vefa Bicakci <bicave@superonline.com> in
92161         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
92162         * modules/getdate (Depends-on): Add c-ctype.
92164 2008-08-02  Bruno Haible  <bruno@clisp.org>
92166         * gnulib-tool (func_import): When updating or creating a .gitignore
92167         file, prepend each added line with a slash, and ignore leading slashes
92168         from the existing lines.
92169         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92171 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92173         Portability fix for GNU make 3.79.1.
92174         * top/GNUmakefile: Avoid 'else COND', which older GNU make
92175         versions do not understand.
92177 2008-08-01  Bruno Haible  <bruno@clisp.org>
92179         Work around bug of HP-UX 10.20 cc with -0.0 literal.
92180         * tests/test-isnanf.h (zero): New variable.
92181         (main): Avoid literal -0.0f.
92182         * tests/test-isnand.h (zero): New variable.
92183         (main): Avoid literal -0.0.
92184         * tests/test-isnanl.h (zero): New variable.
92185         (main): Avoid literal -0.0L.
92186         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
92187         (test_float, test_double, test_long_double): Avoid literals -0.0f,
92188         -0.0, -0.0L.
92189         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
92190         (test_signbitd): Avoid literal -0.0.
92191         (test_signbitl): Avoid literal -0.0L.
92192         * tests/test-ceilf1.c (zero): New variable.
92193         (main): Avoid literal -0.0f.
92194         * tests/test-ceill.c (zero): New variable.
92195         (main): Avoid literal -0.0L.
92196         * tests/test-floorf1.c (zero): New variable.
92197         (main): Avoid literal -0.0f.
92198         * tests/test-floorl.c (zero): New variable.
92199         (main): Avoid literal -0.0L.
92200         * tests/test-roundf1.c (zero): New variable.
92201         (main): Avoid literal -0.0f.
92202         * tests/test-round1.c (zero): New variable.
92203         (main): Avoid literal -0.0.
92204         * tests/test-roundl.c (zero): New variable.
92205         (main): Avoid literal -0.0L.
92206         * tests/test-truncf1.c (zero): New variable.
92207         (main): Avoid literal -0.0f.
92208         * tests/test-trunc1.c (zero): New variable.
92209         (main): Avoid literal -0.0.
92210         * tests/test-truncl.c (zero): New variable.
92211         (main): Avoid literal -0.0L.
92212         * tests/test-frexp.c (zero): New variable.
92213         (main): Avoid literal -0.0.
92214         * tests/test-frexpl.c (zero): New variable.
92215         (main): Avoid literal -0.0L.
92216         * tests/test-ldexpl.c (zero): New variable.
92217         (main): Avoid literal -0.0L.
92218         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
92219         (zerod, zerol): New variables.
92220         (test_function): Avoid literals -0.0, -0.0L.
92221         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
92222         (zerod, zerol): New variables.
92223         (test_function): Avoid literals -0.0, -0.0L.
92224         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
92225         (zerod, zerol): New variables.
92226         (test_function): Avoid literals -0.0, -0.0L.
92227         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
92228         (zerod, zerol): New variables.
92229         (test_function): Avoid literals -0.0, -0.0L.
92230         * tests/test-strtod.c (zero): New variable.
92231         (main): Avoid literal -0.0.
92232         Reported by Jonathan C. Patschke <jp@centtech.com>.
92234 2008-07-31  Jim Meyering  <meyering@redhat.com>
92236         sha256.h: correct definition of SHA224_DIGEST_SIZE
92237         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
92238         Reported by Paulie Pena IV <paulie4@gmail.com>.
92239         Define as 224 / 8, rather than as a literal.
92240         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
92241         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
92242         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
92244 2008-07-31  Bruno Haible  <bruno@clisp.org>
92246         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
92247         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
92248         Reported by Jonathan Patschke <jp@centtech.com>.
92250 2008-07-31  Bruno Haible  <bruno@clisp.org>
92252         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
92253         Reported by Paolo Bonzini <bonzini@gnu.org>.
92255 2008-07-30  Eric Blake  <ebb9@byu.net>
92257         test-strtod: allow compilation without -lm
92258         * tests/test-strtod.c (main): Avoid link dependence on fabs.
92259         Reported by Dennis Clarke <blastwave@gmail.com>.
92261 2008-07-28  Jim Meyering  <meyering@redhat.com>
92263         bootstrap: work also when there are no .po files in po/
92264         * build-aux/bootstrap (update_po_files): Complete the change
92265         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
92267 2008-07-27  Jim Meyering  <meyering@redhat.com>
92269         * users.txt: Add zile.
92271 2008-07-26  Ben Pfaff  <blp@gnu.org>
92273         Add missing dependencies on new m4/exponent[fdl].m4 files.
92274         * modules/isnanf-nolibm: Add m4/exponentf.m4.
92275         * modules/isnand-nolibm: Add m4/exponentd.m4.
92276         * modules/isnanl-nolibm: Add m4/exponentl.m4.
92277         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
92278         m4/isnan[fdl].m4, because the macros actually used moved.
92279         Reported by Jim Meyering.
92281 2008-07-14  Ben Pfaff  <blp@gnu.org>
92283         Add isinf module.
92284         * lib/isinf.c: New file.
92285         * lib/math.in.h: Define isinf macro if we have decided to replace
92286         it.
92287         * m4/isinf.m4: New file.
92288         * m4/math_h.m4: Initialize and substitute variables for isinf
92289         module.
92290         * modules/isinf: New file.
92291         * modules/isinf-tests: New file.
92292         * modules/math: Add substitutions for new module.
92293         * tests/test-isinf.c: New file.
92294         * doc/posix-functions/isinf.texi: Mention new module.
92295         * MODULES.html.sh: Mention new module.
92297 2008-07-14  Ben Pfaff  <blp@gnu.org>
92299         Factor out some macros for use by additional modules.
92300         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
92301         exponentf.m4.
92302         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
92303         exponentd.m4.
92304         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
92305         file exponentl.m4.
92306         * m4/exponentf.m4: New file.
92307         * m4/exponentd.m4: New file.
92308         * m4/exponentl.m4: New file.
92309         * modules/isnanf: Use new file m4/exponentf.m4.
92310         * modules/isnand: Use new file m4/exponentd.m4.
92311         * modules/isnanl: Use new file m4/exponentl.m4.
92313 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
92315         mktime.c: normalize tp->tm_isdst value to -1/0/1.
92316         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
92317         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
92318         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
92320         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
92321         readlink on platforms without PATH_MAX.
92323 2008-07-21  Eric Blake  <ebb9@byu.net>
92325         Warn, not fail, on stale version.
92326         * top/GNUmakefile (_curr-ver): Tone down previous patch.
92328         Don't allow installation with stale devel version number.
92329         * top/GNUmakefile (_is-install-target): New macro.
92330         (_curr-ver): Forbid installation with stale version number.
92332 2008-07-20  Bruno Haible  <bruno@clisp.org>
92334         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
92335         TESTS_ENVIRONMENT.
92336         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
92338 2008-07-20  Bruno Haible  <bruno@clisp.org>
92340         * lib/c-stack.h (c_stack_action): Add documentation.
92341         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
92343 2008-07-20  Bruno Haible  <bruno@clisp.org>
92345         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
92346         * modules/readlink (License): Likewise.
92348 2008-07-17  Eric Blake  <ebb9@byu.net>
92350         * modules/c-stack (Link): Fix typo.
92352         Make c-stack use libsigsegv, when available.
92353         * modules/c-stack (Depends-on): Add libsigsegv.
92354         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
92355         needed.
92356         * lib/c-stack.c (SIGSTKSZ): Define fallback.
92357         (segv_handler, overflow_handler, c_stack_action)
92358         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
92359         implementation when libsigsegv is available, but only when using
92360         the library is necessary.
92361         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
92362         comment, explaining why XSI check fails on Linux.
92363         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
92364         * tests/test-c-stack2.sh: Tweak skip message.
92365         * NEWS: Document new link-time requirements.
92367 2008-07-16  Eric Blake  <ebb9@byu.net>
92369         c-stack: Expose false positives when not using libsigsegv.
92370         * modules/c-stack-tests (Files): Expand test.
92371         * tests/test-c-stack.c (main): Add means to conditionally trigger
92372         non-overflow SIGSEGV.
92373         * tests/test-c-stack2.sh: New file.
92375 2008-07-14  Bruno Haible  <bruno@clisp.org>
92377         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
92378         Reported by Eric Blake.
92380 2008-07-14  Sam Steingold  <sds@gnu.org>
92381             Bruno Haible  <bruno@clisp.org>
92383         New module libsigsegv.
92384         * modules/libsigsegv: New file.
92385         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
92386         modifications.
92387         * MODULES.html.sh (Signal handling): New section.
92389 2008-07-14  Bruno Haible  <bruno@clisp.org>
92391         * modules/unictype/ctype-* (Description): Add the word "function".
92392         Improves the resulting doc in MODULES.html.
92394 2008-07-12  Ben Pfaff  <blp@gnu.org>
92396         Add longlong module.
92397         * modules/longlong: New file.
92399 2008-07-12  Bruno Haible  <bruno@clisp.org>
92401         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
92402         to empty.
92404 2008-07-10  Ben Pfaff  <blp@gnu.org>
92406         Add isnan module.
92407         * doc/posix-functions/isnan.texi: Mention new module.
92408         * lib/math.in.h: Define isnan macro if we have decided to replace
92409         it.
92410         * m4/isnan.m4: New file.
92411         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
92412         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
92413         also.
92414         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
92415         redundancy.
92416         * m4/math_h.m4: Initialize and substitute variables for isnan
92417         module.
92418         * modules/isnan: New file.
92419         * modules/isnan-tests: New file.
92420         * modules/math: Add substitutions for new module.
92421         * tests/test-isnan.c: New file.
92422         * MODULES.html.sh: Mention new module.
92424 2008-07-10  Ben Pfaff  <blp@gnu.org>
92426         Add isnanf module.
92427         * lib/isnanf.m4: New file.
92428         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
92429         (gl_HAVE_ISNANF_IN_LIBM): New macro.
92430         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
92431         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
92432         * modules/isnanf: New file.
92433         * modules/isnanf-tests: New file.
92434         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
92435         files.
92436         * tests/test-isnanf-nolibm.c: factored most of its contents into
92437         new file tests/test-isnanf.h.
92438         * tests/test-isnanf.h: New file.
92439         * tests/test-isnanf.c: New file.
92440         * MODULES.html.sh: Mention new module.
92441         * doc/glibc-functions/isnanf.texi: Mention new module.
92443 2008-07-10  Ben Pfaff  <blp@gnu.org>
92445         Add isnand module.
92446         * lib/isnand.h: New file.
92447         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
92448         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
92449         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
92450         functionality also.
92451         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
92452         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
92453         (gl_HAVE_ISNAND_IN_LIBM): New macro.
92454         * modules/isnand: New file.
92455         * modules/isnand-tests: New file.
92456         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
92457         files.
92458         * tests/test-isnand-nolibm.c: factored most of its contents into
92459         new file tests/test-isnand.h.
92460         * tests/test-isnand.h: New file.
92461         * tests/test-isnand.c: New file.
92462         * MODULES.html.sh: Mention new module.
92464 2008-07-10  Ben Pfaff  <blp@gnu.org>
92466         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
92467         * lib/isnand.h: Rename lib/isnand-nolibm.h.
92468         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
92469         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
92470         * modules/isnanf-nolibm: Update references to renamed files.
92471         * modules/isnand-nolibm: Likewise.
92472         * modules/isnanf-nolibm-tests: Likewise.
92473         * modules/isnand-nolibm-tests: Likewise.
92474         * lib/frexp.c: Likewise.
92475         * lib/isfinite.c: Likewise.
92476         * lib/signbitd.c: Likewise.
92477         * lib/signbitf.c: Likewise.
92478         * lib/vasnprintf.c: Likewise.
92479         * tests/test-ceilf1.c: Likewise.
92480         * tests/test-ceilf2.c: Likewise.
92481         * tests/test-floorf1.c: Likewise.
92482         * tests/test-floorf2.c: Likewise.
92483         * tests/test-frexp.c: Likewise.
92484         * tests/test-round1.c: Likewise.
92485         * tests/test-round2.c: Likewise.
92486         * tests/test-roundf1.c: Likewise.
92487         * tests/test-strtod.c: Likewise.
92488         * tests/test-trunc1.c: Likewise.
92489         * tests/test-trunc2.c: Likewise.
92490         * tests/test-truncf1.c: Likewise.
92491         * tests/test-truncf2.c: Likewise.
92492         * NEWS: Mention the renamed header files.
92494 2008-07-11  Jim Meyering  <meyering@redhat.com>
92496         vc-list-files: make the last-resort awk code more portable
92497         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
92498         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
92499         does not support it.
92501 2008-07-10  Eric Blake  <ebb9@byu.net>
92503         Work with tar's bootstrap.
92504         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
92505         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
92506         an m4 comment.
92508 2008-07-09  Jim Meyering  <meyering@redhat.com>
92510         posix-shell.m4: fix typo that made this test malfunction
92511         * m4/posix-shell.m4: Remove capitalization in variable name.
92513 2008-07-08  Bruno Haible  <bruno@clisp.org>
92515         * m4/onceonly.m4: Update comments.
92516         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92518 2008-07-04  Jim Meyering  <meyering@redhat.com>
92520         * users.txt: Add vc-dwim.
92521         (bison, coreutils): Use the gitweb URL.
92523 2008-07-03  Jim Meyering  <meyering@redhat.com>
92525         * users.txt: Add libffcall.  From Sam Steingold.
92527 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
92529         getdate.y: do not ignore TZ with relative day, month or year offset
92530         * lib/getdate.y (get_date): Move the tz-handling block to follow the
92531         relative-date-handling, since otherwise, the latter would clobber the
92532         sole output (an updated Start value) of the tz-handling block.
92533         * tests/test-getdate.c: Tests for the fix
92535 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92537         Recognize 'foo_LIBRARIES += libgnu.a'.
92538         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
92539         makefile snippet has already specified an installation location,
92540         also using '+='.
92542 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
92544         getdate.y: factor out common actions
92545         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
92546         Use them in place of open-coded actions.
92548 2008-07-01  Simon Josefsson  <simon@josefsson.org>
92550         Add self-test for getdate module.
92551         * modules/getdate-tests: New file.
92552         * tests/test-getdate.c: New file.
92554 2008-06-29  Bruno Haible  <bruno@clisp.org>
92556         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
92557         .gitignore.
92558         Reported by Sylvain Beucler <beuc@beuc.net>.
92560 2008-06-29  Bruno Haible  <bruno@clisp.org>
92562         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
92563         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
92565 2008-06-29  Bruno Haible  <bruno@clisp.org>
92567         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
92568         EXTRA_DIST.
92569         Reported by Sylvain Beucler <beuc@beuc.net>.
92571 2008-06-26  Jim Meyering  <meyering@redhat.com>
92573         make several modules depend on the "open" module
92574         This provides slightly increased consistency when opening-for-write
92575         the name of a non-directory spelled with a trailing slash.
92576         * modules/chdir-safer: Likewise.
92577         * modules/chown: Likewise.
92578         * modules/clean-temp: Likewise.
92579         * modules/copy-file: Likewise.
92580         * modules/fchdir: Likewise.
92581         * modules/fcntl-safer: Likewise.
92582         * modules/pipe: Likewise.
92583         * modules/utime: Likewise.
92584         Prompted by Eric Blake and Bruno Haible.
92586 2008-06-24  Andreas Schwab  <schwab@suse.de>
92588         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
92589         literals can be used as initializers for global variables.
92591 2008-06-23  Eric Blake  <ebb9@byu.net>
92593         Make gnulib-cache.m4 easier to diff.
92594         * gnulib-tool (func_import): Allow newlines when reading cached
92595         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
92597 2008-06-23  Bruno Haible  <bruno@clisp.org>
92599         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
92600         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
92601         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
92602         m4/signalblocking.m4.
92603         (gl_PREREQ_SIGACTION): Don't invoke it.
92604         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
92605         gl_PREREQ_SIG_HANDLER_H.
92606         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
92607         Don't check for sigaction here.
92609 2008-06-23  Bruno Haible  <bruno@clisp.org>
92611         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
92612         (install_handlers): Don't set the SA_RESETHAND flag.
92614 2008-06-23  Bruno Haible  <bruno@clisp.org>
92616         * m4/sigaction.m4: Comment fixes.
92617         * lib/signal.in.h: Likewise.
92619 2008-06-23  Eric Blake  <ebb9@byu.net>
92621         Fix typo.
92622         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
92624         Avoid SA_ namespace.
92625         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
92626         Reported by Ralf Wildenhues.
92628         Avoid test failure due to SA_RESTORER.
92629         * tests/test-sigaction.c (SA_MASK): New macro.
92630         (main): Avoid failing due to extension flags being set.
92631         Reported by Jim Meyering.
92633         Revert use of sig-handler.h in sigprocmask.c.
92634         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
92635         it requires the existence of struct sigaction.
92636         * lib/sigprocmask.c (handler_t): Restore typedef.
92637         (rpl_signal, old_handlers): Use local type.
92639 2008-06-22  Bruno Haible  <bruno@clisp.org>
92641         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
92642         conditionally.
92643         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
92645 2008-06-22  Bruno Haible  <bruno@clisp.org>
92647         * doc/posix-functions/siginterrupt.texi: Move note.
92649         * lib/signal.in.h (SA_RESTART): New macro.
92650         * lib/sigaction.c: Update comment.
92652         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
92654         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
92655         (gl_PREREQ_SIGPROCMASK): Invoke it.
92656         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
92658         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
92660         * lib/sigprocmask.c: Update a comment.
92662 2008-06-21  Eric Blake  <ebb9@byu.net>
92664         Use sigaction module rather than signal().
92665         * modules/c-stack (Depends-on): Add sigaction.
92666         * modules/fatal-signal (Depends-on): Likewise.
92667         * modules/nanosleep (Depends-on): Likewise.
92668         * modules/sigprocmask (Files): Add sig-handler.h.
92669         * modules/sigaction (Files): Likewise.
92670         * lib/sig-handler.h (get_handler): New file, suggested by Paul
92671         Eggert.
92672         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
92673         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
92674         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
92675         (init_fatal_signals): Likewise.
92676         * lib/nanosleep.c (rpl_nanosleep): Likewise.
92677         (siginterrupt): Delete fallback.
92678         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
92679         instead.
92680         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
92681         siginterrupt.
92683         New module sigaction, for mingw.
92684         * modules/sigaction: New module...
92685         * modules/sigaction-tests: ...and its test.
92686         * m4/sigaction.m4: New file.
92687         * lib/sigaction.c: Likewise.
92688         * tests/test-sigaction.c: Likewise.
92689         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
92690         * modules/signal (Makefile.am): Likewise.
92691         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
92692         needed.
92693         * doc/posix-headers/signal.texi (signal.h): Mention provided
92694         types.
92695         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
92696         that sigaction is preferable.
92697         * doc/posix-functions/sigaction.texi (sigaction): Mention new
92698         module.
92699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92700         sigaction.
92702         Improve robustness of sigprocmask by overriding signal.
92703         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
92704         is in use.
92705         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
92706         (SIGKILL, SIGSTOP): Provide fallbacks.
92707         (rpl_signal): Implement.
92708         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
92709         signal can be called inside handlers.
92711         Fix nanosleep module on mingw.
92712         * modules/nanosleep (Depends-on): Add sys_select.
92713         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
92715         Fix licensing of sigprocmask.
92716         * modules/raise (License): Relicense as LGPL.
92718 2008-06-21  Bruno Haible  <bruno@clisp.org>
92720         * lib/propername.c (proper_name_utf8): Don't use the transliterated
92721         result if it contains question marks.
92722         Reported by Michael Geng <linux@michaelgeng.de>.
92724 2008-06-19  Bruno Haible  <bruno@clisp.org>
92726         Fix CVS-ism.
92727         * doc/gnulib.texi: Include updated-stamp.texi.
92728         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
92729         (updated-stamp.texi): New rule.
92730         (gnulib.info): Depend on it.
92731         * doc/.gitignore: Add updated-stamp.texi.
92732         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
92734 2008-06-19  Bruno Haible  <bruno@clisp.org>
92736         * doc/Makefile (gnulib.info): Update and simplify dependencies.
92737         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92739 2008-06-19  Eric Blake  <ebb9@byu.net>
92741         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
92742         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
92743         Reported by Stepan Kasal.
92745 2008-06-18  Bruno Haible  <bruno@clisp.org>
92747         * lib/fatal-signal.c (init_fatal_signals): Add comment.
92748         Reported by Eric Blake.
92750 2008-06-18  Eric Blake  <ebb9@byu.net>
92752         Work around cygwin 1.5.25 strsignal bug.
92753         * tests/test-strsignal.c: Allow for const char *.
92754         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
92756 2008-06-18  Simon Josefsson  <simon@josefsson.org>
92758         * users.txt: Update URL to article and add author/date
92759         information.
92761 2008-06-17  Bruno Haible  <bruno@clisp.org>
92763         New macro gl_DISABLE_THREADS.
92764         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
92765         if the user did not pass --enable-threads or --disable-threads option.
92766         (gl_DISABLE_THREADS): New macro.
92767         Reported by Eric Blake <ebb9@byu.net>.
92769 2008-06-17  Bruno Haible  <bruno@clisp.org>
92771         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
92772         when the macro ignores it.
92773         Based on a patch by Eric Blake <ebb9@byu.net>.
92775 2008-06-17  Bruno Haible  <bruno@clisp.org>
92777         * modules/tls (License): Change to LGPLv2+.
92778         Reported by Eric Blake.
92780 2008-06-17  Eric Blake  <ebb9@byu.net>
92782         Simplify c-stack prerequisites.
92783         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
92784         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
92785         no longer requires <ucontext.h> to exist.  Optimize setrlimit
92786         check.
92787         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
92788         <sys/resource.h>.
92790         Move c-stack test into testsuite.
92791         * modules/c-stack-tests: New file.
92792         * lib/c-stack.c [DEBUG]: Move test program...
92793         * tests/test-c-stack.c: ...into this new file.  Skip rather than
92794         fail test if sigaltstack is lacking.
92795         * tests/test-c-stack.sh: New driver file.
92797 2008-06-16  Eric Blake  <ebb9@byu.net>
92799         Use raise module consistently.
92800         * modules/fatal-signal (Depends-on): Add raise.
92801         * modules/sigprocmask (Depends-on): Likewise.
92802         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
92803         * lib/sigprocmask.c (sigprocmask): Likewise.
92804         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
92805         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
92807         Fix compliance bug in sigpending.
92808         * lib/sigprocmask.c (sigpending): Return pending array via
92809         parameter, not return value.
92811 2008-06-14  Eric Blake  <ebb9@byu.net>
92813         Improve obstack-printf test code.
92814         * tests/test-obstack-printf.c (test_function): Fix comment, and
92815         simplify usage of obstack_* in macros.  Add a test for coverage.
92816         Reported by Bruno Haible.
92818 2008-06-14  Bruno Haible  <bruno@clisp.org>
92820         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
92821         array size as a constant, not as a const variable.
92822         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
92823         AC_USE_SYSTEM_EXTENSIONS.
92824         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
92825         Test whether the obstack_printf function actually exists.
92826         * modules/obstack-printf (Depends-on): Add extensions.
92827         (Include): Remove obstack.h.
92828         * modules/obstack-printf-posix (Depends-on): Add extensions.
92829         (Include): Remove obstack.h.
92831 2008-06-13  Eric Blake  <ebb9@byu.net>
92833         Add obstack-printf and obstack-printf-posix modules.
92834         * modules/obstack-printf: New file.
92835         * modules/obstack-printf-posix: Likewise.
92836         * MODULES.html.sh (Misc): Mention them.
92837         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
92838         Likewise.
92839         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
92840         Likewise.
92841         * modules/stdio (Makefile.am): Accomodate new modules.
92842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
92843         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
92844         Declare.
92845         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
92846         functions.
92847         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
92848         (gl_REPLACE_OBSTACK_PRINTF): New macros
92849         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
92850         * tests/test-obstack-printf.c: New file.
92851         * modules/obstack-printf-tests: Likewise.
92852         * modules/obstack-printf-posix-tests: Likewise.
92854 2008-06-11  Bruno Haible  <bruno@clisp.org>
92856         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
92857         * lib/open.c: Include errno.h.
92858         (open): Fail when attempting to write to a file that has a trailing
92859         slash.
92860         * tests/test-open.c (main): Test against trailing slash bug.
92861         * doc/posix-functions/open.texi: Mention the trailing slash bug.
92863 2008-06-10  Bruno Haible  <bruno@clisp.org>
92865         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
92866         for $? to work inside the trap command, with various /bin/sh-s.
92867         * tests/test-vc-list-files-cvs.sh: Likewise.
92869 2008-06-10  Bruno Haible  <bruno@clisp.org>
92871         * lib/acl-internal.h: Don't include gettext.h here.
92872         * lib/set-mode-acl.c: Include gettext.h here.
92873         * lib/copy-acl.c: Likewise.
92875 2008-06-10  Bruno Haible  <bruno@clisp.org>
92877         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
92878         * lib/wait-process.c (wait_subprocess): Likewise.
92879         * lib/execute.h (execute): Add termsigp argument.
92880         * lib/execute.c (execute): Likewise.
92881         * lib/csharpcomp.c (compile_csharp_using_pnet,
92882         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
92883         * lib/csharpexec.c (execute_csharp_using_pnet,
92884         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
92885         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
92886         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
92887         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
92888         is_jikes_present): Update.
92889         * lib/javaexec.c (execute_java_class): Update.
92890         * lib/javaversion.c (execute_and_read_line): Update.
92891         * NEWS: Document the changes.
92892         Reported by Eric Blake.
92894 2008-06-10  Eric Blake  <ebb9@byu.net>
92896         Add missing include.
92897         * tests/test-strstr.c (includes): Add <signal.h>.
92898         * tests/test-strcasestr.c (includes): Likewise.
92899         * tests/test-memmem.c (includes): Likewise.
92901 2008-06-10  Bruno Haible  <bruno@clisp.org>
92903         * lib/wait-process.c (wait_subprocess): Add an assertion.
92905 2008-06-10  Bruno Haible  <bruno@clisp.org>
92907         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
92909 2008-06-10  Bruno Haible  <bruno@clisp.org>
92911         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
92912         using alarm().
92913         * tests/test-strcasestr.c (main): Likewise.
92914         * tests/test-strstr.c (main): Likewise.
92916 2008-06-09  Bruno Haible  <bruno@clisp.org>
92918         Work around the Solaris 10 ACE ACLs ABI change.
92919         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
92920         declare if ACL_NO_TRIVIAL is present.
92921         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
92922         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
92923         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
92924         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
92925         define if ACL_NO_TRIVIAL is present.
92926         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
92927         and use the current ABI.
92928         (file_has_acl): Use same #if condition as elsewhere.
92929         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
92930         in use, and use the current ABI.
92931         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
92932         Reported by Jim Meyering.
92934 2008-06-09  Eric Blake  <ebb9@byu.net>
92936         Work around environments that (stupidly) ignore SIGALRM.
92937         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
92938         before using alarm().
92939         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92940         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
92941         Reported by Ian Beckwith <ianb@erislabs.net>.
92943         Produce autobuild blurb earlier in log.
92944         * modules/autobuild (configure.ac-early): Move AB_INIT here.
92946 2008-06-09  Jim Meyering  <meyering@redhat.com>
92947         and Ondřej Vašík  <ovasik@redhat.com>
92949         utimens.c: correct kernel bug work-around
92950         Ondřej Vašík found that the invalid return value of 280 indicates
92951         failure, not success, and the kernel bug we're trying to work
92952         around affects not just the utimensat call, but also the fallback
92953         futimens call.
92954         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
92955         not success.
92956         [HAVE_FUTIMENS]: Use the same work-around, here.
92958 2008-06-09  Jim Meyering  <meyering@redhat.com>
92960         add more guards around definition of ACE_-related code
92961         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
92962         ALLOW and ACE_OWNER are also defined.
92964 2008-06-08  Bruno Haible  <bruno@clisp.org>
92966         * lib/acl-internal.h: Add me as co-author.
92967         * lib/file-has-acl.c: Likewise.
92968         * lib/set-mode-acl.c: Likewise.
92969         * lib/copy-acl.c: Likewise.
92971 2008-06-08  Bruno Haible  <bruno@clisp.org>
92973         Add support for AIX ACLs.
92974         * lib/acl-internal.h (acl_nontrivial): New declaration.
92975         * lib/file-has-acl.c (acl_nontrivial): New function.
92976         (file_has_acl): Add implementation using AIX 4 ACL API.
92977         * lib/set-mode-acl.c (qset_acl): Likewise.
92978         * lib/copy-acl.c (qcopy_acl): Likewise.
92980 2008-06-08  Bruno Haible  <bruno@clisp.org>
92982         Add support for HP-UX ACLs.
92983         * lib/acl-internal.h (acl_nontrivial): New declaration.
92984         * lib/file-has-acl.c (acl_nontrivial): New function.
92985         (file_has_acl): Add implementation using HP-UX 11 ACL API.
92986         * lib/set-mode-acl.c (qset_acl): Likewise.
92987         * lib/copy-acl.c (qcopy_acl): Likewise.
92989 2008-06-08  Bruno Haible  <bruno@clisp.org>
92991         Add support for Cygwin ACLs.
92992         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
92993         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
92994         the chmod_or_fchmod call.
92995         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
92997 2008-06-08  Bruno Haible  <bruno@clisp.org>
92999         Fix bug with setuid modes in Solaris 10+ code.
93000         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
93001         succeeded, when the mode contains some special bits.
93003 2008-06-08  Bruno Haible  <bruno@clisp.org>
93005         Add support for Solaris 7..10 ACLs.
93006         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
93007         declarations.
93008         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
93009         functions.
93010         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
93011         * lib/set-mode-acl.c (qset_acl): Likewise.
93012         * lib/copy-acl.c (qcopy_acl): Likewise.
93014 2008-06-08  Bruno Haible  <bruno@clisp.org>
93016         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
93017         declaration.
93018         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
93019         (acl_access_nontrivial): Remove MacOS X case.
93020         (file_has_acl): Use acl_extended_nontrivial.
93021         * lib/copy-acl.c (qcopy_acl): Likewise.
93023 2008-06-08  Bruno Haible  <bruno@clisp.org>
93025         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
93027 2008-06-08  Jim Meyering  <meyering@redhat.com>
93029         * modules/acl (Maintainer): Add Bruno Haible.
93031 2008-06-07  Bruno Haible  <bruno@clisp.org>
93033         Improve support for Tru64 ACLs.
93034         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
93035         ACL on OSF/1.
93037 2008-06-07  Bruno Haible  <bruno@clisp.org>
93039         Add support for MacOS X ACLs.
93040         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
93041         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
93042         * lib/set-mode-acl.c (qset_acl): Likewise.
93043         * lib/copy-acl.c (qcopy_acl): Likewise.
93045 2008-06-07  Bruno Haible  <bruno@clisp.org>
93047         Fix memory leak introduced on 2008-05-22.
93048         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
93049         use.
93051 2008-06-07  Bruno Haible  <bruno@clisp.org>
93053         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
93054         to construct an empty ACL.
93056 2008-06-07  Bruno Haible  <bruno@clisp.org>
93058         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
93059         precisely.
93060         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
93062 2008-06-07  Bruno Haible  <bruno@clisp.org>
93064         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
93065         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
93067 2008-06-07  Bruno Haible  <bruno@clisp.org>
93069         * doc/posix-functions/_setjmp.texi: Explain the use of this function
93070         regardless of POSIX.
93071         * doc/posix-functions/_longjmp.texi: Likewise.
93072         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
93073         SystemV platform in this case.
93075 2008-06-06  Eric Blake  <ebb9@byu.net>
93077         Document abort() bugs.
93078         * doc/posix-functions/abort.texi (abort): Mention anomalies.
93080         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
93081         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
93082         sigsetjmp.
93083         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
93084         siglongjmp, but only as a macro.
93085         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
93086         is obsolete.
93087         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
93089         Tweak documentation to cover cygwin argz bugs.
93090         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
93091         argz bug fix; no code change needed since no cygwin releases
93092         occurred between the last fix and the bug being tested.
93093         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
93094         module and recently fixed cygwin bugs.
93095         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
93096         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
93097         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
93098         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
93099         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
93100         Likewise.
93101         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
93102         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
93103         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
93104         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
93105         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
93106         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
93107         Likewise.
93109         Avoid gcc warning on cygwin.
93110         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
93111         !ACL_NO_TRIVIAL]: Avoid unused variable.
93113 2008-06-05  Eric Blake  <ebb9@byu.net>
93115         Be tolerant of UNKNOWN version in gnulib-tool test dir.
93116         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
93117         git-version-gen fails to come up with a version.
93118         Reported by Simon Josefsson.
93120 2008-06-05  Jim Meyering  <meyering@redhat.com>
93121             Paul Eggert  <eggert@cs.ucla.edu>
93123         utimens.c: work around a probable Linux kernel bug
93124         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
93125         appears to be a kernel bug that causes utimensat to return 280
93126         instead of 0, indicating success.
93128 2008-06-04  Bruno Haible  <bruno@clisp.org>
93130         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
93131         2008-06-01 commit.
93133 2008-06-04  Bruno Haible  <bruno@clisp.org>
93135         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
93136         * lib/file-has-acl.c (acl_access_nontrivial): New function.
93137         (file_has_acl): Use it. Save errno afterwards.
93138         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
93140 2008-06-03  Bruno Haible  <bruno@clisp.org>
93142         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
93143         draft code. Simplify #ifs.
93144         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
93145         Put Solaris code after POSIX-draft code. Fix comments regarding
93146         Solaris 10, HP-UX. Mention Cygwin.
93147         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
93149 2008-06-03  Eric Blake  <ebb9@byu.net>
93151         Provide fallback for older kernels.
93152         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
93153         Provide runtime fallback if kernel lacks support.
93154         Reported by Mike Frysinger.
93156 2008-06-02  Bruno Haible  <bruno@clisp.org>
93158         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
93159         it exists.
93161 2008-06-02  Bruno Haible  <bruno@clisp.org>
93163         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
93164         * lib/copy-acl.c (qcopy_acl): Update comment.
93166 2008-06-02  Bruno Haible  <bruno@clisp.org>
93168         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
93169         like ACL APIs.
93171 2008-06-02  Bruno Haible  <bruno@clisp.org>
93173         * tests/test-file-has-acl.sh: Use different code for Cygwin.
93174         * tests/test-set-mode-acl.sh: Likewise.
93175         * tests/test-copy-acl.sh: Likewise.
93176         * tests/test-copy-file.sh: Likewise.
93178 2008-06-02  Bruno Haible  <bruno@clisp.org>
93180         * tests/test-file-has-acl.sh: Remove unused code.
93182 2008-06-01  Bruno Haible  <bruno@clisp.org>
93184         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
93185         (copy_acl): Just a wrapper around qcopy_acl that emits the error
93186         messages.
93187         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
93189 2008-06-01  Bruno Haible  <bruno@clisp.org>
93191         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
93192         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
93193         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
93194         APIs.
93195         * modules/acl-tests (configure.ac): Remove tests now contained in
93196         m4/acl.m4.
93198 2008-06-02  Jim Meyering  <meyering@redhat.com>
93200         announce-gen: use a better key-server host name
93201         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
93202         it may be more consistently reliable.  Suggested by Werner Koch
93203         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
93205 2008-06-01  Bruno Haible  <bruno@clisp.org>
93207         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
93208         Reported by Voroskoi Andras <voroskoi@gmail.com>.
93210 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
93212         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
93214 2008-06-01  Bruno Haible  <bruno@clisp.org>
93216         New ACL tests.
93217         * tests/test-file-has-acl.sh: New file.
93218         * tests/test-file-has-acl.c: New file.
93219         * tests/test-set-mode-acl.sh: New file.
93220         * tests/test-set-mode-acl.c: New file.
93221         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
93222         * tests/test-copy-acl.c: New file.
93223         * modules/acl-tests: New file, based on modules/copy-file-tests.
93224         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
93225         (Depends-on): Add acl-tests.
93226         (configure.ac): Remove checks.
93227         (Makefile.am): Don't create test-sameacls program here any more.
93229 2008-06-01  Bruno Haible  <bruno@clisp.org>
93231         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
93232         * tests/test-sameacls.c: Include progname.h.
93233         (main): Invoke set_program_name. Portability fixes for MacOS X,
93234         Solaris, HP-UX.
93236 2008-06-01  Bruno Haible  <bruno@clisp.org>
93238         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
93239         function.
93240         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
93242 2008-06-01  Bruno Haible  <bruno@clisp.org>
93244         * modules/rpmatch (Depends-on): Add strdup.
93246 2008-06-01  Bruno Haible  <bruno@clisp.org>
93248         * lib/pipe.c: Include unistd-safer.h.
93249         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
93250         * modules/pipe (Depends-on): Add unistd-safer.
93252 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93254         * modules/autobuild (configure.ac): Call AB_INIT.
93256 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93258         * tests/test-getaddrinfo.c: Don't print debug messages by default.
93259         Suggested by Bruno Haible <bruno@clisp.org>.
93261 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93263         * tests/test-base64.c: Cast size_t to unsigned long when invoking
93264         printf.  Use %lu instead of %d.  Reported by Bruno Haible
93265         <bruno@clisp.org>.
93267 2008-05-29  Eric Blake  <ebb9@byu.net>
93269         Prefer new POSIX 200x interfaces over futimesat.
93270         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
93271         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
93272         when available.
93273         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
93275 2008-05-28  Bruno Haible  <bruno@clisp.org>
93277         * modules/stpcpy (License): Change to LGPLv2+.
93278         Requested by David Lutterkort <dlutter@redhat.com>.
93280 2008-05-27  Bruno Haible  <bruno@clisp.org>
93282         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
93283         current mingw.
93284         Reported by Jose E. Marchesi <jemarch@gnu.org>.
93286 2008-05-27  Bruno Haible  <bruno@clisp.org>
93288         * modules/iconv_open (Link): New section, from module 'iconv'.
93289         * modules/striconv (Link): Likewise.
93290         * modules/striconveh (Link): Likewise.
93291         * modules/xstriconv (Link): Likewise.
93292         * modules/unicodeio (Link): Likewise.
93293         * modules/propername (Link): Likewise.
93294         Reported by Jim Meyering.
93296 2008-05-26  Jim Meyering  <meyering@redhat.com>
93298         sha256: do not artificially restrict buffer length to be < 2^32
93299         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
93300         uint32_t to size_t.
93301         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
93302         to match.
93304         avoid unaligned access errors, e.g., on sparc
93305         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
93306         direct access through a possibly-unaligned uint64* pointer.
93307         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
93308         direct access through a possibly-unaligned uint32* pointer.
93309         Prompted by this patch from Tom "spot" Callaway:
93310         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
93312         sha512.c: fix typo in comment
93313         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
93315 2008-05-25  Bruno Haible  <bruno@clisp.org>
93317         * lib/set-mode-acl.c: Renamed from lib/acl.c.
93318         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
93319         (Makefile.am): Update lib_SOURCES.
93321 2008-05-25  Bruno Haible  <bruno@clisp.org>
93323         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
93325 2008-05-25  Jim Meyering  <meyering@redhat.com>
93327         useless-if-before-free: freed expr may have white-space differences
93328         * build-aux/useless-if-before-free: Recognize cases in which the
93329         freed expression differs from the tested one in embedded white
93330         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
93331         $1 was used, so we can't make any regexp shy.  Improved tests now
93332         detect this.
93334         useless-if-before-free: accept white space in the expression.
93335         * build-aux/useless-if-before-free: For now, any white space
93336         in the expression must be identical in the free argument.
93338         useless-if-before-free: efficiency tweak
93339         * build-aux/useless-if-before-free: Make the expression-matching
93340         regexp "shy".
93341         Make the *outer* regexp shy, not the expr-matching one.
93343         update code-in-comment to accept cast of free arg
93344         * build-aux/useless-if-before-free: Update regexp.
93346 2008-05-25  Bruno Haible  <bruno@clisp.org>
93348         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
93349         * modules/copy-file-tests (Files, Makefile.am): Update.
93350         * tests/test-copy-file.c (func_test_copy): Update.
93352 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
93354         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
93356 2008-05-23  Bruno Haible  <bruno@clisp.org>
93358         Improve support for ACLs on OSF/1.
93359         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
93360         Remove fallback for unknown flavors of ACLs.
93362 2008-05-22  Bruno Haible  <bruno@clisp.org>
93364         Add support for ACLs on OSF/1.
93365         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
93366         replacements.
93367         (acl_free_text): New macro fallback.
93368         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
93369         acl_free.
93370         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
93371         acl_free_text function. Require AC_C_INLINE.
93373 2008-05-22  Bruno Haible  <bruno@clisp.org>
93375         Make copy_acl work on MacOS X 10.5.
93376         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
93377         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
93378         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
93379         If MODE_INSIDE_ACL, don't assume that every system has the same text
93380         representation for ACLs as FreeBSD.
93381         * lib/copy-acl.c (copy_acl): Add support for platforms with
93382         !MODE_INSIDE_ACL.
93383         * lib/file-has-acl.c (file_has_acl): Likewise.
93384         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
93385         FreeBSD, MacOS X, or IRIX, respectively.
93387 2008-05-22  Bruno Haible  <bruno@clisp.org>
93389         * lib/acl.h: Don't include <sys/acl.h>.
93390         (GETACLCNT): Move fallback to lib/acl-internal.h.
93391         * lib/acl-internal.h: Include <sys/acl.h> here.
93392         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
93394 2008-05-22  Bruno Haible  <bruno@clisp.org>
93396         Split off copy_acl function to separate file.
93397         * lib/copy-acl.c: New file, extracted from lib/acl.c.
93398         * lib/acl.c (copy_acl): Moved function to separate file.
93399         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
93400         * modules/acl (Files): Add lib/copy-acl.c.
93401         (Makefiles.am): Augment lib_SOURCES.
93403 2008-05-22  Bruno Haible  <bruno@clisp.org>
93405         * modules/copy-file-tests: New file.
93406         * tests/test-copy-file.sh: New file.
93407         * tests/test-copy-file.c: New file.
93408         * tests/test-copy-file-sameacls.c: New file.
93410 2008-05-22  Eric Blake  <ebb9@byu.net>
93412         Avoid gcc warning.
93413         * tests/test-memcmp.c (main): Pass NULL indirectly.
93415 2008-05-21  Bruno Haible  <bruno@clisp.org>
93417         Add reference doc about ACLs.
93418         * doc/acl-resources.txt: New file.
93419         * doc/acl-cygwin.txt: New file.
93421 2008-05-21  Bruno Haible  <bruno@clisp.org>
93423         Avoid one more warning from gcc.
93424         * lib/vasnprintf.c (IF_LINT): Update comments.
93425         (VASNPRINTF): Use it also for the 'prefix' array initializer.
93427 2008-05-21  Jim Meyering  <meyering@redhat.com>
93429         avoid a warning from gcc
93430         * lib/vasnprintf.c (IF_LINT): Define.
93431         (scale10_round_decimal_long_double):
93432         Use it to avoid a "may be used uninitialized" warning.
93433         (scale10_round_decimal_double): Likewise.
93435 2008-05-21  Simon Josefsson  <simon@josefsson.org>
93437         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
93438         declared.
93440 2008-05-20  Bruno Haible  <bruno@clisp.org>
93442         * tests/test-memcmp.c (main): Test also the sign of the result. Test
93443         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
93445 2008-05-20  Simon Josefsson  <simon@josefsson.org>
93447         * modules/memcmp-tests: New file.
93448         * tests/test-memcmp.c: New file.
93450 2008-05-19  Bruno Haible  <bruno@clisp.org>
93452         * modules/propername (Notice, configure.ac): Put quoted "..." into
93453         --keyword option.
93454         * lib/propername.h: Update comments accordingly.
93455         Reported by Eric Blake.
93457 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
93459         * modules/getpass-gnu (Depends-on): Add fseeko.
93461 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93463         * modules/base64-tests: New file.
93465 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
93467         * lib/base64.c (base64_decode_ctx): If a decode context structure
93468         was passed in use it to ignore newlines.  If a context structure
93469         was _not_ passed in, continue to treat newlines as garbage (this
93470         is the historical behavior).  Formerly base64_decode.
93471         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93472         takes a decode context structure.
93473         * lib/base64.h (base64_decode): Macro for four-argument calls.
93474         (base64_decode_alloc): Likewise.
93475         * lib/base64.c (base64_decode_ctx): If a decode context structure
93476         was passed in use it to ignore newlines.  If a context structure
93477         was _not_ passed in, continue to treat newlines as garbage (this
93478         is the historical behavior).  Formerly base64_decode.
93479         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93480         takes a decode context structure.
93481         * lib/base64.h (base64_decode): Macro for four-argument calls.
93482         (base64_decode_alloc): Likewise.
93484 2008-05-19  Jim Meyering  <meyering@redhat.com>
93486         avoid a warning from gcc
93487         * lib/trim.c (IF_LINT): Define.
93488         (trim2): Use it to avoid a "may be used uninitialized" warning.
93490         Fix doc typo.
93491         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
93493 2008-05-19  Bruno Haible  <bruno@clisp.org>
93495         * doc/glibc-functions/getpass.texi: Document limits of other
93496         implementations.
93498 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93499             Bruno Haible <bruno@clisp.org>
93501         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
93503 2008-05-18  Bruno Haible  <bruno@clisp.org>
93505         * modules/propername: New file, from GNU gettext.
93506         * lib/propername.h: New file, from GNU gettext.
93507         * lib/propername.c: New file, from GNU gettext.
93508         * MODULES.html.sh (Internationalization functions): Add propername.
93510 2008-05-16  Jim Meyering  <meyering@redhat.com>
93511             Bruno Haible  <bruno@clisp.org>
93513         Avoid some warnings from "gcc -Wshadow".
93514         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
93516 2008-05-15  Eric Blake  <ebb9@byu.net>
93518         Extend previous patch to cygwin 1.7.0.
93519         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
93520         fast implementation in cygwin >= 1.7.0.
93521         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93522         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93524 2008-05-15  Bruno Haible  <bruno@clisp.org>
93526         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
93527         implementation in glibc >= 2.9.
93528         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93529         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93531 2008-05-15  Bruno Haible  <bruno@clisp.org>
93533         * MODULES.html.sh (Internationalization functions): Remove linebreak.
93534         (Unicode string functions): Add unilbrk/*.
93535         Reported by Karl Berry.
93537 2008-05-15  Eric Blake  <ebb9@byu.net>
93539         Fix violation of <stdbool.h> replacement in regex.
93540         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
93541         * lib/regexec.c (re_search_internal): Likewise.
93542         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
93544 2008-05-15  Jim Meyering  <meyering@redhat.com>
93546         avoid distracting test output when git or cvs is not found
93547         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
93548         * tests/test-vc-list-files-git.sh: Likewise.
93550 2008-05-15  Eric Blake  <ebb9@byu.net>
93552         Glibc finally accepted the memmem speedup code, bugzilla #5514.
93553         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
93554         glibc version.
93555         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
93556         * doc/posix-functions/strstr.texi (strstr): Likewise.
93557         * lib/str-two-way.h (MAX): Sychronize with glibc.
93559 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
93561         * lib/regcomp.c (optimize_utf8): Add a note on why we test
93562         opr.ctx_type.
93563         (calc_first): Initialize constraint field.
93564         (duplicate_node_closure): Use it instead of special casing ANCHORS.
93565         Fix grammar.
93566         (duplicate_node): Merge constraint field for all node types.
93567         (calc_eclosure_iter): Look at constraint field for all node types.
93568         * lib/regex_internal.c (create_cd_newstate): Don't look at
93569         opr.ctx_type.
93571 2008-05-14  Bruno Haible  <bruno@clisp.org>
93573         Help GCC to do better code generation.
93574         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
93575         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
93576         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
93577         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
93578         Declare with attribute 'malloc' if supported.
93580 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
93582         use "echo STR|wc -c" rather than unportable "expr length STR"
93583         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
93584         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
93586 2008-05-14  Jim Meyering  <meyering@redhat.com>
93588         use dd ibs=$n count=1 ... rather than less-portable head -c$n
93589         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
93590         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
93591         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
93592         via Collin Lasse.
93594 2008-05-14  Eric Blake  <ebb9@byu.net>
93596         Avoid quadratic growth in gl_LIBSOURCES.
93597         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
93598         Suggested by Bruno Haible.
93600         Test xmemdup0.
93601         * modules/xmemdup0-tests: New file.
93602         * tests/test-xmemdup0.c: Likewise.
93604 2008-05-13  Eric Blake  <ebb9@byu.net>
93606         Split xmemdup0 into its own module.
93607         * modules/xmemdup0: New file.
93608         * lib/xmemdup0.h: Likewise.
93609         * lib/xmemdup0.c: Likewise.
93610         * MODULES.html.sh (Memory management functions): Add xmemdup0.
93611         * lib/xalloc.h (xmemdup0): Remove.
93612         * lib/xmalloc.c (xmemdup0): Likewise.
93614 2008-05-13  Eric Blake  <ebb9@byu.net>
93615             Bruno Haible  <bruno@clisp.org>
93617         Reduce number of forks required during autoconf.
93618         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
93619         and gl_LIBSOURCES_DIR.
93620         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
93621         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
93622         m4_syscmd per file.
93623         <m4_foreach_w>: Move...
93624         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
93626 2008-05-13  Eric Blake  <ebb9@byu.net>
93628         * gnulib-tool: Fix various comment typos.
93630 2008-05-12  Bruno Haible  <bruno@clisp.org>
93632         Tailor the linebreaking algorithm.
93633         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
93635 2008-05-12  Bruno Haible  <bruno@clisp.org>
93637         Update to Unicode 5.0.0.
93638         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
93639         LBP_JV, LBP_JT. Redistribute values.
93640         (unilbrk_table): Change size.
93641         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
93642         Unicode TR#14 rev. 22.
93643         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
93644         LBP_JV, LBP_JT. Redistribute values.
93645         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
93646         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
93647         Update.
93648         * lib/unilbrk/lbrkprop1.h: Regenerated.
93649         * lib/unilbrk/lbrkprop2.h: Regenerated.
93650         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
93651         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
93652         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
93653         Likewise.
93654         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
93655         Likewise.
93656         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
93657         result.
93658         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
93659         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
93660         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
93661         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
93662         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
93663         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
93665 2008-05-11  Bruno Haible  <bruno@clisp.org>
93667         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
93669 2008-05-11  Bruno Haible  <bruno@clisp.org>
93671         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
93672         * modules/unilbrk/gen-lbrk: New file.
93674 2008-05-11  Bruno Haible  <bruno@clisp.org>
93676         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
93677         * m4/sha512.m4 (gl_SHA512): Likewise.
93679 2008-05-11  Jim Meyering  <meyering@redhat.com>
93681         New modules: crypto/sha256, crypto/sha512 (from coreutils)
93682         * modules/crypto/sha256: New file.
93683         * modules/crypto/sha512: Likewise.
93684         * lib/sha256.c: Likewise.
93685         * lib/sha256.h: Likewise.
93686         * lib/sha512.c: Likewise.
93687         * lib/sha512.h: Likewise.
93688         * lib/u64.h: Likewise.
93689         * m4/sha256.m4: Likewise.
93690         * m4/sha512.m4: Likewise.
93691         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
93693 2008-05-10  Bruno Haible  <bruno@clisp.org>
93695         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
93696         (Input/Output <stdio.h>): Add xprintf.
93697         (Signal handling <signal.h>): Add strsignal.
93698         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
93699         (Core language properties): Add func.
93700         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
93701         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
93702         strings.
93703         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
93704         (Input/output): New section.
93705         (File system functions): Add openat-die, stat-macros.
93706         (Networking functions): Add sockets.
93707         (Unicode string functions): Add unictype/*.
93708         (Support for building libraries and executables): Add gperf.
93709         (Support for building documentation): Add agpl-3.0.
93710         (Misc): Add nocrash.
93712 2008-05-10  Bruno Haible  <bruno@clisp.org>
93714         * modules/unictype/gen-ctype: New file.
93716 2008-05-10  Jim Meyering  <meyering@redhat.com>
93718         Make chdir-safer.c more efficient on a system with no symlinks.
93719         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
93720         also if ELOOP is zero.  Suggested by Bruno Haible.
93722         Make chdir-safer.c slightly safer.
93723         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
93724         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
93726         Avoid compile failure on systems without ELOOP (like mingw).
93727         * lib/chdir-safer.c (ELOOP): Define if not already defined.
93728         Reported by Bruno Haible.
93730 2008-05-10  Bruno Haible  <bruno@clisp.org>
93732         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
93733         (is_utf8_encoding): Use a case-insensitive comparison.
93734         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
93735         streq.
93737 2008-05-10  Bruno Haible  <bruno@clisp.org>
93739         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
93740         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
93741         * lib/unilbrk/ulc-common.h (iconv_string_length,
93742         iconv_string_keeping_offsets): Remove declarations.
93743         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
93744         Don't include <iconv.h>, streq.h, xsize.h.
93745         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
93746         conversion.
93747         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
93748         <iconv.h>, streq.h, xsize.h.
93749         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
93750         conversion.
93751         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
93752         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
93753         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
93754         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
93756 2008-05-10  Bruno Haible  <bruno@clisp.org>
93758         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
93759         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
93761         * modules/unilbrk/u32-width-linebreaks-tests: New file.
93762         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
93764         * modules/unilbrk/u16-width-linebreaks-tests: New file.
93765         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
93767         * modules/unilbrk/u8-width-linebreaks-tests: New file.
93768         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
93770         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
93771         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
93773         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
93774         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
93776         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
93777         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
93779         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
93780         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
93782 2008-05-10  Bruno Haible  <bruno@clisp.org>
93784         Split up 'linebreak' module.
93785         * lib/unilbrk.h: New file, based on lib/linebreak.h.
93786         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
93787         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
93788         modifications.
93789         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
93790         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
93791         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
93792         lib/linebreak.c.
93793         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
93794         lib/linebreak.c.
93795         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
93796         lib/linebreak.c.
93797         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
93798         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
93799         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
93800         lib/linebreak.c.
93801         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
93802         lib/linebreak.c.
93803         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
93804         lib/linebreak.c.
93805         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
93806         lib/linebreak.c.
93807         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
93808         lib/linebreak.c.
93809         * modules/unilbrk/base: New file.
93810         * modules/unilbrk/tables: New file.
93811         * modules/unilbrk/u8-possible-linebreaks: New file.
93812         * modules/unilbrk/u16-possible-linebreaks: New file.
93813         * modules/unilbrk/u32-possible-linebreaks: New file.
93814         * modules/unilbrk/ulc-common: New file.
93815         * modules/unilbrk/ulc-possible-linebreaks: New file.
93816         * modules/unilbrk/u8-width-linebreaks: New file.
93817         * modules/unilbrk/u16-width-linebreaks: New file.
93818         * modules/unilbrk/u32-width-linebreaks: New file.
93819         * modules/unilbrk/ulc-width-linebreaks: New file.
93820         * lib/linebreak.h: Remove file.
93821         * lib/linebreak.c: Remove file.
93822         * m4/linebreak.m4: Remove file.
93823         * modules/linebreak: Remove file.
93824         * NEWS: Mention the changes.
93826 2008-05-09  Eric Blake  <ebb9@byu.net>
93828         Add xmemdup0.
93829         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
93830         implementation.
93831         * lib/xmalloc.c (xmemdup0): New C implementation.
93833 2008-05-08  Bruno Haible  <bruno@clisp.org>
93835         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
93837 2008-05-07  Eric Blake  <ebb9@byu.net>
93839         Support cross-compilation of <wctype.h>.
93840         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
93841         AC_CACHE_CHECK.
93843 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
93845         * build-aux/vc-list-files: Add support for bzr.
93847 2008-05-03  Jim Meyering  <meyering@redhat.com>
93849         avoid failed assertion with tight malloc
93850         * tests/test-getndelim2.c: Correct an off-by-one assertion.
93852 2008-05-03  Simon Josefsson  <simon@josefsson.org>
93854         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
93855         are needed from arpa/inet.h.
93856         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
93857         Reported by Bruno Haible.
93859 2008-05-02  Jim Meyering  <meyering@redhat.com>
93861         avoid compilation error on FreeBSD 6
93862         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
93864 2008-05-01  Jim Meyering  <meyering@redhat.com>
93866         useless-if-before-free: correct --help's exit status description
93867         * build-aux/useless-if-before-free (usage): Like grep, exit 0
93868         for one or more matches, etc.  Reported by Bruno Haible.
93870         vc-list-files: make the stand-alone gnulib test work
93871         * modules/vc-list-files-tests (configure.ac):
93872         Define and AC_SUBST abs_aux_dir.
93873         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
93874         $(abs_top_srcdir) to each script and having each of them
93875         duplicate the work of setting PATH, set PATH here, using
93876         the new variable, abs_aux_dir instead.
93877         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
93878         * tests/test-vc-list-files-git.sh: Likewise.
93879         Reported by Bruno Haible.
93881 2008-05-01  Bruno Haible  <bruno@clisp.org>
93883         * lib/getndelim2.c (getndelim2): Fix newsize computation during
93884         reallocation. Rename 'done' to 'found_delimiter'.
93886 2008-05-01  Jim Meyering  <meyering@redhat.com>
93888         vc-list-files: accommodate /bin/sh like the one from Solaris 10
93889         * build-aux/vc-list-files: Use `...`, not $(...).
93891 2008-04-30  Jim Meyering  <meyering@redhat.com>
93893         add tests for vc-list-files
93894         * modules/vc-list-files-tests: New module.
93895         * tests/test-vc-list-files-cvs.sh: New file.
93896         * tests/test-vc-list-files-git.sh: New file.
93898         avoid a warning from gcc
93899         * lib/getndelim2.c (IF_LINT): Define.
93900         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
93902         vc-list-files: work properly with build-aux/cvsu, too
93903         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
93904         to all cvs-based clauses.
93906         vc-list-files: work properly in the CVS+awk case, too
93907         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
93909         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
93910         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
93911         take more than one file argument, so .  Add quotes, just in case $dir
93912         ever contains a shell meta-character.  Prompted by Soren Hansen in
93913         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
93915 2008-04-29  Eric Blake  <ebb9@byu.net>
93917         Optimize getndelim2 to use block operations when possible.
93918         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
93919         freadseek, and memchr2.
93920         * lib/getndelim2.c (getndelim2): Use them for block reads.
93922 2008-04-29  Bruno Haible  <bruno@clisp.org>
93924         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
93925         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
93926         * modules/inet_ntop (Depends-on): Add extensions.
93927         * modules/inet_pton (Depends-on): Likewise.
93928         Reported by Simon Josefsson.
93930 2008-04-29  Jim Meyering  <meyering@redhat.com>
93932         When the is more than one match in a block, match all of them.
93933         * build-aux/useless-if-before-free: Iterate through each block
93934         until there are no more matches.
93936         Fix broken useless-if-before-free script.
93937         * build-aux/useless-if-before-free: Fix typo: missing "?" after
93938         the expression to match cast of argument to free-like function.
93940 2008-04-29  Eric Blake  <ebb9@byu.net>
93942         Use new header.
93943         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
93945 2008-04-29  Jim Meyering  <meyering@redhat.com>
93947         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
93948         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
93949         by gnulib to exist and to declare e.g., inet_ntop.
93950         Don't include "inet_ntop.h", now removed.
93952         * m4/arpa_inet_h.m4: Remove trailing blanks.
93954 2008-04-29  Eric Blake  <ebb9@byu.net>
93956         Silence valgrind on safe reads beyond potential array bounds.
93957         * lib/rawmemchr.valgrind: New file.
93958         * lib/strchrnul.valgrind: Likewise.
93959         * modules/rawmemchr (Files): Distribute new file.
93960         * modules/strchrnul (Files): Likewise.
93961         Suggested by Bruno Haible.
93963 2008-04-29  Bruno Haible  <bruno@clisp.org>
93965         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
93966         (inet_ntop, inet_pton): Change portability warning's wording.
93967         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
93968         Invoke gl_CHECK_NEXT_HEADERS.
93969         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
93970         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
93971         set ARPA_INET_H.
93972         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
93973         * modules/arpa_inet (Description): No longer only for systems that
93974         lack it.
93975         (Depends-on): Add include_next.
93976         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
93977         HAVE_ARPA_INET_H.
93979 2008-04-29  Jim Meyering  <meyering@redhat.com>
93981         * modules/mkdir (License): Re-license as LGPLv2+.
93983 2008-04-29  Bruno Haible  <bruno@clisp.org>
93985         * modules/rawmemchr (Maintainer): Set to Eric.
93986         * modules/strchrnul (Maintainer): Likewise.
93988 2008-04-29  Simon Josefsson  <simon@josefsson.org>
93990         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
93991         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
93993         * modules/arpa_inet (arpa/inet.h): Use them.
93995 2008-04-28  Eric Blake  <ebb9@byu.net>
93997         Test getndelim2.
93998         * modules/getndelim2-tests: New file.
93999         * tests/test-getndelim2.c: Likewise.
94000         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
94001         stream.
94002         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
94004         * MODULES.html.sh: Document new module.
94006 2008-04-20  Bruno Haible  <bruno@clisp.org>
94008         * lib/c-stack.c (die): Use raise.
94009         * modules/c-stack (Depends-on): Add raise.
94011 2008-04-28  Bruno Haible  <bruno@clisp.org>
94013         Expect rpmatch to be declared.
94014         * lib/yesno.c (rpmatch): Remove declaration.
94016         Declare rpmatch.
94017         * lib/stdlib.in.h (rpmatch): New declaration.
94018         * lib/rpmatch.c: Include <stdlib.h> first.
94019         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
94020         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
94021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
94022         HAVE_RPMATCH.
94023         * modules/rpmatch (Depends-on): Add stdlib, extensions.
94024         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
94025         (Include): Set to <stdlib.h>.
94026         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
94027         HAVE_RPMATCH.
94028         * NEWS: Document the change.
94030 2008-04-28  Bruno Haible  <bruno@clisp.org>
94032         Change rpmatch to use nl_langinfo when appropriate.
94033         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
94034         (N_): New macro.
94035         (localized_pattern): New function/macro.
94036         (try): Remove match, nomatch arguments. Copy the pattern into safe
94037         memory before caching it.
94038         (rpmatch): Use localized_pattern. Add translator comments.
94039         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
94040         Suggested by Eric Blake.
94041         * modules/rpmatch (Depends-on): Add stdbool.
94043 2008-04-28  Eric Blake  <ebb9@byu.net>
94045         Add rawmemchr module, matching glibc.
94046         * modules/string (Makefile.am): New indicator.
94047         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
94048         * lib/string.in.h (rawmemchr): Declare when appropriate.
94049         * modules/rawmemchr: New file.
94050         * m4/rawmemchr.m4: Likewise.
94051         * lib/rawmemchr.c: Likewise.
94052         * modules/rawmemchr-tests: Likewise.
94053         * tests/test-rawmemchr.c: Likewise.
94054         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
94055         module.
94056         * modules/strchrnul (Depends-on): Add rawmemchr.
94057         * lib/strchrnul.c (strchrnul): Optimize a corner case.
94059         Whitespace cleanup.
94060         * tests/test-strchrnul.c: Reindent.
94061         * lib/strchrnul.c: Likewise.
94063         Optimize and test strchrnul.
94064         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
94065         * modules/strchrnul-tests: New file.
94066         * tests/test-strchrnul.c: Likewise.
94068         Remove intprops dependency.
94069         * modules/memchr (Depends-on): Remove intprops.
94070         * modules/memrchr (Depends-on): Likewise.
94071         * modules/memchr2 (Depends-on): Likewise.
94072         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
94073         * lib/memrchr.c (__memrchr): Likewise.
94074         * lib/memrchr2.c (memchr2): Likewise.
94075         Reported by Simon Josefsson.
94077 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94079         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
94080         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94082 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94084         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
94086         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
94088         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
94090         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
94091         declarations.
94092         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
94094         * m4/inet_pton.m4: Don't check for header files.
94096         * m4/inet_ntop.m4: Don't check for header files.
94098 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94100         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
94101         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
94102         trigger for cygwin).
94103         Reported by Bruno Haible  <bruno@clisp.org>.
94105 2008-04-28  Bruno Haible  <bruno@clisp.org>
94107         * doc/posix-functions/strdup.texi: Mention mingw problem.
94109 2008-04-27  Bruno Haible  <bruno@clisp.org>
94111         * modules/stat-time-tests (Depends-on): Add sleep.
94112         * tests/test-stat-time.c (force_unlink): New function.
94113         (cleanup): Use it.
94114         (test_mtime): Remove the ctime related tests.
94115         (test_ctime): New function, containing the ctime related tests.
94116         (main): Call test_ctime, except on native Windows platforms.
94118 2008-04-27  Bruno Haible  <bruno@clisp.org>
94120         * lib/rpmatch.c (rpmatch): Add some comments.
94121         Reported by James Youngman <jay@gnu.org>.
94123 2008-04-27  Bruno Haible  <bruno@clisp.org>
94125         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
94126         quiet NaNs.
94128 2008-04-27  Bruno Haible  <bruno@clisp.org>
94130         Make test-yesno.sh work on mingw.
94131         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
94132         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
94133         (main): Set stdin to binary mode.
94134         * modules/yesno-tests (Depends-on): Add binary-io.
94136 2008-04-27  Bruno Haible  <bruno@clisp.org>
94138         Fix 'isfinite' on x86, x86_64, ia64 platforms.
94139         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
94140         argument that lie outside the IEEE 854 domain.
94141         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
94142         (gl_ISFINITE): Use it.
94143         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
94145 2008-04-27  Bruno Haible  <bruno@clisp.org>
94147         Allow local renaming in config.h.
94148         * lib/memrchr.c (memrchr): Don't undefine outside libc.
94150 2008-04-27  Bruno Haible  <bruno@clisp.org>
94152         * lib/memchr.c (__memchr): Change type of 'i'.
94153         * lib/memchr2.c (memchr2): Likewise.
94155 2008-04-26  Eric Blake  <ebb9@byu.net>
94156         and Bruno Haible  <bruno@clisp.org>
94158         Optimize and test memrchr.
94159         * modules/memrchr (Depends-on): Add intprops.
94160         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
94161         * modules/memrchr-tests: New file.
94162         * tests/test-memrchr.c: New file.
94164 2008-04-26  Bruno Haible  <bruno@clisp.org>
94166         Add tentative support for DragonFly BSD.
94167         * lib/stdio-impl.h: Add macros for DragonFly BSD.
94168         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
94169         fp.
94170         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
94171         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
94172         * lib/fpurge.c (fpurge): Likewise.
94173         * lib/freadable.c (freaadable): Likewise.
94174         * lib/freadahead.c (freadahead): Likewise.
94175         * lib/freading.c (freading): Likewise.
94176         * lib/freadptr.c (freadptr): Likewise.
94177         * lib/freadseek.c (freadptrinc): Likewise.
94178         * lib/fseeko.c (fseeko): Likewise.
94179         * lib/fseterr.c (fseterr): Likewise.
94180         * lib/fwritable.c (fwritable): Likewise.
94181         * lib/fwriting.c (fwriting): Likewise.
94183 2008-04-26  Bruno Haible  <bruno@clisp.org>
94185         * lib/stdio-impl.h: New file.
94186         * lib/fbufmode.c: Include stdio-impl.h.
94187         (fbufmode): Use fp_, remove redundant #defines.
94188         * lib/fflush.c: Include stdio-impl.h.
94189         (clear_ungetc_buffer): Remove redundant #defines.
94190         * lib/fpurge.c: Include stdio-impl.h.
94191         (fpurge): Remove redundant #defines.
94192         * lib/freadable.c: Include stdio-impl.h.
94193         (freadable): Remove redundant #defines.
94194         * lib/freadahead.c: Include stdio-impl.h.
94195         (freadahead): Remove redundant #defines.
94196         * lib/freading.c: Include stdio-impl.h.
94197         (freading): Remove redundant #defines.
94198         * lib/freadptr.c: Include stdio-impl.h.
94199         (freadptr): Remove redundant #defines.
94200         * lib/freadseek.c: Include stdio-impl.h.
94201         (freadptrinc): Remove redundant #defines.
94202         * lib/fseeko.c: Include stdio-impl.h.
94203         (rpl_fseeko): Remove redundant #defines.
94204         * lib/fseterr.c: Include stdio-impl.h.
94205         (fseterr): Remove redundant #defines.
94206         * lib/fwritable.c: Include stdio-impl.h.
94207         (fwritable: Remove redundant #defines.
94208         * lib/fwriting.c: Include stdio-impl.h.
94209         (fwriting): Remove redundant #defines.
94210         * modules/fbufmode (Files): Add lib/stdio-impl.h.
94211         * modules/fflush (Files): Likewise.
94212         * modules/fpurge (Files): Likewise.
94213         * modules/freadable (Files): Likewise.
94214         * modules/freadahead (Files): Likewise.
94215         * modules/freading (Files): Likewise.
94216         * modules/freadptr (Files): Likewise.
94217         * modules/freadseek (Files): Likewise.
94218         * modules/fseeko (Files): Likewise.
94219         * modules/fseterr (Files): Likewise.
94220         * modules/fwritable (Files): Likewise.
94221         * modules/fwriting (Files): Likewise.
94223 2008-04-26  Bruno Haible  <bruno@clisp.org>
94225         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
94226         restore_seek_optimization, update_fpos_cache): New functions, extracted
94227         from rpl_fflush.
94228         (rpl_fflush): Use them.
94229         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
94230         (gl_REPLACE_FFLUSH): Use it.
94232 2008-04-26  Bruno Haible  <bruno@clisp.org>
94234         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
94235         on Solaris.
94236         * tests/test-xstrtoimax.sh: Likewise.
94237         * tests/test-xstrtoumax.sh: Likewise.
94238         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94240 2008-04-26  Bruno Haible  <bruno@clisp.org>
94242         * modules/memchr-tests: New file.
94243         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
94245 2008-04-26  Eric Blake  <ebb9@byu.net>
94246             Bruno Haible  <bruno@clisp.org>
94248         * lib/memchr.c: Include intprops.h.
94249         (__memchr): Optimize parallel detection of matching bytes. Rename local
94250         variables. Add explanatory comments.
94252 2008-04-26  Bruno Haible  <bruno@clisp.org>
94254         Fix module 'memchr', broken since 2000-10-28.
94255         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
94257 2008-04-26  Bruno Haible  <bruno@clisp.org>
94259         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
94260         comments.
94262 2008-04-25  Eric Blake  <ebb9@byu.net>
94264         Use native fstatat on cygwin 1.7.0.
94265         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
94266         first.
94268 2008-04-23  Eric Blake  <ebb9@byu.net>
94270         Improve memchr2 performance.
94271         * lib/memchr2.c (memchr2): Further optimize parallel detection of
94272         NUL bytes.
94273         * modules/memchr2 (Depends-on): Use intprops.h.
94275 2008-04-23  Simon Josefsson  <simon@josefsson.org>
94277         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
94278         an inline function instead of a CPP macro.  Patch by Ben Pfaff
94279         <blp@cs.stanford.edu>.
94281 2008-04-23  Simon Josefsson  <simon@josefsson.org>
94283         * lib/arpa_inet.in.h: New file.
94285         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
94286         (Makefile.am): Sed in substitute header file.
94288         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
94289         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
94291         * modules/inet_ntop (configure.ac): Use
94292         gl_ARPA_INET_MODULE_INDICATOR.
94294         * modules/inet_pton (configure.ac): Use
94295         gl_ARPA_INET_MODULE_INDICATOR.
94297 2008-04-22  Jim Meyering  <meyering@redhat.com>
94299         * modules/verify (License): Re-license as LGPLv2+.
94301 2008-04-22  Simon Josefsson  <simon@josefsson.org>
94303         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
94304         parameter to void* as per POSIX standard (MinGW uses char*).
94306 2008-04-21  Bruno Haible  <bruno@clisp.org>
94308         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
94309         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
94310         Define to replacements if REPLACE_ISWCNTRL is 1.
94311         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
94312         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
94313         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
94314         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
94315         what it fixes.
94316         * doc/posix-functions/iswalpha.texi: Likewise.
94317         * doc/posix-functions/iswblank.texi: Likewise.
94318         * doc/posix-functions/iswcntrl.texi: Likewise.
94319         * doc/posix-functions/iswdigit.texi: Likewise.
94320         * doc/posix-functions/iswgraph.texi: Likewise.
94321         * doc/posix-functions/iswlower.texi: Likewise.
94322         * doc/posix-functions/iswprint.texi: Likewise.
94323         * doc/posix-functions/iswpunct.texi: Likewise.
94324         * doc/posix-functions/iswspace.texi: Likewise.
94325         * doc/posix-functions/iswupper.texi: Likewise.
94326         * doc/posix-functions/iswxdigit.texi: Likewise.
94327         Reported by Alain Guibert.
94329 2008-04-21  Bruno Haible  <bruno@clisp.org>
94331         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
94332         Patch by Alain Guibert.
94334 2008-04-21  Bruno Haible  <bruno@clisp.org>
94336         Fix test failures on mingw.
94337         * tests/test-xstrtol.c (print_no_progname): New function.
94338         (main): Install it in error_print_progname hook.
94339         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
94340         * tests/test-xstrtoimax.sh: Likewise.
94341         * tests/test-xstrtoumax.sh: Likewise.
94343 2008-04-21  Bruno Haible  <bruno@clisp.org>
94345         Fix test failure on mingw.
94346         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
94348 2008-04-21  Bruno Haible  <bruno@clisp.org>
94350         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
94351         Actually assign a value.
94353 2008-04-20  Bruno Haible  <bruno@clisp.org>
94355         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
94356         take 2.
94357         * lib/canonicalize.c (canonicalize_file_name): Elide if the
94358         'canonicalize-lgpl' module is also used.
94359         * lib/canonicalize-lgpl.c: Undo last change.
94360         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
94362 2008-04-20  Bruno Haible  <bruno@clisp.org>
94364         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
94365         config.h. Provide _mkdir based fallback for mingw.
94366         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
94367         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
94368         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
94369         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
94370         rather than defining mkdir in config.h.
94371         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
94372         (gl_SYS_STAT_H_DEFAULTS): New macro.
94373         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
94374         HAVE_IO_H any more.
94375         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
94376         HAVE_DECL_MKDIR and HAVE_IO_H.
94378 2008-04-20  Bruno Haible  <bruno@clisp.org>
94380         * lib/isapipe.c: Port to native Windows platforms.
94382 2008-04-20  Bruno Haible  <bruno@clisp.org>
94384         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
94386 2008-04-21  Eric Blake  <ebb9@byu.net>
94388         Work around preprocessors that don't handle UINTMAX_MAX.
94389         * lib/memchr2.c (memchr2): Avoid embedded #if.
94390         Reported by Alain Guibert, fix suggested by Bruno Haible.
94392 2008-04-21  Simon Josefsson  <simon@josefsson.org>
94394         * doc/posix-functions/strftime.texi (strftime): Explain better
94395         Windows incompatibility.  Suggested by Micah Cowan
94396         <micah@cowan.name>.
94398 2008-04-20  Bruno Haible  <bruno@clisp.org>
94400         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
94401         unistr/u8-mblen.
94403 2008-04-20  Bruno Haible  <bruno@clisp.org>
94405         Fix test failure on platforms with non-GNU iconv.
94406         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
94407         (U_TO_U8): Use it, rather than u16_to_u8.
94408         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
94409         units at the end of the input string.
94410         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
94412 2008-04-20  Bruno Haible  <bruno@clisp.org>
94414         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
94415         when the resulting length is 0.
94416         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
94418 2008-04-20  Bruno Haible  <bruno@clisp.org>
94420         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
94421         works.
94422         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
94424 2008-04-20  Bruno Haible  <bruno@clisp.org>
94426         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
94427         * modules/tsearch-tests (configure.ac): Test for initstate function.
94429 2008-04-20  Bruno Haible  <bruno@clisp.org>
94431         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
94432         for nlink_t if missing.
94433         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
94435 2008-04-19  Bruno Haible  <bruno@clisp.org>
94437         Work around snprintf bug on Linux libc5.
94438         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
94439         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94440         gl_SNPRINTF_SIZE1.
94441         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94442         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
94443         that test failed.
94444         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
94445         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
94446         * modules/snprintf (Files): Add m4/printf.m4.
94447         * modules/vsnprintf (Files): Likewise.
94448         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
94449         * doc/posix-functions/vsnprintf.texi: Likewise.
94451 2008-04-19  Bruno Haible  <bruno@clisp.org>
94453         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
94454         from 0.0058 to less than 10^-7.
94456 2008-04-19  Bruno Haible  <bruno@clisp.org>
94458         Fix rounding when a precision is given.
94459         * lib/vasnprintf.c (is_borderline): New function.
94460         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
94461         9...9x.
94462         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
94463         %e, %g.
94464         * tests/test-vasprintf-posix.c (test_function): Likewise.
94465         * tests/test-snprintf-posix.h (test_function): Likewise.
94466         * tests/test-sprintf-posix.h (test_function): Likewise.
94467         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
94468         * tests/test-printf-posix.h (test_function): Likewise.
94469         * tests/test-printf-posix.output: Update.
94470         Reported by John Darrington <john@darrington.wattle.id.au> via
94471         Ben Pfaff <blp@cs.stanford.edu>.
94473 2008-04-18  Simon Josefsson  <simon@josefsson.org>
94475         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
94476         Suggested by Bruno Haible <bruno@clisp.org>.
94478 2008-04-17  Bruno Haible  <bruno@clisp.org>
94480         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
94481         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
94482         implementation.
94483         Patch by Bruce Merry <bmerry@gmail.com>.
94485 2008-04-17  Simon Josefsson  <simon@josefsson.org>
94487         * doc/posix-functions/strftime.texi (strftime): Mention that %e
94488         doesn't work under Windows.
94490 2008-04-16  Bruno Haible  <bruno@clisp.org>
94492         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
94493         New macros.
94494         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
94495         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
94496         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
94497         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
94498         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
94499         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
94500         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
94501         macros.
94502         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
94503         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
94504         Northern Sotho, Uighur.
94506 2008-04-16  Bruno Haible  <bruno@clisp.org>
94508         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
94509         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
94510         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
94511         Reported by Daniel Bergström <daniel@octocode.com>.
94513 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
94514             Bruno Haible  <bruno@clisp.org>
94516         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
94517         function.
94518         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
94519         New functions, mostly extracted from gl_locale_name_default.
94520         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
94522 2008-04-16  Eric Blake  <ebb9@byu.net>
94524         Adjust strtod detection to catch glibc 2.7 bug.
94525         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
94526         Reported by John Gatewood Ham.
94528 2008-04-16  Bruno Haible  <bruno@clisp.org>
94530         Add tentative support for Linux libc5.
94531         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
94532         * lib/fpurge.c (fpurge): Likewise.
94533         * lib/freadable.c (freadable): Likewise.
94534         * lib/freadahead.c (freadahead): Likewise.
94535         * lib/freading.c (freading): Likewise.
94536         * lib/freadptr.c (freadptr): Likewise.
94537         * lib/freadseek.c (freadptrinc): Likewise.
94538         * lib/fseeko.c (rpl_fseeko): Likewise.
94539         * lib/fseterr.c (fseterr): Likewise.
94540         * lib/fwritable.c (fwritable): Likewise.
94541         * lib/fwriting.c (fwriting): Likewise.
94542         Reported by Alain Guibert <alguibert+bts@free.fr>.
94544 2008-04-15  Bruno Haible  <bruno@clisp.org>
94546         * modules/mathl (configure.ac): Define module indicator.
94548 2008-04-15  Bruno Haible  <bruno@clisp.org>
94550         * lib/logl.c (logl): Remove unused variables.
94552 2008-04-15  Bruno Haible  <bruno@clisp.org>
94554         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
94555         fails.
94557 2008-04-15  Bruno Haible  <bruno@clisp.org>
94559         * lib/trim.c (trim2): Fix argument of isspace() macro.
94561 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
94563         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
94564         to 0.
94565         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
94567 2008-04-14  Bruno Haible  <bruno@clisp.org>
94569         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
94570         AC_LANG_PROGRAM argument.
94571         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
94572         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
94573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
94574         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
94575         * m4/math_h.m4 (gl_MATH_H): Likewise.
94576         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
94577         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
94578         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
94579         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
94580         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
94581         * m4/regex.m4 (gl_REGEX): Likewise.
94582         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
94583         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
94584         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94585         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
94586         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
94587         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94588         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
94589         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
94591 2008-04-14  Jim Meyering  <meyering@redhat.com>
94593         test-strtod: fix typos: s/abs/fabs/
94594         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
94596 2008-04-13  Bruno Haible  <bruno@clisp.org>
94598         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
94599         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
94600         module is also used and while not building the reloc-wrapper.
94602 2008-04-13  Bruno Haible  <bruno@clisp.org>
94604         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
94606 2008-04-13  Bruno Haible  <bruno@clisp.org>
94608         Fix AIX compilation failure introduced on 2008-04-02.
94609         * tests/test-frexp.c (exp): Undefine before redefining.
94610         * tests/test-frexpl.c (exp): Likewise.
94612 2008-04-13  Bruno Haible  <bruno@clisp.org>
94614         Work around a HP-UX stdio bug.
94615         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
94616         * tests/test-ftello.c (main): Likewise.
94617         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
94618         * doc/posix-functions/ftello.texi: Likewise.
94620 2008-04-13  Bruno Haible  <bruno@clisp.org>
94622         Make test-signbit pass on HP-UX/hppa.
94623         * tests/test-signbit.c (minus_zerol): New variable.
94624         (test_signbitl): Use it.
94626 2008-04-13  Bruno Haible  <bruno@clisp.org>
94628         Make truncl work on OSF/1 4.0.
94629         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
94630         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
94631         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
94632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
94633         HAVE_DECL_TRUNCL.
94634         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
94635         HAVE_DECL_TRUNCL.
94636         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
94638 2008-04-13  Bruno Haible  <bruno@clisp.org>
94640         * lib/unictype.h: Remove trailing comma from enumeration definitions.
94642 2008-04-13  Bruno Haible  <bruno@clisp.org>
94644         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
94645         expression, so as to avoid HP-UX 11 cc compiler bug.
94647 2008-04-13  Bruno Haible  <bruno@clisp.org>
94649         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
94651 2008-04-13  Bruno Haible  <bruno@clisp.org>
94653         * lib/git-merge-changelog.c: Remove empty declaration outside of
94654         functions.
94656 2008-04-13  Bruno Haible  <bruno@clisp.org>
94658         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
94660 2008-04-13  Bruno Haible  <bruno@clisp.org>
94662         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
94663         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
94664         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
94665         also if it exists but lacks definitions of the SHUT_* macros.
94666         * modules/sys_socket (Description): Update.
94667         Reported by Elbert Pol <e.pol@chello.nl>.
94669 2008-04-13  Bruno Haible  <bruno@clisp.org>
94671         * lib/localcharset.c (OS2): Don't redefine if already defined.
94672         Reported by Elbert Pol <e.pol@chello.nl>.
94674 2008-04-13  Bruno Haible  <bruno@clisp.org>
94676         * lib/binary-io.h [__EMX__]: Include <io.h>.
94677         Reported by Elbert Pol <e.pol@chello.nl>.
94679 2008-04-12  Bruno Haible  <bruno@clisp.org>
94681         * lib/fpucw.h: Enable the definitions also for x86_64.
94682         Needed for NetBSD/x86_64.
94683         Reported by Thomas Klausner <tk@giga.or.at>.
94685 2008-04-12  Bruno Haible  <bruno@clisp.org>
94687         * tests/test-strtod.c: Include isnand.h.
94688         (main): Use isnand instead of isnan.
94689         Reported by Jim Meyering.
94691 2008-04-12  Bruno Haible  <bruno@clisp.org>
94693         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
94694         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
94696 2008-04-12  Jim Meyering  <meyering@redhat.com>
94698         * m4/math_h.m4 (gl_MATH_H): Fix typos.
94700 2008-04-12  Bruno Haible  <bruno@clisp.org>
94702         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
94703         Reported by Elbert Pol <e.pol@chello.nl>.
94705 2008-04-12  Eric Blake  <ebb9@byu.net>
94707         Work around Solaris 10 math.h bug.
94708         * m4/math_h.m4 (gl_MATH_H): Check for bug.
94709         (gl_MATH_H_DEFAULTS): Set up default.
94710         * modules/math (Makefile.am): Replace new indicators.
94711         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
94712         * tests/test-math.c (main): Test this.
94713         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
94714         * doc/posix-headers/math.texi (math.h): Mention bug.
94715         Reported by Nelson H. F. Beebe and Jim Meyering.
94717 2008-04-11  Bruno Haible  <bruno@clisp.org>
94719         Adapt to future versions of Apple GCC.
94720         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
94721         Reported by Peter O'Gorman <peter@pogma.com>.
94723 2008-04-11  Bruno Haible  <bruno@clisp.org>
94725         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
94727 2008-04-11  Bruno Haible  <bruno@clisp.org>
94729         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
94731         * modules/getaddrinfo-tests (Makefile.am): Define
94732         test_getaddrinfo_LDADD.
94734 2008-04-11  Bruno Haible  <bruno@clisp.org>
94736         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
94737         (init): Fix syntax error.
94738         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
94739         is declared.
94741 2008-04-11  Bruno Haible  <bruno@clisp.org>
94743         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
94744         * modules/glob (Depends-on): Add stdbool.
94746 2008-04-11  Bruno Haible  <bruno@clisp.org>
94748         * lib/trim.c: Include <string.h>.
94750 2008-04-11  Eric Blake  <ebb9@byu.net>
94752         Avoid compile failure on OS/2.
94753         * lib/regex_internal.h (internal_function): Disable optimization
94754         on OS/2 (__EMX__), where it caused compiler error.
94755         Reported by Elbert Pol.
94757 2008-04-11  Bruno Haible  <bruno@clisp.org>
94759         Flush the standard error stream before aborting. Needed on mingw.
94760         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
94761         * tests/test-array_list.c (ASSERT): Likewise.
94762         * tests/test-array_oset.c (ASSERT): Likewise.
94763         * tests/test-avltree_list.c (ASSERT): Likewise.
94764         * tests/test-avltree_oset.c (ASSERT): Likewise.
94765         * tests/test-avltreehash_list.c (ASSERT): Likewise.
94766         * tests/test-binary-io.c (ASSERT): Likewise.
94767         * tests/test-byteswap.c (ASSERT): Likewise.
94768         * tests/test-c-ctype.c (ASSERT): Likewise.
94769         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
94770         * tests/test-c-strcasestr.c (ASSERT): Likewise.
94771         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
94772         * tests/test-c-strstr.c (ASSERT): Likewise.
94773         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
94774         * tests/test-canonicalize.c (ASSERT): Likewise.
94775         * tests/test-carray_list.c (ASSERT): Likewise.
94776         * tests/test-ceilf1.c (ASSERT): Likewise.
94777         * tests/test-ceilf2.c (ASSERT): Likewise.
94778         * tests/test-ceill.c (ASSERT): Likewise.
94779         * tests/test-count-one-bits.c (ASSERT): Likewise.
94780         * tests/test-fbufmode.c (ASSERT): Likewise.
94781         * tests/test-fflush2.c (ASSERT): Likewise.
94782         * tests/test-floorf1.c (ASSERT): Likewise.
94783         * tests/test-floorf2.c (ASSERT): Likewise.
94784         * tests/test-floorl.c (ASSERT): Likewise.
94785         * tests/test-fopen.c (ASSERT): Likewise.
94786         * tests/test-fpending.c (ASSERT): Likewise.
94787         * tests/test-fprintf-posix.c (ASSERT): Likewise.
94788         * tests/test-fpurge.c (ASSERT): Likewise.
94789         * tests/test-freadable.c (ASSERT): Likewise.
94790         * tests/test-freadahead.c (ASSERT): Likewise.
94791         * tests/test-freading.c (ASSERT): Likewise.
94792         * tests/test-freadptr.c (ASSERT): Likewise.
94793         * tests/test-freadptr2.c (ASSERT): Likewise.
94794         * tests/test-freadseek.c (ASSERT): Likewise.
94795         * tests/test-freopen.c (ASSERT): Likewise.
94796         * tests/test-frexp.c (ASSERT): Likewise.
94797         * tests/test-frexpl.c (ASSERT): Likewise.
94798         * tests/test-fseek.c (ASSERT): Likewise.
94799         * tests/test-fseeko.c (ASSERT): Likewise.
94800         * tests/test-fstrcmp.c (ASSERT): Likewise.
94801         * tests/test-ftell.c (ASSERT): Likewise.
94802         * tests/test-ftello.c (ASSERT): Likewise.
94803         * tests/test-func.c (ASSERT): Likewise.
94804         * tests/test-fwritable.c (ASSERT): Likewise.
94805         * tests/test-fwriting.c (ASSERT): Likewise.
94806         * tests/test-getdelim.c (ASSERT): Likewise.
94807         * tests/test-getline.c (ASSERT): Likewise.
94808         * tests/test-i-ring.c (ASSERT): Likewise.
94809         * tests/test-iconv-utf.c (ASSERT): Likewise.
94810         * tests/test-iconv.c (ASSERT): Likewise.
94811         * tests/test-isfinite.c (ASSERT): Likewise.
94812         * tests/test-isnand.c (ASSERT): Likewise.
94813         * tests/test-isnanf.c (ASSERT): Likewise.
94814         * tests/test-isnanl.h (ASSERT): Likewise.
94815         * tests/test-ldexpl.c (ASSERT): Likewise.
94816         * tests/test-linked_list.c (ASSERT): Likewise.
94817         * tests/test-linkedhash_list.c (ASSERT): Likewise.
94818         * tests/test-localename.c (ASSERT): Likewise.
94819         * tests/test-lseek.c (ASSERT): Likewise.
94820         * tests/test-mbscasecmp.c (ASSERT): Likewise.
94821         * tests/test-mbscasestr1.c (ASSERT): Likewise.
94822         * tests/test-mbscasestr2.c (ASSERT): Likewise.
94823         * tests/test-mbscasestr3.c (ASSERT): Likewise.
94824         * tests/test-mbscasestr4.c (ASSERT): Likewise.
94825         * tests/test-mbschr.c (ASSERT): Likewise.
94826         * tests/test-mbscspn.c (ASSERT): Likewise.
94827         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
94828         * tests/test-mbspbrk.c (ASSERT): Likewise.
94829         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
94830         * tests/test-mbsrchr.c (ASSERT): Likewise.
94831         * tests/test-mbsspn.c (ASSERT): Likewise.
94832         * tests/test-mbsstr1.c (ASSERT): Likewise.
94833         * tests/test-mbsstr2.c (ASSERT): Likewise.
94834         * tests/test-mbsstr3.c (ASSERT): Likewise.
94835         * tests/test-memchr2.c (ASSERT): Likewise.
94836         * tests/test-memmem.c (ASSERT): Likewise.
94837         * tests/test-open.c (ASSERT): Likewise.
94838         * tests/test-printf-frexp.c (ASSERT): Likewise.
94839         * tests/test-printf-frexpl.c (ASSERT): Likewise.
94840         * tests/test-printf-posix.c (ASSERT): Likewise.
94841         * tests/test-quotearg.c (ASSERT): Likewise.
94842         * tests/test-rbtree_list.c (ASSERT): Likewise.
94843         * tests/test-rbtree_oset.c (ASSERT): Likewise.
94844         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
94845         * tests/test-round1.c (ASSERT): Likewise.
94846         * tests/test-roundf1.c (ASSERT): Likewise.
94847         * tests/test-roundl.c (ASSERT): Likewise.
94848         * tests/test-signbit.c (ASSERT): Likewise.
94849         * tests/test-sleep.c (ASSERT): Likewise.
94850         * tests/test-snprintf-posix.c (ASSERT): Likewise.
94851         * tests/test-snprintf.c (ASSERT): Likewise.
94852         * tests/test-sprintf-posix.c (ASSERT): Likewise.
94853         * tests/test-stat-time.c (ASSERT): Likewise.
94854         * tests/test-strcasestr.c (ASSERT): Likewise.
94855         * tests/test-strerror.c (ASSERT): Likewise.
94856         * tests/test-striconv.c (ASSERT): Likewise.
94857         * tests/test-striconveh.c (ASSERT): Likewise.
94858         * tests/test-striconveha.c (ASSERT): Likewise.
94859         * tests/test-strsignal.c (ASSERT): Likewise.
94860         * tests/test-strstr.c (ASSERT): Likewise.
94861         * tests/test-strtod.c (ASSERT): Likewise.
94862         * tests/test-trunc1.c (ASSERT): Likewise.
94863         * tests/test-trunc2.c (ASSERT): Likewise.
94864         * tests/test-truncf1.c (ASSERT): Likewise.
94865         * tests/test-truncf2.c (ASSERT): Likewise.
94866         * tests/test-truncl.c (ASSERT): Likewise.
94867         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
94868         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
94869         * tests/test-vasnprintf.c (ASSERT): Likewise.
94870         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
94871         * tests/test-vasprintf.c (ASSERT): Likewise.
94872         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
94873         * tests/test-vprintf-posix.c (ASSERT): Likewise.
94874         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
94875         * tests/test-vsnprintf.c (ASSERT): Likewise.
94876         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
94877         * tests/test-wcwidth.c (ASSERT): Likewise.
94878         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
94879         * tests/test-xprintf-posix.c (ASSERT): Likewise.
94880         * tests/test-xvasprintf.c (ASSERT): Likewise.
94881         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
94882         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
94883         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
94884         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
94885         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
94886         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
94887         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
94888         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
94889         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
94890         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
94891         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
94892         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
94893         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
94894         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
94895         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
94896         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
94897         * tests/unictype/test-block_list.c (ASSERT): Likewise.
94898         * tests/unictype/test-block_of.c (ASSERT): Likewise.
94899         * tests/unictype/test-block_test.c (ASSERT): Likewise.
94900         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
94901         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
94902         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
94903         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
94904         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
94905         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
94906         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
94907         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
94908         * tests/unictype/test-combining.c (ASSERT): Likewise.
94909         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
94910         * tests/unictype/test-digit.c (ASSERT): Likewise.
94911         * tests/unictype/test-mirror.c (ASSERT): Likewise.
94912         * tests/unictype/test-numeric.c (ASSERT): Likewise.
94913         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
94914         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
94915         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
94916         * tests/unictype/test-scripts.c (ASSERT): Likewise.
94917         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
94918         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
94919         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
94920         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
94921         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
94922         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
94923         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
94924         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
94925         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
94926         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
94927         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
94928         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
94929         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
94930         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
94931         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
94932         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
94933         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
94934         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
94935         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
94936         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
94937         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
94938         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
94939         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
94940         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
94941         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
94942         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
94943         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
94944         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
94945         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
94946         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
94947         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
94948         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
94949         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
94950         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
94951         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
94952         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
94953         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
94954         Reported by Eric Blake.
94956 2008-04-11  Bruno Haible  <bruno@clisp.org>
94958         * lib/wchar.in.h: Tweak comment.
94960 2008-04-11  Bruno Haible  <bruno@clisp.org>
94962         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
94963         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
94964         gl_COMMON.
94965         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
94967 2008-04-11  Bruno Haible  <bruno@clisp.org>
94969         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
94971 2008-04-11  Simon Josefsson  <simon@josefsson.org>
94973         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
94974         of attempting to use non-existing /dev/*random.  Based on patch
94975         from Adam Strzelecki <ono@java.pl> in
94976         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
94978 2008-04-08  Bruno Haible  <bruno@clisp.org>
94980         Add tentative support for emx+gcc.
94981         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
94982         * lib/fpurge.c (fpurge): Likewise.
94983         * lib/freadable.c (freadable): Likewise.
94984         * lib/freadahead.c (freadahead): Likewise.
94985         * lib/freading.c (freading): Likewise.
94986         * lib/freadptr.c (freadptr): Likewise.
94987         * lib/freadseek.c (freadptrinc): Likewise.
94988         * lib/fseeko.c (rpl_fseeko): Likewise.
94989         * lib/fseterr.c (fseterr): Likewise.
94990         * lib/fwritable.c (fwritable): Likewise.
94991         * lib/fwriting.c (fwriting): Likewise.
94992         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
94994 2008-04-09  Eric Blake  <ebb9@byu.net>
94996         Avoid some autoconf warnings.
94997         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
94998         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
94999         * m4/afs.m4 (gl_AFS): Likewise.
95000         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
95001         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
95002         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95003         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
95004         (gl_INTEGER_TYPE_SUFFIX): Likewise.
95005         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
95006         (AC_CHECK_DECLS_ONCE): Likewise.
95007         Rename file...
95008         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
95009         gnulib-tool requires autoconf 2.59 or better.
95010         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
95012 2008-04-08  Eric Blake  <ebb9@byu.net>
95014         Use 'git describe --match' if present (added in git 1.5.5).
95015         * build-aux/git-version-gen: Limit result to tags that match 'v*'
95016         if possible.
95018 2008-04-08  Bruno Haible  <bruno@clisp.org>
95020         Add tentative support for OpenServer.
95021         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
95022         _ptr, _cnt.
95023         * lib/fpurge.c (fpurge): Likewise.
95024         * lib/freadable.c (freadable): Likewise.
95025         * lib/freadahead.c (freadahead): Likewise.
95026         * lib/freading.c (freading): Likewise.
95027         * lib/freadptr.c (freadptr): Likewise.
95028         * lib/freadseek.c (freadptrinc): Likewise.
95029         * lib/fseeko.c (rpl_fseeko): Likewise.
95030         * lib/fseterr.c (fseterr): Likewise.
95031         * lib/fwritable.c (fwritable): Likewise.
95032         * lib/fwriting.c (fwriting): Likewise.
95033         Reported by Roger Cornelius <rac@tenzing.org> and
95034         Brian K. White <brian@aljex.com>.
95036 2008-04-06  Jim Meyering  <meyering@redhat.com>
95038         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
95040 2008-04-06  Bruno Haible  <bruno@clisp.org>
95042         Avoid possible error with non-ASCII bytes in UTF-8 locales.
95043         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
95044         * tests/test-printf-posix.sh: Likewise.
95045         * tests/test-vfprintf-posix.sh: Likewise.
95046         * tests/test-vprintf-posix.sh: Likewise.
95047         * tests/test-xprintf-posix.sh: Likewise.
95049 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95051         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
95052         hide error from 'ls', needed on OS/2.
95053         Report by Elbert Pol <elbert.pol@gmail.com>.
95055 2008-04-04  Eric Blake  <ebb9@byu.net>
95057         Make test-fseeko.c failures meaningful.
95058         * tests/test-fseeko.c: Print line number on failure.
95059         * tests/test-fseek.c: Likewise.
95060         Reported by Nelson H. F. Beebe.
95062         Improve strtod bug detection check.
95063         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
95064         required for Solaris 10.
95065         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
95067 2008-04-04  Bruno Haible  <bruno@clisp.org>
95069         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
95070         by m4/setenv.m4.
95072 2008-04-03  Eric Blake  <ebb9@byu.net>
95074         Ensure sane .version contents.
95075         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
95076         version string.
95077         * build-aux/git-version-gen: Improve documentation.
95079         Make GNU make output nicer.
95080         * top/GNUmakefile [!_have-Makefile]: Add dependency on
95081         MAKECMDGOALS to enforce message for all command line targets.  Set
95082         srcdir for use in maint.mk.
95084         Another maintainer tweak.
95085         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
95086         a target that regenerates version.
95088 2008-04-03  Jim Meyering  <meyering@redhat.com>
95090         vc-list-files: don't cause coreutils "make po-check" failure
95091         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
95093 2008-04-03  Eric Blake  <ebb9@byu.net>
95095         Allow VPATH usage of vc-list-files.
95096         * build-aux/vc-list-files (scriptversion): Add timestamp.
95097         (options): Add --help, --version, -C.
95098         (CVS): Support installed cvsu.
95100 2008-04-02  Bruno Haible  <bruno@clisp.org>
95102         Avoid some "statement with no effect" warnings from gcc.
95103         * tests/test-wctype.c (main): Explicitly ignore unused values.
95104         Reported by Jim Meyering.
95106 2008-04-02  Jim Meyering  <meyering@redhat.com>
95108         Avoid some warnings from "gcc -Wshadow".
95109         * tests/test-frexp.c (exp): Define to a different identifier.
95110         * tests/test-frexpl.c (exp): Likewise.
95112 2008-04-03  Jim Meyering  <meyering@redhat.com>
95114         bootstrap: remove dangling *.[ch] symlinks from lib
95115         * build-aux/bootstrap [dangling symlink removal]: Move find's
95116         -depth option to precede all others, to avoid a warning.
95117         Remove *.[ch] files too, and from "$source_base" (usually lib/).
95119 2008-04-02  Bruno Haible  <bruno@clisp.org>
95121         Avoid some warnings from "gcc -Wshadow".
95122         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
95123         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
95124         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
95125         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
95126         Reported by Jim Meyering.
95128 2008-04-01  Bruno Haible  <bruno@clisp.org>
95130         Fix test to work on IRIX 6.5 with cc.
95131         * tests/test-math.c (numeric_equal): New function.
95132         (main): Use it.
95134 2008-04-01  Bruno Haible  <bruno@clisp.org>
95136         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
95138 2008-04-01  Bruno Haible  <bruno@clisp.org>
95140         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
95141         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95142         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
95143         (Depends-on): Remove math.
95145         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
95146         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95147         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
95148         (Depends-on): Remove math.
95150         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
95151         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95152         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
95153         (Depends-on): Remove math.
95154         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
95155         (Depends-on): Remove math.
95157         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
95158         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95159         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
95160         (Depends-on): Remove math.
95161         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
95162         (Depends-on): Remove math.
95164         * tests/test-round1.c: Include nan.h.
95165         (main): Use NaNd instead of NAN.
95166         * modules/round-tests (Files): Add tests/nan.h.
95168         * tests/test-trunc1.c: Include nan.h.
95169         (main): Use NaNd instead of NAN.
95170         * modules/trunc-tests (Files): Add tests/nan.h.
95172         * tests/test-roundf1.c: Include nan.h.
95173         (main): Use NaNf instead of NAN.
95174         * modules/roundf-tests (Files): Add tests/nan.h.
95176         * tests/test-truncf1.c: Include nan.h.
95177         (main): Use NaNf instead of NAN.
95178         * modules/truncf-tests (Files): Add tests/nan.h.
95180         * tests/test-ceilf1.c: Include nan.h.
95181         (main): Use NaNf instead of NAN.
95182         * modules/ceilf-tests (Files): Add tests/nan.h.
95184         * tests/test-floorf1.c: Include nan.h.
95185         (main): Use NaNf instead of NAN.
95186         * modules/floorf-tests (Files): Add tests/nan.h.
95188         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
95189         (main): Use NaNf instead of NAN.
95190         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
95192         * tests/test-isnand.c: Include nan.h instead of <math.h>.
95193         (main): Use NaNd instead of NAN.
95194         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
95196         * tests/test-frexp.c: Include nan.h.
95197         (main): Use NaNd instead of NAN.
95198         * modules/frexp-tests (Files): Add tests/nan.h.
95200         * lib/isnan.c: Don't include <math.h>.
95201         (FUNC): Don't use NAN macro.
95202         * modules/isnand-nolibm (Depends-on): Remove math.
95203         * modules/isnanf-nolibm (Depends-on): Remove math.
95204         * modules/isnanl (Depends-on): Remove math.
95205         * modules/isnanl-nolibm (Depends-on): Remove math.
95207         * tests/nan.h: New file.
95209 2008-04-01  Eric Blake  <ebb9@byu.net>
95211         Fix typos.
95212         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
95213         values to be the right type.
95215         For now, cater to gnulib strtod inaccuracies.
95216         * tests/test-strtod.c (main): Allow 1-ulp error on expected
95217         fractional results.  While not as nice from a QoI perspective, it
95218         is a quicker patch than correctly implementing decimal to binary
95219         rounding.
95221 2008-03-31  Eric Blake  <ebb9@byu.net>
95223         Guarantee a definition of NAN.
95224         * lib/math.in.h (NAN): Define if missing.
95225         * tests/test-math.c (main): Test it.
95226         * doc/posix-headers/math.texi (math.h): Document this.
95227         * lib/isnan.c (rpl_isnand): Use it.
95228         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
95229         * tests/test-floorf1.c (NaN): Likewise.
95230         * tests/test-frexp.c (NaN): Likewise.
95231         * tests/test-isnand.c (NaN): Likewise.
95232         * tests/test-isnanf.c (NaN): Likewise.
95233         * tests/test-round1.c (NaN): Likewise.
95234         * tests/test-roundf1.c (NaN): Likewise.
95235         * tests/test-snprintf-posix.h (NaN): Likewise.
95236         * tests/test-sprintf-posix.h (NaN): Likewise.
95237         * tests/test-trunc1.c (NaN): Likewise.
95238         * tests/test-truncf1.c (NaN): Likewise.
95239         * tests/test-vasnprintf-posix.c (NaN): Likewise.
95240         * tests/test-vasprintf-posix.c (NaN): Likewise.
95241         * modules/isnand-nolibm (Depends-on): Add math.
95242         * modules/isnanf-nolibm (Depends-on): Likewise.
95243         * modules/isnanl (Depends-on): Likewise.
95244         * modules/isnanl-nolibm (Depends-on): Likewise.
95245         * modules/snprintf-posix-tests (Depends-on): Likewise.
95246         * modules/sprintf-posix-tests (Depends-on): Likewise.
95247         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
95248         * modules/vsprintf-posix-tests (Depends-on): Likewise.
95249         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
95250         * modules/vasprintf-posix-tests (Depends-on): Likewise.
95252 2008-03-31  Bruno Haible  <bruno@clisp.org>
95254         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
95255         * doc/posix-functions/strtod.texi: Likewise.
95257 2008-03-31  Bruno Haible  <bruno@clisp.org>
95259         * tests/test-strtod.c (main): Don't use C99 syntax.
95261 2008-03-31  Bruno Haible  <bruno@clisp.org>
95263         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
95264         Reported by Eric Blake.
95266 2008-03-31  Jim Meyering  <meyering@redhat.com>
95268         Don't compare actual signbit return values.
95269         * tests/test-strtod.c (main): Rather, compare only their
95270         zero/non-zero nature.
95272 2008-03-31  Eric Blake  <ebb9@byu.net>
95274         More strtod documentation.
95275         * doc/posix-functions/strtod.texi (strtod): Interpret more test
95276         failures as distinct bugs.
95278 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
95280         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
95281         Problem reported by Erik Benada in
95282         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
95284 2008-03-30  Bruno Haible  <bruno@clisp.org>
95286         * tests/test-strtod.c: Add comments about which assertion fails on which
95287         platform.
95288         * doc/posix-functions/strtod.texi: Add info about many more platforms.
95290 2008-03-30  Eric Blake  <ebb9@byu.net>
95292         Test signbit behavior on zeros.
95293         * tests/test-signbit.c (test_signbitf): Add tests for zero.
95294         (test_signbitd, test_signbitl): Likewise.
95296         More strtod touchups.
95297         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
95298         sign of negative underflow, for now.  Use .5, not .1.
95299         * doc/posix-functions/strtod.texi (strtod): Mention these
95300         limitations.
95301         Reported by Jim Meyering.
95303 2008-03-30  Bruno Haible  <bruno@clisp.org>
95305         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
95306         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
95308 2008-03-30  Bruno Haible  <bruno@clisp.org>
95310         Avoid failure when attempting to return empty iconv results on some
95311         platforms.
95312         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
95313         allocation, don't report ENOMEM when the resulting string is empty.
95315 2008-03-30  Bruno Haible  <bruno@clisp.org>
95317         Fix buffer overrun.
95318         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
95319         Don't consider the width for tmp_length. Check count against tmp_length
95320         before doing the padding. Ensure enough allocation during padding.
95322 2008-03-30  Eric Blake  <ebb9@byu.net>
95324         strtod touchups.
95325         * lib/strtod.c (strtod): Avoid compiler warnings.
95326         Reported by Jim Meyering.
95328 2008-03-30  Bruno Haible  <bruno@clisp.org>
95330         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
95331         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
95332         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
95333         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
95334         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
95335         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
95336         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
95337         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
95339         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
95340         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
95341         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
95342         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
95343         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
95344         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
95345         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
95346         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
95348         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
95349         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
95350         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
95351         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
95352         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
95353         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
95354         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
95355         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
95357         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
95358         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
95360         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
95361         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
95363         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
95364         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
95366         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
95367         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
95368         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
95370         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
95371         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
95372         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
95374         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
95375         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
95376         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
95378         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
95379         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
95380         * modules/vasprintf (Depends-on): Add EOVERFLOW.
95382         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
95383         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
95384         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
95385         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
95386         (Depends-on): Add EOVERFLOW.
95387         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
95388         (Depends-on): Add EOVERFLOW.
95389         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95390         (Depends-on): Add EOVERFLOW.
95391         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95392         (Depends-on): Add EOVERFLOW.
95393         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95394         (Depends-on): Add EOVERFLOW.
95395         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95396         (Depends-on): Add EOVERFLOW.
95397         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95398         (Depends-on): Add EOVERFLOW.
95399         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95400         (Depends-on): Add EOVERFLOW.
95402         * lib/sprintf.c (EOVERFLOW): Remove fallback.
95403         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
95404         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
95406         * lib/snprintf.c (EOVERFLOW): Remove fallback.
95407         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
95408         * modules/snprintf (Depends-on): Add EOVERFLOW.
95410         * lib/poll.c (EOVERFLOW): Remove fallback.
95411         * modules/poll (Depends-on): Add EOVERFLOW.
95413         * lib/getugroups.c (EOVERFLOW): Remove fallback.
95414         * modules/getugroups (Depends-on): Add EOVERFLOW.
95416         * lib/getdelim.c (EOVERFLOW): Remove fallback.
95417         * modules/getdelim (Depends-on): Add EOVERFLOW.
95419         * lib/ftell.c (EOVERFLOW): Remove fallback.
95420         * modules/ftell (Depends-on): Add EOVERFLOW.
95422         * lib/fprintf.c (EOVERFLOW): Remove fallback.
95423         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
95424         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
95426         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
95428         * modules/EOVERFLOW-tests: New file.
95429         * tests/test-EOVERFLOW.c: New file.
95431         * modules/EOVERFLOW: New file.
95432         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
95434 2008-03-30  Bruno Haible  <bruno@clisp.org>
95436         Fix bug introduced on 2007-06-10.
95437         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
95438         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
95440 2008-03-30  Bruno Haible  <bruno@clisp.org>
95442         Improve freadseek's efficiency after ungetc.
95443         * lib/freadseek.c: Include freadahead.h.
95444         (freadptrinc): New function, extracted from freadseek.
95445         (freadseek): Use it in a loop. Use freadahead to determine the number
95446         of loop iterations.
95447         * modules/freadseek (Depends-on): Add freadahead.
95448         (configure.ac): Require AC_C_INLINE.
95450 2008-03-30  Bruno Haible  <bruno@clisp.org>
95452         * lib/freadseek.c (freadseek): Don't ignore the return value of
95453         freadptr.
95455 2008-03-29  Eric Blake  <ebb9@byu.net>
95457         Add hex float support.
95458         * modules/strtod (Depends-on): Add c-ctype.
95459         (Link): Mention POW_LIB.
95460         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
95461         whitespace between 'e' and exponent.
95462         * tests/test-strtod.c (main): Enable hex float tests.
95463         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
95464         now provides.
95466         Document various strtod bugs, with some fixes.
95467         * doc/posix-functions/strtod.texi (strtod): Document bugs with
95468         "-0x", "inf", "nan", and hex constants.
95469         * doc/posix-functions/atof.texi (atof): Likewise.
95470         * modules/stdlib (Makefile.am): Support strtod.
95471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
95472         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
95473         detect additional strtod bugs.
95474         * lib/stdlib.in.h (rpl_strtod): Add declarations.
95475         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
95476         bool where appropriate.  Parse 'inf' and 'nan'.
95477         * tests/test-strtod.c: New file.
95478         * modules/strtod (Depends-on): Add stdbool, stdlib.
95479         (configure.ac): Turn on module indicator.
95480         * modules/strtod-tests: New module.
95482 2008-03-29  Eric Blake  <ebb9@byu.net>
95484         Fix ftell on mingw.
95485         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
95486         * modules/ftell-tests (Depends-on): Add binary-io.
95487         * modules/ftello-tests (Depends-on): Likewise.
95488         * tests/test-ftell.c (main): Enhance test to cover behavior after
95489         ungetc.  Enforce binary mode.
95490         * tests/test-ftello.c (main): Likewise.
95492         Pass test-freadseek on cygwin.
95493         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
95494         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
95495         ungetc buffer.
95497         * tests/test-fflush2.c (main): Fix typo.
95499 2008-03-29  Bruno Haible  <bruno@clisp.org>
95501         * tests/test-fflush2.c (main): Temporarily disable the contents of
95502         this test.
95503         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
95504         Reported by Eric Blake.
95506 2008-03-28  Simon Josefsson  <simon@josefsson.org>
95508         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
95509         (GC_SHA224_DIGEST_SIZE): Add.
95511         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
95512         (gc_hash_digest_length): Likewise.
95513         (gc_hash_buffer): Likewise.
95515 2008-03-25  Bruno Haible  <bruno@clisp.org>
95517         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
95518         detail which gettext release to use.
95519         Reported by Simon Josefsson.
95521 2008-03-26  Jim Meyering  <meyering@redhat.com>
95523         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
95524         * modules/gnumakefile (clean-GNUmakefile): Also, use
95525         test ... && ... || : syntax rather than if-then ... fi.
95527         gnumakefile: Don't double-quote-expand $(VPATH) value.
95528         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
95530 2008-03-24  Eric Blake  <ebb9@byu.net>
95532         Alter GNUmakefile to install into top directory.
95533         * modules/maintainer-makefile: Split, and add dependency...
95534         * modules/gnumakefile: to this new module.
95535         * build-aux/GNUmakefile: Move...
95536         * top/GNUmakefile: ...here.
95537         * build-aux/maint.mk: Move...
95538         * top/maint.mk: ...here.
95539         * MODULES.html.sh (Support for maintaining...): Document new
95540         module.
95542 2008-03-23  Bruno Haible  <bruno@clisp.org>
95544         * gnulib-tool: New options --vc-files, --no-vc-files.
95545         (func_usage): Document them.
95546         (vc_files): New variable.
95547         (func_import): Consider vc_files.
95548         (func_create_testdir): Set vc_files to empty.
95549         Suggested by Jim Meyering and Karl Berry.
95551 2008-03-23  Bruno Haible  <bruno@clisp.org>
95553         Fix regex compilation error on HP-UX 11.
95554         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
95555         * modules/regex (Files): Add m4/mbstate_t.m4.
95556         Reported by Ton Voon <ton.voon@altinity.com>.
95558 2008-03-23  Bruno Haible  <bruno@clisp.org>
95560         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
95562 2008-03-23  Eric Blake  <ebb9@byu.net>
95563             Bruno Haible  <bruno@clisp.org>
95565         Install files from top/ in the destination directory.
95566         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
95567         augmentation also for the files from top/.
95568         (func_import, func_create_testdir): Rewrite file names:
95569         top/filename -> filename.
95571 2008-03-23  Bruno Haible  <bruno@clisp.org>
95573         Tweak "gnulib --version" output.
95574         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
95576 2008-03-23  Bruno Haible  <bruno@clisp.org>
95578         Tweak "gnulib --version" output.
95579         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
95580         rather than contents of ChangeLog, when possible.
95582 2008-03-21  Eric Blake  <ebb9@byu.net>
95584         More --version tweaks.
95585         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
95586         date of last ChangeLog entry.
95588 2008-03-21  Jim Meyering  <meyering@redhat.com>
95590         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
95592 2008-03-20  Eric Blake  <ebb9@byu.net>
95594         VPATH fix.
95595         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
95597 2008-03-20  Simon Josefsson  <simon@josefsson.org>
95599         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
95600         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
95602 2008-03-20  Eric Blake  <ebb9@byu.net>
95604         Sync GNUmakefile with coreutils.
95605         * build-aux/GNUmakefile (have-Makefile): Rename...
95606         (_have-Makefile): ...to this, for namespace consideration.
95607         (GNUmakefile.cfg): Include, if present.
95608         (_autoreconf): Define a default.
95609         (_is-dist-target): New rule for rebuilds to pick up intra-release
95610         version.
95611         (maint-cfg.mk): Rename...
95612         (cfg.mk): ...to this.
95614 2008-03-18  Jim Meyering  <meyering@redhat.com>
95616         New script and module: mktempd
95617         * MODULES.html.sh (maint+release support): Add mktempd.
95618         * build-aux/mktempd: New file.
95619         * modules/mktempd: New file.
95621 2008-03-15  Jim Meyering  <meyering@redhat.com>
95623         Undo last change.
95624         * lib/sha1.c, lib/md5.c: 63 != ~63.
95625         Reported by Andreas Schwab.
95627         sha1.c, md5.c: Hoist a redundant expression.
95628         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
95629         "ctx->buflen" only once, before calling *_process_block.
95630         * lib/md5.c (md5_process_bytes): Likewise.
95632 2008-03-14  Eric Blake  <ebb9@byu.net>
95634         Bump copyright year in files generated by gnulib-tool.
95635         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
95636         gnulib-tool, rather than hard-coding it.
95638         Fix 'gnulib-tool --version' output to work with git.
95639         * gnulib-tool (func_gnulib_dir): New function, extracted from...
95640         (startup): ...here.
95641         (func_version): Use it to invoke git-version-gen, rather than
95642         relying on CVS keyword expansion.  Modernize wording.
95643         (cvsdatestamp, last_checkin_date, version): Kill unused
95644         variables.
95646 2008-03-12  Jim Meyering  <meyering@redhat.com>
95648         Recognize optional cast of the argument to free.
95649         * build-aux/useless-if-before-free: Update regexps.
95651         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
95653 2008-03-11  Bruno Haible  <bruno@clisp.org>
95655         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
95656         by a single package.
95657         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
95658         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
95659         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
95660         Reported by Sam Steingold <sds@gnu.org>.
95662 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
95664         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
95665         repositories.
95667 2008-03-11  Bruno Haible  <bruno@clisp.org>
95669         Avoid conflicts between local macro definitions.
95670         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
95671         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
95673 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
95674             Bruno Haible  <bruno@clisp.org>
95676         Make va_copy work with some version of xlc on AIX 5.1.
95677         * lib/stdarg.in.h: New file.
95678         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
95679         On AIX, use a <stdarg.h> file substitute.
95680         * modules/stdarg (Files): Add lib/stdarg.in.h.
95681         (Depends-on): Add include_next.
95682         (Makefile.am): Build a stdarg.h substitute if requested.
95683         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
95685 2008-03-10  Bruno Haible  <bruno@clisp.org>
95687         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
95688         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95689         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
95691 2008-03-10  Bruno Haible  <bruno@clisp.org>
95693         * modules/stdlib (Depends-on): Add include_next, remove
95694         absolute-header.
95696 2008-03-09  Bruno Haible  <bruno@clisp.org>
95698         * lib/freadahead.h (freadahead): Document more precisely.
95699         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
95700         the sum of both buffer sizes.
95701         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
95702         * NEWS: Document the change.
95704 2008-03-09  Bruno Haible  <bruno@clisp.org>
95706         Extend freadptr to return also the buffer size.
95707         * lib/freadptr.h (freadptr): Add sizep argument.
95708         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
95709         (freadptr): Add sizep argument. Determine buffer size like freadahead
95710         does.
95711         * tests/test-freadptr.c: Don't include freadahead.h.
95712         (main): Adapt for new calling convention of freadptr.
95713         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
95714         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
95715         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
95716         tests/test-freadptr2.sh.
95717         (Depends): Remove freadahead.
95718         (TESTS): Add test-freadptr2.sh.
95719         (check_PROGRAMS): Add test-freadptr2.
95721 2008-03-09  Bruno Haible  <bruno@clisp.org>
95723         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
95724         Report and solution by Simon Josefsson.
95726 2008-03-06  Bruno Haible  <bruno@clisp.org>
95728         Make fflush after ungetc work on BSD platforms.
95729         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
95730         * tests/test-fflush2.c: New file.
95731         * tests/test-fflush2.sh: New file.
95732         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
95733         tests/test-fflush2.c.
95734         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
95735         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
95737 2008-03-06  Eric Blake  <ebb9@byu.net>
95739         Likewise for ftello.
95740         * modules/ftello (Dependencies): Add extensions.
95741         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
95743 2008-03-06  Bruno Haible  <bruno@clisp.org>
95745         * modules/fseeko (Dependencies): Add extensions.
95746         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
95747         Needed on glibc systems.
95749 2008-03-06  Bruno Haible  <bruno@clisp.org>
95751         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
95752         email address.
95753         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95755 2008-03-06  Bruno Haible  <bruno@clisp.org>
95757         * users.txt: Add libgnupdf.
95759 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
95761         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
95762         (Header File Substitutes, Function Substitutes,
95763         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
95764         (Build robot for gnulib): Fix typo.
95766 2008-03-06  Bruno Haible  <bruno@clisp.org>
95768         * doc/gnulib-tool.texi (VCS Issues): Small updates.
95769         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95771 2008-03-06  Bruno Haible  <bruno@clisp.org>
95773         * doc/func.texi: New file, extracted from doc/gnulib.texi.
95774         * doc/gnulib.texi: Include it.
95776 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95778         * modules/func (License): Change license to unlimited; there was
95779         no LGPL parts in the module anyway.
95781 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95783         * modules/__func__: Renamed to modules/func.
95784         * modules/__func__-tests: Renamed to modules/func-tests.
95785         * tests/test-__func__.c: Renamed to tests/test-func.c.
95786         * m4/__func__.m4: Renamed to m4/func.m4.
95787         * doc/gnulib.texi (__func__): Section renamed to func.
95788         Suggested by Eric Blake <ebb9@byu.net>.
95790 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95792         * doc/gnulib.texi (__func__): Use C99 terminology when talking
95793         about __func__.  Make example self-contained.  Suggested by Eric
95794         Blake <ebb9@byu.net>.
95796         * tests/test-__func__.c (main): Avoid extraneous () around __func.
95797         Suggested by Eric Blake <ebb9@byu.net>.
95799 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95801         * modules/__func__: New file.
95802         * modules/__func__-tests: New file.
95803         * tests/test-__func__.c: New file.
95804         * m4/__func__.m4: New file.
95805         * doc/gnulib.texi (__func__): Document __func__ module.
95807 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95809         * modules/byteswap (License): Re-license as LGPLv2+.
95811 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95813         * doc/Makefile: Add pdf target.
95815 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95817         * modules/inline (License): Use 'unlimited', since there are only
95818         *.m4 files in this module.
95820 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
95821             Bruno Haible  <bruno@clisp.org>
95823         Add support for HP C 7.1 on OpenVMS 8.3.
95824         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
95826 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
95828         Update VMS specifics.
95829         * lib/getopt.c [VMS]: Remove include of unixlib.h.
95831 2008-03-02  Jim Meyering  <meyering@redhat.com>
95833         Remove the last dependency on the "free" module.
95834         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
95835         Reported by Bob Proulx.
95837         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
95839         Remove useless "if" tests before free.  Deprecate "free" module.
95840         * doc/posix-functions/free.texi: Mention that this
95841         module is no longer useful.
95842         * modules/free (Notice): Say this module is obsolete.
95843         * modules/readutmp (Depends-on): Remove free.
95844         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
95845         * lib/putenv.c (putenv): Likewise.
95846         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
95847         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
95848         * tests/test-c-strcasestr.c (main): Likewise.
95849         * tests/test-c-strstr.c (main): Likewise.
95850         * tests/test-mbscasestr1.c (main): Likewise.
95851         * tests/test-mbscasestr2.c (main): Likewise.
95852         * tests/test-mbsstr1.c (main): Likewise.
95853         * tests/test-mbsstr2.c (main): Likewise.
95854         * tests/test-memmem.c (main): Likewise.
95855         * tests/test-strcasestr.c (main): Likewise.
95856         * tests/test-striconv.c (main): Likewise.
95857         * tests/test-striconveh.c (main): Likewise.
95858         * tests/test-striconveha.c (main): Likewise.
95859         * tests/test-strstr.c (main): Likewise.
95861         * build-aux/git-version-gen: Adjust a comment and the Usage string.
95863         bootstrap: sync from coreutils again
95864         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
95866 2008-03-01  Jim Meyering  <meyering@redhat.com>
95868         bootstrap: sync from coreutils
95869         * build-aux/bootstrap (update_po_files): Copy a .po file into place
95870         also when the target doesn't exist.
95872 2008-03-01  Eric Blake  <ebb9@byu.net>
95874         Fix bugs in last patch.
95875         * lib/memchr2.c (memchr2): Fix typo.
95876         * tests/test-memchr2.c: Test previous bug, and don't use GNU
95877         extension.
95878         Reported by Bruce Korb.
95880         New module 'memchr2'.
95881         * modules/memchr2: New file.
95882         * modules/memchr2-tests: Likewise.
95883         * lib/memchr2.h: Likewise.
95884         * lib/memchr2.c: Likewise, based on memchr.c.
95885         * tests/test-memchr2.c: New test.
95886         * MODULES.html.sh (String handling): Add memchr2.
95888 2008-02-29  Bruno Haible  <bruno@clisp.org>
95890         * modules/freadseek-tests: New file.
95891         * tests/test-freadseek.sh: New file.
95892         * tests/test-freadseek.c: New file.
95894         New module 'freadseek'.
95895         * modules/freadseek: New file.
95896         * lib/freadseek.h: New file.
95897         * lib/freadseek.c: New file.
95898         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
95900 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
95902         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
95903         wydawca.
95905         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
95906         program_invocation_name and program_invocation_short_name are
95907         present.
95909 2008-02-28  Bruno Haible  <bruno@clisp.org>
95911         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
95912         * tests/test-freadptr.sh: Also test non-seekable stdin.
95914 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
95916         * build-aux/bootstrap (source_base, m4_base)
95917         (doc_base, tests_base): New variables.
95918         (gnulib_tool_options): Do not hardcode base directories, use
95919         the above variables instead.
95921 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
95923         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
95925 2008-02-28  Bruno Haible  <bruno@clisp.org>
95927         * modules/freadptr-tests: New file.
95928         * tests/test-freadptr.sh: New file.
95929         * tests/test-freadptr.c: New file.
95931         New module 'freadptr'.
95932         * modules/freadptr: New file.
95933         * lib/freadptr.h: New file.
95934         * lib/freadptr.c: New file.
95935         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
95937 2008-02-26  Karl Berry  <karl@freefriends.org>
95939         Sync from Libtool:
95940         * libltdl/argz.c (argz_add, argz_count): New functions.
95941         * libltdl/argz.in.h: Declare them.
95942         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
95944 2008-02-22  Bruno Haible  <bruno@clisp.org>
95946         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
95947         is a pointer type.  Needed for HP-UX 10.
95948         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
95949         * doc/posix-functions/gmtime_r.texi: Likewise.
95950         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
95952 2008-02-24  Bruno Haible  <bruno@clisp.org>
95954         * modules/environ-tests: New file.
95955         * tests/test-environ.c: New file.
95957         New module 'environ'.
95958         * modules/environ: New file.
95959         * lib/unistd.in.h (environ): New declaration.
95960         * m4/environ.m4: New file.
95961         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
95962         after use.
95963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
95964         HAVE_DECL_ENVIRON.
95965         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
95966         HAVE_DECL_ENVIRON.
95967         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
95968         wrong claim that 'environ' is missing on some systems.
95969         * modules/execute (Depends-on): Add environ.
95970         * lib/execute.c (environ): Remove fallback declaration.
95971         * modules/pipe (Depends-on): Add environ.
95972         * lib/pipe.c (environ): Remove fallback declaration.
95973         * modules/setenv (Depends-on): Add environ.
95974         * lib/setenv.c (environ): Remove fallback declaration.
95975         * modules/unsetenv (Depends-on): Add environ.
95976         * lib/unsetenv.c (environ): Remove fallback declaration.
95977         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
95978         m4/environ.m4.
95979         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
95980         (gl_PREREQ_UNSETENV): Likewise.
95982 2008-02-24  Bruno Haible  <bruno@clisp.org>
95984         * doc/posix-functions/environ.texi: Document the MacOS X problem.
95986 2008-02-20  Bob Proulx  <bob@proulx.com>
95988         Enable use of older two part flavor 'git describe'.
95989         * build-aux/git-version-gen: If using the older two part flavor of
95990         git version then recreate the third part now present in the
95991         newer three part flavor of git describe.
95993 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
95995         * lib/fts.c (fts_build): Typo correction to comment.
95997 2008-02-17  Bruno Haible  <bruno@clisp.org>
95999         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
96000         generating no-op conflicts.
96002 2008-02-17  Bruno Haible  <bruno@clisp.org>
96004         Speed up by 10%.
96005         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
96006         result_entries, rather than an index-based loop.
96008 2008-02-17  Bruno Haible  <bruno@clisp.org>
96010         Speed up by 25%.
96011         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
96012         'hashcode_cached'.
96013         (entry_create): New function.
96014         (entry_hashcode): Use the cached hashcode if possible.
96015         (read_changelog_file, try_split_merged_entry): Use entry_create.
96017 2008-02-17  Bruno Haible  <bruno@clisp.org>
96019         Speed up from O(n^2) to O(n) for long ChangeLog files.
96020         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
96021         (read_changelog_file): Change implementation of entries_reversed list
96022         to rbtreehash.
96023         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
96025 2008-02-17  Bruno Haible  <bruno@clisp.org>
96027         New option --split-merged-entry.
96028         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
96029         (find_paragraph_end, try_split_merged_entry): New functions.
96030         (long_options): Add option --split-merged-entry.
96031         (usage): Document option --split-merged-entry.
96032         (main): Implement option --split-merged-entry.
96033         Reported by Eric Blake.
96035 2008-02-17  Bruno Haible  <bruno@clisp.org>
96037         * lib/git-merge-changelog.c: Include c-strstr.h.
96038         (main): Support the "git pull --rebase" situation.
96039         * modules/git-merge-changelog (Depends-on): Add c-strstr.
96040         Reported by Eric Blake.
96042 2008-02-16  Eric Blake  <ebb9@byu.net>
96044         Avoid doubling \ in common case of "c-maybe" quoting style.
96045         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
96046         eliding outer quotes.
96047         * lib/quotearg.h: Document this.
96048         * tests/test-quotearg.c (result_strings, inputs, results_g)
96049         (flag_results, locale_results): Test it by adding a new string to
96050         each test group.
96051         (compare_strings): Test new string.
96053 2008-02-13  Eric Blake  <ebb9@byu.net>
96055         Avoid trigraph quoting in default output.
96056         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
96057         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
96058         unless explicitly requested.
96059         * tests/test-quotearg.c (flag_results, main): Add additional tests.
96061 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
96063         Don't rely on signed integer overflowing to negative value.
96064         * lib/getugroups.c (getugroups): Include <limits.h>.
96065         Instead, compare against INT_MAX, and increment only if the test passes.
96067 2008-02-13  Jim Meyering  <meyering@redhat.com>
96068         and Eric Blake  <ebb9@byu.net>
96070         Avoid shadowing warning and compile errors on Linux.
96071         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
96072         forwarding macros on Linux.
96073         (dcgettext): Define a stub, for Linux.
96074         (results_g, main): Avoid warnings.
96076 2008-02-12  Eric Blake  <ebb9@byu.net>
96078         Silence warning in last patch.
96079         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
96081         Quotearg part 4: add tests, fix c-maybe colon quoting.
96082         * lib/quotearg.h: Improve documentation.
96083         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
96084         escapes when adding outer quotes.  When quoting trigraphs, use
96085         valid C notation.  When quoting NUL, omit extra characters if next
96086         character is not digit.  Alter prototype.
96087         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
96088         callers.
96089         * modules/quotearg-tests: New module.
96090         * tests/test-quotearg.c: New test.
96092 2008-02-07  Eric Blake  <ebb9@byu.net>
96094         Quotearg part 3: add flag to control outer quote elision.
96095         * lib/quotearg.h (c_maybe_quoting_style): New style.
96096         (enum quoting_flags): Better documentation of flags.
96097         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
96098         c-maybe style.
96099         (quotearg_buffer_restyled): Handle new flag to elide outer
96100         quotes.
96102         Quotearg part 2: add flag that can control NUL elision.
96103         * lib/quotearg.h (set_quoting_flags): New prototype.
96104         * lib/quotearg.c (struct quoting_options): Add flag field.
96105         (set_quoting_flags): New function.
96106         (quotearg_buffer_restyled): Add flags parameter.
96107         (quotearg_alloc_mem): Set the flag if length cannot be returned.
96108         (quotearg_n_options): Set the flag, since length cannot be
96109         returned.
96110         (quoting_options_from_style): Default flags correctly.
96112         Quotearg part 1: more wrappers, restore quotearg_char state.
96113         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
96114         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
96115         (quotearg_colon_mem): New wrappers.
96116         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
96117         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
96118         functions.
96119         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
96120         (quotearg_colon_mem): New functions.
96122 2008-02-11  Bruno Haible  <bruno@clisp.org>
96124         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
96125         library in the current directory: it does not work with parallel make.
96126         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96128 2008-02-11  Bruno Haible  <bruno@clisp.org>
96130         * .gitattributes: New file.
96132 2008-02-11  Jim Meyering  <meyering@redhat.com>
96134         useless-if-before-free: Fix reversed exit values.
96135         * build-aux/useless-if-before-free: Use correct values
96136         for EXIT_MATCH and EXIT_NO_MATCH.
96138         * build-aux/useless-if-before-free: Close stdout carefully.
96140 2008-02-10  Bruno Haible  <bruno@clisp.org>
96142         New module 'git-merge-changelog'.
96143         * modules/git-merge-changelog: New file.
96144         * lib/git-merge-changelog.c: New file.
96146 2008-02-10  Jim Meyering  <meyering@redhat.com>
96148         useless-if-before-free: New option: --list (-l).
96150         useless-if-before-free: Don't exit immediately upon open failure.
96151         * build-aux/useless-if-before-free: Exit 2 for errors.
96152         Upon failure to open a file, don't exit immediately.
96153         Rather, just warn and continue with any remaining files.
96155 2008-02-10  Bruno Haible  <bruno@clisp.org>
96157         New abstract list operation 'node_set_value'.
96158         * lib/gl_list.h (gl_list_node_set_value): New function.
96159         (struct gl_list_implementation): New field node_set_value.
96160         * lib/gl_list.c (gl_list_node_set_value): New function.
96161         * lib/gl_array_list.c (gl_array_node_set_value): New function.
96162         (gl_array_list_implementation): Update.
96163         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
96164         (gl_carray_list_implementation): Update.
96165         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
96166         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96167         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96168         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
96169         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96170         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96171         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96172         Update.
96173         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96174         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
96175         (gl_sublist_list_implementation): Update.
96177 2008-02-10  Bruno Haible  <bruno@clisp.org>
96179         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
96180         Needed when ELEMENT is #defined to 'some_type *'.
96182 2008-02-10  Jim Meyering  <meyering@redhat.com>
96184         New script and module: useless-if-before-free
96185         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
96186         * build-aux/useless-if-before-free: New file.
96187         * modules/useless-if-before-free: New file.
96189         * build-aux/gitlog-to-changelog: Use committer date, not author date.
96191         xstrtol_error: Fix typo.
96192         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
96193         s/exit_failure/exit_status/.
96195 2008-02-09  Jim Meyering  <meyering@redhat.com>
96197         New script and module: gitlog-to-changelog
96198         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
96199         * modules/gitlog-to-changelog: New file.
96200         * build-aux/gitlog-to-changelog: New file.
96202 2008-02-08  Jim Meyering  <meyering@redhat.com>
96204         Avoid two "parameter unused" warnings.
96205         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
96206         Mark "st" as used.
96208         Use "git COMMAND", not "git-COMMAND".
96209         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
96210         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
96211         * build-aux/git-version-gen: Use "git status", not "git-status".
96213 2008-02-07  Bruno Haible  <bruno@clisp.org>
96215         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
96216         Avoids a crash on Windows Vista.
96217         Reported by Adam Strzelecki <ono@java.pl> via
96218         Simon Josefsson <simon@josefsson.org>.
96220 2008-02-06  Bruno Haible  <bruno@clisp.org>
96222         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
96223         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
96224         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
96225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
96226         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
96227         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96228         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
96229         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
96230         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96231         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96232         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96233         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96234         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96235         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96236         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96237         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
96238         left-adjust flag.
96239         * tests/test-snprintf-posix.h (test_function): Likewise.
96240         * tests/test-sprintf-posix.h (test_function): Likewise.
96241         * tests/test-vasprintf-posix.c (test_function): Likewise.
96242         * doc/posix-functions/fprintf.texi: Update.
96243         * doc/posix-functions/printf.texi: Update.
96244         * doc/posix-functions/snprintf.texi: Update.
96245         * doc/posix-functions/sprintf.texi: Update.
96246         * doc/posix-functions/vfprintf.texi: Update.
96247         * doc/posix-functions/vprintf.texi: Update.
96248         * doc/posix-functions/vsnprintf.texi: Update.
96249         * doc/posix-functions/vsprintf.texi: Update.
96250         Reported by Peter Fales <psfales@alcatel-lucent.com>.
96252 2008-02-06  Bruno Haible  <bruno@clisp.org>
96254         Fix bug introduced on 2008-01-26.
96255         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
96257 2008-02-06  Bruno Haible  <bruno@clisp.org>
96259         Fix bug introduced on 2007-06-10.
96260         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
96261         !NEED_PRINTF_FLAG_ZERO.
96263 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
96265         getloadavg: use libperfstat on AIX5
96266         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
96268 2008-02-03  Bruno Haible  <bruno@clisp.org>
96270         * lib/diffseq.h: Add comments about required #includes.
96271         Reported by Michael Biggs <gnulib@doubleplum.net>.
96273 2008-02-01  Bruno Haible  <bruno@clisp.org>
96275         * users.txt: Add gnuit.
96277 2008-01-31  Bruno Haible  <bruno@clisp.org>
96279         * lib/md4.c (set_uint32): Mark as inline.
96280         * lib/md5.c (set_uint32): Likewise.
96281         * lib/sha1.c (set_uint32): Likewise.
96282         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
96283         * m4/md5.m4 (gl_MD5): Likewise.
96284         * m4/sha1.m4 (gl_SHA1): Likewise.
96286 2008-01-31  Jim Meyering  <meyering@redhat.com>
96288         Use "sizeof VAR", rather than a literal "4".
96289         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
96290         * lib/md4.c (md4_read_ctx): Likewise.
96291         * lib/sha1.c (sha1_read_ctx): Likewise.
96293 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96295         * tests/test-sha1.c: New file, based on test-md5.c.
96297         * modules/crypto/sha1-tests: New file.
96299 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96301         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
96303 2008-01-31  Jim Meyering  <meyering@redhat.com>
96305         Prefer "sizeof v" over the equivalent "4".
96306         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
96307         * lib/md5.c (set_uint32): Likewise.
96308         * lib/sha1.c (set_uint32): Likewise.
96310 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96312         * lib/sha1.c (set_uint32): Mark function as static.
96314 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96316         md2: clarify comments to say that alignment is not required.
96317         * lib/md2.h: Remove warning about alignment in comment.
96318         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
96319         never been required.
96321 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96323         md4: adapt alignment constraint fix from sha1.
96324         * lib/md4.c (set_uint32): New function, from sha1.c
96325         (md4_read_ctx): Use it.
96326         (md4_finish_ctx): Doc fix.
96327         * lib/md4.h: Doc fix.
96329 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96331         md5: adapt alignment constraint fix from sha1.
96332         * lib/md5.c (set_uint32): New function, from sha1.c
96333         (md5_read_ctx): Use it.
96334         (md5_finish_ctx): Doc fix.
96335         * lib/md5.h: Doc fix.
96337 2008-01-30  Peter Palfrader  <weasel@debian.org>
96339         sha1: remove the result buffer alignment constraint
96340         * lib/sha1.c (set_uint32): New function.
96341         (sha1_read_ctx): Rewrite to remove the result buffer alignment
96342         constraint.
96343         (sha1_finish_ctx): Remove comment warning about alignment constraint.
96344         * lib/sha1.h: Likewise.
96346 2008-01-30  Andreas Schwab  <schwab@suse.de>
96347             Bruno Haible  <bruno@clisp.org>
96349         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
96350         correct definition of LDBL_MIN_EXP.
96352 2008-01-30  Karl Berry  <karl@gnu.org>
96354         * config/srclist-update: try to preserve x bit on updates.
96355         * config/srclistvars.sh: update for karl.
96357 2008-01-29  Jim Meyering  <meyering@redhat.com>
96359         vasnprintf.c: Avoid warning about unused label
96360         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
96361         "overflow" label definition and associated code with the
96362         same cpp condition that guards the sole use of that label.
96364 2008-01-26  Bruno Haible  <bruno@clisp.org>
96366         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
96367         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
96368         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
96369         * lib/isnanl-nolibm.h (isnanl): Likewise.
96370         Reported by Paul Eggert <eggert@cs.ucla.edu>.
96372 2008-01-26  Bruno Haible  <bruno@clisp.org>
96374         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
96375         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
96377 2008-01-26  Bruno Haible  <bruno@clisp.org>
96379         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
96380         GCC >= 4.0 built-in.
96381         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
96383 2008-01-26  Bruno Haible  <bruno@clisp.org>
96385         Rename isnan, applicable to 'double' only, to isnand.
96386         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
96387         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
96388         (configure.ac): Update.
96389         (Include): Replace "isnan.h" with "isnand.h".
96390         * m4/isnand.m4: Renamed from m4/isnan.m4.
96391         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
96392         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
96393         instead of isnan.c.
96394         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
96395         instead of HAVE_ISNAN_IN_LIBC.
96396         (isnand): Renamed from isnan.
96397         * lib/isnand.c: New file.
96398         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
96399         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
96400         (Makefile.am): Update.
96401         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
96402         Include isnand.h instead of isnan.h.
96403         (main): Test isnand instead of isnan.
96404         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
96405         isnan-nolibm.
96406         * modules/frexp (Depends-on): Likewise.
96407         * modules/frexp-tests (Depends-on): Likewise.
96408         * modules/frexp-nolibm (Depends-on): Likewise.
96409         * modules/frexp-nolibm-tests (Depends-on): Likewise.
96410         * modules/isfinite (Depends-on): Likewise.
96411         * modules/round-tests (Depends-on): Likewise.
96412         * modules/signbit (Depends-on): Likewise.
96413         * modules/signbit-tests (Depends-on): Likewise.
96414         * modules/snprintf-posix (Depends-on): Likewise.
96415         * modules/sprintf-posix (Depends-on): Likewise.
96416         * modules/trunc-tests (Depends-on): Likewise.
96417         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
96418         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
96419         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
96420         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
96421         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
96422         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
96423         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
96424         * modules/vasnprintf-posix (Depends-on): Likewise.
96425         * modules/vasprintf-posix (Depends-on): Likewise.
96426         * modules/vfprintf-posix (Depends-on): Likewise.
96427         * modules/vsnprintf-posix (Depends-on): Likewise.
96428         * modules/vsprintf-posix (Depends-on): Likewise.
96429         * lib/frexp.c: Include isnand.h instead of isnan.h.
96430         (ISNAN): Set to isnand instead of isnan.
96431         * lib/isfinite.c: Include isnand.h instead of isnan.h.
96432         (gl_isfinited): Use isnand instead of isnan.
96433         * lib/signbitd.c: Include isnand.h instead of isnan.h.
96434         (gl_signbitd): Use isnand instead of isnan.
96435         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
96436         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
96437         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
96438         (main): Use isnand instead of isnan.
96439         * tests/test-round1.c: Include isnand.h.
96440         (main): Use isnand instead of isnan.
96441         * tests/test-round2.c: Include isnand.h instead of isnan.h.
96442         (ISNAN): Set to isnand instead of isnan.
96443         * tests/test-trunc1.c: Include isnand.h.
96444         (main): Use isnand instead of isnan.
96445         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
96446         (equal): Use isnand instead of isnan.
96447         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
96448         isnand-nolibm.
96449         * NEWS: Mention the change.
96451 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
96452             Bruno Haible  <bruno@clisp.org>
96454         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
96455         the GCC builtins for signbits are present and set
96456         REPLACE_SIGNBIT_USING_GCC if so.
96457         * lib/math.in.h (signbit): Define using GCC builtins if
96458         REPLACE_SIGNBIT_USING_GCC is set.
96459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
96460         REPLACE_SIGNBIT_USING_GCC.
96461         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
96463 2008-01-25  Jim Meyering  <meyering@redhat.com>
96465         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
96466         * lib/poll.c: Include <config.h>, not "config.h".
96467         * tests/test-getaddrinfo.c: Likewise.
96469 2008-01-25  Simon Josefsson  <simon@josefsson.org>
96471         * modules/sockets-tests: New file.
96473 2008-01-24  Simon Josefsson  <simon@josefsson.org>
96475         * modules/sockets: New module, can be used to call WSA_Startup and
96476         WSA_Cleanup when needed.
96478         * lib/sockets.h, lib/sockets.c: New files.
96480         * m4/sockets.m4: New file.
96482         * tests/test-sockets.c: New file.
96484 2008-01-19  Bruno Haible  <bruno@clisp.org>
96486         * doc/posix-headers: Renamed from doc/headers.
96487         * doc/posix-functions: Renamed from doc/functions.
96488         * doc/gnulib.texi: Update.
96490 2008-01-19  Bruno Haible  <bruno@clisp.org>
96492         * doc/glibc-functions/strcasestr.texi: Include contents of
96493         doc/functions/strcasestr.texi, fixing the list of platforms.
96494         * doc/functions/strcasestr.texi: Remove file.
96496 2008-01-19  Bruno Haible  <bruno@clisp.org>
96498         * doc/glibc-functions/memmem.texi: Include contents of
96499         doc/functions/memmem.texi.
96500         * doc/functions/memmem.texi: Remove file.
96502 2008-01-18  Bruno Haible  <bruno@clisp.org>
96504         * doc/glibc-functions/*.texi: New files.
96505         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
96506         to use the new files.
96508 2008-01-17  Bruno Haible  <bruno@clisp.org>
96510         * tests/test-gethostname.c (main): Fix printf statement.
96512 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96514         * modules/gethostname-tests: New file.
96516         * tests/test-gethostname.c: New file.
96518 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96520         * lib/gethostname.c: Include string.h unconditionally, strncpy is
96521         used by the UNAME case.  Reported by Bruno Haible
96522         <bruno@clisp.org>.
96524 2008-01-17  Eric Blake  <ebb9@byu.net>
96526         Convert c-strcasestr to be more efficient.
96527         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
96528         (Depends-on): Add c-strcase, remove malloca, strnlen.
96529         * tests/test-c-strcasestr.c (main): Enhance test.
96530         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
96532 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
96534         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
96535         Use it in creating po/Makevars.
96537 2008-01-15  Simon Josefsson  <simon@josefsson.org>
96539         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
96540         Applications that requires it should initialize libgcrypt
96541         manually.
96543 2008-01-16  Simon Josefsson  <simon@josefsson.org>
96545         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
96547 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
96549         Fix problem with getdate on mingw32 reported by Simon Josefsson
96550         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
96551         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
96552         tzname", when deciding whether to declare tzname.
96553         * lib/strftime.c (tzname): Likewise.
96555 2008-01-15  Bruno Haible  <bruno@clisp.org>
96557         Work around a MacOS X 10.5 bug in frexpl().
96558         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
96559         * doc/functions/frexpl.texi: Document the bug.
96560         Reported by Elias Pipping <pipping@gentoo.org>.
96562 2008-01-14  Eric Blake  <ebb9@byu.net>
96564         Touch up previous patch.
96565         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
96566         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
96568         Convert strcasestr module to use Two-Way algorithm.
96569         * modules/strcasestr-simple: New module, based on the old
96570         strcasestr, but with Two-Way rather than KMP.
96571         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
96572         * lib/string.in.h (rpl_strcasestr): Declare.
96573         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
96574         performance.
96575         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
96576         * modules/string (Makefile.am): Support strcasestr.
96577         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
96578         * modules/strcasestr-tests (Depends-on): Check for alarm.
96579         * tests/test-strcasestr.c: Augment test.
96580         * lib/str-two-way.h: Clean up stray macro.
96581         * NEWS: Document new module.
96582         * MODULES.html.sh (string handling): Likewise.
96583         * doc/functions/strcasestr.texi: New file.
96584         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
96585         here, since it is not a POSIX function.
96587 2008-01-14  Colin Watson  <cjwatson@debian.org>
96588             Bruno Haible  <bruno@clisp.org>
96590         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
96591         works fine; if not, set REPLACE_STRSIGNAL.
96592         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
96593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96594         REPLACE_STRSIGNAL.
96595         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
96596         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
96597         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
96599 2008-01-14  Bruno Haible  <bruno@clisp.org>
96601         * modules/strsignal (Include): Change to <string.h>.
96603 2008-01-14  Colin Watson  <cjwatson@debian.org>
96605         * modules/argp (Notice): Add a notice recommending to change
96606         XGETTEXT_OPTIONS.
96607         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
96609 2008-01-13  Colin Watson  <cjwatson@debian.org>
96611         * modules/strsignal-tests: New file.
96612         * tests/test-strsignal.c: New file.
96614         * lib/strsignal.c: New file, from glibc with modifications.
96615         * lib/siglist.h: New file, from glibc with modifications.
96616         * lib/string.in.h (strsignal): New declaration.
96617         * m4/strsignal.m4: New file.
96618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96619         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
96620         * modules/strsignal: New file.
96621         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
96622         HAVE_DECL_STRSIGNAL.
96624 2008-01-13  Bruno Haible  <bruno@clisp.org>
96626         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
96627         locale encoding is not ASCII. Needed for OpenBSD 4.0.
96628         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
96629         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
96631 2008-01-13  Bruno Haible  <bruno@clisp.org>
96633         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
96634         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
96635         * lib/argp.h (__attribute__): Likewise.
96636         * lib/c-stack.c (__attribute__): Likewise.
96637         * lib/error.h (__attribute__): Likewise.
96638         * lib/fts.c (__attribute__): Likewise.
96639         * lib/openat.h (__attribute__): Likewise.
96640         * lib/stdio.in.h (__attribute__): Likewise.
96641         * lib/string.in.h (__attribute__): Likewise.
96642         * lib/utimens.c (__attribute__): Likewise.
96643         * lib/vasnprintf.h (__attribute__): Likewise.
96644         * lib/xalloc.h (__attribute__): Likewise.
96645         * lib/xprintf.h (__attribute__): Likewise.
96646         * lib/xstrtol.h (__attribute__): Likewise.
96647         * lib/xvasprintf.h (__attribute__): Likewise.
96649 2008-01-12  Bruno Haible  <bruno@clisp.org>
96651         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
96652         * doc/glibc-headers/a.out.texi: New file.
96653         * doc/glibc-headers/aliases.texi: New file.
96654         * doc/glibc-headers/alloca.texi: New file.
96655         * doc/glibc-headers/ar.texi: New file.
96656         * doc/glibc-headers/argp.texi: New file.
96657         * doc/glibc-headers/argz.texi: New file.
96658         * doc/glibc-headers/byteswap.texi: New file.
96659         * doc/glibc-headers/crypt.texi: New file.
96660         * doc/glibc-headers/endian.texi: New file.
96661         * doc/glibc-headers/envz.texi: New file.
96662         * doc/glibc-headers/err.texi: New file.
96663         * doc/glibc-headers/error.texi: New file.
96664         * doc/glibc-headers/execinfo.texi: New file.
96665         * doc/glibc-headers/fpu_control.texi: New file.
96666         * doc/glibc-headers/fstab.texi: New file.
96667         * doc/glibc-headers/fts.texi: New file.
96668         * doc/glibc-headers/getopt.texi: New file.
96669         * doc/glibc-headers/ieee754.texi: New file.
96670         * doc/glibc-headers/ifaddrs.texi: New file.
96671         * doc/glibc-headers/libintl.texi: New file.
96672         * doc/glibc-headers/mcheck.texi: New file.
96673         * doc/glibc-headers/mntent.texi: New file.
96674         * doc/glibc-headers/obstack.texi: New file.
96675         * doc/glibc-headers/paths.texi: New file.
96676         * doc/glibc-headers/printf.texi: New file.
96677         * doc/glibc-headers/pty.texi: New file.
96678         * doc/glibc-headers/resolv.texi: New file.
96679         * doc/glibc-headers/shadow.texi: New file.
96680         * doc/glibc-headers/sysexits.texi: New file.
96681         * doc/glibc-headers/ttyent.texi: New file.
96683 2008-01-12  Jim Meyering  <meyering@redhat.com>
96685         announce-gen: emit Gnulib's git-based version string.
96686         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
96687         New option --gnulib-version=V, where V is expected to be
96688         the output of running git describe in the gnulib directory.
96689         (get_tool_versions): Request feedback on xdelta.  I suspect it's
96690         not useful, and plan to stop publishing an xdelta file with each
96691         coreutils release.
96693         * build-aux/announce-gen: Also check for lzma-compressed files.
96695 2008-01-11  Bruno Haible  <bruno@clisp.org>
96697         * tests/test-memmem.c (main): Increase maximum allowed time.
96698         * tests/test-strstr.c (main): Likewise.
96700 2008-01-11  Bruno Haible  <bruno@clisp.org>
96702         * doc/functions/memmem.texi: Add more precisions about platforms.
96703         * doc/functions/strstr.texi: Likewise.
96705 2008-01-10  Eric Blake  <ebb9@byu.net>
96707         * m4/strstr.m4: Delete cruft from copy-n-paste.
96708         Reported by Bruno Haible.
96710 2008-01-10  Bruno Haible  <bruno@clisp.org>
96712         Make c-strstr rely on strstr.
96713         * lib/c-strstr.c: Don't include str-kmp.h.
96714         (c_strstr): Define in terms of strstr.
96715         * modules/c-strstr (Files): Remove lib/str-kmp.h.
96716         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
96718 2008-01-10  Bruno Haible  <bruno@clisp.org>
96720         * doc/gnulib.texi (String Functions in C Locale): New section.
96721         * doc/c-ctype.texi: New file.
96722         * doc/c-strcase.texi: New file.
96723         * doc/c-strcaseeq.texi: New file.
96724         * doc/c-strcasestr.texi: New file.
96725         * doc/c-strstr.texi: New file.
96726         * doc/c-strtod.texi: New file.
96727         * doc/c-strtold.texi: New file.
96729 2008-01-10  Eric Blake  <ebb9@byu.net>
96731         * lib/relocatable.h: Fix a comment.
96733 2008-01-10  Eric Blake  <ebb9@byu.net>
96735         Share two-way algorithm.
96736         * lib/str-two-way.h: New file, merged from...
96737         * lib/memmem.c: ...here...
96738         * lib/strstr.c: ...and here.
96739         * modules/memmem (Files): Use it.
96740         * modules/strstr (Files): Likewise.
96742         Avoid quadratic strstr implementations.
96743         * lib/strstr.c: New file.
96744         * m4/strstr.m4: Likewise.
96745         * modules/strstr: Likewise.
96746         * modules/strstr-tests: Likewise.
96747         * tests/test-strstr.c: Likewise.
96748         * lib/string.in.h (rpl_strstr): Declare.
96749         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
96750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
96751         * modules/string (Makefile.am): Likewise.
96752         * MODULES.html.sh (string handling): Mention new module.
96753         * doc/functions/strstr.texi (strstr): Document the bug.
96755 2008-01-10  Bruno Haible  <bruno@clisp.org>
96757         * lib/relocatable.h (relocate): State whether result is freshly
96758         allocated or not.
96759         * lib/relocatable.c (relocate): Return a freshly allocated string
96760         instead of a pointer to a privately held string.
96761         Reported by Sylvain Beucler <beuc@gnu.org>.
96763 2008-01-10  Colin Watson  <cjwatson@debian.org>
96765         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
96766         s/S_ISNLK/S_ISLNK/.
96768 2008-01-09  Bruno Haible  <bruno@clisp.org>
96770         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
96771         and other files.
96772         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
96773         if it's only a guess.
96774         * modules/memmem: Simplify by depending on memmem-simple.
96776 2008-01-09  Bruno Haible  <bruno@clisp.org>
96778         Work around OpenBSD 4.0 tdelete() bug.
96779         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
96780         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
96781         macros and don't redefine the enum values.
96782         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
96783         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
96784         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
96786 2008-01-09  Bruno Haible  <bruno@clisp.org>
96788         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
96789         (main): Don't perform the tests if setlocale did not install a UTF-8
96790         locale. Needed on OpenBSD 4.0.
96791         * modules/wcwidth-tests (Depends-on): Add localcharset.
96793 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96795         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
96796         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
96797         * NEWS: announce this.
96798         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
96800 2008-01-09  Simon Josefsson  <simon@josefsson.org>
96801         and Eric Blake  <ebb9@byu.net>
96803         Add memmem-simple module.
96804         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
96805         (gl_FUNC_MEMMEM): Separate performance from presence checks.
96806         * modules/memmem-simple: New file.
96807         * modules/memmem (Description): Tweak.
96808         * MODULES.html.sh (string handling): Mention new module.
96809         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
96810         addressed by memmem-simple.
96811         * NEWS: Document the difference.
96813 2008-01-09  Eric Blake  <ebb9@byu.net>
96815         Give gcc some memmem optimization hints.
96816         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
96817         (strcasestr): Declare as pure.
96818         * modules/memmem (Maintainer): Claim my implementation.
96820 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96822         Support AIX 6.1 and higher.
96823         * build-aux/config.libpath: Likewise.
96824         * build-aux/config.rpath: Likewise.
96826 2008-01-08  Jim Meyering  <meyering@redhat.com>
96827             Bruno Haible  <bruno@clisp.org>
96829         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
96830         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
96831         Reported by Peter Fales in
96832         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
96834 2008-01-08  Bruno Haible  <bruno@clisp.org>
96836         * modules/unictype/category-of (Depends-on): Add
96837         unictype/category-none.
96838         * modules/unictype/category-and-tests (Depends-on): Add
96839         unictype/category-{L,N,Lu,Nd}.
96840         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
96841         * modules/unictype/category-or-tests (Depends-on): Add
96842         unictype/category-{L,N}.
96843         * modules/unictype/category-name-tests (Depends-on): Add
96844         unictype/category-{Z,Nl}.
96845         Reported by Simon Josefsson.
96847 2008-01-08  Bruno Haible  <bruno@clisp.org>
96849         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
96850         convention better.
96851         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
96852         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
96853         Reported by Peter Miller <millerp@canb.auug.org.au>.
96855 2008-01-08  Eric Blake  <ebb9@byu.net>
96857         Rewrite memmem to guarantee linear complexity without malloc.
96858         * lib/memmem.c (memmem): Use Two-Way rather than
96859         Knuth-Morris-Pratt, to allow O(1) space usage.
96860         (critical_factorization, two_way_short_needle)
96861         (two_way_long_needle): New functions.
96862         (knuth_morris_pratt): Delete.
96863         * modules/memmem (Depends-on): No longer need malloca or stdbool.
96864         Add stdint.
96865         * tests/test-memmem.c (main): Add tests for periodic needle and
96866         sublinear performance.
96867         * doc/functions/memmem.texi (memmem): Document other deficiencies
96868         in cygwin and older glibc.
96870 2008-01-08  Bruno Haible  <bruno@clisp.org>
96872         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
96873         augmentation.
96875 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
96877         Add a configure time option: --disable-acl.
96878         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
96879         AC_ARG_ENABLE(acl).
96881 2008-01-06  Simon Josefsson  <simon@josefsson.org>
96883         * tests/test-localename.c: Don't include obsolete "setenv.h".
96885         * modules/localename-tests (Depends-on): Need unsetenv.
96887 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96889         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
96891 2008-01-06  Colin Watson  <cjwatson@debian.org>
96893         * users.txt: Add man-db.
96895 2008-01-07  Bruno Haible  <bruno@clisp.org>
96897         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
96898         previous section name.
96900 2008-01-07  Bruno Haible  <bruno@clisp.org>
96902         * lib/progname.c (set_program_name): Don't strip off a leading
96903         "lt-" prefix outside a .libs directory.
96904         Suggested by Paul Eggert.
96906 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
96907             Bruno Haible  <bruno@clisp.org>
96909         Improve memory cleanup in 'relocatable' module.
96910         * lib/relocatable.h (compute_curr_prefix): Change return type to
96911         'char *'.
96912         * lib/relocatable.c (compute_curr_prefix): Change return type to
96913         'char *'. Free curr_installdir after use.
96914         (relocate): Free curr_prefix_better after use.
96915         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
96917 2008-01-01  Bruno Haible  <bruno@clisp.org>
96919         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
96920         failure on older glibc systems.
96921         Reported by Peter Fales <psfales@alcatel-lucent.com>.
96923 2008-01-05  Eric Blake  <ebb9@byu.net>
96925         Avoid quadratic system memmem.
96926         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
96927         Reported by Ralf Wildenhues.
96929         Fix memmem test for mingw.
96930         * modules/memmem-tests (configure.ac): Check for alarm.
96931         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
96932         it.
96933         * doc/functions/memmem.texi: New file.
96934         * doc/gnulib.texi (Function Substitutes): Add memmem.
96935         Reported by Bruno Haible.
96937 2008-01-04  Bruno Haible  <bruno@clisp.org>
96939         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
96940         Require gl_HEADER_STRINGS_H_DEFAULTS, not
96941         gl_HEADER_STRING_H_DEFAULTS.
96943 2008-01-04  Eric Blake  <ebb9@byu.net>
96945         Shorten duration of memmem test.
96946         * tests/test-memmem.c (main): Use alarm to declare failure if test
96947         is taking too long.
96948         Reported by Ralf Wildenhues.
96950 2007-12-21  Simon Josefsson  <simon@josefsson.org>
96952         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
96953         string, needed by strerror.
96955 2008-01-03  Colin Watson  <cjwatson@debian.org>
96956             Bruno Haible  <bruno@clisp.org>
96958         * doc/gnulib-tool.texi (Localization): New section.
96960 2008-01-02  Bruno Haible  <bruno@clisp.org>
96962         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
96963         variables to 'unsigned char *' type.
96964         Reported by Paul Eggert.
96966 2008-01-02  Jim Meyering  <jim@meyering.net>
96968         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
96970 2007-12-31  Jim Meyering  <jim@meyering.net>
96972         Avoid use of private FTS type name.
96973         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
96975 2007-12-30  Karl Berry  <karl@gnu.org>
96977         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
96978         work around defect in Texinfo and/or the standalone Info browser.
96980 2007-12-30  Bruno Haible  <bruno@clisp.org>
96982         Unify 5 copies of the KMP code.
96983         * lib/str-kmp.h: New file.
96984         * lib/c-strcasestr.c: Include str-kmp.h.
96985         (knuth_morris_pratt): Remove function.
96986         (c_strcasestr): Update.
96987         * lib/c-strstr.c: Include str-kmp.h.
96988         (knuth_morris_pratt): Remove function.
96989         (c_strcasestr): Update.
96990         * lib/mbscasestr.c: Include str-kmp.h.
96991         (knuth_morris_pratt_unibyte): Remove function.
96992         * lib/mbsstr.c: Include str-kmp.h.
96993         (knuth_morris_pratt_unibyte): Remove function.
96994         * lib/strcasestr.c: Include str-kmp.h.
96995         (knuth_morris_pratt): Remove function.
96996         (strcasestr): Update.
96997         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
96998         * modules/c-strstr (Files): Likewise.
96999         * modules/mbscasestr (Files): Likewise.
97000         * modules/mbsstr (Files): Likewise.
97001         * modules/strcasestr (Files): Likewise.
97002         Suggested by Paul Eggert.
97004 2007-12-30  Bruno Haible  <bruno@clisp.org>
97006         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
97007         defined.
97009 2007-12-30  Bruno Haible  <bruno@clisp.org>
97011         * lib/xmalloca.h: Include xalloc.h.
97012         (xnmalloca): New macro.
97014 2007-12-30  Bruno Haible  <bruno@clisp.org>
97016         * lib/malloca.h (nmalloca): New macro.
97017         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
97018         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
97019         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
97020         knuth_morris_pratt_multibyte): Likewise.
97021         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
97022         knuth_morris_pratt_multibyte): Likewise.
97023         * lib/memmem.c (knuth_morris_pratt): Likewise.
97024         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
97026 2007-12-25  Bruno Haible  <bruno@clisp.org>
97028         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
97029         * lib/glob.c: Don't include openat.h.
97030         (link_exists2_p): Add back the code that deals with the
97031         !GLOB_ALTDIRFUNC case.
97032         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
97033         let it do the filename concatenation.
97034         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
97035         * modules/glob (Depends-on): Remove openat.
97037 2007-12-31  Bruno Haible  <bruno@clisp.org>
97039         * modules/dirfd (License): Change to LGPLv2+.
97040         Approved by Jim Meyering.
97042 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
97044         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
97045         when multiplying M by sizeof (size_t).
97047 2007-12-10  Martin Lambers  <marlam@marlam.de>
97049         Override getpagesize on mingw.
97050         * lib/getpagesize.c: New file.
97051         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
97052         * modules/getpagesize (Files): Add lib/getpagesize.c.
97053         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
97054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
97055         REPLACE_GETPAGESIZE.
97056         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
97058 2007-12-25  Bruno Haible  <bruno@clisp.org>
97060         * modules/localcharset (Notice): New field.
97061         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
97062         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
97064 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
97065             Bruno Haible  <bruno@clisp.org>
97067         Avoid using the syntax symbol() in formatted documentation.
97068         * MODULES.html.sh (func_module): When replacing symbol() with a
97069         hyperlink, remove the parentheses. Show an error if some remain.
97070         Recognize and render the '...' syntax.
97071         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
97072         Rework. Add paragraph about GCC's inlining.
97073         * doc/alloca.texi: Likewise.
97074         * doc/error.texi: Remove parentheses from symbol reference.
97075         * doc/gnulib-intro.texi: Likewise.
97076         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
97077         * modules/fnmatch (Description): Reword to say "the ... function".
97078         * modules/full-read (Description): Likewise.
97079         * modules/full-write (Description): Likewise.
97080         * modules/safe-read (Description): Likewise.
97081         * modules/safe-write (Description): Likewise.
97082         * modules/strchrnul (Description): Likewise.
97083         * modules/trim (Description): Likewise.
97084         * modules/error (Description): Remove parentheses from symbol
97085         references.
97086         * modules/verror (Description): Likewise.
97087         Reported by Karl Berry.
97089 2007-12-25  Bruno Haible  <bruno@clisp.org>
97091         Fixup after 2007-10-16 commit.
97092         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
97094 2007-12-24  Bruno Haible  <bruno@clisp.org>
97096         Make --enable-relocatable work with DESTDIR.
97097         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
97098         to compute installdir from destprog.
97099         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
97100         also set the RELOC_DESTDIR variable.
97101         Reported by Левашев Иван <octagram@bluebottle.com>.
97103 2007-12-24  Bruno Haible  <bruno@clisp.org>
97105         Fix link error due to xalloc_die().
97106         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
97107         of xreadlink.
97108         * lib/relocwrapper.c: Update comments.
97109         * build-aux/install-reloc: Remove xreadlink.c from file list.
97110         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
97111         xreadlink.c.
97112         Reported by Левашев Иван <octagram@bluebottle.com>.
97114 2007-12-24  Bruno Haible  <bruno@clisp.org>
97116         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
97117         * lib/setenv.h: Remove file.
97118         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
97119         lib/setenv.h.
97120         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
97121         (Depends-on): Add stdlib.
97122         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
97123         gl_FUNC_UNSETENV.
97124         (Include): Replace setenv.h with <stdlib.h>.
97125         * modules/unsetenv: New file.
97126         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
97127         * lib/unsetenv.c: Include <stdlib.h> first.
97128         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
97129         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
97130         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
97131         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
97132         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
97133         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
97134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
97135         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
97136         * doc/functions/unsetenv.texi: Update.
97137         * modules/xsetenv (Depends-on): Add unsetenv.
97138         * modules/getdate (Depends-on): Likewise.
97139         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
97140         * lib/xsetenv.c: Don't include setenv.h.
97141         * lib/getdate.y: Likewise.
97142         * lib/relocwrapper.c: Likewise.
97143         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
97144         (Depends-on): Add stdlib.
97145         * NEWS: Mention the changes.
97146         Reported by Левашев Иван <octagram@bluebottle.com>.
97148 2007-12-23  Bruno Haible  <bruno@clisp.org>
97150         * lib/memmem.c (memmem): Use lowercase variable names. Tab
97151         indentation.
97153 2007-12-23  Bruno Haible  <bruno@clisp.org>
97155         * lib/c-strcasestr.c: Add more comments.
97156         * lib/c-strstr.c: Likewise.
97157         * lib/mbscasestr.c: Likewise.
97158         * lib/mbsstr.c: Likewise.
97159         * lib/strcasestr.c: Likewise.
97160         * lib/memmem.c: Likewise.
97162 2007-12-23  Bruno Haible  <bruno@clisp.org>
97164         * tests/test-memmem.c: Include <string.h> first.
97166 2007-12-22  Bruno Haible  <bruno@clisp.org>
97168         * gnulib-tool (func_create_testdir): Change $auxdir while generating
97169         the contents of $testsbase.
97170         Reported by Ralf Wildenhues.
97172 2007-12-22  Bruno Haible  <bruno@clisp.org>
97174         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
97175         two variables local_ldadd_before, local_ldadd_last.
97177 2007-12-20  Eric Blake  <ebb9@byu.net>
97179         Work around circular library issue when cross-compiling.
97180         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
97181         that progname.o does not need to pull in rpl_memcmp.
97183 2007-12-19  Eric Blake  <ebb9@byu.net>
97185         Fix memmem to avoid O(n^2) worst-case complexity.
97186         * lib/memmem.c (knuth_morris_pratt): New function.
97187         (memmem): Use it if first few naive iterations fail.
97188         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
97189         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
97190         * modules/memchr (License): Likewise.
97191         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
97192         malloca.
97193         * tests/test-memmem.c: Rewrite, borrowing ideas from
97194         test-mbsstr1.c; the old version wouldn't even compile!
97195         * modules/memmem-tests: New file.
97196         * lib/string.in.h (rpl_memmem): Add declaration.
97197         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
97198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
97199         REPLACE_MEMMEM.
97201 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
97203         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
97204         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
97205         before any system include files, and undef after them all.  This
97206         should fix a problem on VMS reported by John E. Malmberg in
97207         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
97209 2007-12-17  Eric Blake  <ebb9@byu.net>
97211         Revert addition of verify, for BSD/OS.
97212         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
97213         can't handle large files, for the sake of obsolete platforms.
97214         * modules/fseeko (Depends-on): Remove verify.
97215         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
97216         * doc/functions/ftello.texi (ftello): Likewise.
97217         * doc/functions/fgetpos.texi (fgetpos): Likewise.
97218         Reported by Larry Jones.
97220 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
97222         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
97223         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
97225 2007-12-17  Jim Meyering  <meyering@redhat.com>
97227         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
97228         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
97229         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
97230         * modules/getcwd (Depends-on): Add openat.
97231         Reported by Petr Salinger.
97233 2007-12-17  Bruno Haible  <bruno@clisp.org>
97235         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
97236         avoid a segmentation fault of the configure test on x86_64 systems.
97238 2007-12-15  Jim Meyering  <meyering@redhat.com>
97240         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
97242 2007-12-13  Eric Blake  <ebb9@byu.net>
97244         Another fseek test.
97245         * tests/test-fseek.c (main): Also test ungetc handling.
97246         * tests/test-fseeko.c (main): Likewise.
97247         * modules/fseeko (Depends-on): Add verify.
97248         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
97249         large.
97250         Reported by Larry Jones.
97252         Fix fseeko on mingw.
97253         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
97254         seek.
97256         Beef up fseek tests.
97257         * tests/test-fseek.c (main): Also test eof handling.
97258         * tests/test-fseeko.c (main): Likewise.
97259         Reported by Larry Jones.
97261 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
97263         Fix fseeko on BSD-based platforms.
97264         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
97265         successful seek.
97267 2007-12-12  Eric Blake  <ebb9@byu.net>
97269         Allow circular dependency of separate libtests.a
97270         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
97271         when use_libtests.
97273 2007-12-11  Eric Blake  <ebb9@byu.net>
97275         Fix bug with -0.0L in previous patch.
97276         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
97277         * tests/test-isnan.c (main): Also test on zeroes.
97278         * tests/test-isnanf.c (main): Likewise.
97279         * tests/test-isnanl.h (main): Likewise.
97281         Detect pseudo-denormals on x86 even when cross-compiling.
97282         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
97283         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
97284         invalid bit patterns that happen to satisfy ==.
97286         Avoid link failures with separate libtests.a.
97287         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
97288         last, to satisfy circular dependencies.
97290 2007-12-11  Eric Blake  <ebb9@byu.net>
97291         and Bruno Haible  <bruno@clisp.org>
97293         Fix OpenBSD 4.0 <float.h> handling of long double.
97294         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
97295         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
97296         * doc/headers/float.texi (float.h): Document OpenBSD bug.
97298 2007-12-11  Jim Meyering  <meyering@redhat.com>
97300         * users.txt: Add libvirt.
97302         Support versions of autoconf prior to 2.59c.
97303         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
97304         if it is not already defined.
97306 2007-12-09  Bruno Haible  <bruno@clisp.org>
97308         Let 'gnulib-tool --import' collect sources needed for the tests in
97309         tests/ rather than in lib/.
97310         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
97311         argument. If true, add rules to generate libtests.a, and put libtests.a
97312         into $(LDADD). Consider source files in subdirectories and set
97313         uses_subdirs.
97314         (func_emit_initmacro_start, func_emit_initmacro_end,
97315         func_emit_initmacro_done): Pass all arguments explicitly.
97316         (func_import): Determine two module lists main_modules,
97317         testsrelated_modules. Determine use_libtests. Determine two variables
97318         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
97319         instead of just sed_transform_lib_file. Determine two variables
97320         main_files and testsrelated_files. Compute 'files' as the union of
97321         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
97322         func_add_or_update. In the generated gnulib-comp.m4, collect the
97323         object files for tests/ in different variables than those for lib/.
97324         Substitute LIBTESTS_LIBDEPS.
97325         (func_create_testdir): Combine the uses_subdirs results from
97326         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
97328 2007-12-09  Bruno Haible  <bruno@clisp.org>
97330         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
97331         the build-aux directory.
97333 2007-12-09  Bruno Haible  <bruno@clisp.org>
97335         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
97336         introduced on 2006-09-09.
97338 2007-12-07  Jim Meyering  <meyering@redhat.com>
97340         Let these macros work also with autoconf-2.59.
97341         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
97342         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
97343         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97345 2007-12-06  Jim Meyering  <meyering@redhat.com>
97347         Avoid a configure-time syntax error in gl_FUNC_ACL.
97348         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
97349         function in each branch, before testing the cache variable.
97351 2007-12-04  Eric Blake  <ebb9@byu.net>
97353         Make scripts executable.
97354         * build-aux/config.guess: Add execute permissions.
97355         * build-aux/config.sub: Likewise.
97356         * build-aux/gendocs.sh: Likewise.
97358         Fix frexp on mingw.
97359         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
97360         cross-compiling.
97361         * doc/functions/frexp.texi (frexp): Document the bug.
97363         Make cygwin fseeko check more reliable.
97364         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
97365         version numbers, rather than unrelated feature check.
97366         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
97367         * doc/functions/ftello.texi (ftello): Likewise.
97368         Reported by Bruno Haible.
97370         * m4/strerror.m4: Bump version number.
97372 2007-12-03  Bruno Haible  <bruno@clisp.org>
97374         * doc/functions/mprotect.texi: Mention the mingw problem.
97376 2007-12-03  Eric Blake  <ebb9@byu.net>
97378         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
97379         REPLACE_STRERROR is initialized before this macro.
97381 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
97383         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
97384         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
97385         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
97386         put -lsec in even for programs other than 'ls'.  This fixes a problem
97387         for gettext reported by Bruno Haible in
97388         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
97389         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
97390         Add support for Solaris 10.  This isn't efficient, but should get the
97391         job done for now.
97393 2007-12-03  James Youngman  <jay@gnu.org>
97395         * doc/regexprops-generic.texi: change "an close-group" to "a
97396         close-group" and "illegal" to "not allowed".
97398 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97400         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
97401         pr_byname.h. Needed for the rare case when the maintainer has done
97402         "make maintainer-clean" in the source directory and then attempts a
97403         build outside the source directory.
97404         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
97405         scripts_byname.h.
97407 2007-12-02  Martin Lambers  <marlam@marlam.de>
97408             Bruno Haible  <bruno@clisp.org>
97410         * lib/getpagesize.h: Remove file.
97411         * lib/unistd.in.h: Include declaration of getpagesize here.
97412         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
97413         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
97414         HAVE_SYS_PARAM_H.
97415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
97416         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97417         * modules/getpagesize (Files): Remove lib/getpagesize.h.
97418         (Depends-on): Add unistd.
97419         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97420         (Include): Use <unistd.h> instead of getpagesize.h.
97421         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
97422         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97423         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
97424         gl_GETPAGESIZE invocation, already handled by module dependency.
97425         * lib/pagealign_alloc.c: Don't include getpagesize.h.
97427 2007-12-02  Bruno Haible  <bruno@clisp.org>
97429         * modules/strings-tests: New file.
97430         * tests/test-strings.c: New file.
97432         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
97433         * lib/strings.in.h: New file.
97434         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
97435         * m4/strings_h.m4: New file.
97436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
97437         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
97438         * modules/strings: New file.
97439         * modules/string (Makefile.am): Update.
97440         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
97441         Reported by Karl Berry.
97443 2007-12-01  Eric Blake  <ebb9@byu.net>
97445         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
97446         accommodate fix in cygwin 1.5.25.
97448 2007-12-01  Jim Meyering  <meyering@redhat.com>
97450         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
97451         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
97452         that would inhibit utf8-optimization of a regexp containing line-
97453         or buffer-anchors, e.g., `^', `$'.
97455 2007-11-30  Bruno Haible  <bruno@clisp.org>
97457         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
97458         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
97459         glthread_recursive_lock_init.
97460         * lib/lock.c (glthread_recursive_lock_init)
97461         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
97462         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
97464 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
97466         New function qset_acl, like set_acl but with syscall semantics.
97467         * lib/acl.h (qset_acl): New decl.
97468         * lib/acl.c (qset_acl): New function.
97469         (set_acl): Use new function.  Use more-consistent diagnostics.
97471 2007-11-28  Jim Meyering  <meyering@redhat.com>
97473         * modules/physmem (License): Change from GPL to LGPLv2+.
97475 2007-11-26  Bruno Haible  <bruno@clisp.org>
97477         * lib/vasnprintf.c (decode_long_double): Don't abort if the
97478         'long double' type has excess precision.
97479         Reported by Jim Meyering in
97480         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
97482 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97484         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
97485         Sync from <http://gnu.org/licenses>.
97486         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
97487         with license text from same location.
97488         * doc/maintain.texi, doc/standards.texi:  Sync from
97489         <http://savannah.gnu.org/projects/gnustandards>.
97491 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
97492         and Jim Meyering  <meyering@redhat.com>
97494         Adjust getdate' grammar to accept a slightly more regular language.
97495         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
97496         Before, the former was rejected.
97497         * lib/getdate.y (digits_to_date_time): New function, factored
97498         out of ...
97499         (number): ...here.  Just call digits_to_date_time.
97500         (hybrid): New non-terminal to handle an <unsigned number,
97501         signed relative offset> sequence consistently.
97503 2007-11-18  Jim Meyering  <meyering@redhat.com>
97505         Pull my changes from coreutils:
97506         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
97507         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
97508         use of $gnulib_tool_option_extras, so that it's separated from the
97509         preceding argument.
97511         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
97512         * build-aux/bootstrap (cp_mark_as_generated): Create any required
97513         parent destination directories before copying a file into place.
97515 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
97517         bootstrap: work also with 4-argument variant of AC_INIT
97518         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
97520 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
97522         Port test-getaddrinfo to Solaris.
97523         Problem reported by Bruno Haible in
97524         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
97525         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
97526         explanation of setting 'hints'.
97527         Don't reject an implementation merely because it returns EAI_SERVICE.
97528         (EAI_SERVICE): Define to 0 if not defined.
97530 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
97532         The license of gnu-make and posix-shell is now "GPLed build tool".
97533         * modules/gnu-make (License): Likewise.
97534         * modules/posix-shell (License): Likewise.
97536         New module posix-shell, for determining a POSIX shell
97537         or perhaps something that is close enough to a POSIX shell.
97538         * m4/posix-shell.m4: New file.
97539         * modules/posix-shell: New file.
97541         * MODULES.html.sh: Mention new module.
97543         New module gnu-make, for determining whether we're using GNU Make.
97544         * m4/gnu-make.m4: New file.
97545         * modules/gnu-make: New file.
97546         * MODULES.html.sh: Mention new module.
97548 2007-11-14  Jim Meyering  <meyering@redhat.com>
97550         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
97551         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
97552         use this macro to create a function _definition_.
97553         Remove useless "#undef ARGMATCH_DIE".
97555 2007-11-14  Bruno Haible  <bruno@clisp.org>
97557         * lib/config.charset: Update for OpenBSD 4.1.
97558         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
97560 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
97562         Document 64-bit #if problems in stdint.texi.
97563         * doc/headers/stdint.texi (stdint.h): Mention problems with
97564         64-bit-#if, and how to work around them.
97566         Don't insist on 'long long int' support in the preprocessor.  It
97567         breaks too many things.  For example, PRIdMAX still uses a 'long
97568         long int' format with the latest Sun compiler, even though
97569         HAVE_LONG_LONG_INT isn't defined due to that compiler's
97570         preprocessor problem.  This causes the latest coreutils to dump
97571         core on Solaris 10 sparc with the Sun C compiler.
97572         Instead, fix the 2007-10-16 problem in a different way, by evaluating
97573         the troublesome expressions at configure-time, not at #if-time.
97574         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
97575         preprocessor.
97576         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
97577         compile-time C checks, done at 'configure'-time.
97578         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
97579         * modules/inttypes (Makefile): Substitute the new symbols that
97580         gl_INTTYPES_H now generates.
97581         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
97583 2007-11-12  Bruno Haible  <bruno@clisp.org>
97585         Tests for Unicode character classification functions.
97587         * modules/unictype/bidicategory-byname-tests: New file.
97588         * modules/unictype/bidicategory-name-tests: New file.
97589         * modules/unictype/bidicategory-of-tests: New file.
97590         * modules/unictype/bidicategory-test-tests: New file.
97591         * modules/unictype/block-list-tests: New file.
97592         * modules/unictype/block-of-tests: New file.
97593         * modules/unictype/block-test-tests: New file.
97594         * modules/unictype/category-C-tests: New file.
97595         * modules/unictype/category-Cc-tests: New file.
97596         * modules/unictype/category-Cf-tests: New file.
97597         * modules/unictype/category-Cn-tests: New file.
97598         * modules/unictype/category-Co-tests: New file.
97599         * modules/unictype/category-Cs-tests: New file.
97600         * modules/unictype/category-L-tests: New file.
97601         * modules/unictype/category-Ll-tests: New file.
97602         * modules/unictype/category-Lm-tests: New file.
97603         * modules/unictype/category-Lo-tests: New file.
97604         * modules/unictype/category-Lt-tests: New file.
97605         * modules/unictype/category-Lu-tests: New file.
97606         * modules/unictype/category-M-tests: New file.
97607         * modules/unictype/category-Mc-tests: New file.
97608         * modules/unictype/category-Me-tests: New file.
97609         * modules/unictype/category-Mn-tests: New file.
97610         * modules/unictype/category-N-tests: New file.
97611         * modules/unictype/category-Nd-tests: New file.
97612         * modules/unictype/category-Nl-tests: New file.
97613         * modules/unictype/category-No-tests: New file.
97614         * modules/unictype/category-P-tests: New file.
97615         * modules/unictype/category-Pc-tests: New file.
97616         * modules/unictype/category-Pd-tests: New file.
97617         * modules/unictype/category-Pe-tests: New file.
97618         * modules/unictype/category-Pf-tests: New file.
97619         * modules/unictype/category-Pi-tests: New file.
97620         * modules/unictype/category-Po-tests: New file.
97621         * modules/unictype/category-Ps-tests: New file.
97622         * modules/unictype/category-S-tests: New file.
97623         * modules/unictype/category-Sc-tests: New file.
97624         * modules/unictype/category-Sk-tests: New file.
97625         * modules/unictype/category-Sm-tests: New file.
97626         * modules/unictype/category-So-tests: New file.
97627         * modules/unictype/category-Z-tests: New file.
97628         * modules/unictype/category-Zl-tests: New file.
97629         * modules/unictype/category-Zp-tests: New file.
97630         * modules/unictype/category-Zs-tests: New file.
97631         * modules/unictype/category-and-not-tests: New file.
97632         * modules/unictype/category-and-tests: New file.
97633         * modules/unictype/category-byname-tests: New file.
97634         * modules/unictype/category-name-tests: New file.
97635         * modules/unictype/category-none-tests: New file.
97636         * modules/unictype/category-of-tests: New file.
97637         * modules/unictype/category-or-tests: New file.
97638         * modules/unictype/category-test-withtable-tests: New file.
97639         * modules/unictype/combining-class-tests: New file.
97640         * modules/unictype/ctype-alnum-tests: New file.
97641         * modules/unictype/ctype-alpha-tests: New file.
97642         * modules/unictype/ctype-blank-tests: New file.
97643         * modules/unictype/ctype-cntrl-tests: New file.
97644         * modules/unictype/ctype-digit-tests: New file.
97645         * modules/unictype/ctype-graph-tests: New file.
97646         * modules/unictype/ctype-lower-tests: New file.
97647         * modules/unictype/ctype-print-tests: New file.
97648         * modules/unictype/ctype-punct-tests: New file.
97649         * modules/unictype/ctype-space-tests: New file.
97650         * modules/unictype/ctype-upper-tests: New file.
97651         * modules/unictype/ctype-xdigit-tests: New file.
97652         * modules/unictype/decimal-digit-tests: New file.
97653         * modules/unictype/digit-tests: New file.
97654         * modules/unictype/mirror-tests: New file.
97655         * modules/unictype/numeric-tests: New file.
97656         * modules/unictype/property-alphabetic-tests: New file.
97657         * modules/unictype/property-ascii-hex-digit-tests: New file.
97658         * modules/unictype/property-bidi-arabic-digit-tests: New file.
97659         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
97660         * modules/unictype/property-bidi-block-separator-tests: New file.
97661         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
97662         * modules/unictype/property-bidi-common-separator-tests: New file.
97663         * modules/unictype/property-bidi-control-tests: New file.
97664         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
97665         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
97666         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
97667         * modules/unictype/property-bidi-european-digit-tests: New file.
97668         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
97669         * modules/unictype/property-bidi-left-to-right-tests: New file.
97670         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
97671         * modules/unictype/property-bidi-other-neutral-tests: New file.
97672         * modules/unictype/property-bidi-pdf-tests: New file.
97673         * modules/unictype/property-bidi-segment-separator-tests: New file.
97674         * modules/unictype/property-bidi-whitespace-tests: New file.
97675         * modules/unictype/property-byname-tests: New file.
97676         * modules/unictype/property-combining-tests: New file.
97677         * modules/unictype/property-composite-tests: New file.
97678         * modules/unictype/property-currency-symbol-tests: New file.
97679         * modules/unictype/property-dash-tests: New file.
97680         * modules/unictype/property-decimal-digit-tests: New file.
97681         * modules/unictype/property-default-ignorable-code-point-tests: New file.
97682         * modules/unictype/property-deprecated-tests: New file.
97683         * modules/unictype/property-diacritic-tests: New file.
97684         * modules/unictype/property-extender-tests: New file.
97685         * modules/unictype/property-format-control-tests: New file.
97686         * modules/unictype/property-grapheme-base-tests: New file.
97687         * modules/unictype/property-grapheme-extend-tests: New file.
97688         * modules/unictype/property-grapheme-link-tests: New file.
97689         * modules/unictype/property-hex-digit-tests: New file.
97690         * modules/unictype/property-hyphen-tests: New file.
97691         * modules/unictype/property-id-continue-tests: New file.
97692         * modules/unictype/property-id-start-tests: New file.
97693         * modules/unictype/property-ideographic-tests: New file.
97694         * modules/unictype/property-ids-binary-operator-tests: New file.
97695         * modules/unictype/property-ids-trinary-operator-tests: New file.
97696         * modules/unictype/property-ignorable-control-tests: New file.
97697         * modules/unictype/property-iso-control-tests: New file.
97698         * modules/unictype/property-join-control-tests: New file.
97699         * modules/unictype/property-left-of-pair-tests: New file.
97700         * modules/unictype/property-line-separator-tests: New file.
97701         * modules/unictype/property-logical-order-exception-tests: New file.
97702         * modules/unictype/property-lowercase-tests: New file.
97703         * modules/unictype/property-math-tests: New file.
97704         * modules/unictype/property-non-break-tests: New file.
97705         * modules/unictype/property-not-a-character-tests: New file.
97706         * modules/unictype/property-numeric-tests: New file.
97707         * modules/unictype/property-other-alphabetic-tests: New file.
97708         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
97709         * modules/unictype/property-other-grapheme-extend-tests: New file.
97710         * modules/unictype/property-other-id-continue-tests: New file.
97711         * modules/unictype/property-other-id-start-tests: New file.
97712         * modules/unictype/property-other-lowercase-tests: New file.
97713         * modules/unictype/property-other-math-tests: New file.
97714         * modules/unictype/property-other-uppercase-tests: New file.
97715         * modules/unictype/property-paired-punctuation-tests: New file.
97716         * modules/unictype/property-paragraph-separator-tests: New file.
97717         * modules/unictype/property-pattern-syntax-tests: New file.
97718         * modules/unictype/property-pattern-white-space-tests: New file.
97719         * modules/unictype/property-private-use-tests: New file.
97720         * modules/unictype/property-punctuation-tests: New file.
97721         * modules/unictype/property-quotation-mark-tests: New file.
97722         * modules/unictype/property-radical-tests: New file.
97723         * modules/unictype/property-sentence-terminal-tests: New file.
97724         * modules/unictype/property-soft-dotted-tests: New file.
97725         * modules/unictype/property-space-tests: New file.
97726         * modules/unictype/property-terminal-punctuation-tests: New file.
97727         * modules/unictype/property-test-tests: New file.
97728         * modules/unictype/property-titlecase-tests: New file.
97729         * modules/unictype/property-unassigned-code-value-tests: New file.
97730         * modules/unictype/property-unified-ideograph-tests: New file.
97731         * modules/unictype/property-uppercase-tests: New file.
97732         * modules/unictype/property-variation-selector-tests: New file.
97733         * modules/unictype/property-white-space-tests: New file.
97734         * modules/unictype/property-xid-continue-tests: New file.
97735         * modules/unictype/property-xid-start-tests: New file.
97736         * modules/unictype/property-zero-width-tests: New file.
97737         * modules/unictype/scripts-tests: New file.
97738         * modules/unictype/syntax-c-ident-tests: New file.
97739         * modules/unictype/syntax-c-whitespace-tests: New file.
97740         * modules/unictype/syntax-java-ident-tests: New file.
97741         * modules/unictype/syntax-java-whitespace-tests: New file.
97742         * tests/unictype/test-bidi_byname.c: New file.
97743         * tests/unictype/test-bidi_name.c: New file.
97744         * tests/unictype/test-bidi_of.c: New file.
97745         * tests/unictype/test-bidi_test.c: New file.
97746         * tests/unictype/test-block_list.c: New file.
97747         * tests/unictype/test-block_of.c: New file.
97748         * tests/unictype/test-block_test.c: New file.
97749         * tests/unictype/test-categ_and.c: New file.
97750         * tests/unictype/test-categ_and_not.c: New file.
97751         * tests/unictype/test-categ_byname.c: New file.
97752         * tests/unictype/test-categ_name.c: New file.
97753         * tests/unictype/test-categ_none.c: New file.
97754         * tests/unictype/test-categ_of.c: New file.
97755         * tests/unictype/test-categ_or.c: New file.
97756         * tests/unictype/test-categ_test_withtable.c: New file.
97757         * tests/unictype/test-combining.c: New file.
97758         * tests/unictype/test-decdigit.c: New file.
97759         * tests/unictype/test-digit.c: New file.
97760         * tests/unictype/test-mirror.c: New file.
97761         * tests/unictype/test-numeric.c: New file.
97762         * tests/unictype/test-pr_byname.c: New file.
97763         * tests/unictype/test-pr_test.c: New file.
97764         * tests/unictype/test-predicate-part1.h: New file.
97765         * tests/unictype/test-predicate-part2.h: New file.
97766         * tests/unictype/test-scripts.c: New file.
97767         * tests/unictype/test-sy_c_ident.c: New file.
97768         * tests/unictype/test-sy_java_ident.c: New file.
97770         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
97771         for Unicode 5.0.0.
97772         * tests/unictype/test-categ_Cc.c: Likewise.
97773         * tests/unictype/test-categ_Cf.c: Likewise.
97774         * tests/unictype/test-categ_Cn.c: Likewise.
97775         * tests/unictype/test-categ_Co.c: Likewise.
97776         * tests/unictype/test-categ_Cs.c: Likewise.
97777         * tests/unictype/test-categ_L.c: Likewise.
97778         * tests/unictype/test-categ_Ll.c: Likewise.
97779         * tests/unictype/test-categ_Lm.c: Likewise.
97780         * tests/unictype/test-categ_Lo.c: Likewise.
97781         * tests/unictype/test-categ_Lt.c: Likewise.
97782         * tests/unictype/test-categ_Lu.c: Likewise.
97783         * tests/unictype/test-categ_M.c: Likewise.
97784         * tests/unictype/test-categ_Mc.c: Likewise.
97785         * tests/unictype/test-categ_Me.c: Likewise.
97786         * tests/unictype/test-categ_Mn.c: Likewise.
97787         * tests/unictype/test-categ_N.c: Likewise.
97788         * tests/unictype/test-categ_Nd.c: Likewise.
97789         * tests/unictype/test-categ_Nl.c: Likewise.
97790         * tests/unictype/test-categ_No.c: Likewise.
97791         * tests/unictype/test-categ_P.c: Likewise.
97792         * tests/unictype/test-categ_Pc.c: Likewise.
97793         * tests/unictype/test-categ_Pd.c: Likewise.
97794         * tests/unictype/test-categ_Pe.c: Likewise.
97795         * tests/unictype/test-categ_Pf.c: Likewise.
97796         * tests/unictype/test-categ_Pi.c: Likewise.
97797         * tests/unictype/test-categ_Po.c: Likewise.
97798         * tests/unictype/test-categ_Ps.c: Likewise.
97799         * tests/unictype/test-categ_S.c: Likewise.
97800         * tests/unictype/test-categ_Sc.c: Likewise.
97801         * tests/unictype/test-categ_Sk.c: Likewise.
97802         * tests/unictype/test-categ_Sm.c: Likewise.
97803         * tests/unictype/test-categ_So.c: Likewise.
97804         * tests/unictype/test-categ_Z.c: Likewise.
97805         * tests/unictype/test-categ_Zl.c: Likewise.
97806         * tests/unictype/test-categ_Zp.c: Likewise.
97807         * tests/unictype/test-categ_Zs.c: Likewise.
97808         * tests/unictype/test-ctype_alnum.c: Likewise.
97809         * tests/unictype/test-ctype_alpha.c: Likewise.
97810         * tests/unictype/test-ctype_blank.c: Likewise.
97811         * tests/unictype/test-ctype_cntrl.c: Likewise.
97812         * tests/unictype/test-ctype_digit.c: Likewise.
97813         * tests/unictype/test-ctype_graph.c: Likewise.
97814         * tests/unictype/test-ctype_lower.c: Likewise.
97815         * tests/unictype/test-ctype_print.c: Likewise.
97816         * tests/unictype/test-ctype_punct.c: Likewise.
97817         * tests/unictype/test-ctype_space.c: Likewise.
97818         * tests/unictype/test-ctype_upper.c: Likewise.
97819         * tests/unictype/test-ctype_xdigit.c: Likewise.
97820         * tests/unictype/test-decdigit.h: Likewise.
97821         * tests/unictype/test-digit.h: Likewise.
97822         * tests/unictype/test-numeric.h: Likewise.
97823         * tests/unictype/test-pr_alphabetic.c: Likewise.
97824         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
97825         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
97826         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
97827         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
97828         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
97829         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
97830         * tests/unictype/test-pr_bidi_control.c: Likewise.
97831         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
97832         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
97833         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
97834         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
97835         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
97836         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
97837         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
97838         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
97839         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
97840         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
97841         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
97842         * tests/unictype/test-pr_combining.c: Likewise.
97843         * tests/unictype/test-pr_composite.c: Likewise.
97844         * tests/unictype/test-pr_currency_symbol.c: Likewise.
97845         * tests/unictype/test-pr_dash.c: Likewise.
97846         * tests/unictype/test-pr_decimal_digit.c: Likewise.
97847         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
97848         * tests/unictype/test-pr_deprecated.c: Likewise.
97849         * tests/unictype/test-pr_diacritic.c: Likewise.
97850         * tests/unictype/test-pr_extender.c: Likewise.
97851         * tests/unictype/test-pr_format_control.c: Likewise.
97852         * tests/unictype/test-pr_grapheme_base.c: Likewise.
97853         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
97854         * tests/unictype/test-pr_grapheme_link.c: Likewise.
97855         * tests/unictype/test-pr_hex_digit.c: Likewise.
97856         * tests/unictype/test-pr_hyphen.c: Likewise.
97857         * tests/unictype/test-pr_id_continue.c: Likewise.
97858         * tests/unictype/test-pr_id_start.c: Likewise.
97859         * tests/unictype/test-pr_ideographic.c: Likewise.
97860         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
97861         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
97862         * tests/unictype/test-pr_ignorable_control.c: Likewise.
97863         * tests/unictype/test-pr_iso_control.c: Likewise.
97864         * tests/unictype/test-pr_join_control.c: Likewise.
97865         * tests/unictype/test-pr_left_of_pair.c: Likewise.
97866         * tests/unictype/test-pr_line_separator.c: Likewise.
97867         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
97868         * tests/unictype/test-pr_lowercase.c: Likewise.
97869         * tests/unictype/test-pr_math.c: Likewise.
97870         * tests/unictype/test-pr_non_break.c: Likewise.
97871         * tests/unictype/test-pr_not_a_character.c: Likewise.
97872         * tests/unictype/test-pr_numeric.c: Likewise.
97873         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
97874         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
97875         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
97876         * tests/unictype/test-pr_other_id_continue.c: Likewise.
97877         * tests/unictype/test-pr_other_id_start.c: Likewise.
97878         * tests/unictype/test-pr_other_lowercase.c: Likewise.
97879         * tests/unictype/test-pr_other_math.c: Likewise.
97880         * tests/unictype/test-pr_other_uppercase.c: Likewise.
97881         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
97882         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
97883         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
97884         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
97885         * tests/unictype/test-pr_private_use.c: Likewise.
97886         * tests/unictype/test-pr_punctuation.c: Likewise.
97887         * tests/unictype/test-pr_quotation_mark.c: Likewise.
97888         * tests/unictype/test-pr_radical.c: Likewise.
97889         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
97890         * tests/unictype/test-pr_soft_dotted.c: Likewise.
97891         * tests/unictype/test-pr_space.c: Likewise.
97892         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
97893         * tests/unictype/test-pr_titlecase.c: Likewise.
97894         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
97895         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
97896         * tests/unictype/test-pr_uppercase.c: Likewise.
97897         * tests/unictype/test-pr_variation_selector.c: Likewise.
97898         * tests/unictype/test-pr_white_space.c: Likewise.
97899         * tests/unictype/test-pr_xid_continue.c: Likewise.
97900         * tests/unictype/test-pr_xid_start.c: Likewise.
97901         * tests/unictype/test-pr_zero_width.c: Likewise.
97902         * tests/unictype/test-sy_c_whitespace.c: Likewise.
97903         * tests/unictype/test-sy_java_whitespace.c: Likewise.
97905 2007-11-12  Bruno Haible  <bruno@clisp.org>
97907         Unicode character classification functions.
97908         * lib/unictype.h: New file.
97909         * modules/unictype/base: New file.
97910         * modules/unictype/category-L: New file.
97911         * modules/unictype/category-Lu: New file.
97912         * modules/unictype/category-Ll: New file.
97913         * modules/unictype/category-Lt: New file.
97914         * modules/unictype/category-Lm: New file.
97915         * modules/unictype/category-Lo: New file.
97916         * modules/unictype/category-M: New file.
97917         * modules/unictype/category-Mn: New file.
97918         * modules/unictype/category-Mc: New file.
97919         * modules/unictype/category-Me: New file.
97920         * modules/unictype/category-N: New file.
97921         * modules/unictype/category-Nd: New file.
97922         * modules/unictype/category-Nl: New file.
97923         * modules/unictype/category-No: New file.
97924         * modules/unictype/category-P: New file.
97925         * modules/unictype/category-Pc: New file.
97926         * modules/unictype/category-Pd: New file.
97927         * modules/unictype/category-Ps: New file.
97928         * modules/unictype/category-Pe: New file.
97929         * modules/unictype/category-Pi: New file.
97930         * modules/unictype/category-Pf: New file.
97931         * modules/unictype/category-Po: New file.
97932         * modules/unictype/category-S: New file.
97933         * modules/unictype/category-Sm: New file.
97934         * modules/unictype/category-Sc: New file.
97935         * modules/unictype/category-Sk: New file.
97936         * modules/unictype/category-So: New file.
97937         * modules/unictype/category-Z: New file.
97938         * modules/unictype/category-Zs: New file.
97939         * modules/unictype/category-Zl: New file.
97940         * modules/unictype/category-Zp: New file.
97941         * modules/unictype/category-C: New file.
97942         * modules/unictype/category-Cc: New file.
97943         * modules/unictype/category-Cf: New file.
97944         * modules/unictype/category-Cs: New file.
97945         * modules/unictype/category-Co: New file.
97946         * modules/unictype/category-Cn: New file.
97947         * modules/unictype/category-or: New file.
97948         * modules/unictype/category-of: New file.
97949         * modules/unictype/category-test: New file.
97950         * modules/unictype/category-test-withtable: New file.
97951         * modules/unictype/category-byname: New file.
97952         * modules/unictype/category-none: New file.
97953         * modules/unictype/category-and: New file.
97954         * modules/unictype/category-and-not: New file.
97955         * modules/unictype/category-name: New file.
97956         * modules/unictype/combining-class: New file.
97957         * modules/unictype/category-all: New file.
97958         * modules/unictype/bidicategory-all: New file.
97959         * modules/unictype/bidicategory-byname: New file.
97960         * modules/unictype/bidicategory-name: New file.
97961         * modules/unictype/bidicategory-of: New file.
97962         * modules/unictype/bidicategory-test: New file.
97963         * modules/unictype/decimal-digit: New file.
97964         * modules/unictype/digit: New file.
97965         * modules/unictype/numeric: New file.
97966         * modules/unictype/mirror: New file.
97967         * modules/unictype/property-white-space: New file.
97968         * modules/unictype/property-alphabetic: New file.
97969         * modules/unictype/property-other-alphabetic: New file.
97970         * modules/unictype/property-not-a-character: New file.
97971         * modules/unictype/property-default-ignorable-code-point: New file.
97972         * modules/unictype/property-other-default-ignorable-code-point: New
97973         file.
97974         * modules/unictype/property-deprecated: New file.
97975         * modules/unictype/property-logical-order-exception: New file.
97976         * modules/unictype/property-variation-selector: New file.
97977         * modules/unictype/property-private-use: New file.
97978         * modules/unictype/property-unassigned-code-value: New file.
97979         * modules/unictype/property-uppercase: New file.
97980         * modules/unictype/property-other-uppercase: New file.
97981         * modules/unictype/property-lowercase: New file.
97982         * modules/unictype/property-other-lowercase: New file.
97983         * modules/unictype/property-titlecase: New file.
97984         * modules/unictype/property-soft-dotted: New file.
97985         * modules/unictype/property-id-start: New file.
97986         * modules/unictype/property-other-id-start: New file.
97987         * modules/unictype/property-id-continue: New file.
97988         * modules/unictype/property-other-id-continue: New file.
97989         * modules/unictype/property-xid-start: New file.
97990         * modules/unictype/property-xid-continue: New file.
97991         * modules/unictype/property-pattern-white-space: New file.
97992         * modules/unictype/property-pattern-syntax: New file.
97993         * modules/unictype/property-join-control: New file.
97994         * modules/unictype/property-grapheme-base: New file.
97995         * modules/unictype/property-grapheme-extend: New file.
97996         * modules/unictype/property-other-grapheme-extend: New file.
97997         * modules/unictype/property-grapheme-link: New file.
97998         * modules/unictype/property-bidi-control: New file.
97999         * modules/unictype/property-bidi-left-to-right: New file.
98000         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
98001         * modules/unictype/property-bidi-arabic-right-to-left: New file.
98002         * modules/unictype/property-bidi-european-digit: New file.
98003         * modules/unictype/property-bidi-eur-num-separator: New file.
98004         * modules/unictype/property-bidi-eur-num-terminator: New file.
98005         * modules/unictype/property-bidi-arabic-digit: New file.
98006         * modules/unictype/property-bidi-common-separator: New file.
98007         * modules/unictype/property-bidi-block-separator: New file.
98008         * modules/unictype/property-bidi-segment-separator: New file.
98009         * modules/unictype/property-bidi-whitespace: New file.
98010         * modules/unictype/property-bidi-non-spacing-mark: New file.
98011         * modules/unictype/property-bidi-boundary-neutral: New file.
98012         * modules/unictype/property-bidi-pdf: New file.
98013         * modules/unictype/property-bidi-embedding-or-override: New file.
98014         * modules/unictype/property-bidi-other-neutral: New file.
98015         * modules/unictype/property-hex-digit: New file.
98016         * modules/unictype/property-ascii-hex-digit: New file.
98017         * modules/unictype/property-ideographic: New file.
98018         * modules/unictype/property-unified-ideograph: New file.
98019         * modules/unictype/property-radical: New file.
98020         * modules/unictype/property-ids-binary-operator: New file.
98021         * modules/unictype/property-ids-trinary-operator: New file.
98022         * modules/unictype/property-zero-width: New file.
98023         * modules/unictype/property-space: New file.
98024         * modules/unictype/property-non-break: New file.
98025         * modules/unictype/property-iso-control: New file.
98026         * modules/unictype/property-format-control: New file.
98027         * modules/unictype/property-dash: New file.
98028         * modules/unictype/property-hyphen: New file.
98029         * modules/unictype/property-punctuation: New file.
98030         * modules/unictype/property-line-separator: New file.
98031         * modules/unictype/property-paragraph-separator: New file.
98032         * modules/unictype/property-quotation-mark: New file.
98033         * modules/unictype/property-sentence-terminal: New file.
98034         * modules/unictype/property-terminal-punctuation: New file.
98035         * modules/unictype/property-currency-symbol: New file.
98036         * modules/unictype/property-math: New file.
98037         * modules/unictype/property-other-math: New file.
98038         * modules/unictype/property-paired-punctuation: New file.
98039         * modules/unictype/property-left-of-pair: New file.
98040         * modules/unictype/property-combining: New file.
98041         * modules/unictype/property-composite: New file.
98042         * modules/unictype/property-decimal-digit: New file.
98043         * modules/unictype/property-numeric: New file.
98044         * modules/unictype/property-diacritic: New file.
98045         * modules/unictype/property-extender: New file.
98046         * modules/unictype/property-ignorable-control: New file.
98047         * modules/unictype/property-test: New file.
98048         * modules/unictype/property-byname: New file.
98049         * modules/unictype/property-all: New file.
98050         * modules/unictype/scripts: New file.
98051         * modules/unictype/scripts-all: New file.
98052         * modules/unictype/block-of: New file.
98053         * modules/unictype/block-test: New file.
98054         * modules/unictype/block-list: New file.
98055         * modules/unictype/block-all: New file.
98056         * modules/unictype/syntax-c-whitespace: New file.
98057         * modules/unictype/syntax-java-whitespace: New file.
98058         * modules/unictype/syntax-c-ident: New file.
98059         * modules/unictype/syntax-java-ident: New file.
98060         * modules/unictype/ctype-alnum: New file.
98061         * modules/unictype/ctype-alpha: New file.
98062         * modules/unictype/ctype-cntrl: New file.
98063         * modules/unictype/ctype-digit: New file.
98064         * modules/unictype/ctype-graph: New file.
98065         * modules/unictype/ctype-lower: New file.
98066         * modules/unictype/ctype-print: New file.
98067         * modules/unictype/ctype-punct: New file.
98068         * modules/unictype/ctype-space: New file.
98069         * modules/unictype/ctype-upper: New file.
98070         * modules/unictype/ctype-xdigit: New file.
98071         * modules/unictype/ctype-blank: New file.
98072         * lib/unictype/bidi_byname.c: New file.
98073         * lib/unictype/bidi_name.c: New file.
98074         * lib/unictype/bidi_of.c: New file.
98075         * lib/unictype/bidi_test.c: New file.
98076         * lib/unictype/bitmap.h: New file.
98077         * lib/unictype/block_test.c: New file.
98078         * lib/unictype/blocks.c: New file.
98079         * lib/unictype/categ_C.c: New file.
98080         * lib/unictype/categ_Cc.c: New file.
98081         * lib/unictype/categ_Cf.c: New file.
98082         * lib/unictype/categ_Cn.c: New file.
98083         * lib/unictype/categ_Co.c: New file.
98084         * lib/unictype/categ_Cs.c: New file.
98085         * lib/unictype/categ_L.c: New file.
98086         * lib/unictype/categ_Ll.c: New file.
98087         * lib/unictype/categ_Lm.c: New file.
98088         * lib/unictype/categ_Lo.c: New file.
98089         * lib/unictype/categ_Lt.c: New file.
98090         * lib/unictype/categ_Lu.c: New file.
98091         * lib/unictype/categ_M.c: New file.
98092         * lib/unictype/categ_Mc.c: New file.
98093         * lib/unictype/categ_Me.c: New file.
98094         * lib/unictype/categ_Mn.c: New file.
98095         * lib/unictype/categ_N.c: New file.
98096         * lib/unictype/categ_Nd.c: New file.
98097         * lib/unictype/categ_Nl.c: New file.
98098         * lib/unictype/categ_No.c: New file.
98099         * lib/unictype/categ_P.c: New file.
98100         * lib/unictype/categ_Pc.c: New file.
98101         * lib/unictype/categ_Pd.c: New file.
98102         * lib/unictype/categ_Pe.c: New file.
98103         * lib/unictype/categ_Pf.c: New file.
98104         * lib/unictype/categ_Pi.c: New file.
98105         * lib/unictype/categ_Po.c: New file.
98106         * lib/unictype/categ_Ps.c: New file.
98107         * lib/unictype/categ_S.c: New file.
98108         * lib/unictype/categ_Sc.c: New file.
98109         * lib/unictype/categ_Sk.c: New file.
98110         * lib/unictype/categ_Sm.c: New file.
98111         * lib/unictype/categ_So.c: New file.
98112         * lib/unictype/categ_Z.c: New file.
98113         * lib/unictype/categ_Zl.c: New file.
98114         * lib/unictype/categ_Zp.c: New file.
98115         * lib/unictype/categ_Zs.c: New file.
98116         * lib/unictype/categ_and.c: New file.
98117         * lib/unictype/categ_and_not.c: New file.
98118         * lib/unictype/categ_byname.c: New file.
98119         * lib/unictype/categ_name.c: New file.
98120         * lib/unictype/categ_none.c: New file.
98121         * lib/unictype/categ_of.c: New file.
98122         * lib/unictype/categ_or.c: New file.
98123         * lib/unictype/categ_test.c: New file.
98124         * lib/unictype/combining.c: New file.
98125         * lib/unictype/ctype_alnum.c: New file.
98126         * lib/unictype/ctype_alpha.c: New file.
98127         * lib/unictype/ctype_blank.c: New file.
98128         * lib/unictype/ctype_cntrl.c: New file.
98129         * lib/unictype/ctype_digit.c: New file.
98130         * lib/unictype/ctype_graph.c: New file.
98131         * lib/unictype/ctype_lower.c: New file.
98132         * lib/unictype/ctype_print.c: New file.
98133         * lib/unictype/ctype_punct.c: New file.
98134         * lib/unictype/ctype_space.c: New file.
98135         * lib/unictype/ctype_upper.c: New file.
98136         * lib/unictype/ctype_xdigit.c: New file.
98137         * lib/unictype/decdigit.c: New file.
98138         * lib/unictype/digit.c: New file.
98139         * lib/unictype/identsyntaxmap.h: New file.
98140         * lib/unictype/mirror.c: New file.
98141         * lib/unictype/numeric.c: New file.
98142         * lib/unictype/pr_alphabetic.c: New file.
98143         * lib/unictype/pr_ascii_hex_digit.c: New file.
98144         * lib/unictype/pr_bidi_arabic_digit.c: New file.
98145         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
98146         * lib/unictype/pr_bidi_block_separator.c: New file.
98147         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
98148         * lib/unictype/pr_bidi_common_separator.c: New file.
98149         * lib/unictype/pr_bidi_control.c: New file.
98150         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
98151         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
98152         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
98153         * lib/unictype/pr_bidi_european_digit.c: New file.
98154         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
98155         * lib/unictype/pr_bidi_left_to_right.c: New file.
98156         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
98157         * lib/unictype/pr_bidi_other_neutral.c: New file.
98158         * lib/unictype/pr_bidi_pdf.c: New file.
98159         * lib/unictype/pr_bidi_segment_separator.c: New file.
98160         * lib/unictype/pr_bidi_whitespace.c: New file.
98161         * lib/unictype/pr_byname.c: New file.
98162         * lib/unictype/pr_byname.gperf: New file.
98163         * lib/unictype/pr_combining.c: New file.
98164         * lib/unictype/pr_composite.c: New file.
98165         * lib/unictype/pr_currency_symbol.c: New file.
98166         * lib/unictype/pr_dash.c: New file.
98167         * lib/unictype/pr_decimal_digit.c: New file.
98168         * lib/unictype/pr_default_ignorable_code_point.c: New file.
98169         * lib/unictype/pr_deprecated.c: New file.
98170         * lib/unictype/pr_diacritic.c: New file.
98171         * lib/unictype/pr_extender.c: New file.
98172         * lib/unictype/pr_format_control.c: New file.
98173         * lib/unictype/pr_grapheme_base.c: New file.
98174         * lib/unictype/pr_grapheme_extend.c: New file.
98175         * lib/unictype/pr_grapheme_link.c: New file.
98176         * lib/unictype/pr_hex_digit.c: New file.
98177         * lib/unictype/pr_hyphen.c: New file.
98178         * lib/unictype/pr_id_continue.c: New file.
98179         * lib/unictype/pr_id_start.c: New file.
98180         * lib/unictype/pr_ideographic.c: New file.
98181         * lib/unictype/pr_ids_binary_operator.c: New file.
98182         * lib/unictype/pr_ids_trinary_operator.c: New file.
98183         * lib/unictype/pr_ignorable_control.c: New file.
98184         * lib/unictype/pr_iso_control.c: New file.
98185         * lib/unictype/pr_join_control.c: New file.
98186         * lib/unictype/pr_left_of_pair.c: New file.
98187         * lib/unictype/pr_line_separator.c: New file.
98188         * lib/unictype/pr_logical_order_exception.c: New file.
98189         * lib/unictype/pr_lowercase.c: New file.
98190         * lib/unictype/pr_math.c: New file.
98191         * lib/unictype/pr_non_break.c: New file.
98192         * lib/unictype/pr_not_a_character.c: New file.
98193         * lib/unictype/pr_numeric.c: New file.
98194         * lib/unictype/pr_other_alphabetic.c: New file.
98195         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
98196         * lib/unictype/pr_other_grapheme_extend.c: New file.
98197         * lib/unictype/pr_other_id_continue.c: New file.
98198         * lib/unictype/pr_other_id_start.c: New file.
98199         * lib/unictype/pr_other_lowercase.c: New file.
98200         * lib/unictype/pr_other_math.c: New file.
98201         * lib/unictype/pr_other_uppercase.c: New file.
98202         * lib/unictype/pr_paired_punctuation.c: New file.
98203         * lib/unictype/pr_paragraph_separator.c: New file.
98204         * lib/unictype/pr_pattern_syntax.c: New file.
98205         * lib/unictype/pr_pattern_white_space.c: New file.
98206         * lib/unictype/pr_private_use.c: New file.
98207         * lib/unictype/pr_punctuation.c: New file.
98208         * lib/unictype/pr_quotation_mark.c: New file.
98209         * lib/unictype/pr_radical.c: New file.
98210         * lib/unictype/pr_sentence_terminal.c: New file.
98211         * lib/unictype/pr_soft_dotted.c: New file.
98212         * lib/unictype/pr_space.c: New file.
98213         * lib/unictype/pr_terminal_punctuation.c: New file.
98214         * lib/unictype/pr_test.c: New file.
98215         * lib/unictype/pr_titlecase.c: New file.
98216         * lib/unictype/pr_unassigned_code_value.c: New file.
98217         * lib/unictype/pr_unified_ideograph.c: New file.
98218         * lib/unictype/pr_uppercase.c: New file.
98219         * lib/unictype/pr_variation_selector.c: New file.
98220         * lib/unictype/pr_white_space.c: New file.
98221         * lib/unictype/pr_xid_continue.c: New file.
98222         * lib/unictype/pr_xid_start.c: New file.
98223         * lib/unictype/pr_zero_width.c: New file.
98224         * lib/unictype/scripts.c: New file.
98225         * lib/unictype/sy_c_ident.c: New file.
98226         * lib/unictype/sy_c_whitespace.c: New file.
98227         * lib/unictype/sy_java_ident.c: New file.
98228         * lib/unictype/sy_java_whitespace.c: New file.
98230         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
98231         Unicode 5.0.0.
98232         * lib/unictype/blocks.h: Likewise.
98233         * lib/unictype/categ_C.h: Likewise.
98234         * lib/unictype/categ_Cc.h: Likewise.
98235         * lib/unictype/categ_Cf.h: Likewise.
98236         * lib/unictype/categ_Cn.h: Likewise.
98237         * lib/unictype/categ_Co.h: Likewise.
98238         * lib/unictype/categ_Cs.h: Likewise.
98239         * lib/unictype/categ_L.h: Likewise.
98240         * lib/unictype/categ_Ll.h: Likewise.
98241         * lib/unictype/categ_Lm.h: Likewise.
98242         * lib/unictype/categ_Lo.h: Likewise.
98243         * lib/unictype/categ_Lt.h: Likewise.
98244         * lib/unictype/categ_Lu.h: Likewise.
98245         * lib/unictype/categ_M.h: Likewise.
98246         * lib/unictype/categ_Mc.h: Likewise.
98247         * lib/unictype/categ_Me.h: Likewise.
98248         * lib/unictype/categ_Mn.h: Likewise.
98249         * lib/unictype/categ_N.h: Likewise.
98250         * lib/unictype/categ_Nd.h: Likewise.
98251         * lib/unictype/categ_Nl.h: Likewise.
98252         * lib/unictype/categ_No.h: Likewise.
98253         * lib/unictype/categ_P.h: Likewise.
98254         * lib/unictype/categ_Pc.h: Likewise.
98255         * lib/unictype/categ_Pd.h: Likewise.
98256         * lib/unictype/categ_Pe.h: Likewise.
98257         * lib/unictype/categ_Pf.h: Likewise.
98258         * lib/unictype/categ_Pi.h: Likewise.
98259         * lib/unictype/categ_Po.h: Likewise.
98260         * lib/unictype/categ_Ps.h: Likewise.
98261         * lib/unictype/categ_S.h: Likewise.
98262         * lib/unictype/categ_Sc.h: Likewise.
98263         * lib/unictype/categ_Sk.h: Likewise.
98264         * lib/unictype/categ_Sm.h: Likewise.
98265         * lib/unictype/categ_So.h: Likewise.
98266         * lib/unictype/categ_Z.h: Likewise.
98267         * lib/unictype/categ_Zl.h: Likewise.
98268         * lib/unictype/categ_Zp.h: Likewise.
98269         * lib/unictype/categ_Zs.h: Likewise.
98270         * lib/unictype/categ_of.h: Likewise.
98271         * lib/unictype/combining.h: Likewise.
98272         * lib/unictype/ctype_alnum.h: Likewise.
98273         * lib/unictype/ctype_alpha.h: Likewise.
98274         * lib/unictype/ctype_blank.h: Likewise.
98275         * lib/unictype/ctype_cntrl.h: Likewise.
98276         * lib/unictype/ctype_digit.h: Likewise.
98277         * lib/unictype/ctype_graph.h: Likewise.
98278         * lib/unictype/ctype_lower.h: Likewise.
98279         * lib/unictype/ctype_print.h: Likewise.
98280         * lib/unictype/ctype_punct.h: Likewise.
98281         * lib/unictype/ctype_space.h: Likewise.
98282         * lib/unictype/ctype_upper.h: Likewise.
98283         * lib/unictype/ctype_xdigit.h: Likewise.
98284         * lib/unictype/decdigit.h: Likewise.
98285         * lib/unictype/digit.h: Likewise.
98286         * lib/unictype/mirror.h: Likewise.
98287         * lib/unictype/numeric.h: Likewise.
98288         * lib/unictype/pr_alphabetic.h: Likewise.
98289         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
98290         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
98291         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
98292         * lib/unictype/pr_bidi_block_separator.h: Likewise.
98293         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
98294         * lib/unictype/pr_bidi_common_separator.h: Likewise.
98295         * lib/unictype/pr_bidi_control.h: Likewise.
98296         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
98297         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
98298         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
98299         * lib/unictype/pr_bidi_european_digit.h: Likewise.
98300         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
98301         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
98302         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
98303         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
98304         * lib/unictype/pr_bidi_pdf.h: Likewise.
98305         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
98306         * lib/unictype/pr_bidi_whitespace.h: Likewise.
98307         * lib/unictype/pr_combining.h: Likewise.
98308         * lib/unictype/pr_composite.h: Likewise.
98309         * lib/unictype/pr_currency_symbol.h: Likewise.
98310         * lib/unictype/pr_dash.h: Likewise.
98311         * lib/unictype/pr_decimal_digit.h: Likewise.
98312         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
98313         * lib/unictype/pr_deprecated.h: Likewise.
98314         * lib/unictype/pr_diacritic.h: Likewise.
98315         * lib/unictype/pr_extender.h: Likewise.
98316         * lib/unictype/pr_format_control.h: Likewise.
98317         * lib/unictype/pr_grapheme_base.h: Likewise.
98318         * lib/unictype/pr_grapheme_extend.h: Likewise.
98319         * lib/unictype/pr_grapheme_link.h: Likewise.
98320         * lib/unictype/pr_hex_digit.h: Likewise.
98321         * lib/unictype/pr_hyphen.h: Likewise.
98322         * lib/unictype/pr_id_continue.h: Likewise.
98323         * lib/unictype/pr_id_start.h: Likewise.
98324         * lib/unictype/pr_ideographic.h: Likewise.
98325         * lib/unictype/pr_ids_binary_operator.h: Likewise.
98326         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
98327         * lib/unictype/pr_ignorable_control.h: Likewise.
98328         * lib/unictype/pr_iso_control.h: Likewise.
98329         * lib/unictype/pr_join_control.h: Likewise.
98330         * lib/unictype/pr_left_of_pair.h: Likewise.
98331         * lib/unictype/pr_line_separator.h: Likewise.
98332         * lib/unictype/pr_logical_order_exception.h: Likewise.
98333         * lib/unictype/pr_lowercase.h: Likewise.
98334         * lib/unictype/pr_math.h: Likewise.
98335         * lib/unictype/pr_non_break.h: Likewise.
98336         * lib/unictype/pr_not_a_character.h: Likewise.
98337         * lib/unictype/pr_numeric.h: Likewise.
98338         * lib/unictype/pr_other_alphabetic.h: Likewise.
98339         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
98340         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
98341         * lib/unictype/pr_other_id_continue.h: Likewise.
98342         * lib/unictype/pr_other_id_start.h: Likewise.
98343         * lib/unictype/pr_other_lowercase.h: Likewise.
98344         * lib/unictype/pr_other_math.h: Likewise.
98345         * lib/unictype/pr_other_uppercase.h: Likewise.
98346         * lib/unictype/pr_paired_punctuation.h: Likewise.
98347         * lib/unictype/pr_paragraph_separator.h: Likewise.
98348         * lib/unictype/pr_pattern_syntax.h: Likewise.
98349         * lib/unictype/pr_pattern_white_space.h: Likewise.
98350         * lib/unictype/pr_private_use.h: Likewise.
98351         * lib/unictype/pr_punctuation.h: Likewise.
98352         * lib/unictype/pr_quotation_mark.h: Likewise.
98353         * lib/unictype/pr_radical.h: Likewise.
98354         * lib/unictype/pr_sentence_terminal.h: Likewise.
98355         * lib/unictype/pr_soft_dotted.h: Likewise.
98356         * lib/unictype/pr_space.h: Likewise.
98357         * lib/unictype/pr_terminal_punctuation.h: Likewise.
98358         * lib/unictype/pr_titlecase.h: Likewise.
98359         * lib/unictype/pr_unassigned_code_value.h: Likewise.
98360         * lib/unictype/pr_unified_ideograph.h: Likewise.
98361         * lib/unictype/pr_uppercase.h: Likewise.
98362         * lib/unictype/pr_variation_selector.h: Likewise.
98363         * lib/unictype/pr_white_space.h: Likewise.
98364         * lib/unictype/pr_xid_continue.h: Likewise.
98365         * lib/unictype/pr_xid_start.h: Likewise.
98366         * lib/unictype/pr_zero_width.h: Likewise.
98367         * lib/unictype/scripts.h: Likewise.
98368         * lib/unictype/scripts_byname.gperf: Likewise.
98369         * lib/unictype/sy_c_ident.h: Likewise.
98370         * lib/unictype/sy_c_whitespace.h: Likewise.
98371         * lib/unictype/sy_java_ident.h: Likewise.
98372         * lib/unictype/sy_java_whitespace.h: Likewise.
98374         * lib/unictype/Makefile: New file.
98375         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
98376         glibc.
98377         * lib/unictype/3level.h: New file, copied from glibc.
98378         * lib/unictype/3levelbit.h: New file.
98380 2007-11-11  Bruno Haible  <bruno@clisp.org>
98382         * modules/gperf: New file.
98383         * modules/iconv_open (Depends-on): Add it.
98384         (Makefile.am): Remove the GPERF definition.
98386 2007-11-11  Bruno Haible  <bruno@clisp.org>
98388         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
98389         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
98391 2007-11-11  Bruno Haible  <bruno@clisp.org>
98393         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
98394         (usage): Remove function.
98396 2007-11-11  Bruno Haible  <bruno@clisp.org>
98398         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
98399         gl_FUNC_CEILF_LIBS.
98400         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
98401         gl_FUNC_CEIL_LIBS.
98402         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
98403         gl_FUNC_CEILL_LIBS.
98404         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
98405         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
98406         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
98408 2007-11-11  Bruno Haible  <bruno@clisp.org>
98410         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
98411         roundf were declared but do not exist on functions.
98412         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
98413         roundl were declared but do not exist on functions.
98414         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
98415         HAVE_FLOORL_AND_CEILL, respectively.
98416         Needed for Sun C on Solaris 10.
98418 2007-11-11  Bruno Haible  <bruno@clisp.org>
98420         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
98421         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
98422         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
98423         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
98424         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
98425         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
98426         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
98427         HAVE_DECL_ROUNDF.
98428         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
98429         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
98430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
98431         of HAVE_DECL_ROUND*.
98432         * modules/math (Makefile.am): Update.
98434 2007-11-10  Bruno Haible  <bruno@clisp.org>
98436         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
98437         ptrdiff_t as m4/intl.m4.
98439 2007-11-10  Jim Meyering  <meyering@redhat.com>
98441         Avoid link failure for the argmatch test.
98442         * tests/test-argmatch.c (usage): Define function to avoid a link
98443         failure: argmatch_die requires a usage function.
98445 2007-11-09  Bruno Haible  <bruno@clisp.org>
98447         * doc/functions/snprintf.texi: Mention BeOS deficiency.
98448         * doc/functions/vsnprintf.texi: Likewise.
98449         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
98450         with a size argument < 2.
98452 2007-11-09  Bruno Haible  <bruno@clisp.org>
98454         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
98455         buffer. Fixes an inefficiency introduced on 2007-11-03.
98457 2007-11-09  Bruno Haible  <bruno@clisp.org>
98459         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
98460         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
98462 2007-11-08  Jim Meyering  <meyering@redhat.com>
98464         Change cache variable name prefix "jm_" to "gl_" everywhere.
98465         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
98466         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
98467         * m4/uptime.m4: s/gl_/jm_/
98469 2007-11-07  Bruno Haible  <bruno@clisp.org>
98471         Update to GNU gettext 0.17.
98472         * m4/intl.m4: Update to GNU gettext 0.17.
98473         * m4/po.m4: Likewise.
98474         * modules/gettext (Files): Remove m4/ulonglong.m4.
98475         (configure.ac): Require gettext infrastructure from version 0.17.
98477 2007-11-06  Bruno Haible  <bruno@clisp.org>
98479         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
98480         symbolic values are not defined in a public header.
98481         * lib/freadable.c (freadable) [QNX]: Likewise.
98482         * lib/freadahead.c (freadahead) [QNX]: Likewise.
98483         * lib/freading.c (freading) [QNX]: Likewise.
98484         * lib/fseterr.c (fseterr) [QNX]: Likewise.
98485         * lib/fwritable.c (fwritable) [QNX]: Likewise.
98486         * lib/fwriting.c (fwriting) [QNX]: Likewise.
98487         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
98488         Reported by Alain Magloire.
98490         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
98492 2007-11-05  Bruno Haible  <bruno@clisp.org>
98494         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
98495         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
98496         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
98497         Reported by Eric Blake.
98499 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98500             Bruno Haible  <bruno@clisp.org>
98502         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
98503         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
98504         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
98505         (malloc): Undefine also before including <stdlib.h>.
98506         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
98507         Needed on OSF/1 4.0.
98509 2007-11-05  Jim Meyering  <meyering@redhat.com>
98511         git-version-gen: sync from coreutils.
98512         * build-aux/git-version-gen: Add comments.
98513         Change the first '-' to '.' in the snapshot version string,
98514         e.g., 6.9-377-08144 -> 6.9.377-08144
98515         Remove first parameter.
98516         Don't declare a version "-dirty" merely because a time
98517         stamp has changed.
98519 2007-11-04  Bruno Haible  <bruno@clisp.org>
98521         * lib/lock.h: Protect all macro definitions containing an 'if'
98522         statement through a "do { ... } while (0)".
98523         * lib/tls.h: Likewise.
98525 2007-11-04  Bruno Haible  <bruno@clisp.org>
98527         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
98529 2007-11-04  Bruno Haible  <bruno@clisp.org>
98531         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
98532         * modules/fprintf-posix (Depends-on): Add nocrash.
98533         * modules/snprintf-posix (Depends-on): Likewise.
98534         * modules/sprintf-posix (Depends-on): Likewise.
98535         * modules/vasnprintf-posix (Depends-on): Likewise.
98536         * modules/vasprintf-posix (Depends-on): Likewise.
98537         * modules/vfprintf-posix (Depends-on): Likewise.
98538         * modules/vsnprintf-posix (Depends-on): Likewise.
98539         * modules/vsprintf-posix (Depends-on): Likewise.
98540         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
98541         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
98542         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
98543         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
98544         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
98545         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
98546         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
98548 2007-11-04  Bruno Haible  <bruno@clisp.org>
98550         * modules/nocrash: New file.
98551         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
98552         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
98554 2007-11-04  Bruno Haible  <bruno@clisp.org>
98556         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
98557         precision handling.
98558         * tests/test-vasprintf-posix.c (test_function): Likewise.
98559         * tests/test-snprintf-posix.h (test_function): Likewise.
98560         * tests/test-sprintf-posix.h (test_function): Likewise.
98562         Fix *printf behaviour for large precisions on mingw and BeOS.
98563         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
98564         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
98565         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
98566         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98567         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98568         gl_PRINTF_PRECISION and test its result. Invoke
98569         gl_PREREQ_VASNPRINTF_PRECISION.
98570         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98571         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98572         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98573         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98574         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98575         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98576         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98577         * doc/functions/fprintf.texi: Update.
98578         * doc/functions/printf.texi: Update.
98579         * doc/functions/snprintf.texi: Update.
98580         * doc/functions/sprintf.texi: Update.
98581         * doc/functions/vfprintf.texi: Update.
98582         * doc/functions/vprintf.texi: Update.
98583         * doc/functions/vsnprintf.texi: Update.
98584         * doc/functions/vsprintf.texi: Update.
98586 2007-11-04  Bruno Haible  <bruno@clisp.org>
98588         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
98590 2007-11-04  Bruno Haible  <bruno@clisp.org>
98592         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
98593         Reported by Sylvain Beucler <beuc@gnu.org>.
98595 2007-11-03  Bruno Haible  <bruno@clisp.org>
98597         * tests/test-fprintf-posix2.sh: New file.
98598         * tests/test-fprintf-posix2.c: New file.
98599         * modules/fprintf-posix-tests (Files): Add them.
98600         (TESTS): Add test-fprintf-posix2.sh.
98601         (configure.ac): Check for getrlimit and setrlimit.
98602         (check_PROGRAMS): Add test-fprintf-posix2.
98604         * tests/test-printf-posix2.sh: New file.
98605         * tests/test-printf-posix2.c: New file.
98606         * modules/printf-posix-tests (Files): Add them.
98607         (TESTS): Add test-printf-posix2.sh.
98608         (configure.ac): Check for getrlimit and setrlimit.
98609         (check_PROGRAMS): Add test-printf-posix2.
98611         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
98612         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
98613         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
98614         (decode_double): New function, copied from decode_long_double.
98615         (scale10_round_decimal_decoded): New function, extracted from
98616         scale10_round_decimal_long_double.
98617         (scale10_round_decimal_long_double): Use it.
98618         (scale10_round_decimal_double): New function.
98619         (floorlog10): New function.
98620         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
98621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
98622         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98623         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98624         gl_PRINTF_ENOMEM and test its result. Invoke
98625         gl_PREREQ_VASNPRINTF_ENOMEM.
98626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98627         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98628         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98629         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98630         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98631         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98632         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98633         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
98634         * modules/snprintf-posix (Depends-on): Likewise.
98635         * modules/sprintf-posix (Depends-on): Likewise.
98636         * modules/vasnprintf-posix (Depends-on): Likewise.
98637         * modules/vasprintf-posix (Depends-on): Likewise.
98638         * modules/vfprintf-posix (Depends-on): Likewise.
98639         * modules/vsnprintf-posix (Depends-on): Likewise.
98640         * modules/vsprintf-posix (Depends-on): Likewise.
98641         * doc/functions/fprintf.texi: Update.
98642         * doc/functions/printf.texi: Update.
98643         * doc/functions/snprintf.texi: Update.
98644         * doc/functions/sprintf.texi: Update.
98645         * doc/functions/vfprintf.texi: Update.
98646         * doc/functions/vprintf.texi: Update.
98647         * doc/functions/vsnprintf.texi: Update.
98648         * doc/functions/vsprintf.texi: Update.
98650 2007-11-03  Bruno Haible  <bruno@clisp.org>
98652         * modules/frexp-nolibm-tests: New file.
98654         * modules/frexp-nolibm: New file.
98655         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
98657 2007-11-03  Bruno Haible  <bruno@clisp.org>
98659         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
98660         value is C99 compliant.
98661         Needed for OSF/1 5.1.
98663 2007-11-03  Bruno Haible  <bruno@clisp.org>
98665         Fix out-of-memory handling of vasnprintf.
98666         * lib/printf-parse.c: Include <errno.h>.
98667         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
98668         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
98669         is already set.
98671 2007-11-02  Eric Blake  <ebb9@byu.net>
98673         Fix tests on cygwin.
98674         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
98676 2007-11-01  Bruno Haible  <bruno@clisp.org>
98678         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
98679         warning.
98680         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
98681         needed for POSIX compatibility.
98683 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
98685         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
98686         for compatibility with GNU.
98688 2007-11-01  Bruno Haible  <bruno@clisp.org>
98690         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
98691         (putenv): Renamed from rpl_putenv. Change argument type from
98692         'const char *' to 'char *'.
98693         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
98694         of defining putenv in config.h, just set REPLACE_PUTENV.
98695         * modules/putenv (Depends-on): Add stdlib.
98696         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
98697         (Include): Use <stdlib.h>.
98698         * lib/stdlib.in.h (putenv): New declaration.
98699         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
98700         REPLACE_PUTENV.
98701         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
98702         REPLACE_PUTENV.
98703         Needed for MacOS X 10.5.0.
98704         Reported by Peter O'Gorman <peter@pogma.com>.
98706 2007-11-01  Jim Meyering  <meyering@redhat.com>
98708         Treat an empty date string exactly like "0".
98709         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
98710         if the remaining date string (to be parsed) is empty, use "0".
98711         Reported by Mischa Molhoek and discussed in this thread:
98712         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
98714 2007-10-31  Bruno Haible  <bruno@clisp.org>
98716         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
98717         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
98718         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
98719         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
98720         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
98721         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
98723 2007-10-31  Bruno Haible  <bruno@clisp.org>
98725         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
98726         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
98727         (AC_TYPE_LONG_LONG_INT): Use it.
98728         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
98729         it as well.
98730         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
98731         to m4/longlong.m4.
98732         * modules/stdint (Files): Remove m4/ulonglong.m4.
98733         * modules/strtoull (Files): Use m4/longlong.m4 instead of
98734         m4/ulonglong.m4.
98735         * modules/strtoumax (Files): Likewise.
98737 2007-10-30  Bruno Haible  <bruno@clisp.org>
98739         * modules/xvasprintf-posix: New file.
98740         Suggested by Eric Blake.
98742 2007-10-30  Bruno Haible  <bruno@clisp.org>
98744         * modules/xprintf-posix-tests: New file.
98745         * tests/test-xprintf-posix.sh: New file.
98746         * tests/test-xprintf-posix.c: New file.
98747         * tests/test-xfprintf-posix.c: New file.
98749         * modules/xprintf-posix: New file.
98751 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98753         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
98754         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
98755         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
98757 2007-10-29  Bruno Haible  <bruno@clisp.org>
98759         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
98760         contain the special marker '_cv_'.
98761         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
98762         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
98763         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
98764         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
98765         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
98766         Reported by Ralf Wildenhues.
98768 2007-10-29  Bruno Haible  <bruno@clisp.org>
98770         * gnulib-tool (func_import): When --lgpl is not specified, set
98771         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
98772         GPLv3.
98773         Reported by Simon Josefsson.
98775 2007-10-28  Bruno Haible  <bruno@clisp.org>
98777         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
98778         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
98779         HAVE_DECL_ISFINITE.
98780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
98781         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
98782         HAVE_DECL_ISFINITE.
98784 2007-10-28  Bruno Haible  <bruno@clisp.org>
98786         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
98787         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
98789 2007-10-28  Bruno Haible  <bruno@clisp.org>
98791         Fix link errors with Sun C 5.0 on Solaris 10.
98792         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
98793         function is declared but not present in the compiler's libm.
98794         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
98795         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
98796         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
98797         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
98798         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
98799         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
98800         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
98801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
98802         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
98803         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
98804         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
98805         HAVE_DECL_FLOORL.
98807 2007-10-28  Bruno Haible  <bruno@clisp.org>
98809         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
98810         gl_FUNC_FLOORL. Cache the result.
98811         (gl_FUNC_FLOORL): Use it.
98812         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
98813         gl_FUNC_CEILL. Cache the result.
98814         (gl_FUNC_CEILL): Use it.
98816         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
98817         gl_FUNC_FLOOR. Cache the result.
98818         (gl_FUNC_FLOOR): Use it.
98819         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
98820         gl_FUNC_CEIL. Cache the result.
98821         (gl_FUNC_CEIL): Use it.
98823         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
98824         gl_FUNC_FLOORF. Cache the result.
98825         (gl_FUNC_FLOORF): Use it.
98826         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
98827         gl_FUNC_CEILF. Cache the result.
98828         (gl_FUNC_CEILF): Use it.
98830 2007-10-28  Bruno Haible  <bruno@clisp.org>
98832         * gnulib-tool: Allow specifying the LGPL version number through
98833         --lgpl=2 or --lgpl=3.
98834         (func_usage): Document --lgpl with argument.
98835         Handle --lgpl=... arguments.
98836         (func_import): Recognize also gl_LGPL calls with an argument. When
98837         --lgpl=2 is used and the module's license is just LGPL, report an
98838         error. Set sed_transform_lib_file according to the lgpl variable. In
98839         the generated files, use --lgpl or gl_LGPL invocations with argument,
98840         if necessary.
98841         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
98842         an LGPv2+ license.
98843         * doc/gnulib-tool.texi (Modified imports): Update explanation of
98844         gl_LGPL macro.
98846 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98847             Bruno Haible  <bruno@clisp.org>
98849         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
98850         (u16_uctomb_aux): Likewise.
98851         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
98852         !HAVE_INLINE.
98853         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
98855 2007-10-28  Bruno Haible  <bruno@clisp.org>
98857         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
98858         Invoke AM_GETTEXT_OPTION if it exists.
98859         * modules/vasprintf: Likewise.
98860         * modules/verror: Likewise.
98861         * modules/xprintf: Likewise.
98862         * modules/xvasprintf: Likewise.
98864 2007-10-27  Ben Pfaff  <blp@gnu.org>
98866         * lib/math.in.h: Define isfinite macro and prototypes for
98867         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
98868         implementations.
98869         * m4/math_h.m4: New substitutions for isfinite module.
98870         * lib/isfinite.c: New file.
98871         * m4/isfinite.m4: New file.
98872         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
98873         * modules/isfinite: New file.
98874         * modules/isfinite-tests: New file.
98875         * tests/tests-isfinite.c: New file.
98876         * doc/functions/isfinite.texi: Mention isfinite module.
98877         * MODULES.html.sh: Mention new module.
98879 2007-10-27  Ben Pfaff  <blp@gnu.org>
98881         Ralf Wildenhues reported that Tru64 4.0D declares the round
98882         functions but does not have definitions.
98883         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
98884         cannot be found in any library, set the output variable to
98885         "missing" instead of "".
98886         * m4/round.m4: Also use our substitute if we cannot find round in
98887         any library, even if it is declared.
98888         * m4/roundf.m4: Likewise for roundf.
98889         * m4/roundl.m4: Likewise for roundl.
98890         * lib/math.in.h: Undefine roundf, round, roundl before defining
98891         their replacements, to allow for hypothetical systems where these
98892         may be defined as macros but not available in libraries.
98894 2007-10-27  Bruno Haible  <bruno@clisp.org>
98896         * doc/gnulib.texi: Invoke @firstparagraphindent.
98897         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
98898         changes in gnulib.
98899         (Source changes): New section.
98901 2007-10-26  Bruno Haible  <bruno@clisp.org>
98903         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
98904         borrowed from autoconf.
98906 2007-10-26  Bruno Haible  <bruno@clisp.org>
98908         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
98909         strerror returned the empty string. Needed on HP-UX 11.00.
98911 2007-10-24  Micah Cowan  <micah@cowan.name>
98913         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
98914         * build-aux/bootstrap: Remove support for now-unnecessary option,
98915         --cvs-user, and envvars CVS_USER, CVS_RSH.
98917 2007-10-24  Jim Meyering  <meyering@redhat.com>
98919         Avoid diagnostics from sha1sum when there is no cached checksum.
98920         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
98921         if the po.s1 file hasn't been created yet.
98923         * build-aux/bootstrap: Sync from coreutils:
98924         2007-10-24  Jim Meyering  <meyering@redhat.com>
98925         Get gnulib from the git repository, not from an obsolete cvs one.
98926         * build-aux/bootstrap: Suggestion from Micah Cowan.
98927         2007-10-04  Jim Meyering  <jim@meyering.net>
98928         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
98929         (update_po_files): Work also when there are no .po files in po/.
98931 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
98933         * README: Append ".git" to git and cg examples.
98934         Problem reported by Benoit Sigoure.
98936 2007-10-23  Micah Cowan  <micah@cowan.name>
98938         * users.txt: Add wget.
98940 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98942         Fix linking of some unistdio tests on FreeBSD.
98943         * modules/unistdio/u16-vsnprintf-tests
98944         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
98945         * modules/unistdio/u16-vsprintf-tests
98946         (test_u16_vsnprintf1_LDADD): Likewise.
98947         * modules/unistdio/u32-vsnprintf-tests
98948         (test_u32_vsnprintf1_LDADD): Likewise.
98949         * modules/unistdio/u32-vsprintf-tests
98950         (test_u32_vsprintf1_LDADD): Likewise.
98951         * modules/unistdio/u8-vsnprintf-tests
98952         (test_u8_vsnprintf1_LDADD): Likewise.
98953         * modules/unistdio/u8-vsprintf-tests
98954         (test_u8_vsprintf1_LDADD): Likewise.
98955         * modules/unistdio/ulc-vsnprintf-tests
98956         (test_ulc_vsnprintf1_LDADD): Likewise.
98957         * modules/unistdio/ulc-vsprintf-tests
98958         (test_ulc_vsprintf1_LDADD): Likewise.
98960         Fix linking of some uniconv tests on FreeBSD.
98961         * modules/uniconv/u16-conv-from-enc-tests
98962         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
98963         * modules/uniconv/u16-conv-to-enc-tests
98964         (test_u16_conv_to_enc_LDADD): Likewise.
98965         * modules/uniconv/u16-strconv-from-enc-tests
98966         (test_u16_strconv_from_enc_LDADD): Likewise.
98967         * modules/uniconv/u16-strconv-to-enc-tests
98968         (test_u16_strconv_to_enc_LDADD): Likewise.
98969         * modules/uniconv/u32-conv-from-enc-tests
98970         (test_u32_conv_from_enc_LDADD): Likewise.
98971         * modules/uniconv/u32-conv-to-enc-tests
98972         (test_u32_conv_to_enc_LDADD): Likewise.
98973         * modules/uniconv/u32-strconv-from-enc-tests
98974         (test_u32_strconv_from_enc_LDADD): Likewise.
98975         * modules/uniconv/u32-strconv-to-enc-tests
98976         (test_u32_strconv_to_enc_LDADD): Likewise.
98977         * modules/uniconv/u8-conv-from-enc-tests
98978         (test_u8_conv_from_enc_LDADD): Likewise.
98979         * modules/uniconv/u8-conv-to-enc-tests
98980         (test_u8_conv_to_enc_LDADD): Likewise.
98981         * modules/uniconv/u8-strconv-from-enc-tests
98982         (test_u8_strconv_from_enc_LDADD): Likewise.
98983         * modules/uniconv/u8-strconv-to-enc-tests
98984         (test_u8_strconv_to_enc_LDADD): Likewise.
98986 2007-10-22  Bruno Haible  <bruno@clisp.org>
98988         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
98989         size.
98991 2007-10-22  Eric Blake  <ebb9@byu.net>
98993         Tweak x*printf documentation.
98994         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
98995         variable name and comments.
98996         Suggested by Bruno Haible.
98998 2007-10-22  Bruno Haible  <bruno@clisp.org>
99000         * lib/acl.c (copy_acl): Fix file name in comment.
99002 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99004         Fix Tru64 problem with stdbool.h.
99005         * lib/stdbool.in.h (false, true):
99006         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
99007         Don't declare as an enum in this situation; it runs afoul of Tru64.
99008         Problem reported by Steven M. Schweda in
99009         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
99011 2007-10-22  Eric Blake  <ebb9@byu.net>
99013         Also wrap vf?printf.
99014         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
99015         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
99016         (xvprintf, xvfprintf): New functions.
99018 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99020         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
99021         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
99023         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
99024         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
99026 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99028         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
99029         by Bruno Haible.
99031 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99033         * lib/getloadavg.c
99034         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
99035         Undef `sys' after including sys/table.h, for Tru64 4.0D.
99037         * tests/test-i-ring.c: Work for C89.
99039 2007-10-22  Bruno Haible  <bruno@clisp.org>
99041         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
99042         -1u, in preprocessor expression, so that we don't test for the bug
99043         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
99044         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
99046 2007-10-22  Eric Blake  <ebb9@byu.net>
99048         * tests/test-yesno.sh: Silence stderr during test.
99050 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99052         * modules/crypto/gc-camellia: New file.
99054         * m4/gc-camellia.m4: New file.
99056         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
99058         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
99060 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99062         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
99063         --help to stdout.  Reported by sms@antinode.org (Steven
99064         M. Schweda).
99066 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99068         * users.txt: Fix link to libksba.
99070 2007-10-21  Ben Pfaff  <blp@gnu.org>
99072         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
99073         round.c roundf implementation that depends on floorf and ceilf to
99074         be tested unconditionally.
99076 2007-10-21  Ben Pfaff  <blp@gnu.org>
99078         * m4/check-libm-func.m4: Removed.
99079         * m4/check-math-lib.m4: New file.
99080         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
99081         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
99082         definition and lack of AC_LIBOBJ([roundf]).
99083         * m4/roundl.m4: Ditto, and similarly for roundl.
99084         * modules/round: Reference new m4 file.
99085         * modules/roundf: Ditto.
99086         * modules/roundl: Ditto.
99087         * tests/test-round2.c (main): Use ROUND instead of round.
99088         Bug report from Bruno Haible.
99090 2007-10-21  Bruno Haible  <bruno@clisp.org>
99092         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
99093         context.
99095 2007-10-21  Bruno Haible  <bruno@clisp.org>
99097         * tests/test-wcwidth.c (main): Allow negative result for some control
99098         characters.
99100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
99101         Needed on OSF/1 5.1.
99103 2007-10-21  Bruno Haible  <bruno@clisp.org>
99105         * tests/test-floorf1.c: Include isnanf.h.
99106         (main): Use isnanf() instead of isnan().
99107         * tests/test-ceilf1.c: Include isnanf.h.
99108         (main): Use isnanf() instead of isnan().
99109         * tests/test-truncf1.c: Include isnanf.h.
99110         (main): Use isnanf() instead of isnan().
99111         * tests/test-roundf1.c: Include isnanf.h.
99112         (main): Use isnanf() instead of isnan().
99114 2007-10-21  Eric Blake  <ebb9@byu.net>
99116         * users.txt: Update URL for m4.
99118 2007-10-21  Bruno Haible  <bruno@clisp.org>
99120         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
99122 2007-10-21  Bruno Haible  <bruno@clisp.org>
99124         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
99125         Git's management files if the CVS files are not present.
99127 2007-10-20  Bruno Haible  <bruno@clisp.org>
99129         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
99130         gcc-3.4.x.
99132 2007-10-20  Ben Pfaff  <blp@gnu.org>
99134         * lib/math.in.h: Declare round, roundf, roundl if we are providing
99135         implementations.
99136         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
99137         * lib/round.c: New file.
99138         * lib/roundf.c: New file.
99139         * lib/roundl.c: New file.
99140         * m4/round.m4: New file.
99141         * m4/roundf.m4: New file.
99142         * m4/roundl.m4: New file.
99143         * m4/check-libm-func-m4: New file.
99144         * modules/math: Replace round, roundf, roundl related @VARS@ in
99145         math.in.h.
99146         * modules/round: New file.
99147         * modules/round-tests: New file.
99148         * modules/roundf: New file.
99149         * modules/roundf-tests: New file.
99150         * modules/roundl: New file.
99151         * modules/roundl-tests: New file.
99152         * tests/test-round1.c: New file.
99153         * tests/test-round2.c: New file.
99154         * tests/test-roundf1.c: New file.
99155         * tests/test-roundf2.c: New file.
99156         * tests/test-roundl.c: New file.
99157         * doc/functions/round.texi: Mention round module.
99158         * doc/functions/roundf.texi: Mention roundf module.
99159         * doc/functions/roundl.texi: Mention roundl module.
99160         * MODULES.html.sh: Mention new modules.
99161         Thanks to Bruno Haible for suggestions.
99163 2007-10-20  Jim Meyering  <meyering@redhat.com>
99165         * lib/xprintf.c: Include <config.h> unconditionally.
99167         Change xprintf's license to GPL.
99168         * modules/xprintf (License): s/LGPL/GPL/, since this module
99169         depends on modules (exit and exitfail) which are GPL.
99170         Suggestion from Bruno Haible.
99172         xprintf fixes.
99173         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
99174         Use a clearer diagnostic.
99175         Patch from Bruno Haible.
99177 2007-10-20  Bruno Haible  <bruno@clisp.org>
99179         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
99180         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
99181         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99183 2007-10-20  Bruno Haible  <bruno@clisp.org>
99185         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
99186         precision in the comparison result > x - 1 or similar.
99187         * tests/test-ceilf2.c (correct_result_p): Likewise.
99188         * tests/test-truncf2.c (correct_result_p): Likewise.
99189         * tests/test-trunc2.c (correct_result_p): Likewise.
99190         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99192 2007-10-20  Bruno Haible  <bruno@clisp.org>
99194         * modules/ceil: New file.
99195         * m4/ceil.m4: New file.
99196         * doc/functions/ceil.texi: Mention the 'ceil' module.
99198 2007-10-20  Bruno Haible  <bruno@clisp.org>
99200         * modules/floor: New file.
99201         * m4/floor.m4: New file.
99202         * doc/functions/floor.texi: Mention the 'floor' module.
99204 2007-10-20  Bruno Haible  <bruno@clisp.org>
99206         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
99207         of %a.
99208         * modules/floorf-tests (Depends-on): Likewise.
99209         * modules/truncf-tests (Depends-on): Likewise.
99210         * modules/trunc-tests (Depends-on): Likewise.
99211         Reported by Ben Pfaff.
99213 2007-10-19  Jim Meyering  <meyering@redhat.com>
99215         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
99216         Don't bother testing specific errno values.  Just test ferror.
99218         New module: xprintf
99219         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
99221 2007-10-19  Bruno Haible  <bruno@clisp.org>
99223         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
99224         syntax.
99225         * modules/javaexec (Makefile.am): Likewise.
99226         * modules/relocatable-prog (Makefile.am): Likewise.
99227         Suggested by Jim Meyering.
99229 2007-10-18  Bruno Haible  <bruno@clisp.org>
99231         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
99232         Reported by Jim Meyering.
99234 2007-10-18  Eric Blake  <ebb9@byu.net>
99236         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
99238 2007-10-18  Bruno Haible  <bruno@clisp.org>
99240         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
99241         the format string into writable memory. Needed in Fortify conditions.
99243 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
99244             Bruno Haible  <bruno@clisp.org>
99246         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
99247         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
99248         * modules/trim (Depends-on): Add mbchar.
99249         (configure.ac): Add gl_FUNC_MBRTOWC.
99250         (Makefile.am): Augment lib_SOURCES.
99252 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
99254         Modify glob.c to use fstatat and dirfd, to simplify it.
99255         Suggested by Eric Blake.
99256         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
99257         Don't include <stdbool.h>; not used.
99258         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
99259         (link_exists_p): Simplify implementation, since we can now assume
99260         dirfd and fstatat.
99261         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
99263 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99265         * gnulib-tool (func_get_dependencies): Fix sed script to
99266         match only tests.
99268 2007-10-17  Bruno Haible  <bruno@clisp.org>
99270         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
99271         allow locale names without encoding suffix.
99272         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
99273         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
99275 2007-10-16  Bruno Haible  <bruno@clisp.org>
99277         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
99278         * lib/getgroups.c (getgroups): Likewise.
99279         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
99281 2007-10-16  Bruno Haible  <bruno@clisp.org>
99283         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
99284         * modules/malloc-posix (License): Likewise.
99285         * modules/realloc-posix (License): Likewise.
99286         * modules/calloc-posix (License): Likewise.
99287         * modules/intprops (License): Change from GPL to LGPL, with
99288         Paul Eggert's approval.
99290 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99292         Merge glibc changes into lib/glob.c.
99294         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
99295         2007-10-15 04:59:03 UTC.  Here are the changes:
99297         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
99299         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
99301         * lib/glob.c: Add some branch prediction throughout.
99303         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
99305         [BZ #5103]
99306         * lib/glob.c (glob): Recognize patterns starting \/.
99308         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
99310         [BZ #3996]
99311         * lib/glob.c (attribute_hidden): Define if not defined.
99312         (glob): Unescape dirname, filename or username when needed and not
99313         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
99314         is NULL.  Handle unescaped [ in pattern without closing ].
99315         Don't pass GLOB_CHECK down to recursive glob for directories.
99316         (__glob_pattern_type): New function.
99317         (__glob_pattern_p): Implement using __glob_pattern_type.
99318         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
99319         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
99320         Remove unreachable code.
99322         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
99324         * lib/glob.c (glob_in_dir): Add some comments and asserts to
99325         explain why there are no leaks.
99327         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
99329         [BZ #3253]
99330         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
99331         time, rather allocate increasingly bigger arrays of pointers, if
99332         possible with alloca, if too large with malloc.
99334 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99336         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
99337         Problem reported by H.Merijn Brand in
99338         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
99339         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
99340         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
99342 2007-10-15  Bruno Haible  <bruno@clisp.org>
99344         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
99345         with explicit rpl_ prefix.
99346         * lib/fopen.c (fopen): Likewise.
99347         * lib/freopen.c (freopen): Likewise.
99348         * lib/iconv.c (iconv): Likewise.
99349         * lib/iconv_close.c (iconv_close): Likewise.
99351 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99353         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
99355 2007-10-15  Bruno Haible  <bruno@clisp.org>
99357         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
99358         <stddef.h> instead of <stdlib.h> since we only need NULL.
99359         Reported by Ben Pfaff <blp@cs.stanford.edu>.
99361 2007-10-15  Bruno Haible  <bruno@clisp.org>
99363         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
99364         Replace paragraph talking about LIBOBJS.
99365         Reported by Colin Watson <cjwatson@debian.org>.
99367 2007-10-15  Bruno Haible  <bruno@clisp.org>
99369         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
99370         <stdlib.h> before using NULL.
99372 2007-10-15  Simon Josefsson  <simon@josefsson.org>
99374         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
99375         Reported by Albert Chin <china@thewrittenword.com>.
99377 2007-10-14  Bruno Haible  <bruno@clisp.org>
99379         * modules/iconv_open-utf-tests: New file.
99380         * tests/test-iconv-utf.c: New file.
99382         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
99383         * modules/iconv_open-utf: New file.
99384         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
99385         (iconv, iconv_close): New declarations.
99386         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
99387         be defined.
99388         (iconv_open): Add special handling of conversion between UTF-8 and
99389         UTF-{16,32}{BE,LE}.
99390         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
99391         * lib/iconv_close.c: New file.
99392         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
99393         gl_FUNC_ICONV_OPEN.
99394         (gl_FUNC_ICONV_OPEN): Use it.
99395         (gl_FUNC_ICONV_OPEN_UTF): New macro.
99396         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
99397         and REPLACE_ICONV_UTF.
99398         * modules/iconv_open (Depends-on): Add c-strcase.
99399         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
99400         ICONV_CONST.
99401         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
99403 2007-10-13  Albert Chin  <china@thewrittenword.com>
99404             Bruno Haible  <bruno@clisp.org>
99406         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
99407         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
99409 2007-10-13  Bruno Haible  <bruno@clisp.org>
99411         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
99412         defined, use the ISO C99 inline semantics.
99413         * lib/argp.h (ARGP_EI): Likewise.
99415 2007-10-13  Bruno Haible  <bruno@clisp.org>
99417         Handle 'inline' change in gcc 4.3.0.
99418         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
99419         argp_fmtstream_write, argp_fmtstream_set_lmargin,
99420         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
99421         argp_fmtstream_point): Disable 'extern' declaration if the function
99422         definition is going to be provided inline.
99423         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
99424         semantics, not the ISO C99 inline semantics.
99425         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
99426         'extern' declaration if the function definition is going to be provided
99427         inline.
99428         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
99429         the GNU C inline semantics, not the ISO C99 inline semantics. With
99430         GCC 4.2, avoid a warning.
99432 2007-10-13  Bruno Haible  <bruno@clisp.org>
99434         * lib/freading.h (freading): Enable the use of __freading for
99435         glibc >= 2.7.
99436         * lib/freading.c (freading): Likewise.
99438 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
99440         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
99441         "warning: C99 inline functions are not supported; using GNU89".
99443 2007-10-12  Bruno Haible  <bruno@clisp.org>
99445         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
99446         of 2.
99447         * tests/test-ceilf2.c: New file.
99448         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
99450         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
99451         * modules/ceilf-tests: Update.
99453 2007-10-12  Bruno Haible  <bruno@clisp.org>
99455         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
99456         of 2.
99457         * tests/test-floorf2.c: New file.
99458         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
99460         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
99461         * modules/floorf-tests: Update.
99463 2007-10-12  Bruno Haible  <bruno@clisp.org>
99465         * tests/test-trunc2.c: New file.
99466         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
99468         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
99469         * modules/trunc-tests: Update.
99471 2007-10-12  Bruno Haible  <bruno@clisp.org>
99473         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
99474         of 2.
99475         * tests/test-truncf2.c: New file.
99476         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
99478         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
99479         * modules/truncf-tests: Update.
99481 2007-10-11  Eric Blake  <ebb9@byu.net>
99483         Don't claim strerror is broken on Interix.
99484         * doc/functions/strerror.texi (strerror): Known broken systems are
99485         now Solaris 8, and not Interix.
99486         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
99487         Interix on cross-compile.
99488         Reported by Martin Koeppe in
99489         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
99491 2007-10-11  Bruno Haible  <bruno@clisp.org>
99493         * modules/i-ring-tests: New file.
99494         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
99495         instead of assert.
99497 2007-10-11  Bruno Haible  <bruno@clisp.org>
99499         * modules/filenamecat-tests: New file.
99500         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
99501         * lib/filenamecat.c: Remove test code.
99503 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
99505         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
99507         * lib/strerror.c: Include <string.h> always, to test interface,
99508         and to remove the need for the dummy.
99509         Include intprops.h to compute width instead of doing it ourselves
99510         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
99511         (strerror): Define it to return NULL if there's no system strerror.
99512         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
99513         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
99514         ancient pre-strerror Unix systems well any more.  Saying "unknown
99515         system error" is enough.
99516         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
99517         simpler strerror.c implementation.
99518         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
99519         Simplify the tests to reflect the simpler strerror implementation.
99520         * modules/strerror (Depends-on): Add intprops.
99522 2007-10-09  Eric Blake  <ebb9@byu.net>
99524         Silence test-fpending.
99525         * modules/fpending-tests (Files): Add wrapper script.
99526         * tests/test-fpending.sh: New file.
99528 2007-10-09  Bruno Haible  <bruno@clisp.org>
99530         * MODULES.html.sh (func_module): Don't create a hyperlink for
99531         function names like 'printf_frexp'.
99532         (Misc): Add crc, memxor.
99533         (Characteristics of floating types): New section.
99534         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
99535         isnanf-nolibm, signbit, trunc, truncf, truncl.
99536         (Enhancements for ISO C 99 functions): New subsection Input/output.
99537         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
99538         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
99539         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
99540         (Compatibility checks for POSIX:2001 functions): Add clock-time.
99541         (Enhancements for POSIX:2001 functions): Add chdir-long.
99542         (File system functions): Add areadlink, chdir-safer, read-file.
99543         Remove cycle-check.
99544         (File system as inode set): New section.
99545         (Date and time): Add gethrxtime.
99546         (Multithreading): Add openmp.
99547         (Internationalization functions): Add localename.
99548         (Unicode string functions): Add unistr/u*-mbsnlen.
99549         (Support for maintaining and releasing projects): Add git-version-gen.
99550         (Lone files): Remove directories.
99552 2007-10-08  Ben Pfaff  <blp@gnu.org>
99554         * lib/xmalloca.h: Fix typo in comment.
99556 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
99558         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
99559         when avoiding problems with integer overflow.  Use a portable test
99560         instead.
99562 2007-10-08  Simon Josefsson  <simon@josefsson.org>
99564         * modules/dummy (License): Change to LGPLv2+.
99565         * modules/float (License): Likewise
99566         * modules/realloc (License): Likewise
99567         * modules/stdlib (License): Likewise
99569 2007-10-07  Bruno Haible  <bruno@clisp.org>
99571         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
99572         * floor.c (TWO_MANT_DIG): Likewise.
99573         * ceil.c (TWO_MANT_DIG): Likewise.
99574         Reported by Ben Pfaff.
99576 2007-10-07  Bruno Haible  <bruno@clisp.org>
99578         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
99579         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
99580         * lib/frexp.c (FUNC): Likewise.
99581         * lib/printf-frexp.h (printf_frexp): Likewise.
99582         * lib/printf-frexpl.h (printf_frexpl): Likewise.
99583         * lib/printf-frexp.c (FUNC): Likewise.
99584         Suggested by Jim Meyering.
99586 2007-10-07  Jim Meyering  <meyering@redhat.com>
99588         Make xnanosleep's integer overflow test more robust.
99589         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
99590         so that gcc-4.3.0 doesn't optimize away this test for overflow.
99592 2007-10-07  Bruno Haible  <bruno@clisp.org>
99594         * NEWS: Mention the license change.
99596         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
99597         abbreviations in the modules files.
99599         Change copyright notice from GPLv2+ to GPLv3+.
99600         * README: Change copyright notice.
99601         * MODULES.html.sh: Likewise.
99602         * build-aux/bootstrap.conf: Likewise.
99603         * build-aux/config.libpath: Likewise.
99604         * build-aux/csharpcomp.sh.in: Likewise.
99605         * build-aux/csharpexec.sh.in: Likewise.
99606         * build-aux/install-reloc: Likewise.
99607         * build-aux/javacomp.sh.in: Likewise.
99608         * build-aux/javaexec.sh.in: Likewise.
99609         * build-aux/ldd.sh.in: Likewise.
99610         * build-aux/reloc-ldflags: Likewise.
99611         * build-aux/relocatable.sh.in: Likewise.
99612         * build-aux/x-to-1.in: Likewise.
99613         * check-module: Likewise.
99614         * config/srclistvars.sh: Likewise.
99615         * gnulib-tool: Likewise.
99616         * lib/acl-internal.h: Likewise.
99617         * lib/acl.c: Likewise.
99618         * lib/acl.h: Likewise.
99619         * lib/acl_entries.c: Likewise.
99620         * lib/areadlink-with-size.c: Likewise.
99621         * lib/areadlink.c: Likewise.
99622         * lib/areadlink.h: Likewise.
99623         * lib/argmatch.c: Likewise.
99624         * lib/argmatch.h: Likewise.
99625         * lib/argp-ba.c: Likewise.
99626         * lib/argp-eexst.c: Likewise.
99627         * lib/argp-fmtstream.c: Likewise.
99628         * lib/argp-fmtstream.h: Likewise.
99629         * lib/argp-fs-xinl.c: Likewise.
99630         * lib/argp-help.c: Likewise.
99631         * lib/argp-namefrob.h: Likewise.
99632         * lib/argp-parse.c: Likewise.
99633         * lib/argp-pin.c: Likewise.
99634         * lib/argp-pv.c: Likewise.
99635         * lib/argp-pvh.c: Likewise.
99636         * lib/argp-xinl.c: Likewise.
99637         * lib/argp.h: Likewise.
99638         * lib/at-func.c: Likewise.
99639         * lib/atanl.c: Likewise.
99640         * lib/backupfile.c: Likewise.
99641         * lib/backupfile.h: Likewise.
99642         * lib/basename.c: Likewise.
99643         * lib/binary-io.h: Likewise.
99644         * lib/byteswap.in.h: Likewise.
99645         * lib/c-stack.c: Likewise.
99646         * lib/c-stack.h: Likewise.
99647         * lib/c-strcasestr.c: Likewise.
99648         * lib/c-strcasestr.h: Likewise.
99649         * lib/c-strstr.c: Likewise.
99650         * lib/c-strstr.h: Likewise.
99651         * lib/c-strtod.c: Likewise.
99652         * lib/calloc.c: Likewise.
99653         * lib/canon-host.c: Likewise.
99654         * lib/canon-host.h: Likewise.
99655         * lib/canonicalize-lgpl.c: Likewise.
99656         * lib/canonicalize.c: Likewise.
99657         * lib/canonicalize.h: Likewise.
99658         * lib/ceil.c: Likewise.
99659         * lib/ceilf.c: Likewise.
99660         * lib/ceill.c: Likewise.
99661         * lib/chdir-long.c: Likewise.
99662         * lib/chdir-long.h: Likewise.
99663         * lib/chdir-safer.c: Likewise.
99664         * lib/chdir-safer.h: Likewise.
99665         * lib/chown.c: Likewise.
99666         * lib/classpath.c: Likewise.
99667         * lib/classpath.h: Likewise.
99668         * lib/clean-temp.c: Likewise.
99669         * lib/clean-temp.h: Likewise.
99670         * lib/cloexec.c: Likewise.
99671         * lib/close-stream.c: Likewise.
99672         * lib/closein.c: Likewise.
99673         * lib/closein.h: Likewise.
99674         * lib/closeout.c: Likewise.
99675         * lib/closeout.h: Likewise.
99676         * lib/concat-filename.c: Likewise.
99677         * lib/copy-file.c: Likewise.
99678         * lib/copy-file.h: Likewise.
99679         * lib/count-one-bits.h: Likewise.
99680         * lib/crc.c: Likewise.
99681         * lib/crc.h: Likewise.
99682         * lib/creat-safer.c: Likewise.
99683         * lib/csharpcomp.c: Likewise.
99684         * lib/csharpcomp.h: Likewise.
99685         * lib/csharpexec.c: Likewise.
99686         * lib/csharpexec.h: Likewise.
99687         * lib/cycle-check.c: Likewise.
99688         * lib/cycle-check.h: Likewise.
99689         * lib/diacrit.c: Likewise.
99690         * lib/diacrit.h: Likewise.
99691         * lib/diffseq.h: Likewise.
99692         * lib/dirchownmod.c: Likewise.
99693         * lib/dirent.in.h: Likewise.
99694         * lib/dirfd.c: Likewise.
99695         * lib/dirfd.h: Likewise.
99696         * lib/dirname.c: Likewise.
99697         * lib/dirname.h: Likewise.
99698         * lib/dummy.c: Likewise.
99699         * lib/dup-safer.c: Likewise.
99700         * lib/dup2.c: Likewise.
99701         * lib/eealloc.h: Likewise.
99702         * lib/error.c: Likewise.
99703         * lib/error.h: Likewise.
99704         * lib/euidaccess.c: Likewise.
99705         * lib/exclude.c: Likewise.
99706         * lib/exclude.h: Likewise.
99707         * lib/execute.c: Likewise.
99708         * lib/execute.h: Likewise.
99709         * lib/exitfail.c: Likewise.
99710         * lib/exitfail.h: Likewise.
99711         * lib/expl.c: Likewise.
99712         * lib/fatal-signal.c: Likewise.
99713         * lib/fatal-signal.h: Likewise.
99714         * lib/fbufmode.c: Likewise.
99715         * lib/fbufmode.h: Likewise.
99716         * lib/fchdir.c: Likewise.
99717         * lib/fchmodat.c: Likewise.
99718         * lib/fchownat.c: Likewise.
99719         * lib/fcntl--.h: Likewise.
99720         * lib/fcntl-safer.h: Likewise.
99721         * lib/fcntl.in.h: Likewise.
99722         * lib/fd-safer.c: Likewise.
99723         * lib/fflush.c: Likewise.
99724         * lib/file-has-acl.c: Likewise.
99725         * lib/file-set.c: Likewise.
99726         * lib/file-type.c: Likewise.
99727         * lib/file-type.h: Likewise.
99728         * lib/fileblocks.c: Likewise.
99729         * lib/filemode.c: Likewise.
99730         * lib/filemode.h: Likewise.
99731         * lib/filename.h: Likewise.
99732         * lib/filenamecat.c: Likewise.
99733         * lib/filenamecat.h: Likewise.
99734         * lib/findprog.c: Likewise.
99735         * lib/findprog.h: Likewise.
99736         * lib/float.in.h: Likewise.
99737         * lib/floor.c: Likewise.
99738         * lib/floorf.c: Likewise.
99739         * lib/floorl.c: Likewise.
99740         * lib/fopen-safer.c: Likewise.
99741         * lib/fopen.c: Likewise.
99742         * lib/fpending.c: Likewise.
99743         * lib/fpending.h: Likewise.
99744         * lib/fprintf.c: Likewise.
99745         * lib/fprintftime.h: Likewise.
99746         * lib/fpucw.h: Likewise.
99747         * lib/fpurge.c: Likewise.
99748         * lib/fpurge.h: Likewise.
99749         * lib/freadable.c: Likewise.
99750         * lib/freadable.h: Likewise.
99751         * lib/freadahead.c: Likewise.
99752         * lib/freadahead.h: Likewise.
99753         * lib/freading.c: Likewise.
99754         * lib/freading.h: Likewise.
99755         * lib/free.c: Likewise.
99756         * lib/freopen.c: Likewise.
99757         * lib/frexp.c: Likewise.
99758         * lib/frexpl.c: Likewise.
99759         * lib/fseek.c: Likewise.
99760         * lib/fseterr.c: Likewise.
99761         * lib/fseterr.h: Likewise.
99762         * lib/fstatat.c: Likewise.
99763         * lib/fstrcmp.c: Likewise.
99764         * lib/fstrcmp.h: Likewise.
99765         * lib/fsusage.c: Likewise.
99766         * lib/fsusage.h: Likewise.
99767         * lib/ftell.c: Likewise.
99768         * lib/ftello.c: Likewise.
99769         * lib/fts-cycle.c: Likewise.
99770         * lib/fts.c: Likewise.
99771         * lib/fts_.h: Likewise.
99772         * lib/full-read.c: Likewise.
99773         * lib/full-read.h: Likewise.
99774         * lib/full-write.c: Likewise.
99775         * lib/full-write.h: Likewise.
99776         * lib/fwritable.c: Likewise.
99777         * lib/fwritable.h: Likewise.
99778         * lib/fwriteerror.c: Likewise.
99779         * lib/fwriteerror.h: Likewise.
99780         * lib/fwriting.c: Likewise.
99781         * lib/fwriting.h: Likewise.
99782         * lib/gcd.c: Likewise.
99783         * lib/gcd.h: Likewise.
99784         * lib/getcwd.c: Likewise.
99785         * lib/getdate.h: Likewise.
99786         * lib/getdate.y: Likewise.
99787         * lib/getdomainname.c: Likewise.
99788         * lib/getdomainname.h: Likewise.
99789         * lib/getgroups.c: Likewise.
99790         * lib/gethostname.c: Likewise.
99791         * lib/gethrxtime.c: Likewise.
99792         * lib/gethrxtime.h: Likewise.
99793         * lib/getloadavg.c: Likewise.
99794         * lib/getndelim2.c: Likewise.
99795         * lib/getndelim2.h: Likewise.
99796         * lib/getnline.c: Likewise.
99797         * lib/getnline.h: Likewise.
99798         * lib/getopt.c: Likewise.
99799         * lib/getopt.in.h: Likewise.
99800         * lib/getopt1.c: Likewise.
99801         * lib/getopt_int.h: Likewise.
99802         * lib/getpagesize.h: Likewise.
99803         * lib/getsubopt.c: Likewise.
99804         * lib/gettime.c: Likewise.
99805         * lib/getugroups.c: Likewise.
99806         * lib/getugroups.h: Likewise.
99807         * lib/getusershell.c: Likewise.
99808         * lib/gl_anyavltree_list1.h: Likewise.
99809         * lib/gl_anyavltree_list2.h: Likewise.
99810         * lib/gl_anyhash_list1.h: Likewise.
99811         * lib/gl_anyhash_list2.h: Likewise.
99812         * lib/gl_anylinked_list1.h: Likewise.
99813         * lib/gl_anylinked_list2.h: Likewise.
99814         * lib/gl_anyrbtree_list1.h: Likewise.
99815         * lib/gl_anyrbtree_list2.h: Likewise.
99816         * lib/gl_anytree_list1.h: Likewise.
99817         * lib/gl_anytree_list2.h: Likewise.
99818         * lib/gl_anytree_oset.h: Likewise.
99819         * lib/gl_anytreehash_list1.h: Likewise.
99820         * lib/gl_anytreehash_list2.h: Likewise.
99821         * lib/gl_array_list.c: Likewise.
99822         * lib/gl_array_list.h: Likewise.
99823         * lib/gl_array_oset.c: Likewise.
99824         * lib/gl_array_oset.h: Likewise.
99825         * lib/gl_avltree_list.c: Likewise.
99826         * lib/gl_avltree_list.h: Likewise.
99827         * lib/gl_avltree_oset.c: Likewise.
99828         * lib/gl_avltree_oset.h: Likewise.
99829         * lib/gl_avltreehash_list.c: Likewise.
99830         * lib/gl_avltreehash_list.h: Likewise.
99831         * lib/gl_carray_list.c: Likewise.
99832         * lib/gl_carray_list.h: Likewise.
99833         * lib/gl_linked_list.c: Likewise.
99834         * lib/gl_linked_list.h: Likewise.
99835         * lib/gl_linkedhash_list.c: Likewise.
99836         * lib/gl_linkedhash_list.h: Likewise.
99837         * lib/gl_list.c: Likewise.
99838         * lib/gl_list.h: Likewise.
99839         * lib/gl_oset.c: Likewise.
99840         * lib/gl_oset.h: Likewise.
99841         * lib/gl_rbtree_list.c: Likewise.
99842         * lib/gl_rbtree_list.h: Likewise.
99843         * lib/gl_rbtree_oset.c: Likewise.
99844         * lib/gl_rbtree_oset.h: Likewise.
99845         * lib/gl_rbtreehash_list.c: Likewise.
99846         * lib/gl_rbtreehash_list.h: Likewise.
99847         * lib/gl_sublist.c: Likewise.
99848         * lib/gl_sublist.h: Likewise.
99849         * lib/group-member.c: Likewise.
99850         * lib/group-member.h: Likewise.
99851         * lib/hard-locale.c: Likewise.
99852         * lib/hard-locale.h: Likewise.
99853         * lib/hash-pjw.c: Likewise.
99854         * lib/hash-pjw.h: Likewise.
99855         * lib/hash-triple.c: Likewise.
99856         * lib/hash.c: Likewise.
99857         * lib/hash.h: Likewise.
99858         * lib/human.c: Likewise.
99859         * lib/human.h: Likewise.
99860         * lib/i-ring.c: Likewise.
99861         * lib/i-ring.h: Likewise.
99862         * lib/idcache.c: Likewise.
99863         * lib/imaxabs.c: Likewise.
99864         * lib/imaxdiv.c: Likewise.
99865         * lib/inet_pton.c: Likewise.
99866         * lib/inet_pton.h: Likewise.
99867         * lib/intprops.h: Likewise.
99868         * lib/inttostr.c: Likewise.
99869         * lib/inttostr.h: Likewise.
99870         * lib/inttypes.in.h: Likewise.
99871         * lib/isapipe.c: Likewise.
99872         * lib/isdir.c: Likewise.
99873         * lib/isnan.c: Likewise.
99874         * lib/isnan.h: Likewise.
99875         * lib/isnanf.c: Likewise.
99876         * lib/isnanf.h: Likewise.
99877         * lib/isnanl-nolibm.h: Likewise.
99878         * lib/isnanl.c: Likewise.
99879         * lib/isnanl.h: Likewise.
99880         * lib/javacomp.c: Likewise.
99881         * lib/javacomp.h: Likewise.
99882         * lib/javaexec.c: Likewise.
99883         * lib/javaexec.h: Likewise.
99884         * lib/javaversion.c: Likewise.
99885         * lib/javaversion.h: Likewise.
99886         * lib/javaversion.java: Likewise.
99887         * lib/lbrkprop.h: Likewise.
99888         * lib/lchmod.h: Likewise.
99889         * lib/lchown.c: Likewise.
99890         * lib/ldexpl.c: Likewise.
99891         * lib/linebreak.c: Likewise.
99892         * lib/linebreak.h: Likewise.
99893         * lib/linebuffer.c: Likewise.
99894         * lib/linebuffer.h: Likewise.
99895         * lib/locale.in.h: Likewise.
99896         * lib/logl.c: Likewise.
99897         * lib/long-options.c: Likewise.
99898         * lib/long-options.h: Likewise.
99899         * lib/lstat.c: Likewise.
99900         * lib/lstat.h: Likewise.
99901         * lib/math.in.h: Likewise.
99902         * lib/mbchar.c: Likewise.
99903         * lib/mbchar.h: Likewise.
99904         * lib/mbfile.h: Likewise.
99905         * lib/mbiter.h: Likewise.
99906         * lib/mbscasecmp.c: Likewise.
99907         * lib/mbscasestr.c: Likewise.
99908         * lib/mbschr.c: Likewise.
99909         * lib/mbscspn.c: Likewise.
99910         * lib/mbslen.c: Likewise.
99911         * lib/mbsncasecmp.c: Likewise.
99912         * lib/mbsnlen.c: Likewise.
99913         * lib/mbspbrk.c: Likewise.
99914         * lib/mbspcasecmp.c: Likewise.
99915         * lib/mbsrchr.c: Likewise.
99916         * lib/mbssep.c: Likewise.
99917         * lib/mbsspn.c: Likewise.
99918         * lib/mbsstr.c: Likewise.
99919         * lib/mbstok_r.c: Likewise.
99920         * lib/mbswidth.c: Likewise.
99921         * lib/mbswidth.h: Likewise.
99922         * lib/mbuiter.h: Likewise.
99923         * lib/memcasecmp.c: Likewise.
99924         * lib/memcasecmp.h: Likewise.
99925         * lib/memchr.c: Likewise.
99926         * lib/memcmp.c: Likewise.
99927         * lib/memcoll.c: Likewise.
99928         * lib/memcoll.h: Likewise.
99929         * lib/memcpy.c: Likewise.
99930         * lib/memrchr.c: Likewise.
99931         * lib/mkancesdirs.c: Likewise.
99932         * lib/mkdir-p.c: Likewise.
99933         * lib/mkdir-p.h: Likewise.
99934         * lib/mkdir.c: Likewise.
99935         * lib/mkdirat.c: Likewise.
99936         * lib/mkdtemp.c: Likewise.
99937         * lib/mkstemp-safer.c: Likewise.
99938         * lib/mkstemp.c: Likewise.
99939         * lib/modechange.c: Likewise.
99940         * lib/modechange.h: Likewise.
99941         * lib/mountlist.c: Likewise.
99942         * lib/mountlist.h: Likewise.
99943         * lib/mpsort.c: Likewise.
99944         * lib/nanosleep.c: Likewise.
99945         * lib/obstack.c: Likewise.
99946         * lib/obstack.h: Likewise.
99947         * lib/open-safer.c: Likewise.
99948         * lib/open.c: Likewise.
99949         * lib/openat-die.c: Likewise.
99950         * lib/openat-priv.h: Likewise.
99951         * lib/openat-proc.c: Likewise.
99952         * lib/openat.c: Likewise.
99953         * lib/openat.h: Likewise.
99954         * lib/pagealign_alloc.c: Likewise.
99955         * lib/pagealign_alloc.h: Likewise.
99956         * lib/physmem.c: Likewise.
99957         * lib/physmem.h: Likewise.
99958         * lib/pipe-safer.c: Likewise.
99959         * lib/pipe.c: Likewise.
99960         * lib/pipe.h: Likewise.
99961         * lib/posixtm.c: Likewise.
99962         * lib/posixtm.h: Likewise.
99963         * lib/posixver.c: Likewise.
99964         * lib/printf-frexp.c: Likewise.
99965         * lib/printf-frexp.h: Likewise.
99966         * lib/printf-frexpl.c: Likewise.
99967         * lib/printf-frexpl.h: Likewise.
99968         * lib/printf.c: Likewise.
99969         * lib/progname.c: Likewise.
99970         * lib/progname.h: Likewise.
99971         * lib/progreloc.c: Likewise.
99972         * lib/putenv.c: Likewise.
99973         * lib/quote.c: Likewise.
99974         * lib/quote.h: Likewise.
99975         * lib/quotearg.c: Likewise.
99976         * lib/quotearg.h: Likewise.
99977         * lib/raise.c: Likewise.
99978         * lib/readline.c: Likewise.
99979         * lib/readline.h: Likewise.
99980         * lib/readlink.c: Likewise.
99981         * lib/readtokens.c: Likewise.
99982         * lib/readtokens.h: Likewise.
99983         * lib/readtokens0.c: Likewise.
99984         * lib/readtokens0.h: Likewise.
99985         * lib/readutmp.c: Likewise.
99986         * lib/readutmp.h: Likewise.
99987         * lib/realloc.c: Likewise.
99988         * lib/relocwrapper.c: Likewise.
99989         * lib/rename-dest-slash.c: Likewise.
99990         * lib/rename.c: Likewise.
99991         * lib/rmdir.c: Likewise.
99992         * lib/rpmatch.c: Likewise.
99993         * lib/safe-read.c: Likewise.
99994         * lib/safe-read.h: Likewise.
99995         * lib/safe-write.c: Likewise.
99996         * lib/safe-write.h: Likewise.
99997         * lib/same-inode.h: Likewise.
99998         * lib/same.c: Likewise.
99999         * lib/same.h: Likewise.
100000         * lib/save-cwd.c: Likewise.
100001         * lib/save-cwd.h: Likewise.
100002         * lib/savedir.c: Likewise.
100003         * lib/savedir.h: Likewise.
100004         * lib/savewd.c: Likewise.
100005         * lib/savewd.h: Likewise.
100006         * lib/search.in.h: Likewise.
100007         * lib/setenv.c: Likewise.
100008         * lib/setenv.h: Likewise.
100009         * lib/settime.c: Likewise.
100010         * lib/sh-quote.c: Likewise.
100011         * lib/sh-quote.h: Likewise.
100012         * lib/sig2str.c: Likewise.
100013         * lib/sig2str.h: Likewise.
100014         * lib/signal.in.h: Likewise.
100015         * lib/signbitd.c: Likewise.
100016         * lib/signbitf.c: Likewise.
100017         * lib/signbitl.c: Likewise.
100018         * lib/sigprocmask.c: Likewise.
100019         * lib/sincosl.c: Likewise.
100020         * lib/sleep.c: Likewise.
100021         * lib/sprintf.c: Likewise.
100022         * lib/sqrtl.c: Likewise.
100023         * lib/stat-time.h: Likewise.
100024         * lib/stdio--.h: Likewise.
100025         * lib/stdio-safer.h: Likewise.
100026         * lib/stdlib--.h: Likewise.
100027         * lib/stdlib-safer.h: Likewise.
100028         * lib/stdlib.in.h: Likewise.
100029         * lib/stpcpy.c: Likewise.
100030         * lib/stpncpy.c: Likewise.
100031         * lib/strchrnul.c: Likewise.
100032         * lib/strcspn.c: Likewise.
100033         * lib/strerror.c: Likewise.
100034         * lib/strftime.c: Likewise.
100035         * lib/strftime.h: Likewise.
100036         * lib/striconveh.c: Likewise.
100037         * lib/striconveh.h: Likewise.
100038         * lib/striconveha.c: Likewise.
100039         * lib/striconveha.h: Likewise.
100040         * lib/stripslash.c: Likewise.
100041         * lib/strnlen1.c: Likewise.
100042         * lib/strnlen1.h: Likewise.
100043         * lib/strtod.c: Likewise.
100044         * lib/strtoimax.c: Likewise.
100045         * lib/strtok_r.c: Likewise.
100046         * lib/strtol.c: Likewise.
100047         * lib/strtoll.c: Likewise.
100048         * lib/strtoul.c: Likewise.
100049         * lib/strtoull.c: Likewise.
100050         * lib/sysexits.in.h: Likewise.
100051         * lib/tempname.c: Likewise.
100052         * lib/tempname.h: Likewise.
100053         * lib/timespec.h: Likewise.
100054         * lib/tls.c: Likewise.
100055         * lib/tls.h: Likewise.
100056         * lib/tmpdir.c: Likewise.
100057         * lib/tmpdir.h: Likewise.
100058         * lib/tmpfile-safer.c: Likewise.
100059         * lib/tmpfile.c: Likewise.
100060         * lib/trigl.c: Likewise.
100061         * lib/trigl.h: Likewise.
100062         * lib/trim.c: Likewise.
100063         * lib/trim.h: Likewise.
100064         * lib/trunc.c: Likewise.
100065         * lib/truncf.c: Likewise.
100066         * lib/truncl.c: Likewise.
100067         * lib/tsearch.c: Likewise.
100068         * lib/unicodeio.c: Likewise.
100069         * lib/unicodeio.h: Likewise.
100070         * lib/unistd--.h: Likewise.
100071         * lib/unistd-safer.h: Likewise.
100072         * lib/unistdio/ulc-fprintf.c: Likewise.
100073         * lib/unistdio/ulc-vfprintf.c: Likewise.
100074         * lib/unlinkdir.c: Likewise.
100075         * lib/unlinkdir.h: Likewise.
100076         * lib/unlocked-io.h: Likewise.
100077         * lib/unsetenv.c: Likewise.
100078         * lib/userspec.c: Likewise.
100079         * lib/utime.c: Likewise.
100080         * lib/utimecmp.c: Likewise.
100081         * lib/utimecmp.h: Likewise.
100082         * lib/utimens.c: Likewise.
100083         * lib/verify.h: Likewise.
100084         * lib/verror.c: Likewise.
100085         * lib/verror.h: Likewise.
100086         * lib/version-etc-fsf.c: Likewise.
100087         * lib/version-etc.c: Likewise.
100088         * lib/version-etc.h: Likewise.
100089         * lib/vfprintf.c: Likewise.
100090         * lib/vprintf.c: Likewise.
100091         * lib/vsprintf.c: Likewise.
100092         * lib/w32spawn.h: Likewise.
100093         * lib/wait-process.c: Likewise.
100094         * lib/wait-process.h: Likewise.
100095         * lib/wcwidth.c: Likewise.
100096         * lib/write-any-file.c: Likewise.
100097         * lib/xalloc-die.c: Likewise.
100098         * lib/xalloc.h: Likewise.
100099         * lib/xasprintf.c: Likewise.
100100         * lib/xgetcwd.c: Likewise.
100101         * lib/xgetcwd.h: Likewise.
100102         * lib/xgetdomainname.c: Likewise.
100103         * lib/xgetdomainname.h: Likewise.
100104         * lib/xgethostname.c: Likewise.
100105         * lib/xmalloc.c: Likewise.
100106         * lib/xmalloca.c: Likewise.
100107         * lib/xmalloca.h: Likewise.
100108         * lib/xmemcoll.c: Likewise.
100109         * lib/xnanosleep.c: Likewise.
100110         * lib/xreadlink.c: Likewise.
100111         * lib/xreadlink.h: Likewise.
100112         * lib/xsetenv.c: Likewise.
100113         * lib/xsetenv.h: Likewise.
100114         * lib/xstriconv.c: Likewise.
100115         * lib/xstriconv.h: Likewise.
100116         * lib/xstrndup.c: Likewise.
100117         * lib/xstrndup.h: Likewise.
100118         * lib/xstrtod.c: Likewise.
100119         * lib/xstrtod.h: Likewise.
100120         * lib/xstrtol-error.c: Likewise.
100121         * lib/xstrtol.c: Likewise.
100122         * lib/xstrtol.h: Likewise.
100123         * lib/xtime.h: Likewise.
100124         * lib/xvasprintf.c: Likewise.
100125         * lib/xvasprintf.h: Likewise.
100126         * lib/yesno.c: Likewise.
100127         * lib/yesno.h: Likewise.
100128         * posix-modules: Likewise.
100129         * tests/test-alloca-opt.c: Likewise.
100130         * tests/test-arcfour.c: Likewise.
100131         * tests/test-arctwo.c: Likewise.
100132         * tests/test-argmatch.c: Likewise.
100133         * tests/test-argp-2.sh: Likewise.
100134         * tests/test-argp.c: Likewise.
100135         * tests/test-arpa_inet.c: Likewise.
100136         * tests/test-array_list.c: Likewise.
100137         * tests/test-array_oset.c: Likewise.
100138         * tests/test-atexit.c: Likewise.
100139         * tests/test-avltree_list.c: Likewise.
100140         * tests/test-avltree_oset.c: Likewise.
100141         * tests/test-avltreehash_list.c: Likewise.
100142         * tests/test-base64.c: Likewise.
100143         * tests/test-binary-io.c: Likewise.
100144         * tests/test-byteswap.c: Likewise.
100145         * tests/test-c-ctype.c: Likewise.
100146         * tests/test-c-strcasecmp.c: Likewise.
100147         * tests/test-c-strcasestr.c: Likewise.
100148         * tests/test-c-strncasecmp.c: Likewise.
100149         * tests/test-c-strstr.c: Likewise.
100150         * tests/test-canonicalize-lgpl.c: Likewise.
100151         * tests/test-canonicalize.c: Likewise.
100152         * tests/test-carray_list.c: Likewise.
100153         * tests/test-ceilf.c: Likewise.
100154         * tests/test-ceill.c: Likewise.
100155         * tests/test-count-one-bits.c: Likewise.
100156         * tests/test-crc.c: Likewise.
100157         * tests/test-dirname.c: Likewise.
100158         * tests/test-fbufmode.c: Likewise.
100159         * tests/test-fcntl.c: Likewise.
100160         * tests/test-fflush.c: Likewise.
100161         * tests/test-floorf.c: Likewise.
100162         * tests/test-floorl.c: Likewise.
100163         * tests/test-fopen.c: Likewise.
100164         * tests/test-fprintf-posix.c: Likewise.
100165         * tests/test-fprintf-posix.h: Likewise.
100166         * tests/test-fpurge.c: Likewise.
100167         * tests/test-freadable.c: Likewise.
100168         * tests/test-freadahead.c: Likewise.
100169         * tests/test-freading.c: Likewise.
100170         * tests/test-freopen.c: Likewise.
100171         * tests/test-frexp.c: Likewise.
100172         * tests/test-frexpl.c: Likewise.
100173         * tests/test-fseek.c: Likewise.
100174         * tests/test-fseeko.c: Likewise.
100175         * tests/test-fseterr.c: Likewise.
100176         * tests/test-fstrcmp.c: Likewise.
100177         * tests/test-ftell.c: Likewise.
100178         * tests/test-ftello.c: Likewise.
100179         * tests/test-fwritable.c: Likewise.
100180         * tests/test-fwriting.c: Likewise.
100181         * tests/test-getaddrinfo.c: Likewise.
100182         * tests/test-getpass.c: Likewise.
100183         * tests/test-gettimeofday.c: Likewise.
100184         * tests/test-hmac-md5.c: Likewise.
100185         * tests/test-hmac-sha1.c: Likewise.
100186         * tests/test-iconv.c: Likewise.
100187         * tests/test-iconvme.c: Likewise.
100188         * tests/test-inttypes.c: Likewise.
100189         * tests/test-isnan.c: Likewise.
100190         * tests/test-isnanf.c: Likewise.
100191         * tests/test-isnanl-nolibm.c: Likewise.
100192         * tests/test-isnanl.c: Likewise.
100193         * tests/test-isnanl.h: Likewise.
100194         * tests/test-ldexpl.c: Likewise.
100195         * tests/test-linked_list.c: Likewise.
100196         * tests/test-linkedhash_list.c: Likewise.
100197         * tests/test-locale.c: Likewise.
100198         * tests/test-localename.c: Likewise.
100199         * tests/test-lock.c: Likewise.
100200         * tests/test-lseek.c: Likewise.
100201         * tests/test-malloca.c: Likewise.
100202         * tests/test-math.c: Likewise.
100203         * tests/test-mbscasecmp.c: Likewise.
100204         * tests/test-mbscasestr1.c: Likewise.
100205         * tests/test-mbscasestr2.c: Likewise.
100206         * tests/test-mbscasestr3.c: Likewise.
100207         * tests/test-mbscasestr4.c: Likewise.
100208         * tests/test-mbschr.c: Likewise.
100209         * tests/test-mbscspn.c: Likewise.
100210         * tests/test-mbsncasecmp.c: Likewise.
100211         * tests/test-mbspbrk.c: Likewise.
100212         * tests/test-mbspcasecmp.c: Likewise.
100213         * tests/test-mbsrchr.c: Likewise.
100214         * tests/test-mbsspn.c: Likewise.
100215         * tests/test-mbsstr1.c: Likewise.
100216         * tests/test-mbsstr2.c: Likewise.
100217         * tests/test-mbsstr3.c: Likewise.
100218         * tests/test-md5.c: Likewise.
100219         * tests/test-memmem.c: Likewise.
100220         * tests/test-netinet_in.c: Likewise.
100221         * tests/test-open.c: Likewise.
100222         * tests/test-printf-frexp.c: Likewise.
100223         * tests/test-printf-frexpl.c: Likewise.
100224         * tests/test-printf-posix.c: Likewise.
100225         * tests/test-printf-posix.h: Likewise.
100226         * tests/test-rbtree_list.c: Likewise.
100227         * tests/test-rbtree_oset.c: Likewise.
100228         * tests/test-rbtreehash_list.c: Likewise.
100229         * tests/test-read-file.c: Likewise.
100230         * tests/test-rijndael.c: Likewise.
100231         * tests/test-search.c: Likewise.
100232         * tests/test-signbit.c: Likewise.
100233         * tests/test-sleep.c: Likewise.
100234         * tests/test-snprintf-posix.c: Likewise.
100235         * tests/test-snprintf-posix.h: Likewise.
100236         * tests/test-snprintf.c: Likewise.
100237         * tests/test-sprintf-posix.c: Likewise.
100238         * tests/test-sprintf-posix.h: Likewise.
100239         * tests/test-stat-time.c: Likewise.
100240         * tests/test-stdbool.c: Likewise.
100241         * tests/test-stdint.c: Likewise.
100242         * tests/test-stdio.c: Likewise.
100243         * tests/test-stdlib.c: Likewise.
100244         * tests/test-stpncpy.c: Likewise.
100245         * tests/test-strcasestr.c: Likewise.
100246         * tests/test-striconv.c: Likewise.
100247         * tests/test-striconveh.c: Likewise.
100248         * tests/test-striconveha.c: Likewise.
100249         * tests/test-string.c: Likewise.
100250         * tests/test-sys_select.c: Likewise.
100251         * tests/test-sys_socket.c: Likewise.
100252         * tests/test-sys_stat.c: Likewise.
100253         * tests/test-sys_time.c: Likewise.
100254         * tests/test-sysexits.c: Likewise.
100255         * tests/test-time.c: Likewise.
100256         * tests/test-tls.c: Likewise.
100257         * tests/test-trunc.c: Likewise.
100258         * tests/test-truncf.c: Likewise.
100259         * tests/test-truncl.c: Likewise.
100260         * tests/test-unistd.c: Likewise.
100261         * tests/test-vasnprintf-posix.c: Likewise.
100262         * tests/test-vasnprintf-posix2.c: Likewise.
100263         * tests/test-vasnprintf.c: Likewise.
100264         * tests/test-vasprintf-posix.c: Likewise.
100265         * tests/test-vasprintf.c: Likewise.
100266         * tests/test-verify.c: Likewise.
100267         * tests/test-vfprintf-posix.c: Likewise.
100268         * tests/test-vprintf-posix.c: Likewise.
100269         * tests/test-vsnprintf-posix.c: Likewise.
100270         * tests/test-vsnprintf.c: Likewise.
100271         * tests/test-vsprintf-posix.c: Likewise.
100272         * tests/test-wchar.c: Likewise.
100273         * tests/test-wctype.c: Likewise.
100274         * tests/test-wcwidth.c: Likewise.
100275         * tests/test-xstrtol.c: Likewise.
100276         * tests/test-xvasprintf.c: Likewise.
100277         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
100278         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
100279         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
100280         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
100281         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
100282         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
100283         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
100284         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
100285         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
100286         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
100287         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
100288         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
100289         * tests/uniname/test-uninames.c: Likewise.
100290         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
100291         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
100292         * tests/unistdio/test-u16-printf1.h: Likewise.
100293         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
100294         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
100295         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
100296         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
100297         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
100298         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
100299         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
100300         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
100301         * tests/unistdio/test-u32-printf1.h: Likewise.
100302         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
100303         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
100304         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
100305         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
100306         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
100307         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
100308         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
100309         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
100310         * tests/unistdio/test-u8-printf1.h: Likewise.
100311         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
100312         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
100313         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
100314         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
100315         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
100316         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
100317         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
100318         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
100319         * tests/unistdio/test-ulc-printf1.h: Likewise.
100320         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
100321         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
100322         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
100323         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
100324         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
100325         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
100326         * tests/uniwidth/test-u16-strwidth.c: Likewise.
100327         * tests/uniwidth/test-u16-width.c: Likewise.
100328         * tests/uniwidth/test-u32-strwidth.c: Likewise.
100329         * tests/uniwidth/test-u32-width.c: Likewise.
100330         * tests/uniwidth/test-u8-strwidth.c: Likewise.
100331         * tests/uniwidth/test-u8-width.c: Likewise.
100332         * tests/uniwidth/test-uc_width.c: Likewise.
100333         * config/srclist-update: Likewise.
100334         (fixlicense): Update to GPLv3+.
100336         Change copyright notice from LGPLv2.1+ to LGPLv3+.
100337         * tests/test-tsearch.c: Change copyright notice.
100339         Change copyright notice from LGPLv2.0+ to LGPLv3+.
100340         * lib/c-strcaseeq.h: Change copyright notice.
100341         * lib/streq.h: Likewise.
100342         * lib/uniconv.h: Likewise.
100343         * lib/uniconv/u-conv-from-enc.h: Likewise.
100344         * lib/uniconv/u-conv-to-enc.h: Likewise.
100345         * lib/uniconv/u-strconv-from-enc.h: Likewise.
100346         * lib/uniconv/u-strconv-to-enc.h: Likewise.
100347         * lib/uniconv/u16-conv-from-enc.c: Likewise.
100348         * lib/uniconv/u16-conv-to-enc.c: Likewise.
100349         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
100350         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
100351         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
100352         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
100353         * lib/uniconv/u32-conv-from-enc.c: Likewise.
100354         * lib/uniconv/u32-conv-to-enc.c: Likewise.
100355         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
100356         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
100357         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
100358         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
100359         * lib/uniconv/u8-conv-from-enc.c: Likewise.
100360         * lib/uniconv/u8-conv-to-enc.c: Likewise.
100361         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
100362         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
100363         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
100364         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
100365         * lib/uniname.h: Likewise.
100366         * lib/uniname/uniname.c: Likewise.
100367         * lib/unistdio.h: Likewise.
100368         * lib/unistdio/u-asnprintf.h: Likewise.
100369         * lib/unistdio/u-asprintf.h: Likewise.
100370         * lib/unistdio/u-printf-args.c: Likewise.
100371         * lib/unistdio/u-printf-args.h: Likewise.
100372         * lib/unistdio/u-printf-parse.h: Likewise.
100373         * lib/unistdio/u-snprintf.h: Likewise.
100374         * lib/unistdio/u-sprintf.h: Likewise.
100375         * lib/unistdio/u-vasprintf.h: Likewise.
100376         * lib/unistdio/u-vsnprintf.h: Likewise.
100377         * lib/unistdio/u-vsprintf.h: Likewise.
100378         * lib/unistdio/u16-asnprintf.c: Likewise.
100379         * lib/unistdio/u16-asprintf.c: Likewise.
100380         * lib/unistdio/u16-printf-parse.c: Likewise.
100381         * lib/unistdio/u16-snprintf.c: Likewise.
100382         * lib/unistdio/u16-sprintf.c: Likewise.
100383         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
100384         * lib/unistdio/u16-u16-asprintf.c: Likewise.
100385         * lib/unistdio/u16-u16-snprintf.c: Likewise.
100386         * lib/unistdio/u16-u16-sprintf.c: Likewise.
100387         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
100388         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
100389         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
100390         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
100391         * lib/unistdio/u16-vasnprintf.c: Likewise.
100392         * lib/unistdio/u16-vasprintf.c: Likewise.
100393         * lib/unistdio/u16-vsnprintf.c: Likewise.
100394         * lib/unistdio/u16-vsprintf.c: Likewise.
100395         * lib/unistdio/u32-asnprintf.c: Likewise.
100396         * lib/unistdio/u32-asprintf.c: Likewise.
100397         * lib/unistdio/u32-printf-parse.c: Likewise.
100398         * lib/unistdio/u32-snprintf.c: Likewise.
100399         * lib/unistdio/u32-sprintf.c: Likewise.
100400         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
100401         * lib/unistdio/u32-u32-asprintf.c: Likewise.
100402         * lib/unistdio/u32-u32-snprintf.c: Likewise.
100403         * lib/unistdio/u32-u32-sprintf.c: Likewise.
100404         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
100405         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
100406         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
100407         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
100408         * lib/unistdio/u32-vasnprintf.c: Likewise.
100409         * lib/unistdio/u32-vasprintf.c: Likewise.
100410         * lib/unistdio/u32-vsnprintf.c: Likewise.
100411         * lib/unistdio/u32-vsprintf.c: Likewise.
100412         * lib/unistdio/u8-asnprintf.c: Likewise.
100413         * lib/unistdio/u8-asprintf.c: Likewise.
100414         * lib/unistdio/u8-printf-parse.c: Likewise.
100415         * lib/unistdio/u8-snprintf.c: Likewise.
100416         * lib/unistdio/u8-sprintf.c: Likewise.
100417         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
100418         * lib/unistdio/u8-u8-asprintf.c: Likewise.
100419         * lib/unistdio/u8-u8-snprintf.c: Likewise.
100420         * lib/unistdio/u8-u8-sprintf.c: Likewise.
100421         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
100422         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
100423         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
100424         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
100425         * lib/unistdio/u8-vasnprintf.c: Likewise.
100426         * lib/unistdio/u8-vasprintf.c: Likewise.
100427         * lib/unistdio/u8-vsnprintf.c: Likewise.
100428         * lib/unistdio/u8-vsprintf.c: Likewise.
100429         * lib/unistdio/ulc-asnprintf.c: Likewise.
100430         * lib/unistdio/ulc-asprintf.c: Likewise.
100431         * lib/unistdio/ulc-printf-parse.c: Likewise.
100432         * lib/unistdio/ulc-snprintf.c: Likewise.
100433         * lib/unistdio/ulc-sprintf.c: Likewise.
100434         * lib/unistdio/ulc-vasnprintf.c: Likewise.
100435         * lib/unistdio/ulc-vasprintf.c: Likewise.
100436         * lib/unistdio/ulc-vsnprintf.c: Likewise.
100437         * lib/unistdio/ulc-vsprintf.c: Likewise.
100438         * lib/unistr.h: Likewise.
100439         * lib/unistr/u-cpy-alloc.h: Likewise.
100440         * lib/unistr/u-cpy.h: Likewise.
100441         * lib/unistr/u-endswith.h: Likewise.
100442         * lib/unistr/u-move.h: Likewise.
100443         * lib/unistr/u-set.h: Likewise.
100444         * lib/unistr/u-startswith.h: Likewise.
100445         * lib/unistr/u-stpcpy.h: Likewise.
100446         * lib/unistr/u-stpncpy.h: Likewise.
100447         * lib/unistr/u-strcat.h: Likewise.
100448         * lib/unistr/u-strcpy.h: Likewise.
100449         * lib/unistr/u-strcspn.h: Likewise.
100450         * lib/unistr/u-strdup.h: Likewise.
100451         * lib/unistr/u-strlen.h: Likewise.
100452         * lib/unistr/u-strncat.h: Likewise.
100453         * lib/unistr/u-strncpy.h: Likewise.
100454         * lib/unistr/u-strnlen.h: Likewise.
100455         * lib/unistr/u-strpbrk.h: Likewise.
100456         * lib/unistr/u-strspn.h: Likewise.
100457         * lib/unistr/u-strstr.h: Likewise.
100458         * lib/unistr/u-strtok.h: Likewise.
100459         * lib/unistr/u16-check.c: Likewise.
100460         * lib/unistr/u16-chr.c: Likewise.
100461         * lib/unistr/u16-cmp.c: Likewise.
100462         * lib/unistr/u16-cpy-alloc.c: Likewise.
100463         * lib/unistr/u16-cpy.c: Likewise.
100464         * lib/unistr/u16-endswith.c: Likewise.
100465         * lib/unistr/u16-mblen.c: Likewise.
100466         * lib/unistr/u16-mbsnlen.c: Likewise.
100467         * lib/unistr/u16-mbtouc-aux.c: Likewise.
100468         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
100469         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
100470         * lib/unistr/u16-mbtouc.c: Likewise.
100471         * lib/unistr/u16-mbtoucr.c: Likewise.
100472         * lib/unistr/u16-move.c: Likewise.
100473         * lib/unistr/u16-next.c: Likewise.
100474         * lib/unistr/u16-prev.c: Likewise.
100475         * lib/unistr/u16-set.c: Likewise.
100476         * lib/unistr/u16-startswith.c: Likewise.
100477         * lib/unistr/u16-stpcpy.c: Likewise.
100478         * lib/unistr/u16-stpncpy.c: Likewise.
100479         * lib/unistr/u16-strcat.c: Likewise.
100480         * lib/unistr/u16-strchr.c: Likewise.
100481         * lib/unistr/u16-strcmp.c: Likewise.
100482         * lib/unistr/u16-strcpy.c: Likewise.
100483         * lib/unistr/u16-strcspn.c: Likewise.
100484         * lib/unistr/u16-strdup.c: Likewise.
100485         * lib/unistr/u16-strlen.c: Likewise.
100486         * lib/unistr/u16-strmblen.c: Likewise.
100487         * lib/unistr/u16-strmbtouc.c: Likewise.
100488         * lib/unistr/u16-strncat.c: Likewise.
100489         * lib/unistr/u16-strncmp.c: Likewise.
100490         * lib/unistr/u16-strncpy.c: Likewise.
100491         * lib/unistr/u16-strnlen.c: Likewise.
100492         * lib/unistr/u16-strpbrk.c: Likewise.
100493         * lib/unistr/u16-strrchr.c: Likewise.
100494         * lib/unistr/u16-strspn.c: Likewise.
100495         * lib/unistr/u16-strstr.c: Likewise.
100496         * lib/unistr/u16-strtok.c: Likewise.
100497         * lib/unistr/u16-to-u32.c: Likewise.
100498         * lib/unistr/u16-to-u8.c: Likewise.
100499         * lib/unistr/u16-uctomb-aux.c: Likewise.
100500         * lib/unistr/u16-uctomb.c: Likewise.
100501         * lib/unistr/u32-check.c: Likewise.
100502         * lib/unistr/u32-chr.c: Likewise.
100503         * lib/unistr/u32-cmp.c: Likewise.
100504         * lib/unistr/u32-cpy-alloc.c: Likewise.
100505         * lib/unistr/u32-cpy.c: Likewise.
100506         * lib/unistr/u32-endswith.c: Likewise.
100507         * lib/unistr/u32-mblen.c: Likewise.
100508         * lib/unistr/u32-mbsnlen.c: Likewise.
100509         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
100510         * lib/unistr/u32-mbtouc.c: Likewise.
100511         * lib/unistr/u32-mbtoucr.c: Likewise.
100512         * lib/unistr/u32-move.c: Likewise.
100513         * lib/unistr/u32-next.c: Likewise.
100514         * lib/unistr/u32-prev.c: Likewise.
100515         * lib/unistr/u32-set.c: Likewise.
100516         * lib/unistr/u32-startswith.c: Likewise.
100517         * lib/unistr/u32-stpcpy.c: Likewise.
100518         * lib/unistr/u32-stpncpy.c: Likewise.
100519         * lib/unistr/u32-strcat.c: Likewise.
100520         * lib/unistr/u32-strchr.c: Likewise.
100521         * lib/unistr/u32-strcmp.c: Likewise.
100522         * lib/unistr/u32-strcpy.c: Likewise.
100523         * lib/unistr/u32-strcspn.c: Likewise.
100524         * lib/unistr/u32-strdup.c: Likewise.
100525         * lib/unistr/u32-strlen.c: Likewise.
100526         * lib/unistr/u32-strmblen.c: Likewise.
100527         * lib/unistr/u32-strmbtouc.c: Likewise.
100528         * lib/unistr/u32-strncat.c: Likewise.
100529         * lib/unistr/u32-strncmp.c: Likewise.
100530         * lib/unistr/u32-strncpy.c: Likewise.
100531         * lib/unistr/u32-strnlen.c: Likewise.
100532         * lib/unistr/u32-strpbrk.c: Likewise.
100533         * lib/unistr/u32-strrchr.c: Likewise.
100534         * lib/unistr/u32-strspn.c: Likewise.
100535         * lib/unistr/u32-strstr.c: Likewise.
100536         * lib/unistr/u32-strtok.c: Likewise.
100537         * lib/unistr/u32-to-u16.c: Likewise.
100538         * lib/unistr/u32-to-u8.c: Likewise.
100539         * lib/unistr/u32-uctomb.c: Likewise.
100540         * lib/unistr/u8-check.c: Likewise.
100541         * lib/unistr/u8-chr.c: Likewise.
100542         * lib/unistr/u8-cmp.c: Likewise.
100543         * lib/unistr/u8-cpy-alloc.c: Likewise.
100544         * lib/unistr/u8-cpy.c: Likewise.
100545         * lib/unistr/u8-endswith.c: Likewise.
100546         * lib/unistr/u8-mblen.c: Likewise.
100547         * lib/unistr/u8-mbsnlen.c: Likewise.
100548         * lib/unistr/u8-mbtouc-aux.c: Likewise.
100549         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
100550         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
100551         * lib/unistr/u8-mbtouc.c: Likewise.
100552         * lib/unistr/u8-mbtoucr.c: Likewise.
100553         * lib/unistr/u8-move.c: Likewise.
100554         * lib/unistr/u8-next.c: Likewise.
100555         * lib/unistr/u8-prev.c: Likewise.
100556         * lib/unistr/u8-set.c: Likewise.
100557         * lib/unistr/u8-startswith.c: Likewise.
100558         * lib/unistr/u8-stpcpy.c: Likewise.
100559         * lib/unistr/u8-stpncpy.c: Likewise.
100560         * lib/unistr/u8-strcat.c: Likewise.
100561         * lib/unistr/u8-strchr.c: Likewise.
100562         * lib/unistr/u8-strcmp.c: Likewise.
100563         * lib/unistr/u8-strcpy.c: Likewise.
100564         * lib/unistr/u8-strcspn.c: Likewise.
100565         * lib/unistr/u8-strdup.c: Likewise.
100566         * lib/unistr/u8-strlen.c: Likewise.
100567         * lib/unistr/u8-strmblen.c: Likewise.
100568         * lib/unistr/u8-strmbtouc.c: Likewise.
100569         * lib/unistr/u8-strncat.c: Likewise.
100570         * lib/unistr/u8-strncmp.c: Likewise.
100571         * lib/unistr/u8-strncpy.c: Likewise.
100572         * lib/unistr/u8-strnlen.c: Likewise.
100573         * lib/unistr/u8-strpbrk.c: Likewise.
100574         * lib/unistr/u8-strrchr.c: Likewise.
100575         * lib/unistr/u8-strspn.c: Likewise.
100576         * lib/unistr/u8-strstr.c: Likewise.
100577         * lib/unistr/u8-strtok.c: Likewise.
100578         * lib/unistr/u8-to-u16.c: Likewise.
100579         * lib/unistr/u8-to-u32.c: Likewise.
100580         * lib/unistr/u8-uctomb-aux.c: Likewise.
100581         * lib/unistr/u8-uctomb.c: Likewise.
100582         * lib/unitypes.h: Likewise.
100583         * lib/uniwidth.h: Likewise.
100584         * lib/uniwidth/cjk.h: Likewise.
100585         * lib/uniwidth/u16-strwidth.c: Likewise.
100586         * lib/uniwidth/u16-width.c: Likewise.
100587         * lib/uniwidth/u32-strwidth.c: Likewise.
100588         * lib/uniwidth/u32-width.c: Likewise.
100589         * lib/uniwidth/u8-strwidth.c: Likewise.
100590         * lib/uniwidth/u8-width.c: Likewise.
100591         * lib/uniwidth/width.c: Likewise.
100593 2007-10-07  Bruno Haible  <bruno@clisp.org>
100595         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
100596         The file is still under LGPL (see modules/inttypes).
100598 2007-10-06  Bruno Haible  <bruno@clisp.org>
100600         * modules/trunc (Dependencies): Add 'extensions'.
100601         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
100602         Reported by Ben Pfaff <blp@gnu.org>.
100604 2007-10-06  Bruno Haible  <bruno@clisp.org>
100606         * modules/freopen-tests: New file.
100607         * tests/test-freopen.c: New file.
100609         * modules/fopen-tests: New file.
100610         * tests/test-fopen.c: New file.
100612         * modules/fopen: New file.
100613         * lib/fopen.c: New file.
100614         * m4/fopen.m4: New file.
100615         * modules/freopen: New file.
100616         * lib/freopen.c: New file.
100617         * m4/freopen.m4: New file.
100618         * lib/stdio.in.h (fopen, freopen): New declarations.
100619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
100620         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100621         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
100622         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100623         * doc/functions/fopen.texi: Mention the 'fopen' module.
100624         * doc/functions/freopen.texi: Mention the 'freopen' module.
100626 2007-10-06  Bruno Haible  <bruno@clisp.org>
100628         * modules/open-tests: New file.
100629         * tests/test-open.c: New file.
100631         * modules/open: New file.
100632         * lib/open.c: New file.
100633         * m4/open.m4: New file.
100634         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
100635         lib/open.c does.
100636         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
100637         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
100638         macros.
100639         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
100640         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
100641         REPLACE_OPEN.
100642         * doc/functions/open.texi: Mention the 'open' module.
100644 2007-10-04  Bruno Haible  <bruno@clisp.org>
100646         * modules/ceill-tests: New file.
100647         * tests/test-ceill.c: New file.
100649         * modules/ceill: New file.
100650         * lib/ceill.c: Replace entire file.
100651         * m4/ceill.m4: New file.
100652         * lib/math.in.h (ceill): Replace declaration.
100653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
100654         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
100655         * doc/functions/ceill.texi: Mention the 'ceill' module.
100656         * modules/mathl (Files): Remove lib/ceill.c.
100657         (Depends-on): Add ceill.
100659 2007-10-04  Bruno Haible  <bruno@clisp.org>
100661         * modules/ceilf-tests: New file.
100662         * tests/test-ceilf.c: New file.
100664         * modules/ceilf: New file.
100665         * lib/ceil.c: New file.
100666         * lib/ceilf.c: New file.
100667         * m4/ceilf.m4: New file.
100668         * lib/math.in.h (ceilf): New declaration.
100669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
100670         HAVE_DECL_CEILF.
100671         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
100672         HAVE_DECL_CEILF.
100673         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
100675 2007-10-04  Bruno Haible  <bruno@clisp.org>
100677         * modules/floorl-tests: New file.
100678         * tests/test-floorl.c: New file.
100680         * modules/floorl: New file.
100681         * lib/floorl.c: Replace entire file.
100682         * m4/floorl.m4: New file.
100683         * lib/math.in.h (floorl): Replace declaration.
100684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
100685         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
100686         * doc/functions/floorl.texi: Mention the 'floorl' module.
100687         * modules/mathl (Files): Remove lib/floorl.c.
100688         (Depends-on): Add floorl.
100690 2007-10-04  Bruno Haible  <bruno@clisp.org>
100692         * modules/floorf-tests: New file.
100693         * tests/test-floorf.c: New file.
100695         * modules/floorf: New file.
100696         * lib/floor.c: New file.
100697         * lib/floorf.c: New file.
100698         * m4/floorf.m4: New file.
100699         * lib/math.in.h (floorf): New declaration.
100700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
100701         HAVE_DECL_FLOORF.
100702         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
100703         HAVE_DECL_FLOORF.
100704         * doc/functions/floorf.texi: Mention the 'floorf' module.
100706 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
100707             Bruno Haible  <bruno@clisp.org>
100709         Advertise for the Git server instead of the CVS server.
100710         * doc/gnulib-intro.texi (Steady Development): Mention the Git
100711         repository instead of the CVS one.
100712         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
100713         about all VCS systems generically.
100714         * doc/gnulib.texi (Introduction): Capitalize `Git'.
100716 2007-10-04  Bruno Haible  <bruno@clisp.org>
100718         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
100719         means.
100720         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
100722 2007-10-04  Bruno Haible  <bruno@clisp.org>
100724         * modules/truncl-tests: New file.
100725         * tests/test-truncl.c: New file.
100727         * modules/truncl: New file.
100728         * lib/truncl.c: New file.
100729         * m4/truncl.m4: New file.
100730         * lib/math.in.h (truncl): New declaration.
100731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
100732         HAVE_DECL_TRUNCL.
100733         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
100734         HAVE_DECL_TRUNCL.
100735         * doc/functions/truncl.texi: Mention the 'truncl' module.
100737 2007-10-04  Bruno Haible  <bruno@clisp.org>
100739         * modules/truncf-tests: New file.
100740         * tests/test-truncf.c: New file.
100742         * modules/truncf: New file.
100743         * lib/trunc.c: Make paramerizable through USE_* macros.
100744         * lib/truncf.c: New file.
100745         * m4/truncf.m4: New file.
100746         * lib/math.in.h (truncf): New declaration.
100747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
100748         HAVE_DECL_TRUNCF.
100749         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
100750         HAVE_DECL_TRUNCF.
100751         * doc/functions/truncf.texi: Mention the 'truncf' module.
100753 2007-10-03  Bruno Haible  <bruno@clisp.org>
100755         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
100756         augmentation also for tests modules.
100757         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
100758         * modules/atexit-tests (Makefile.am): Likewise.
100759         * modules/binary-io-tests (Makefile.am): Likewise.
100760         * modules/c-strcase-tests (Makefile.am): Likewise.
100761         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
100762         * modules/canonicalize-tests (Makefile.am): Likewise.
100763         * modules/closein-tests (Makefile.am): Likewise.
100764         * modules/fprintf-posix-tests (Makefile.am): Likewise.
100765         * modules/freadahead-tests (Makefile.am): Likewise.
100766         * modules/fseek-tests (Makefile.am): Likewise.
100767         * modules/fseeko-tests (Makefile.am): Likewise.
100768         * modules/ftell-tests (Makefile.am): Likewise.
100769         * modules/ftello-tests (Makefile.am): Likewise.
100770         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
100771         * modules/isnanl-tests (Makefile.am): Likewise.
100772         * modules/lseek-tests (Makefile.am): Likewise.
100773         * modules/mbscasecmp-tests (Makefile.am): Likewise.
100774         * modules/mbscasestr-tests (Makefile.am): Likewise.
100775         * modules/mbschr-tests (Makefile.am): Likewise.
100776         * modules/mbscspn-tests (Makefile.am): Likewise.
100777         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
100778         * modules/mbspbrk-tests (Makefile.am): Likewise.
100779         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
100780         * modules/mbsrchr-tests (Makefile.am): Likewise.
100781         * modules/mbsspn-tests (Makefile.am): Likewise.
100782         * modules/mbsstr-tests (Makefile.am): Likewise.
100783         * modules/printf-posix-tests (Makefile.am): Likewise.
100784         * modules/snprintf-posix-tests (Makefile.am): Likewise.
100785         * modules/sprintf-posix-tests (Makefile.am): Likewise.
100786         * modules/tsearch-tests (Makefile.am): Likewise.
100787         * modules/uniname/uniname-tests (Makefile.am): Likewise.
100788         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
100789         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
100790         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
100791         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
100792         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
100793         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
100794         * modules/vprintf-posix-tests (Makefile.am): Likewise.
100795         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
100796         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
100797         * modules/xstrtoimax-tests (Makefile.am): Likewise.
100798         * modules/xstrtol-tests (Makefile.am): Likewise.
100799         * modules/xstrtoumax-tests (Makefile.am): Likewise.
100800         * modules/yesno-tests (Makefile.am): Likewise.
100802 2007-10-03  Bruno Haible  <bruno@clisp.org>
100804         * modules/trunc-tests: New file.
100805         * tests/test-trunc.c: New file.
100807         * modules/trunc: New file.
100808         * lib/trunc.c: New file.
100809         * m4/trunc.m4: New file.
100810         * lib/math.in.h (trunc): New declaration.
100811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
100812         HAVE_DECL_TRUNC.
100813         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
100814         HAVE_DECL_TRUNC.
100815         * doc/functions/trunc.texi: Mention the 'trunc' module.
100817 2007-10-03  Bruno Haible  <bruno@clisp.org>
100819         * tests/test-fpending.c: New file, mostly copied
100820         from coreutils/lib/t-fpending.c.
100821         * modules/fpending-tests: New file.
100823 2007-10-03  Bruno Haible  <bruno@clisp.org>
100825         Port the stdio extensions to QNX (untested).
100826         * lib/fseterr.c (fseterr): Add support for QNX.
100827         * lib/fbufmode.c (fbufmode): Likewise.
100828         * lib/freadable.c (freadable): Likewise.
100829         * lib/fwritable.c (fwritable): Likewise.
100830         * lib/freading.c (freading): Likewise.
100831         * lib/fwriting.c (fwriting): Likewise.
100832         * lib/freadahead.c (freadahed): Likewise.
100833         * lib/fpurge.c (fpurge): Likewise.
100834         * lib/fseeko.c (rpl_fseeko): Likewise.
100836 2007-10-03  Bruno Haible  <bruno@clisp.org>
100837             Jim Meyering  <jim@meyering.net>
100838             Eric Blake  <ebb9@byu.net>
100840         * doc/relocatable.texi: Use @command instead of @program.
100842 2007-10-02  Jim Meyering  <jim@meyering.net>
100844         Perform one more "_.h" -> ".in.h" substitution.
100845         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
100846         instead of unistd_.h here, too.
100848 2007-10-01  Bruno Haible  <bruno@clisp.org>
100850         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
100851         Needed for the alloca-opt module.
100853 2007-09-30  Bruno Haible  <bruno@clisp.org>
100855         * lib/alloca.in.h: Renamed from lib/alloca_.h.
100856         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
100857         alloca_.h.
100858         * lib/argz.in.h: Renamed from lib/argz_.h.
100859         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
100860         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
100861         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
100862         byteswap_.h.
100863         * lib/dirent.in.h: Renamed from lib/dirent_.h.
100864         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
100865         dirent_.h.
100866         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
100867         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
100868         fcntl_.h.
100869         * lib/float.in.h: Renamed from lib/float_.h.
100870         * modules/float (Files, Makefile.am): Use float.in.h instead of
100871         float_.h.
100872         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
100873         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
100874         fnmatch_.h.
100875         * lib/getopt.in.h: Renamed from lib/getopt_.h.
100876         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
100877         getopt_.h.
100878         * lib/glob.in.h: Renamed from lib/glob_.h.
100879         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
100880         * lib/iconv.in.h: Renamed from lib/iconv_.h.
100881         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
100882         iconv_.h.
100883         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
100884         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
100885         inttypes_.h.
100886         * lib/locale.in.h: Renamed from lib/locale_.h.
100887         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
100888         locale_.h.
100889         * lib/math.in.h: Renamed from lib/math_.h.
100890         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
100891         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
100892         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
100893         of netinet_in_.h. Add dependency.
100894         * lib/poll.in.h: Renamed from lib/poll_.h.
100895         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
100896         * lib/search.in.h: Renamed from lib/search_.h.
100897         * modules/search (Files, Makefile.am): Use search.in.h instead of
100898         search_.h.
100899         * lib/signal.in.h: Renamed from lib/signal_.h.
100900         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
100901         _signal.h.
100902         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
100903         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
100904         stdbool_.h.
100905         * lib/stdint.in.h: Renamed from lib/stdint_.h.
100906         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
100907         stdint_.h.
100908         * lib/stdio.in.h: Renamed from lib/stdio_.h.
100909         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
100910         stdio_.h.
100911         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
100912         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
100913         stdlib_.h.
100914         * lib/string.in.h: Renamed from lib/string_.h.
100915         * modules/string (Files, Makefile.am): Use string.in.h instead of
100916         string_.h.
100917         * doc/gnulib-tool.texi (Initial import): Update.
100918         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
100919         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
100920         of sys_select_.h. Add dependency.
100921         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
100922         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
100923         of sys_socket_.h.
100924         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
100925         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
100926         sys_stat_.h.
100927         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
100928         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
100929         sys_time_.h.
100930         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
100931         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
100932         sysexits_.h.
100933         * lib/time.in.h: Renamed from lib/time_.h.
100934         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
100935         * lib/unistd.in.h: Renamed from lib/unistd_.h.
100936         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
100937         unistd_.h.
100938         * lib/wchar.in.h: Renamed from lib/wchar_.h.
100939         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
100940         wchar_.h.
100941         * lib/wctype.in.h: Renamed from lib/wctype_.h.
100942         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
100943         wctype_.h.
100944         * build-aux/bootstrap (slurp): Update.
100945         * lib/.cppi-disable: Update.
100947 2007-09-30  Bruno Haible  <bruno@clisp.org>
100949         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
100950         Needed on BeOS.
100952 2007-09-30  Bruno Haible  <bruno@clisp.org>
100954         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
100956 2007-09-29  Bruno Haible  <bruno@clisp.org>
100958         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
100960 2007-09-29  Bruno Haible  <bruno@clisp.org>
100962         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
100963         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
100964         * build-aux/install-reloc: Compile also areadlink.c.
100965         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
100967 2007-09-29  Bruno Haible  <bruno@clisp.org>
100969         * gnulib-tool (func_emit_initmacro_done): Indentation.
100971 2007-09-29  Bruno Haible  <bruno@clisp.org>
100973         * README: Add CVS checkout update instructions.
100974         Info from Bob Proulx <bob@proulx.com>.
100976 2007-09-28  Eric Blake  <ebb9@byu.net>
100978         Provide move-if-change.
100979         * build-aux/move-if-change: New file, based on best practice
100980         rather than any canonical upstream location.
100982 2007-09-28  Jim Meyering  <jim@meyering.net>
100984         Fix canonicalize loop-detection corner case.
100985         Do not attempt to stat the symlink values stored via seen_triple.
100986         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
100987         on linux-2.6.18, (but not 2.6.22).
100988         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
100989         triple_compare.  The former compares dev,ino,filename, while the latter
100990         would actually stat dirname(filename) when dev and ino were equal.
100991         * lib/hash-triple.c: Install <string.h>.
100992         (STREQ): Define.
100993         (triple_compare_ino_str): New function.
100994         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
100996 2007-09-28  Eric Blake  <ebb9@byu.net>
100998         Enforce that AC_REPLACE_FUNCS files exist.
100999         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
101000         override check for typos.
101002         Fix test-closein on Solaris 10.
101003         * tests/test-closein.c (main): Don't assume stdin can be inherited
101004         closed on all systems.
101005         * tests/test-closein.sh: Likewise.
101006         Reported by Piotr Tarnowski.
101008 2007-09-28  Jim Meyering  <jim@meyering.net>
101010         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
101012 2007-09-27  Jim Meyering  <jim@meyering.net>
101014         canonicalize: Avoid a false-positive cycle failure.
101015         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
101016         Sort.  Remove cycle-check.
101017         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
101018         not cycle-check.h.
101019         (seen_triple): New function.
101020         (canonicalize_filename_mode): Use it instead of cycle-check.
101021         * tests/test-canonicalize.c: Add a test for this bug.
101022         * tests/test-canonicalize.sh: Set up and run the test.
101024         New module, file-set, from coreutils.
101025         * modules/file-set: Define it.
101026         * lib/file-set.c, lib/file-set.h: Implement.
101028         New module, hash-triple, from coreutils.
101029         * modules/hash-triple: Define it.
101030         * lib/hash-triple.c, lib/hash-triple.h: Implement.
101032 2007-09-25  Eric Blake  <ebb9@byu.net>
101034         Fix strerror on Interix.
101035         * lib/string_.h (strerror): Declare replacement.
101036         * doc/functions/strerror.texi (strerror): Document the Interix
101037         shortcoming.
101038         * modules/string (Makefile.am): Support new hooks.
101039         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
101040         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
101041         gl_FUNC_STRERROR_SEPARATE.
101042         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
101043         * lib/strerror.c (rpl_strerror): Provide replacement.
101044         * modules/strerror (Depends-on): Add string.
101045         (configure.ac): Detect use of module.
101046         * tests/test-strerror.c: New file.
101047         * modules/strerror-tests: New test module.
101048         * modules/argp (Depends-on): Add strerror.
101049         * modules/error (Depends-on): Likewise.
101050         Reported by Martin Koeppe.
101052 2007-09-24  Bruno Haible  <bruno@clisp.org>
101054         * README: Update git instructions.
101056 2007-09-24  Eric Blake  <ebb9@byu.net>
101058         Revert fpending breakage from 2007-09-08.
101059         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
101060         __fpending.c.
101062 2007-09-24  Jim Meyering  <jim@meyering.net>
101064         filenamecat.c: Add a test.
101065         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
101066         showing how the function works when DIR is the empty string.
101068 2007-09-21  Simon Josefsson  <simon@josefsson.org>
101070         * tests/test-canonicalize.sh: Turn on executable bit.
101072 2007-09-19  Eric Blake  <ebb9@byu.net>
101074         * README: Update CVS instructions.
101076 2007-09-18  Bruno Haible  <bruno@clisp.org>
101078         * modules/areadlink: New file.
101079         * lib/areadlink.h (areadlink): New declaration.
101080         * lib/areadlink.c: New file, based on lib/xreadlink.c.
101082 2007-09-17  Jim Meyering  <jim@meyering.net>
101084         * lib/savewd.c (ESTALE) [!defined]: Define.
101085         Reported to be required on Interix by Martin Koeppe.
101087 2007-09-17  Bruno Haible  <bruno@clisp.org>
101089         * gnulib-tool (func_version): Use $version.
101091 2007-09-16  Bruno Haible  <bruno@clisp.org>
101093         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
101094         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
101095         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
101096         Reported by Greg Schafer <gschafer@zip.com.au>.
101098 2007-09-15  Bruno Haible  <bruno@clisp.org>
101100         * gnulib-tool (sed): Try a little harder to make bash understand the
101101         alias.
101102         Reported by Bruce Korb <bruce.korb@gmail.com>.
101104 2007-09-13  Eric Blake  <ebb9@byu.net>
101106         * ChangeLog: Remove conflict markers.
101108 2007-09-13  Simon Josefsson  <simon@josefsson.org>
101110         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
101111         Reported by Bruno Haible <bruno@clisp.org>.
101113 2007-09-12  Bruno Haible  <bruno@clisp.org>
101115         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
101116         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
101117         is not defined.
101119 2007-09-12  Eric Blake  <ebb9@byu.net>
101121         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
101122         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
101123         Autoconf definition.
101124         * modules/euidaccess (Depends-on): Add extensions, for
101125         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
101126         * modules/fnmatch (Depends-on): Likewise.
101127         * modules/getaddrinfo (Depends-on): Likewise.
101128         * modules/getdelim (Depends-on): Likewise.
101129         * modules/getline (Depends-on): Likewise.
101130         * modules/getsubopt (Depends-on): Likewise.
101131         * modules/gettext (Depends-on): Likewise.
101132         * modules/group-member (Depends-on): Likewise.
101133         * modules/mbchar (Depends-on): Likewise.
101134         * modules/memmem (Depends-on): Likewise.
101135         * modules/mempcpy (Depends-on): Likewise.
101136         * modules/memrchr (Depends-on): Likewise.
101137         * modules/pagealign_alloc (Depends-on): Likewise.
101138         * modules/readutmp (Depends-on): Likewise.
101139         * modules/stpcpy (Depends-on): Likewise.
101140         * modules/stpncpy (Depends-on): Likewise.
101141         * modules/strchrnul (Depends-on): Likewise.
101142         * modules/strndup (Depends-on): Likewise.
101143         * modules/strsep (Depends-on): Likewise.
101144         * modules/strverscmp (Depends-on): Likewise.
101145         * modules/vasprintf (Depends-on): Likewise.
101146         * modules/wcwidth (Depends-on): Likewise.
101147         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
101148         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
101149         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
101150         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
101151         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
101152         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101153         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
101154         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
101155         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
101156         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
101157         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
101158         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
101159         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
101160         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
101161         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
101162         * m4/readutmp.m4 (gl_READUTMP): Likewise.
101163         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
101164         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
101165         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
101166         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
101167         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
101168         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
101169         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
101170         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
101171         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
101172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
101173         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
101174         so that lock.m4 can be used in gettext without extensions module.
101176 2007-09-11  Bruno Haible  <bruno@clisp.org>
101178         * m4/isc-posix.m4: Remove file.
101179         Suggested by Eric Blake.
101181 2007-09-11  Eric Blake  <ebb9@byu.net>
101183         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
101185 2007-09-10  Bruno Haible  <bruno@clisp.org>
101187         * posix-modules: Fix typo in error message.
101188         Reported by Matt <mkraai@beckman.com>.
101190 2007-09-09  Bruno Haible  <bruno@clisp.org>
101192         * doc/functions/getdelim.texi: Update list of platforms lacking the
101193         function.
101194         * doc/functions/getline.texi: Likewise.
101196 2007-09-09  Jim Meyering  <jim@meyering.net>
101198         * lib/hash.c (hash_initialize): Detect calloc failure.
101199         Reported by Bruno Haible.
101201 2007-09-09  Bruno Haible  <bruno@clisp.org>
101203         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
101204         malloc or realloc fails.
101206 2007-09-09  Bruno Haible  <bruno@clisp.org>
101208         * modules/getcwd (Depends-on): Add malloc-posix.
101209         * modules/glob (Depends-on): Likewise.
101210         * modules/putenv (Depends-on): Likewise.
101211         * modules/strdup (Depends-on): Likewise.
101212         * modules/getdelim (Depends-on): Add realloc-posix.
101213         * modules/read-file (Depends-on): Likewise.
101215 2007-09-09  Bruno Haible  <bruno@clisp.org>
101217         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
101218         (gl_FUNC_MALLOC_POSIX): Require it.
101219         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
101220         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
101221         * modules/realloc (Files): Add m4/malloc.m4.
101222         * modules/calloc (Files): Likewise.
101224 2007-09-09  Bruno Haible  <bruno@clisp.org>
101226         * modules/malloc-posix: New file.
101227         * modules/malloc (Depends-on): Add malloc-posix.
101228         * lib/malloc.c: Include errno.h.
101229         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
101230         and a POSIX-compatible malloc into a single function. Set ENOMEM
101231         when returning NULL.
101232         * m4/malloc.m4: New file.
101233         * doc/functions/malloc.texi: Mention the malloc-posix module.
101234         * lib/stdlib_.h (malloc): New declaration.
101235         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101236         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
101237         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
101238         and HAVE_MALLOC_POSIX.
101240 2007-09-09  Bruno Haible  <bruno@clisp.org>
101242         * modules/realloc-posix: New file.
101243         * modules/realloc (Depends-on): Add realloc-posix.
101244         * lib/realloc.c: Include errno.h.
101245         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
101246         and a POSIX-compatible realloc into a single function. Set ENOMEM
101247         when returning NULL.
101248         * m4/realloc.m4: New file.
101249         * doc/functions/realloc.texi: Mention the realloc-posix module.
101250         * lib/stdlib_.h (realloc): New declaration.
101251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101252         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
101253         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
101254         and HAVE_REALLOC_POSIX.
101256 2007-09-09  Bruno Haible  <bruno@clisp.org>
101258         * modules/calloc-posix: New file.
101259         * modules/calloc (Depends-on): Add calloc-posix.
101260         * lib/calloc.c: Include errno.h.
101261         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
101262         and a POSIX-compatible calloc into a single function. Set ENOMEM
101263         when returning NULL.
101264         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
101265         * doc/functions/calloc.texi: Mention the calloc-posix module.
101266         * lib/stdlib_.h (calloc): New declaration.
101267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101268         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
101269         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
101270         and HAVE_CALLOC_POSIX.
101272 2007-09-09  Bruno Haible  <bruno@clisp.org>
101274         Allow for modules to show an arbitrary notice.
101275         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
101276         * gnulib-tool: New option --extract-notice.
101277         (func_usage): Document it.
101278         (sed_extract_prog): Update.
101279         (func_get_notice): New function.
101280         (func_modules_notice): New function.
101281         (func_import, func_create_testdir): Invoke it.
101282         Suggested by Jim Meyering.
101284 2007-09-09  Bruno Haible  <bruno@clisp.org>
101286         * gnulib-tool: New options --verbose, --quiet.
101287         (func_usage): Document them.
101288         (verbose): New variable.
101289         (func_execute_command): New function.
101290         (func_import): Don't show the module list and the file list if
101291         $verbose < 0.
101292         (func_create_testdir): Likewise. Use func_execute_command.
101293         (func_create_megatestdir): Use func_execute_command.
101295 2007-09-08  Bruno Haible  <bruno@clisp.org>
101297         * gnulib-tool (func_import): Prefer rsync over wget when available,
101298         for fetching the PO files.
101300 2007-09-08  Bruno Haible  <bruno@clisp.org>
101302         * posix-modules: New file. Portions copied from gnulib-tool.
101303         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
101305 2007-09-08  Jim Meyering  <jim@meyering.net>
101307         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
101308         * lib/fpending.h: Rename from __fpending.h.
101309         * lib/fpending.c: Rename from __fpending.c.
101310         Include "fpending.h", not "__fpending.h".
101311         * lib/__fpending.h, lib/__fpending.c: Remove files.
101312         * modules/fpending (Files): Reflect new file names.
101313         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
101315 2007-09-08  Bruno Haible  <bruno@clisp.org>
101317         * m4/inttypes-h.m4: Remove stub file.
101319 2007-09-07  Simon Josefsson  <simon@josefsson.org>
101321         * doc/headers/stdint.texi: Discuss #include_next issue.
101323 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101325         * build-aux/bootstrap: Remove obsolete comment about wget --help.
101327 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101329         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
101330         in variable name.
101332 2007-09-03  Jim Meyering  <jim@meyering.net>
101334         New module: git-version-gen.
101335         * modules/git-version-gen: New file.
101337         Import changes from coreutils for bootstrap script.
101339         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
101341         bootstrap: uses rsync to download the .po files
101342         * build-aux/bootstrap (po_download_command_format): New global.
101343         (download_po_files): Use rsync.
101344         (update_po_files): Don't remove .po files after download,
101345         so future rsync runs can take advantage of the copies.
101347         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
101349         Solve the unnecessary-.po-file-regeneration problem once and for all.
101350         * build-aux/bootstrap (download_po_files): New function, renamed from
101351         get_translations.  Now, downloads, but doesn't update LINGUAS.
101352         (update_po_files): New function.
101354         bootstrap: Ignore more.
101355         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
101356         uniwidth to e.g., lib/.gitignore.
101357         (slurp): Handle the sys_stat_.h -> sys mapping, too.
101359         * build-aux/bootstrap: New setting: vc_ignore.
101360         (insert_sorted_if_absent): Create $file if absent.
101361         Adapt to new, possibly empty, list: $vc_ignore.
101363         bootstrap: generate more ignorable names
101364         * build-aux/bootstrap (slurp): When generating ignorable names,
101365         also map .sin to .sed, .gperf to .c, and .y to .c.
101367 2007-09-03  Jim Meyering  <jim@meyering.net>
101369         * build-aux/git-version-gen: New file, from coreutils.  For details, see
101370         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
101372 2007-09-02  Bruno Haible  <bruno@clisp.org>
101374         Fix mis-recognition of 'mcs' on QNX 6.
101375         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
101376         output contains the string "Mono".
101377         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
101378         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
101380 2007-09-01  Bruno Haible  <bruno@clisp.org>
101382         Fix collision between uniwidth/* and linebreak modules.
101383         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
101384         u32_width): Remove declarations.
101385         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
101386         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
101387         streq3, streq2, streq1, streq0): Remove functions.
101388         (STREQ): Remove macro.
101389         (is_cjk_encoding): Remove function.
101390         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
101391         (uc_width, u8_width, u16_width, u32_width): Remove functions.
101392         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
101393         * NEWS: Document the change.
101395 2007-09-01  Bruno Haible  <bruno@clisp.org>
101397         * lib/streq.h: Add double-inclusion guard.
101399 2007-09-01  Karl Berry  <karl@gnu.org>
101401         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
101403 2007-08-28  Jim Meyering  <jim@meyering.net>
101405         Rename mreadlink_with_size to areadlink_with_size.
101406         * NEWS: Document the change.
101407         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
101408         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
101409         * lib/mreadlink.h: Rename this to...
101410         * lib/areadlink.h: ...this.
101411         * modules/mreadlink-with-size: Rename this to...
101412         * modules/areadlink-with-size: ...this.
101413         * lib/canonicalize.c: Reflect the renaming.
101414         * modules/canonicalize: Likewise.
101416 2007-08-26  Bruno Haible  <bruno@clisp.org>
101418         * gnulib-tool (func_import): When deciding which files to remove,
101419         consider also dangling symbolic links.
101420         Reported by Eric Blake.
101422 2007-08-26  Bruno Haible  <bruno@clisp.org>
101424         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
101426 2007-08-23  Simon Josefsson  <simon@josefsson.org>
101428         * lib/readline.c: Don't include getline.h, the prototype is now
101429         found in stdio.h.
101431 2007-08-23  Jim Meyering  <jim@meyering.net>
101433         Getdelim touchup.
101434         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
101435         around the funlockfile call, since funlockfile never sets errno.
101436         Don't set errno upon failed realloc.
101438 2007-08-22  Eric Blake  <ebb9@byu.net>
101440         Getline touchups.
101441         * lib/getdelim.c (getdelim): Revert regression that required *n to
101442         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
101443         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
101444         getdelim, rather than whether implementation is missing.
101445         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
101446         * lib/stdio_.h (getline): Also declare if replacement is
101447         required.
101448         * doc/functions/getdelim.texi: New file.
101449         * doc/functions/getline.texi: Likewise.
101450         * doc/gnulib.texi (Function Substitutes): Add new files.
101451         Reported by Bruno Haible.
101453 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
101455         * users.txt: Add Guile.
101457 2007-08-22  Eric Blake  <ebb9@byu.net>
101459         * tests/test-getdelim.c (main): Use remove, not unlink.
101460         * tests/test-getline.c (main): Likewise.
101462         Move getline and getdelim into stdio.h, per POSIX 200x.
101463         * modules/getline (Files): Remove getline.h.
101464         (Depends-on): Add stdio.
101465         (configure.ac): Add module indicator.
101466         * modules/getdelim (Files): Remove getdelim.h.
101467         (Depends-on): Add stdio.
101468         (configure.ac): Add module indicator.
101469         * modules/stdio (Makefile.am): Work with new indicators.
101470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
101471         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
101472         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101473         * lib/getdelim.h: Delete.
101474         * lib/getline.h: Delete.
101475         * lib/stdio_.h (getdelim, getline): Declare.
101476         * modules/getdelim-tests: New module.
101477         * modules/getline-tests: Likewise.
101478         * tests/test-getdelim.c: New file.
101479         * tests/test-getline.c: Likewise.
101480         * NEWS: Document the change.
101481         * lib/getline.c: Update choice of header.
101482         * lib/csharpcomp.c: Likewise.
101483         * lib/getpass.c: Likewise.
101484         * lib/javacomp.c: Likewise.
101485         * lib/javaversion.c: Likewise.
101486         * lib/yesno.c: Likewise.
101487         * lib/getdelim.c: Likewise.
101488         (getdelim): Set errno on failure, and avoid memory leak.
101490 2007-08-19  Bruno Haible  <bruno@clisp.org>
101492         * modules/closein (Depends-on): Add freadahead.
101493         * lib/closein.c: Include freadahead.h.
101494         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
101495         is zero.
101497 2007-08-19  Bruno Haible  <bruno@clisp.org>
101499         * modules/freadahead-tests: New file.
101500         * tests/test-freadahead.sh: New file.
101501         * tests/test-freadahead.c: New file.
101503         * modules/freadahead: New file.
101504         * lib/freadahead.h: New file.
101505         * lib/freadahead.c: New file.
101506         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
101507         fbufmode, fpurge, freadable, fwritable.
101509 2007-08-19  Eric Blake  <ebb9@byu.net>
101511         Test yesno in combination with closein.
101512         * lib/yesno.c (yesno): Document use of stdin.
101513         * modules/yesno-tests (Files): New module.
101514         * tests/test-yesno.c (main): New file.
101515         * tests/test-yesno.sh: Likewise.
101517 2007-08-19  Bruno Haible  <bruno@clisp.org>
101519         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
101520         * lib/fseeko.c (rpl_fseeko): Likewise.
101521         * lib/fseterr.c (fseterr): Likewise.
101523 2007-08-19  Bruno Haible  <bruno@clisp.org>
101525         * tests/test-lseek.c (main): Disable a test for BeOS.
101526         * doc/functions/lseek.texi: Document the BeOS bug.
101528 2007-08-19  Bruno Haible  <bruno@clisp.org>
101529             Eric Blake  <ebb9@byu.net>
101531         * lib/lseek.c: Include <sys/stat.h>.
101532         (rpl_lseek): Add workaround code also for Unix platforms.
101533         Needed for BeOS.
101534         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
101535         * doc/functions/lseek.texi: Document BeOS definiency.
101537 2007-08-18  Bruno Haible  <bruno@clisp.org>
101539         * modules/fstrcmp-tests: New file.
101540         * tests/test-fstrcmp.c: New file.
101542 2007-08-18  Bruno Haible  <bruno@clisp.org>
101544         * modules/fstrcmp: New file, from GNU gettext with modifications.
101545         * lib/fstrcmp.h: New file, from GNU gettext.
101546         * lib/fstrcmp.c: New file, from GNU gettext.
101547         * MODULES.html.sh (String handling): Add fstrcmp.
101549 2007-08-18  Bruno Haible  <bruno@clisp.org>
101551         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
101552         'bool'.
101553         (diag, compareseq): Remove const from the ctxt argument.
101554         (USE_HEURISTIC): Undefine at the end.
101556 2007-08-18  Jim Meyering  <jim@meyering.net>
101558         New file: lib/idcache.h
101559         * NEWS: Mention the addition.
101560         * modules/idcache (Files): Add lib/idcache.h
101561         * lib/idcache.c: Include "idcache.h".
101562         Don't include <sys/types.h>.
101563         Add a FIXME comment.
101564         Move file-scoped "static" declarations to the top.
101565         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
101567 2007-08-17  Bruno Haible  <bruno@clisp.org>
101568         and Paul Eggert  <eggert@cs.ucla.edu>
101570         * MODULES.html.sh: Add diffseq.
101571         * modules/diffseq: New file.
101572         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
101573         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
101575 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
101577         Import changes from coreutils for bootstrap script.
101579         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
101581         * build-aux/bootstrap (slurp): Work even in environments where
101582         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
101583         current code does not slurp files whose names start with ".", and
101584         this looks like it might be a troublesome area.
101586         2007-07-11  Jim Meyering  <jim@meyering.net>
101588         If there's a GPL vN copyright comment, require that N == 3.
101590         2007-07-08  Jim Meyering  <jim@meyering.net>
101592         Run the coreutils-specific code only if tests/Makefile.am.in exists.
101593         * build-aux/bootstrap (mam_template): Move definition out of loop.
101595         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
101597         * build-aux/bootstrap (symlink_to_dir): Rename function from
101598         symlink_to_gnulib.  Add a directory parameter.  Update all
101599         callers.
101600         (cp_mark_as_generated): Also check for -- and link to -- files in
101601         gl/.
101603         2007-07-08  Jim Meyering  <jim@meyering.net>
101605         Adapt to deeper hierarchy in gnulib.
101606         * build-aux/bootstrap (symlink_to_dir): If the destination
101607         directory doesn't exist, create it. This is required at least for
101608         "lib/uniwidth/cjk.h".
101610         2007-05-15  Jim Meyering  <jim@meyering.net>
101612         * build-aux/bootstrap: Now that generated Makefile.am files
101613         are no longer under version control, they must be created at
101614         bootstrap time.
101616 2007-08-14  Ben Pfaff  <blp@gnu.org>
101618         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
101620 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
101622         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
101623         given the changes below.
101624         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
101625         even on hosts that have padding bits beyond the supported 64.
101627 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
101629         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
101630         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
101631         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
101632         depends on it.
101633         (xstrtol_error): Remove.
101634         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
101635         but with a different signature.
101636         (ATTRIBUTE_NORETURN, __attribute__): New macros.
101637         * lib/xstrtol-error.c: Include exitfail.h.
101638         (xstrtol_fatal): New function, with a different signature from the
101639         old xstrtol_error, so that the caller need not worry about passing
101640         in an exit status, or about storage management of the option argument.
101641         (xstrtol_error): Now a static function.  Redo signature to
101642         implement xstrtol_fatal.  Output the correct number of hyphens in
101643         front of the option so that the caller need not worry about
101644         storage management.
101645         (N_): New macro.
101646         (_): Remove; not used now.
101647         * modules/xstrtol: Depend on getopt.
101648         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
101649         of old STRTOL_FATAL_ERROR macro.
101650         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
101651         of test program.
101652         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
101653         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
101655 2007-08-08  Eric Blake  <ebb9@byu.net>
101657         * lib/xstrtol-error.c: Add missing include.
101659         Move xstrtol messages into gnulib domain, when --pobase is used.
101660         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
101661         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
101662         * modules/xstrtol (Files): Distribute new file.
101663         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
101664         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
101665         * tests/test-xstrtol.c: ...into new file.
101666         * tests/test-xstrtoul.c: Also test xstrtoul.
101667         * tests/test-xstrtoimax.c: Also test xstrtoimax.
101668         * tests/test-xstrtoumax.c: Also test xstrtoumax.
101669         * tests/test-xstrtol.sh: Drive the tests.
101670         * tests/test-xstrtoimax.sh: Likewise.
101671         * tests/test-xstrtoumax.sh: Likewise.
101672         * modules/xstrtol-tests: New module.
101673         * modules/xstrtoimax-tests: Likewise.
101674         * modules/xstrtoumax-tests: Likewise.
101676 2007-08-08  Jim Meyering  <jim@meyering.net>
101678         New function: mfile_name_concat.
101679         * lib/filenamecat.c (mfile_name_concat): New function, just like
101680         file_name_concat, but return NULL upon failure rather than exiting
101681         with a diagnostic.
101682         * lib/filenamecat.h: Declare it.
101684 2007-08-07  Bruno Haible  <bruno@clisp.org>
101686         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
101687         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
101688         warning from gcc.
101689         Reported by Eric Blake.
101691 2007-08-07  Simon Josefsson  <simon@josefsson.org>
101693         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
101694         * modules/crypto/arcfour (License): Likewise.
101695         * modules/crypto/des-tests (License): Likewise.
101696         * modules/crypto/gc-arctwo-tests (License): Likewise.
101697         * modules/crypto/gc-des-tests (License): Likewise.
101698         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
101699         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
101700         * modules/crypto/gc-md2-tests (License): Likewise.
101701         * modules/crypto/gc-md4-tests (License): Likewise.
101702         * modules/crypto/gc-md5-tests (License): Likewise.
101703         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
101704         * modules/crypto/gc-rijndael-tests (License): Likewise.
101705         * modules/crypto/gc-sha1-tests (License): Likewise.
101706         * modules/crypto/gc-tests (License): Likewise.
101707         * modules/crypto/hmac-md5 (License): Likewise.
101708         * modules/crypto/hmac-sha1 (License): Likewise.
101709         * modules/crypto/md2-tests (License): Likewise.
101710         * modules/crypto/md4-tests (License): Likewise.
101711         * modules/crypto/md5 (License): Likewise.
101712         * modules/crypto/rijndael (License): Likewise.
101713         * modules/crypto/sha1 (License): Likewise.
101714         * modules/memxor (License): Likewise.
101716 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
101717         and Bruno Haible  <bruno@clisp.org>
101719         * NEWS: Describe interface changes to human, xstrtol.
101720         * lib/human.h: Include <xstrtol.h>.
101721         (human_options): Return enum strtol_error, not int.  Remove
101722         bool arg; take int * instead.
101723         * lib/human.c: Don't include "gettext.h".
101724         (_): Remove; no longer used.
101725         Don't include <xstrtol.h>, since human.h does it.
101726         (human_options): Adjust to abovementioned interface changes.
101727         Do not report error to stderr; that's now the caller's
101728         responsibility.
101729         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
101730         interface change.
101731         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
101732         Str, Argument_type_string.  All uses changed.  Put " argument"
101733         in diagnostics to make them clearer.  Change wording of suffix
101734         message for clarity.
101735         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
101736         Argument_type_string.
101737         (STRTOL_FATAL_WARN): Remove; no longer used.
101738         * modules/human (Depends-on): Remove gettext-h.
101740 2007-08-06  Simon Josefsson  <simon@josefsson.org>
101742         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
101744 2007-07-31  Bruno Haible  <bruno@clisp.org>
101746         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
101747         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
101748         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
101750 2007-07-31  Bruno Haible  <bruno@clisp.org>
101752         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
101753         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
101755 2007-07-30  Bruno Haible  <bruno@clisp.org>
101757         * modules/base64 (License): Use the synonymous term "LGPLv2+".
101758         * modules/c-ctype (License): Likewise.
101759         * modules/c-strcase (License): Likewise.
101760         * modules/check-version (License): Likewise.
101761         * modules/iconv (License): Likewise.
101762         * modules/iconv_open (License): Likewise.
101763         * modules/read-file (License): Likewise.
101764         * modules/striconv (License): Likewise.
101765         * modules/strverscmp (License): Likewise.
101766         * modules/vasprintf (License): Likewise.
101767         * modules/crypto/des (License): Likewise.
101768         * modules/crypto/gc (License): Likewise.
101769         * modules/crypto/gc-arcfour (License): Likewise.
101770         * modules/crypto/gc-arctwo (License): Likewise.
101771         * modules/crypto/gc-des (License): Likewise.
101772         * modules/crypto/gc-hmac-md5 (License): Likewise.
101773         * modules/crypto/gc-hmac-sha1 (License): Likewise.
101774         * modules/crypto/gc-md2 (License): Likewise.
101775         * modules/crypto/gc-md4 (License): Likewise.
101776         * modules/crypto/gc-md5 (License): Likewise.
101777         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
101778         * modules/crypto/gc-random (License): Likewise.
101779         * modules/crypto/gc-rijndael (License): Likewise.
101780         * modules/crypto/gc-sha1 (License): Likewise.
101781         * modules/crypto/md2 (License): Likewise.
101782         * modules/crypto/md4 (License): Likewise.
101784 2007-07-30  Jim Meyering  <jim@meyering.net>
101786         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
101787         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
101788         it has valid stat data.  This bug would cause du not to count the
101789         sizes of inaccessible directories.
101790         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
101791         in <http://bugzilla.redhat.com/250077>.
101793 2007-07-25  Peter O'Gorman  <peter@pogma.com>
101794             Bruno Haible  <bruno@clisp.org>
101796         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
101797         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
101798         #include_next, gives a diagnostic about it, but reports no error in
101799         the exit code.
101800         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
101802 2007-07-24  Ben Pfaff  <blp@gnu.org>
101804         Improve name: "count-one-bits" is better than "popcount".
101805         * MODULES.html.sh: Update name.
101806         * lib/popcount.h: Renamed lib/count-one-bits.h.
101807         (popcount): Renamed count_one_bits.
101808         (popcountl): Renamed count_one_bits_l.
101809         (popcountll): Renamed count_one_bits_ll.
101810         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
101811         * modules/popcount: Renamed module/count-one-bits.
101812         * modules/popcount-tests: Renamed module/count-one-bits-tests.
101813         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
101815 2007-07-23  Ben Pfaff  <blp@gnu.org>
101817         * lib/popcount.h (popcount32): Reduce size of constants, to allow
101818         better code generation, and add U to large constants to avoid
101819         warnings, in non-GCC case.
101820         Suggested by Bruno Haible.
101822 2007-07-23  Ben Pfaff  <blp@gnu.org>
101824         * lib/popcount.h: Use verify_true instead of if...abort.
101825         * modules/popcount: Depend on verify module.
101826         Suggested by Jim Meyering.
101828 2007-07-23  Bruno Haible  <bruno@clisp.org>
101830         * gnulib-tool (func_import): Create a .cvsignore file also when the
101831         directory is not yet in CVS but the toplevel directory is. When
101832         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
101833         Reported by Karl Berry.
101835 2007-07-22  Ben Pfaff  <blp@gnu.org>
101837         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
101838         case.
101839         Suggested by Eric Blake.
101841 2007-07-22  Ben Pfaff  <blp@gnu.org>
101843         New module: popcount.
101844         * MODULES.html.sh: Add popcount.
101845         * modules/popcount: New file.
101846         * modules/popcount-tests: New file.
101847         * tests/test-popcount.c: New file.
101848         * lib/popcount.h: New file.
101849         * m4/popcount.m4: New file.
101851 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
101853         * build-aux/announce-gen: Update to GPLv3.
101855         * build-aux/config.guess: Update from config.
101857 2007-07-21  Bruno Haible  <bruno@clisp.org>
101859         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
101860         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
101862 2007-07-20  Jim Meyering  <jim@meyering.net>
101864         * check-module: Diagnose a self-dependency.
101866 2007-07-19  Bruno Haible  <bruno@clisp.org>
101868         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
101869         empty.
101870         Reported by Eric Blake.
101872 2007-07-18  Bruno Haible  <bruno@clisp.org>
101874         * gnulib-tool: New options --po-base, --po-domain.
101875         (func_usage): Document them.
101876         (pobase, po_domain): New variables.
101877         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
101878         DEFAULT_TEXT_DOMAIN.
101879         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
101880         (func_import): Consider pobase and po_domain. Create a po/ directory.
101881         (func_create_testdir): Set pobase and po_domain to empty.
101882         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
101883         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
101885 2007-07-18  Bruno Haible  <bruno@clisp.org>
101887         * gnulib-tool (func_get_automake_snippet): Synthesize also an
101888         EXTRA_DIST augmentation for files in build-aux/.
101890 2007-07-16  Bruno Haible  <bruno@clisp.org>
101892         * modules/lseek (License): Use the synonymous term "LGPLv2+".
101893         * modules/getdelim (License): Likewise.
101895 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101897         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
101898         * modules/d-type (License): Likewise.
101899         * modules/extensions (License): Likewise.
101900         * modules/fnmatch (License): Likewise.
101901         * modules/fseeko (License): Likewise.
101902         * modules/getaddrinfo (License): Likewise.
101903         * modules/getline (License): Likewise.
101904         * modules/getlogin_r (License): Likewise.
101905         * modules/getpass (License): Likewise.
101906         * modules/gettimeofday (License): Likewise.
101907         * modules/glob (License): Likewise.
101908         * modules/inet_ntop (License): Likewise.
101909         * modules/malloc (License): Likewise.
101910         * modules/malloca (License): Likewise.
101911         * modules/memmem (License): Likewise.
101912         * modules/mempcpy (License): Likewise.
101913         * modules/memset (License): Likewise.
101914         * modules/minmax (License): Likewise.
101915         * modules/mktime (License): Likewise.
101916         * modules/netinet_in (License): Likewise.
101917         * modules/pathmax (License): Likewise.
101918         * modules/poll (License): Likewise.
101919         * modules/regex (License): Likewise.
101920         * modules/snprintf (License): Likewise.
101921         * modules/stdbool (License): Likewise.
101922         * modules/stdint (License): Likewise.
101923         * modules/stdio (License): Likewise.
101924         * modules/strcase (License): Likewise.
101925         * modules/strcasestr (License): Likewise.
101926         * modules/strdup (License): Likewise.
101927         * modules/string (License): Likewise.
101928         * modules/strndup (License): Likewise.
101929         * modules/strnlen (License): Likewise.
101930         * modules/strpbrk (License): Likewise.
101931         * modules/strptime (License): Likewise.
101932         * modules/strsep (License): Likewise.
101933         * modules/sys_select (License): Likewise.
101934         * modules/sys_socket (License): Likewise.
101935         * modules/sys_stat (License): Likewise.
101936         * modules/sys_time (License): Likewise.
101937         * modules/time (License): Likewise.
101938         * modules/time_r (License): Likewise.
101939         * modules/timegm (License): Likewise.
101940         * modules/unistd (License): Likewise.
101941         * modules/vsnprintf (License): Likewise.
101942         * modules/wctype (License): Likewise.
101944 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101946         * modules/argz (License): LGPLv2+.
101948 2007-07-15  Karl Berry  <karl@gnu.org>
101950         * doc/gnulib.texi: revise node structure per new fdl.texi.
101952 2007-07-14  Bruno Haible  <bruno@clisp.org>
101954         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
101955         the output file.
101956         * lib/uniname/uninames.h: Regenerated.
101958 2007-07-14  Karl Berry  <karl@gnu.org>
101960         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
101961         omitting sectioning and index commands.
101963 2007-07-13  Bruno Haible  <bruno@clisp.org>
101965         New gnulib-tool option --more-symlinks.
101966         * gnulib-tool (func_usage): Document --more-symlinks.
101967         (do_copyrights): New variable.
101968         Recognize option --more-symlinks.
101969         (func_import): Don't add a copyright notice transform to
101970         sed_transform_lib_file if do_copyrights is empty.
101972 2007-07-13  Bruno Haible  <bruno@clisp.org>
101974         * lib/vasnprintf.c (decimal_point_char): Define also if
101975         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
101976         && !NEED_PRINTF_DIRECTIVE_A.
101977         Reported by Clemens Koller <clemens.koller@anagramm.de> via
101978         Gary V. Vaughan <gary@gnu.org>.
101980 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
101982         * lib/inttypes_.h: Undo previous change, since it was fixed
101983         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
101985 2007-07-13  Bruno Haible  <bruno@clisp.org>
101987         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
101988         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
101990 2007-07-13  Jim Meyering  <jim@meyering.net>
101992         df: Don't fail for Tru64's "file-on-file mount".
101993         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
101994         so we fall through and use statfs instead.  Details here:
101995         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
101996         Reported by Albert Chin.
101998 2007-07-13  Bruno Haible  <bruno@clisp.org>
102000         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
102001         * modules/configmake (License): Likewise.
102002         * modules/gettext (License): Likewise.
102003         * modules/gettext-h (License): Likewise.
102004         * modules/include_next (License): Likewise.
102005         * modules/link-warning (License): Likewise.
102006         * modules/localcharset (License): Likewise.
102007         * modules/localename (License): Likewise.
102008         * modules/lock (License): Likewise.
102009         * modules/relocatable-lib-lgpl (License): Likewise.
102010         * modules/size_max (License): Likewise.
102011         * modules/vasnprintf (License): Likewise.
102012         * modules/wchar (License): Likewise.
102013         * modules/xsize (License): Likewise.
102015 2007-07-13  Bruno Haible  <bruno@clisp.org>
102017         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
102018         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
102020 2007-07-12  Bruno Haible  <bruno@clisp.org>
102022         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
102023         in the modules files.
102025 2007-07-11  Karl Berry  <karl@gnu.org>
102027         * MODULES.html.sh (func_module): use
102028          sed -e '\|^'"${includefile}"'$|d'
102029          instead of /.../d, to avoid errors on $includefile's containing /.
102031 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102033         * gnulib-tool (func_import): Avoid duplication of --avoid
102034         statements
102035         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
102036         names to `_' in variable names.
102038 2007-07-10  Eric Blake  <ebb9@byu.net>
102040         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
102041         * NEWS: Document this change.
102043 2007-07-08  Bruno Haible  <bruno@clisp.org>
102045         Update to Unicode 5.0.
102046         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
102047         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
102048         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
102049         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
102050         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
102051         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
102052         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
102053         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
102054         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
102055         U+10A3F, U+1D242..U+1D244.
102056         (nonspacing_table_ind): Update.
102057         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
102058         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
102060 2007-07-08  Bruno Haible  <bruno@clisp.org>
102062         Update to Unicode 5.0.
102063         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
102064         code transform. Extend the name index field of unicode_name_to_code and
102065         unicode_code_to_name from 16 to 24 bits.
102066         * lib/uniname/uniname.c (unicode_character_name,
102067         unicode_name_character): Add the range 0x12xxx to the code transform.
102068         * lib/uniname/uninames.h: Regenerated.
102069         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
102071 2007-07-07  Bruno Haible  <bruno@clisp.org>
102073         * modules/wcwidth-tests: New file.
102074         * tests/test-wcwidth.c: New file.
102076         Work around MacOS X wcwidth() bug.
102077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
102078         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
102079         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
102080         original wcwidth in non-UTF-8 locales.
102081         * modules/wcwidth (Depends-on): Add localcharset, streq,
102082         uniwidth/width.
102083         * doc/functions/wcwidth.texi: Update.
102085 2007-07-07  Bruno Haible  <bruno@clisp.org>
102087         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
102088         (wcwidth): New declaration.
102089         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
102090         macros.
102091         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
102092         here. Prepare for creating <wchar.h> unconditionally.
102093         * modules/wchar (Depends-on): Add link-warning.
102094         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
102095         REPLACE_WCWIDTH, and GL_LINK_WARNING.
102096         * lib/wcwidth.h: Remove file.
102097         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
102098         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
102099         * modules/wcwidth (Files): Remove lib/wcwidth.h.
102100         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
102101         (Include): Replace wcwidth.h with <wchar.h>.
102102         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
102103         * lib/mbchar.h: Don't include wcwidth.h.
102104         * lib/mbswidth.c: Likewise.
102105         * NEWS: Mention the change.
102107 2007-07-07  Bruno Haible  <bruno@clisp.org>
102109         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
102110         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
102111         definition with an external declaration.
102112         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
102113         defined as a function. Remove AC_C_INLINE requirement.
102114         * modules/wcwidth (Files): Add lib/wcwidth.c.
102115         (Makefile.am): Remove redundant statement.
102117 2007-07-07  Bruno Haible  <bruno@clisp.org>
102119         * MODULES.html.sh (Unicode string functions): Add the new modules.
102121         * tests/uniwidth/test-u32-strwidth.c: New file.
102122         * modules/uniwidth/u32-strwidth-tests: New file.
102124         * lib/uniwidth/u32-strwidth.c: New file.
102125         * modules/uniwidth/u32-strwidth: New file.
102127         * tests/uniwidth/test-u16-strwidth.c: New file.
102128         * modules/uniwidth/u16-strwidth-tests: New file.
102130         * lib/uniwidth/u16-strwidth.c: New file.
102131         * modules/uniwidth/u16-strwidth: New file.
102133         * tests/uniwidth/test-u8-strwidth.c: New file.
102134         * modules/uniwidth/u8-strwidth-tests: New file.
102136         * lib/uniwidth/u8-strwidth.c: New file.
102137         * modules/uniwidth/u8-strwidth: New file.
102139         * tests/uniwidth/test-u32-width.c: New file.
102140         * modules/uniwidth/u32-width-tests: New file.
102142         * lib/uniwidth/u32-width.c: New file.
102143         * modules/uniwidth/u32-width: New file.
102145         * tests/uniwidth/test-u16-width.c: New file.
102146         * modules/uniwidth/u16-width-tests: New file.
102148         * lib/uniwidth/u16-width.c: New file.
102149         * modules/uniwidth/u16-width: New file.
102151         * tests/uniwidth/test-u8-width.c: New file.
102152         * modules/uniwidth/u8-width-tests: New file.
102154         * lib/uniwidth/u8-width.c: New file.
102155         * modules/uniwidth/u8-width: New file.
102157         * tests/uniwidth/test-uc_width.c: New file.
102158         * modules/uniwidth/width-tests: New file.
102160         * lib/uniwidth/width.c: New file, from GNU libiconv.
102161         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
102162         * modules/uniwidth/width: New file.
102164         * lib/uniwidth.h: New file, from GNU libiconv.
102165         * modules/uniwidth/base: New file.
102167 2007-07-07  Bruno Haible  <bruno@clisp.org>
102169         * lib/uniname.h: New file, from GNU gettext.
102170         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
102171         * lib/uniname/uninames.h: New file, from GNU gettext.
102172         * lib/uniname/uniname.c: New file, from GNU gettext.
102173         * tests/uniname/test-uninames.sh: New file.
102174         * tests/uniname/test-uninames.c: New file, from GNU gettext.
102175         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
102176         * modules/uniname/base: New file.
102177         * modules/uniname/uniname: New file.
102178         * modules/uniname/uniname-tests: New file.
102179         * MODULES.html.sh (Unicode string functions): Add the new modules.
102181 2007-07-06  Bruno Haible  <bruno@clisp.org>
102183         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
102185 2007-07-06  Bruno Haible  <bruno@clisp.org>
102187         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
102188         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
102189         includes <cygwin/sys_time.h> which includes <sys/select.h> which
102190         include <sys/time.h>.
102191         Reported by Eric Blake.
102193 2007-07-06  Eric Blake  <ebb9@byu.net>
102195         Fix testing canonicalize on cygwin.
102196         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
102197         Revert patch from 2007-06-19.
102198         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
102199         canonicalize module is also in use.
102200         * tests/test-canonicalize.c: New file.
102201         * tests/test-canonicalize.sh: Likewise.
102202         * modules/canonicalize-tests: Likewise.
102204 2007-07-06  Jim Meyering  <jim@meyering.net>
102206         * lib/getugroups.c (getugroups): Detect getgrent failure.
102207         Adjust comment to reflect reality: this function may return -1.
102209 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
102211         * build-aux/bootstrap (TP_URL,get_translations): Update to use
102212         the new TP address.
102213         (usage): Fix typo
102214         (gnulib_mk): New variable.
102216 2007-07-05  Jim Meyering  <jim@meyering.net>
102218         Don't let endgrent clobber errno, no matter how improbable.
102219         * lib/getugroups.c (getugroups): Save and restore errno around
102220         endgrent call.
102222         Close the group DB even when failing with 2^31 or more members.
102223         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
102225 2007-07-04  Jim Meyering  <jim@meyering.net>
102227         * lib/getugroups.h: New file.
102228         * lib/getugroups.c: Include "getugroups.h".
102229         Remove uses of "register" keyword.
102230         Move local variable, "cp", down into scope where used.
102231         Give "username" parameter the "const" attribute.
102232         * modules/getugroups (Files): Add lib/getugroups.h
102234 2007-07-04  Karl Berry  <karl@gnu.org>
102236         * MODULES.html.sh (func_all_modules): Complete rename of
102237         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
102239 2007-07-02  Bruno Haible  <bruno@clisp.org>
102241         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
102242         mode, when inttypes.h comes from gnulib.
102243         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
102245 2007-07-02  Simon Josefsson  <simon@josefsson.org>
102247         * NEWS: Mention lgpl module name change.
102249         * modules/lgpl-2.1: Renamed from lgpl.
102251         * NEWS: Mention gpl module name change.
102253         * modules/gpl-3.0: New file, based on gpl-2.0.
102255         * modules/gpl-2.0: Renamed from gpl.
102257         * modules/gpl: Fix filename, doc/gpl.texi is now found at
102258         doc/gpl-2.0.texi.
102260 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
102262         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
102263         #define __STDC_LIMIT_MACROS temporarily while including
102264         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
102265         Problem reported by Joel E. Denny in
102266         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
102268 2007-07-01  Bruno Haible  <bruno@clisp.org>
102270         * lib/unistdio.h: New file.
102271         * lib/unistdio/u-asnprintf.h: New file.
102272         * lib/unistdio/u-asprintf.h: New file.
102273         * lib/unistdio/u-printf-args.c: New file.
102274         * lib/unistdio/u-printf-args.h: New file.
102275         * lib/unistdio/u-printf-parse.h: New file.
102276         * lib/unistdio/u-snprintf.h: New file.
102277         * lib/unistdio/u-sprintf.h: New file.
102278         * lib/unistdio/u-vasprintf.h: New file.
102279         * lib/unistdio/u-vsnprintf.h: New file.
102280         * lib/unistdio/u-vsprintf.h: New file.
102281         * lib/unistdio/ulc-asnprintf.c: New file.
102282         * lib/unistdio/ulc-asprintf.c: New file.
102283         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
102284         * lib/unistdio/ulc-printf-parse.c: New file.
102285         * lib/unistdio/ulc-snprintf.c: New file.
102286         * lib/unistdio/ulc-sprintf.c: New file.
102287         * lib/unistdio/ulc-vasnprintf.c: New file.
102288         * lib/unistdio/ulc-vasprintf.c: New file.
102289         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
102290         * lib/unistdio/ulc-vsnprintf.c: New file.
102291         * lib/unistdio/ulc-vsprintf.c: New file.
102292         * lib/unistdio/u8-asnprintf.c: New file.
102293         * lib/unistdio/u8-asprintf.c: New file.
102294         * lib/unistdio/u8-printf-parse.c: New file.
102295         * lib/unistdio/u8-snprintf.c: New file.
102296         * lib/unistdio/u8-sprintf.c: New file.
102297         * lib/unistdio/u8-vasnprintf.c: New file.
102298         * lib/unistdio/u8-vasprintf.c: New file.
102299         * lib/unistdio/u8-vsnprintf.c: New file.
102300         * lib/unistdio/u8-vsprintf.c: New file.
102301         * lib/unistdio/u8-u8-asnprintf.c: New file.
102302         * lib/unistdio/u8-u8-asprintf.c: New file.
102303         * lib/unistdio/u8-u8-snprintf.c: New file.
102304         * lib/unistdio/u8-u8-sprintf.c: New file.
102305         * lib/unistdio/u8-u8-vasnprintf.c: New file.
102306         * lib/unistdio/u8-u8-vasprintf.c: New file.
102307         * lib/unistdio/u8-u8-vsnprintf.c: New file.
102308         * lib/unistdio/u8-u8-vsprintf.c: New file.
102309         * lib/unistdio/u16-asnprintf.c: New file.
102310         * lib/unistdio/u16-asprintf.c: New file.
102311         * lib/unistdio/u16-printf-parse.c: New file.
102312         * lib/unistdio/u16-snprintf.c: New file.
102313         * lib/unistdio/u16-sprintf.c: New file.
102314         * lib/unistdio/u16-vasnprintf.c: New file.
102315         * lib/unistdio/u16-vasprintf.c: New file.
102316         * lib/unistdio/u16-vsnprintf.c: New file.
102317         * lib/unistdio/u16-vsprintf.c: New file.
102318         * lib/unistdio/u16-u16-asnprintf.c: New file.
102319         * lib/unistdio/u16-u16-asprintf.c: New file.
102320         * lib/unistdio/u16-u16-snprintf.c: New file.
102321         * lib/unistdio/u16-u16-sprintf.c: New file.
102322         * lib/unistdio/u16-u16-vasnprintf.c: New file.
102323         * lib/unistdio/u16-u16-vasprintf.c: New file.
102324         * lib/unistdio/u16-u16-vsnprintf.c: New file.
102325         * lib/unistdio/u16-u16-vsprintf.c: New file.
102326         * lib/unistdio/u32-asnprintf.c: New file.
102327         * lib/unistdio/u32-asprintf.c: New file.
102328         * lib/unistdio/u32-printf-parse.c: New file.
102329         * lib/unistdio/u32-snprintf.c: New file.
102330         * lib/unistdio/u32-sprintf.c: New file.
102331         * lib/unistdio/u32-vasnprintf.c: New file.
102332         * lib/unistdio/u32-vasprintf.c: New file.
102333         * lib/unistdio/u32-vsnprintf.c: New file.
102334         * lib/unistdio/u32-vsprintf.c: New file.
102335         * lib/unistdio/u32-u32-asnprintf.c: New file.
102336         * lib/unistdio/u32-u32-asprintf.c: New file.
102337         * lib/unistdio/u32-u32-snprintf.c: New file.
102338         * lib/unistdio/u32-u32-sprintf.c: New file.
102339         * lib/unistdio/u32-u32-vasnprintf.c: New file.
102340         * lib/unistdio/u32-u32-vasprintf.c: New file.
102341         * lib/unistdio/u32-u32-vsnprintf.c: New file.
102342         * lib/unistdio/u32-u32-vsprintf.c: New file.
102343         * tests/unistdio/test-ulc-asnprintf1.c: New file.
102344         * tests/unistdio/test-ulc-asnprintf1.h: New file.
102345         * tests/unistdio/test-ulc-printf1.h: New file.
102346         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
102347         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
102348         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
102349         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
102350         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
102351         * tests/unistdio/test-ulc-vasprintf1.c: New file.
102352         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
102353         * tests/unistdio/test-ulc-vsprintf1.c: New file.
102354         * tests/unistdio/test-u8-asnprintf1.c: New file.
102355         * tests/unistdio/test-u8-asnprintf1.h: New file.
102356         * tests/unistdio/test-u8-printf1.h: New file.
102357         * tests/unistdio/test-u8-vasnprintf1.c: New file.
102358         * tests/unistdio/test-u8-vasnprintf2.c: New file.
102359         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
102360         * tests/unistdio/test-u8-vasnprintf3.c: New file.
102361         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
102362         * tests/unistdio/test-u8-vasprintf1.c: New file.
102363         * tests/unistdio/test-u8-vsnprintf1.c: New file.
102364         * tests/unistdio/test-u8-vsprintf1.c: New file.
102365         * tests/unistdio/test-u16-asnprintf1.c: New file.
102366         * tests/unistdio/test-u16-asnprintf1.h: New file.
102367         * tests/unistdio/test-u16-printf1.h: New file.
102368         * tests/unistdio/test-u16-vasnprintf1.c: New file.
102369         * tests/unistdio/test-u16-vasnprintf2.c: New file.
102370         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
102371         * tests/unistdio/test-u16-vasnprintf3.c: New file.
102372         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
102373         * tests/unistdio/test-u16-vasprintf1.c: New file.
102374         * tests/unistdio/test-u16-vsnprintf1.c: New file.
102375         * tests/unistdio/test-u16-vsprintf1.c: New file.
102376         * tests/unistdio/test-u32-asnprintf1.c: New file.
102377         * tests/unistdio/test-u32-asnprintf1.h: New file.
102378         * tests/unistdio/test-u32-printf1.h: New file.
102379         * tests/unistdio/test-u32-vasnprintf1.c: New file.
102380         * tests/unistdio/test-u32-vasnprintf2.c: New file.
102381         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
102382         * tests/unistdio/test-u32-vasnprintf3.c: New file.
102383         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
102384         * tests/unistdio/test-u32-vasprintf1.c: New file.
102385         * tests/unistdio/test-u32-vsnprintf1.c: New file.
102386         * tests/unistdio/test-u32-vsprintf1.c: New file.
102387         * modules/unistdio/base: New file.
102388         * modules/unistdio/u-printf-args: New file.
102389         * modules/unistdio/ulc-asnprintf: New file.
102390         * modules/unistdio/ulc-asprintf: New file.
102391         * modules/unistdio/ulc-fprintf: New file.
102392         * modules/unistdio/ulc-printf-parse: New file.
102393         * modules/unistdio/ulc-snprintf: New file.
102394         * modules/unistdio/ulc-sprintf: New file.
102395         * modules/unistdio/ulc-vasnprintf: New file.
102396         * modules/unistdio/ulc-vasprintf: New file.
102397         * modules/unistdio/ulc-vfprintf: New file.
102398         * modules/unistdio/ulc-vsnprintf: New file.
102399         * modules/unistdio/ulc-vsprintf: New file.
102400         * modules/unistdio/u8-asnprintf: New file.
102401         * modules/unistdio/u8-asprintf: New file.
102402         * modules/unistdio/u8-printf-parse: New file.
102403         * modules/unistdio/u8-snprintf: New file.
102404         * modules/unistdio/u8-sprintf: New file.
102405         * modules/unistdio/u8-vasnprintf: New file.
102406         * modules/unistdio/u8-vasprintf: New file.
102407         * modules/unistdio/u8-vsnprintf: New file.
102408         * modules/unistdio/u8-vsprintf: New file.
102409         * modules/unistdio/u8-u8-asnprintf: New file.
102410         * modules/unistdio/u8-u8-asprintf: New file.
102411         * modules/unistdio/u8-u8-snprintf: New file.
102412         * modules/unistdio/u8-u8-sprintf: New file.
102413         * modules/unistdio/u8-u8-vasnprintf: New file.
102414         * modules/unistdio/u8-u8-vasprintf: New file.
102415         * modules/unistdio/u8-u8-vsnprintf: New file.
102416         * modules/unistdio/u8-u8-vsprintf: New file.
102417         * modules/unistdio/u16-asnprintf: New file.
102418         * modules/unistdio/u16-asprintf: New file.
102419         * modules/unistdio/u16-printf-parse: New file.
102420         * modules/unistdio/u16-snprintf: New file.
102421         * modules/unistdio/u16-sprintf: New file.
102422         * modules/unistdio/u16-vasnprintf: New file.
102423         * modules/unistdio/u16-vasprintf: New file.
102424         * modules/unistdio/u16-vsnprintf: New file.
102425         * modules/unistdio/u16-vsprintf: New file.
102426         * modules/unistdio/u16-u16-asnprintf: New file.
102427         * modules/unistdio/u16-u16-asprintf: New file.
102428         * modules/unistdio/u16-u16-snprintf: New file.
102429         * modules/unistdio/u16-u16-sprintf: New file.
102430         * modules/unistdio/u16-u16-vasnprintf: New file.
102431         * modules/unistdio/u16-u16-vasprintf: New file.
102432         * modules/unistdio/u16-u16-vsnprintf: New file.
102433         * modules/unistdio/u16-u16-vsprintf: New file.
102434         * modules/unistdio/u32-asnprintf: New file.
102435         * modules/unistdio/u32-asprintf: New file.
102436         * modules/unistdio/u32-printf-parse: New file.
102437         * modules/unistdio/u32-snprintf: New file.
102438         * modules/unistdio/u32-sprintf: New file.
102439         * modules/unistdio/u32-vasnprintf: New file.
102440         * modules/unistdio/u32-vasprintf: New file.
102441         * modules/unistdio/u32-vsnprintf: New file.
102442         * modules/unistdio/u32-vsprintf: New file.
102443         * modules/unistdio/u32-u32-asnprintf: New file.
102444         * modules/unistdio/u32-u32-asprintf: New file.
102445         * modules/unistdio/u32-u32-snprintf: New file.
102446         * modules/unistdio/u32-u32-sprintf: New file.
102447         * modules/unistdio/u32-u32-vasnprintf: New file.
102448         * modules/unistdio/u32-u32-vasprintf: New file.
102449         * modules/unistdio/u32-u32-vsnprintf: New file.
102450         * modules/unistdio/u32-u32-vsprintf: New file.
102451         * modules/unistdio/ulc-asnprintf-tests: New file.
102452         * modules/unistdio/ulc-vasnprintf-tests: New file.
102453         * modules/unistdio/ulc-vasprintf-tests: New file.
102454         * modules/unistdio/ulc-vsnprintf-tests: New file.
102455         * modules/unistdio/ulc-vsprintf-tests: New file.
102456         * modules/unistdio/u8-asnprintf-tests: New file.
102457         * modules/unistdio/u8-vasnprintf-tests: New file.
102458         * modules/unistdio/u8-vasprintf-tests: New file.
102459         * modules/unistdio/u8-vsnprintf-tests: New file.
102460         * modules/unistdio/u8-vsprintf-tests: New file.
102461         * modules/unistdio/u16-asnprintf-tests: New file.
102462         * modules/unistdio/u16-vasnprintf-tests: New file.
102463         * modules/unistdio/u16-vasprintf-tests: New file.
102464         * modules/unistdio/u16-vsnprintf-tests: New file.
102465         * modules/unistdio/u16-vsprintf-tests: New file.
102466         * modules/unistdio/u32-asnprintf-tests: New file.
102467         * modules/unistdio/u32-vasnprintf-tests: New file.
102468         * modules/unistdio/u32-vasprintf-tests: New file.
102469         * modules/unistdio/u32-vsnprintf-tests: New file.
102470         * modules/unistdio/u32-vsprintf-tests: New file.
102471         * MODULES.html.sh (Unicode string functions): Add the new modules.
102473 2007-07-01  Bruno Haible  <bruno@clisp.org>
102475         * lib/sprintf.c (sprintf): Limit the available length estimation,
102476         to avoid address wraparound.
102477         * lib/vsprintf.c (vsprintf): Likewise.
102478         * modules/sprintf-posix (Dependencies): Add stdint.
102479         * modules/vsprintf-posix (Dependencies): Likewise.
102481 2007-07-01  Bruno Haible  <bruno@clisp.org>
102483         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
102484         Windows PATH as well. Conservative double-quoting. Comments.
102486 2007-07-01  Bruno Haible  <bruno@clisp.org>
102487             Eric Blake  <ebb9@byu.net>
102488             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102490         * gnulib-tool (self_abspathname): Fix algorithm to cope with
102491         empty components in $PATH, denoting '.'.
102493 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102495         * gnulib-tool: Fix indentation.
102496         (func_create_megatestdir): Likewise.
102497         Report by Bruno Haible.
102499 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102501         Sync from Automake.
102502         * build-aux/gnupload: Fix shell portability issues with for loops.
102503         Report by Karl Berry.
102505 2007-06-29  Simon Josefsson  <simon@josefsson.org>
102507         * build-aux/maint.mk (POURL): Use translationproject.org.
102509 2007-06-27  Simon Josefsson  <simon@josefsson.org>
102510             Bruno Haible  <bruno@clisp.org>
102512         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
102513         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
102514         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
102515         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
102516         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
102518 2007-06-27  Bruno Haible  <bruno@clisp.org>
102520         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
102521         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
102523 2007-06-26  Karl Berry  <karl@gnu.org>
102525         * MODULES.html.sh: remove xreadlink-with-size.
102527 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102529         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
102530         method that I hope also handles the double-include problem noted
102531         by Bruno Haible in
102532         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
102534 2007-06-23  Bruno Haible  <bruno@clisp.org>
102536         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102537         Don't let the 'mostlyclean' target fail if the last subdirectory could
102538         not be removed.
102539         Reported by Karl Berry.
102541 2007-06-23  Bruno Haible  <bruno@clisp.org>
102543         * gnulib-tool (echo): Add a speedier workaround for ksh.
102544         * tests/test-echo.sh: Likewise.
102546 2007-06-23  Bruno Haible  <bruno@clisp.org>
102548         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
102549         * tests/test-echo.sh: Likewise.
102551 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102553         * gnulib-tool (IFS): Initialize early, so we don't set it to
102554         empty later.
102555         (self_abspathname): Rewrite algorithm to set it, reindent.
102556         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
102557         (func_create_megatestdir): Merge some sed scripts.
102559 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102561         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
102562         exposed by Sun Studio 11 cc on Solaris 8.
102564 2007-06-22  Bruno Haible  <bruno@clisp.org>
102566         * gnulib-tool (echo): Ensure the echo primitive does not interpret
102567         backslashes.
102568         * tests/test-echo.sh: New file.
102570 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102572         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
102573         simplify `sed_replace_build_aux' scripts, they are portable but
102574         echoing them with `echo' is not.
102575         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
102577 2007-06-21  Karl Berry  <karl@gnu.org>
102579         * config/srclist.txt: guess we can't handle the licenses via
102580         srclist at the moment.
102582 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
102584         * MODULES.html.sh: Add include_next.
102585         * modules/include_next: New file.
102587 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
102589         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
102590         INCLUDE_NEXT.
102591         (gl_CHECK_NEXT_HEADERS): New macro.
102592         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
102593         the obsolescent gl_ABSOLUTE_HEADER.
102594         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
102595         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
102596         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
102597         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
102598         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
102599         * m4/math_h.m4 (gl_MATH_H): Likewise.
102600         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
102601         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
102602         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
102603         * m4/stdint.m4 (gl_STDINT_H): Likewise.
102604         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
102605         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
102606         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
102607         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
102608         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
102609         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
102610         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
102611         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
102612         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
102613         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
102614         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
102615         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
102616         * m4/inttypes.m4 (gl_INTTYPES_H): Define
102617         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
102618         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
102619         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
102620         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
102621         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
102622         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
102623         * lib/float_.h: Likewise.
102624         * lib/inttypes_.h: Likewise.
102625         * lib/math_.h: Likewise.
102626         * lib/search_.h: Likewise.
102627         * lib/signal_.h: Likewise.
102628         * lib/stdint_.h: Likewise.
102629         * lib/stdio_.h: Likewise.
102630         * lib/stdlib_.h: Likewise.
102631         * lib/string_.h: Likewise.
102632         * lib/sys_stat_.h: Likewise.
102633         * lib/sys_time_.h: Likewise.
102634         * lib/time_.h: Likewise.
102635         * lib/unistd_.h: Likewise.
102636         * lib/wchar_.h: Likewise.
102637         * lib/wctype_.h: Likewise.
102638         * lib/dirent_.h: Likewise.
102639         * lib/iconv_.h: Likewise.
102640         * lib/locale_.h: Likewise.
102641         * lib/netinet_in_.h: Likewise.
102642         * lib/sys_select_.h: Likewise.
102643         * lib/sys_socket_.h: Likewise.
102644         * lib/sysexits_.h: Likewise.
102645         * modules/fcntl (Depends-on): Depend on include_next, not
102646         absolute_header.
102647         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
102648         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
102649         * modules/fchdir: Likewise.
102650         * modules/float: Likewise.
102651         * modules/iconv_open: Likewise.
102652         * modules/inttypes: Likewise.
102653         * modules/locale: Likewise.
102654         * modules/math: Likewise.
102655         * modules/netinet_in: Likewise.
102656         * modules/search: Likewise.
102657         * modules/signal: Likewise.
102658         * modules/stdint: Likewise.
102659         * modules/stdio: Likewise.
102660         * modules/stdlib: Likewise.
102661         * modules/string: Likewise.
102662         * modules/sys_select: Likewise.
102663         * modules/sys_socket: Likewise.
102664         * modules/sys_stat: Likewise.
102665         * modules/sys_time: Likewise.
102666         * modules/sysexits: Likewise.
102667         * modules/time: Likewise.
102668         * modules/unistd: Likewise.
102669         * modules/wchar: Likewise.
102670         * modules/wctype: Likewise.
102671         * modules/sys_stat: Change maintainer to "all".
102672         * modules/unistd: Likewise.
102674 2007-06-20  Karl Berry  <karl@gnu.org>
102676         * config/srclist.txt: track www changes in license files.
102678 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
102680         * build-aux/bootstrap: Remove stray dot.
102681         Make sure build_aux settings are honored when linking
102682         gnulib_extra_files.
102684 2007-06-19  Eric Blake  <ebb9@byu.net>
102686         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
102687         Allow compilation on cygwin.
102689 2007-06-19  Jim Meyering  <jim@meyering.net>
102691         xreadlink-with-size: Remove module.  No longer used.
102692         Ex-callers now use xreadlink or mreadlink-with-size.
102693         * modules/xreadlink-with-size: Remove module.
102694         * lib/xreadlink-with-size.c: Remove file.
102695         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
102696         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
102697         just before the function definition *is* accurate.
102699         Eliminate one way canonicalize_filename_mode could exit.
102700         * lib/canonicalize.c (canonicalize_filename_mode):
102701         Use mreadlink_with_size, not xreadlink_with_size.
102703 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
102705         Detect porting problems to FreeBSD/arm, which has time_t wider than
102706         long int.  Original problem reported for GNU diff by Xin Li in
102707         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
102708         * modules/getdate (Depends-on): Add intprops, verify.
102709         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
102710         is an integer type no wider than long int.
102712 2007-06-18  Jim Meyering  <jim@meyering.net>
102714         New module: mreadlink-with-size.
102715         * MODULES.html.sh: Add mreadlink-with-size.
102716         * modules/mreadlink-with-size: New module
102717         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
102718         not xreadlink-with-size.
102719         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
102721 2007-06-16  Bruno Haible  <bruno@clisp.org>
102723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
102724         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
102725         Reported by Gary V. Vaughan <gary@gnu.org>.
102727 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
102729         Revamp lchown so that it lives in unistd.h where it belongs.
102730         * lib/lchown.h: Remove.
102731         * lib/dirchownmod.c: Don't include lib/lchown.h.
102732         * lib/fchownat.c: Likewise.
102733         * lib/openat.c: Likewise.
102734         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
102735         does not follow symlinks.
102736         (EOPNOTSUPP): Define if not defined.
102737         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
102738         is defined to 0.
102739         (lchown): New decl.
102740         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
102741         Do not check for lchown decl.
102742         Set REPLACE_LCHOWN.
102743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
102744         REPLACE_LCHOWN.
102745         * modules/chown: Make it clear it follows symlinks.
102746         * modules/lchown: Make it clear it doesn't follow symlinks.
102747         (Files): Remove lib/lchown.h
102748         (Depends-on): Add unistd.
102749         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
102750         (Include): Include <unistd.h>, not "lchown.h".
102751         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
102752         REPLACE_LCHOWN.
102754 2007-06-15  Jim Meyering  <jim@meyering.net>
102756         Change license (GPL to LGPL) of fsusage and dependents.
102757         * modules/fsusage (License): Change to LGPL.
102758         * modules/full-read (License): Likewise.
102759         * modules/full-write (License): Likewise.
102760         * modules/safe-read (License): Likewise.
102761         * modules/safe-write (License): Likewise.
102763 2007-06-14  Ben Pfaff  <blp@gnu.org>
102765         Missing part of allocsa -> malloca transition.
102766         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
102767         gl_MALLOCA.
102769 2007-06-12  Bruno Haible  <bruno@clisp.org>
102771         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
102772         to ia64, x86_64, i386.
102773         Reported by Eric Blake.
102775 2007-06-12  Bruno Haible  <bruno@clisp.org>
102777         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
102778         cross-compiling to x86_64.
102780 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
102782         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
102783         glitch reported by Ralf Wildenhues in
102784         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
102786         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
102787         Vin Shelton.
102789 2007-06-11  Bruno Haible  <bruno@clisp.org>
102791         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
102792         replacement string.
102793         Reported by Eric Blake.
102795 2007-06-10  Bruno Haible  <bruno@clisp.org>
102797         Prepare vasnprintf code for use with Unicode strings.
102798         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
102799         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
102800         TYPE_U32_STRING.
102801         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
102802         a_u32_string variants.
102803         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
102804         * lib/printf-args.c: Don't include config.h and the specification
102805         header if PRINTF_FETCHARGS is already defined.
102806         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
102807         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
102808         TYPE_U16_STRING, TYPE_U32_STRING.
102809         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
102810         u16_directive, u16_directives, u32_directive, u32_directives): New
102811         types.
102812         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
102813         New declarations.
102814         * lib/printf-parse.c: Don't include config.h and the specification
102815         header if PRINTF_PARSE is already defined. Eliminate the set of
102816         parameters for WIDE_CHAR_VERSION; the user of this file must provide
102817         them now. Include c-ctype.h.
102818         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
102819         directive and CHAR_T_ONLY_ASCII.
102820         * lib/vasnprintf.c: Don't include config.h and the specification header
102821         if VASNPRINTF is already defined.
102822         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
102823         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
102824         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
102825         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
102826         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
102827         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
102828         code accordingly.
102829         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
102830         pad_ourselves also in this case, with the 'c' and 's' directives, and
102831         with a different notion of "width".
102832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
102834 2007-06-10  Bruno Haible  <bruno@clisp.org>
102836         * modules/unistr/u32-mbsnlen: New file.
102837         * lib/unistr/u32-mbsnlen.c: New file.
102839         * modules/unistr/u16-mbsnlen: New file.
102840         * lib/unistr/u16-mbsnlen.c: New file.
102842         * modules/unistr/u8-mbsnlen: New file.
102843         * lib/unistr/u8-mbsnlen.c: New file.
102845         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
102846         declarations.
102848 2007-06-10  Bruno Haible  <bruno@clisp.org>
102850         * lib/string_.h (mbsnlen): New declaration.
102851         * lib/mbsnlen.c: New file.
102852         * m4/mbsnlen.m4: New file.
102853         * modules/mbsnlen: New file.
102854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
102855         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
102856         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
102858 2007-06-10  Bruno Haible  <bruno@clisp.org>
102860         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
102862 2007-06-10  Bruno Haible  <bruno@clisp.org>
102864         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
102865         * lib/mbuiter.h: Likewise.
102867 2007-06-10  Bruno Haible  <bruno@clisp.org>
102869         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
102870         declaration.
102872 2007-06-10  Karl Berry  <karl@gnu.org>
102874         * config/srclist.txt: remove gettext entries, Bruno prefers
102875         to update individually.
102877 2007-06-10  Bruno Haible  <bruno@clisp.org>
102879         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
102880         'maxlen'. Ensure only length + width bytes are allocated, not
102881         length + 1 + width.
102883 2007-06-09  Bruno Haible  <bruno@clisp.org>
102885         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
102886         (CHAR_T): Remove macro.
102887         (VASNPRINTF): Update.
102889 2007-06-09  Bruno Haible  <bruno@clisp.org>
102891         * MODULES.html.sh (Unicode string functions): Add the new modules.
102893         * modules/uniconv/u32-conv-to-enc: New file.
102894         * lib/uniconv/u32-conv-to-enc.c: New file.
102895         * modules/uniconv/u32-conv-to-enc-tests: New file.
102896         * tests/uniconv/test-u32-conv-to-enc.c: New file.
102898         * modules/uniconv/u16-conv-to-enc: New file.
102899         * lib/uniconv/u16-conv-to-enc.c: New file.
102900         * lib/uniconv/u-conv-to-enc.h: New file.
102901         * modules/uniconv/u16-conv-to-enc-tests: New file.
102902         * tests/uniconv/test-u16-conv-to-enc.c: New file.
102904         * modules/uniconv/u8-conv-to-enc: New file.
102905         * lib/uniconv/u8-conv-to-enc.c: New file.
102906         * modules/uniconv/u8-conv-to-enc-tests: New file.
102907         * tests/uniconv/test-u8-conv-to-enc.c: New file.
102909         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
102910         u32_conv_to_encoding): New declarations.
102912 2007-06-09  Bruno Haible  <bruno@clisp.org>
102914         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
102916 2007-06-09  Bruno Haible  <bruno@clisp.org>
102918         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
102919         * modules/malloca: Renamed from modules/allocsa, updated.
102920         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
102921         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
102922         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
102923         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
102924         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
102925         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
102926         * modules/xmalloca: Renamed from modules/xallocsa, updated.
102927         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
102928         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
102929         * modules/c-strcasestr (Depends-on): Update.
102930         * lib/c-strcasestr.c: Update.
102931         * modules/c-strstr (Depends-on): Update.
102932         * lib/c-strstr.c: Update.
102933         * modules/canonicalize-lgpl (Depends-on): Update.
102934         * lib/canonicalize-lgpl.c: Update.
102935         * modules/clean-temp (Depends-on): Update.
102936         * lib/clean-temp.c: Update.
102937         * modules/csharpcomp (Depends-on): Update.
102938         * lib/csharpcomp.c: Update.
102939         * modules/csharpexec (Depends-on): Update.
102940         * lib/csharpexec.c: Update.
102941         * modules/javacomp (Depends-on): Update.
102942         * lib/javacomp.c: Update.
102943         * modules/javaexec (Depends-on): Update.
102944         * lib/javaexec.c: Update.
102945         * modules/mbscasestr (Depends-on): Update.
102946         * lib/mbscasestr.c: Update.
102947         * modules/mbsstr (Depends-on): Update.
102948         * lib/mbsstr.c: Update.
102949         * modules/setenv (Depends-on): Update.
102950         * lib/setenv.c: Update.
102951         * modules/strcasestr (Depends-on): Update.
102952         * lib/strcasestr.c: Update.
102953         * modules/striconveha (Depends-on): Update.
102954         * lib/striconveha.c: Update.
102955         * modules/relocatable-prog-wrapper (Files): Update.
102956         * lib/relocwrapper.c: Update.
102957         * build-aux/install-reloc: Update.
102958         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
102960 2007-06-08  Bruno Haible  <bruno@clisp.org>
102962         Port to uClibc.
102963         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
102964         * lib/fpurge.c (fpurge): Likewise.
102965         * lib/freading.c (freading): Likewise.
102966         * lib/fseeko.c (rpl_fseeko): Likewise.
102967         * lib/fseterr.c (fseterr): Likewise.
102968         * lib/fwriting.c (fwriting): Likewise.
102969         * tests/test-fflush.c (main): Avoid a failure on uClibc.
102971 2007-06-08  Bruno Haible  <bruno@clisp.org>
102973         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
102974         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
102975         * modules/gettext (Files): Add m4/intlmacosx.m4.
102977 2007-06-07  Bruno Haible  <bruno@clisp.org>
102979         * modules/localename-tests: New file.
102980         * tests/test-localename.c: New file.
102982         New module 'localename'.
102983         * lib/localename.h: New file.
102984         * lib/localename.c: New file, from GNU gettext.
102985         * m4/localename.m4: New file.
102986         * modules/localename: New file.
102988 2007-06-07  Bruno Haible  <bruno@clisp.org>
102990         Work around the lack of <wchar.h> on some builds of uClibc.
102991         * doc/headers/wchar.texi: Update.
102992         * lib/wchar_.h: Include <wchar.h> only if it exists.
102993         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
102994         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
102995         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
102996         doesn't exist.
102997         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
102998         * modules/mbfile (Depends-on): Add wchar.
102999         * modules/mbiter (Depends-on): Likewise.
103000         * modules/mbuiter (Depends-on): Likewise.
103001         Reported by Simon Josefsson.
103003 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
103005         Work around problem reported by Steven M. Schweda in
103006         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
103007         Tru64 5.1B with the Compaq compiler environment installed declares
103008         an 'isblank' function but does not define it in the C library.
103009         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
103010         * lib/regex_internal.h (isblank): Likewise.
103011         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
103012         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
103014 2007-06-05  Bruno Haible  <bruno@clisp.org>
103016         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
103017         ia64.
103018         * modules/printf-safe: New file.
103019         * modules/fprintf-posix (Depends-on): Add printf-safe.
103020         * modules/printf-posix (Depends-on): Likewise.
103021         * modules/snprintf-posix (Depends-on): Likewise.
103022         * modules/sprintf-posix (Depends-on): Likewise.
103023         * modules/vasnprintf-posix (Depends-on): Likewise.
103024         * modules/vasprintf-posix (Depends-on): Likewise.
103025         * modules/vfprintf-posix (Depends-on): Likewise.
103026         * modules/vprintf-posix (Depends-on): Likewise.
103027         * modules/vsnprintf-posix (Depends-on): Likewise.
103028         * modules/vsprintf-posix (Depends-on): Likewise.
103029         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
103030         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
103031         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
103032         "no" on i386, x86_64, ia64.
103033         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
103034         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103035         on i386, x86_64, ia64.
103036         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
103037         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103038         on i386, x86_64, ia64.
103039         * tests/test-vasnprintf-posix.c: Include float.h.
103040         (LDBL80_WORDS): New macro.
103041         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103042         on i386, x86_64, ia64.
103043         * tests/test-vasprintf-posix.c: Include float.h.
103044         (LDBL80_WORDS): New macro.
103045         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103046         on i386, x86_64, ia64.
103047         * tests/test-snprintf-posix.c: Include float.h.
103048         * tests/test-sprintf-posix.c: Likewise.
103049         * tests/test-vsnprintf-posix.c: Likewise.
103050         * tests/test-vsprintf-posix.c: Likewise.
103052 2007-06-05  Bruno Haible  <bruno@clisp.org>
103054         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
103055         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
103056         non-IEEE numbers on i386, x86_64, ia64.
103057         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
103058         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
103059         * tests/test-isnanl.h: Include float.h.
103060         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
103062 2007-06-05  Bruno Haible  <bruno@clisp.org>
103064         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
103065         also the %a / %A. Handle the %a / %A code before this extra handling.
103067 2007-06-05  Bruno Haible  <bruno@clisp.org>
103069         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
103070         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
103072 2007-06-05  Bruno Haible  <bruno@clisp.org>
103074         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
103075         typo in variable name.
103077 2007-06-05  Eric Blake  <ebb9@byu.net>
103079         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
103080         Reported by Simon Josefsson.
103082 2007-06-04  Bruno Haible  <bruno@clisp.org>
103084         Avoid test failures on some PowerPC platforms.
103085         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
103086         Define differently for PowerPC.
103087         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
103088         Reported by Gary V. Vaughan <gary@gnu.org>.
103090 2007-06-02  Bruno Haible  <bruno@clisp.org>
103092         Fix test-stdint failure on FreeBSD/ia64.
103093         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
103094         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
103095         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
103096         * doc/headers/stdint.texi: Update.
103098 2007-06-01  Bruno Haible  <bruno@clisp.org>
103100         * tests/test-binary-io.c (main): Pass a third argument to open().
103101         Reported by Gary V. Vaughan <gary@gnu.org>.
103103 2007-06-01  Bruno Haible  <bruno@clisp.org>
103105         * doc/functions/frexpl.texi: Update for mingw.
103107 2007-06-01  Bruno Haible  <bruno@clisp.org>
103109         * tests/test-lseek.c (main): Disable test of errno for invalid third
103110         argument.
103111         * doc/functions/lseek.texi: Update.
103112         Reported by Gary V. Vaughan <gary@gnu.org>.
103114 2007-05-28  Bruno Haible  <bruno@clisp.org>
103116         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
103118 2007-05-31  Eric Blake  <ebb9@byu.net>
103120         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
103121         cross compiling.
103123 2007-05-30  Eric Blake  <ebb9@byu.net>
103124         and Bruno Haible  <bruno@clisp.org>
103126         Work around mingw test failures exposed by m4-1.4.9b.
103127         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
103128         * tests/test-unistd.c: Disable uid_t and git_t tests for the
103129         moment.
103131 2007-05-30  Bruno Haible  <bruno@clisp.org>
103133         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
103134         assuming that they are closed. Needed on HP-UX 11.
103136 2007-05-29  Bruno Haible  <bruno@clisp.org>
103138         Fix a problem with #include_next.
103139         * lib/dirent_.h: Split the double-inclusion guard.
103140         * lib/fcntl_.h: Likewise.
103141         * lib/float_.h: Likewise.
103142         * lib/iconv_.h: Likewise.
103143         * lib/inttypes_.h: Likewise.
103144         * lib/locale_.h: Likewise.
103145         * lib/math_.h: Likewise.
103146         * lib/netinet_in_.h: Likewise.
103147         * lib/search_.h: Likewise.
103148         * lib/signal_.h: Likewise.
103149         * lib/stdint_.h: Likewise.
103150         * lib/stdio_.h: Likewise.
103151         * lib/stdlib_.h: Likewise.
103152         * lib/string_.h: Likewise.
103153         * lib/sys_select_.h: Likewise.
103154         * lib/sys_socket_.h: Likewise.
103155         * lib/sys_stat_.h: Likewise.
103156         * lib/sys_time_.h: Likewise.
103157         * lib/sysexits_.h: Likewise.
103158         * lib/time_.h: Likewise.
103159         * lib/unistd_.h: Likewise.
103160         * lib/wchar_.h: Likewise.
103161         * lib/wctype_.h: Likewise.
103163 2007-05-29  Bruno Haible  <bruno@clisp.org>
103165         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
103166         for the moment.
103168 2007-05-29  Bruno Haible  <bruno@clisp.org>
103170         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
103171         invocation.
103172         Reported by Eric Blake.
103174 2007-05-29  Bruno Haible  <bruno@clisp.org>
103176         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
103177         compiling case.
103179 2007-05-29  Eric Blake  <ebb9@byu.net>
103180             Bruno Haible  <bruno@clisp.org>
103182         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
103183         cross compiles.
103185 2007-05-28  Eric Blake  <ebb9@byu.net>
103187         * modules/closein-tests (test_closein_LDADD): Support test on
103188         cygwin with libtool.
103190 2007-05-28  Bruno Haible  <bruno@clisp.org>
103192         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
103193         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
103194         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
103195         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
103196         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
103197         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
103198         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
103199         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
103200         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
103202 2007-05-28  Eric Blake  <ebb9@byu.net>
103204         Unconditionally include <config.h> in unit tests.
103205         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
103206         * tests/test-allocsa.c, tests/test-arcfour.c,
103207         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
103208         tests/test-array_list.c, tests/test-array_oset.c,
103209         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
103210         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
103211         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
103212         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
103213         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
103214         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
103215         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
103216         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
103217         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
103218         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
103219         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
103220         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
103221         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
103222         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
103223         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
103224         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
103225         test-md5.c, test-memmem.c, test-printf-posix.c,
103226         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
103227         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
103228         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
103229         test-strcasestr.c, test-striconv.c, test-striconveh.c,
103230         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
103231         test-vasnprintf-posix2.c, test-vasnprintf.c,
103232         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
103233         test-vfprintf-posix.c, test-vprintf-posix.c,
103234         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
103235         test-xvasprintf.c: Likewise.
103237 2007-05-28  Bruno Haible  <bruno@clisp.org>
103239         * gnulib-tool (func_import): Remember the --with-tests command-line
103240         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
103241         Reported by Eric Blake.
103243 2007-05-28  Bruno Haible  <bruno@clisp.org>
103245         * modules/ftell-tests: New file.
103246         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
103247         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
103249         * lib/ftell.c: New file.
103250         * modules/ftell: New file.
103251         * m4/ftell.m4: New file.
103252         * doc/functions/ftell.texi: Update.
103253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
103254         REPLACE_FTELL.
103255         * lib/stdio_.h (rpl_ftell): New declaration.
103256         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
103257         REPLACE_FTELL.
103259 2007-05-28  Eric Blake  <ebb9@byu.net>
103261         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
103263 2007-05-28  Bruno Haible  <bruno@clisp.org>
103265         * modules/fseek-tests: New file.
103266         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
103267         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
103269         * lib/fseek.c: New file.
103270         * modules/fseek: New file.
103271         * m4/fseek.m4: New file.
103272         * doc/functions/fseek.texi: Update.
103273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
103274         REPLACE_FSEEK.
103275         * lib/stdio_.h (rpl_fseek): New declaration.
103276         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
103277         REPLACE_FSEEK.
103279 2007-05-28  Bruno Haible  <bruno@clisp.org>
103281         * lib/stdio_.h (fflush): More comments.
103283 2007-05-28  Bruno Haible  <bruno@clisp.org>
103285         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
103286         runtime test.
103288 2007-05-28  Eric Blake  <ebb9@byu.net>
103290         Improve lseek module.
103291         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
103292         * lib/unistd_.h (lseek): Scale back link warning message.
103293         * tests/test-lseek.c: Beef up test.
103294         * tests/test-lseek.sh: Exercise more facets of lseek.
103295         Reported by Bruno Haible.
103297 2007-05-28  Bruno Haible  <bruno@clisp.org>
103299         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
103300         to define.
103302 2007-05-27  Bruno Haible  <bruno@clisp.org>
103304         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
103306 2007-05-27  Bruno Haible  <bruno@clisp.org>
103308         * modules/openmp: New file.
103309         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
103310         Noah Misch.
103312 2007-05-26  Bruno Haible  <bruno@clisp.org>
103314         * modules/chdir-long (Depends-on): Add fchdir.
103315         * modules/chdir-safer (Depends-on): Likewise.
103316         * modules/fts (Depends-on): Likewise.
103317         * modules/fts-lgpl (Depends-on): Likewise.
103318         * modules/openat (Depends-on): Likewise.
103319         * modules/savewd (Depends-on): Likewise.
103321 2007-05-24  Eric Blake  <ebb9@byu.net>
103323         Fix lseek on mingw.
103324         * modules/lseek: New module.
103325         * m4/lseek.m4: New file.
103326         * lib/lseek.c: New file.
103327         * modules/lseek-tests: New file.
103328         * tests/test-lseek.c: New file.
103329         * tests/test-lseek.sh: New file.
103330         * MODULES.html.sh: Document lseek module.
103331         * modules/fflush (Depends-on): Add lseek, fseeko.
103332         * modules/fseeko (Depends-on): Likewise.
103333         * modules/ftello (Depends-on): Likewise.
103334         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
103335         broken.
103336         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
103337         broken.
103338         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
103339         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
103340         * lib/ftello.c (rpl_ftello): Likewise.
103341         * tests/test-fseeko.c (main): Test this.
103342         * tests/test-fseeko.sh: Likewise.
103343         * tests/test-ftello.c (main): Likewise.
103344         * tests/test-ftello.sh: Likewise.
103345         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
103346         implies replacing fseek.
103347         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
103348         HAVE_FTELLO.
103349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
103350         * modules/unistd (Makefile.am): Likewise.
103351         * lib/unistd_.h (lseek): Declare a replacement.
103352         * doc/functions/lseek.texi (lseek): Document this fix.
103353         * doc/functions/fseek.texi (fseek): Likewise.
103354         * doc/functions/ftell.texi (ftell): Likewise.
103356 2007-05-24  Bruno Haible  <bruno@clisp.org>
103358         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
103359         in the printed representation of a NaN.
103360         * tests/test-vasprintf-posix.c (test_function): Likewise.
103361         * tests/test-snprintf-posix.h (test_function): Likewise.
103362         * tests/test-sprintf-posix.h (test_function): Likewise.
103363         Reported by Eric Blake.
103365 2007-05-23  Eric Blake  <ebb9@byu.net>
103367         Fix fseeko/ftello on cygwin 1.5.24.
103368         * doc/functions/fseeko.texi (fseeko): Document the fix.
103369         * doc/functions/ftello.texi (ftello): Document the fix.
103370         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
103371         * doc/functions/stdout.text (stdout): New file.
103372         * doc/functions/stderr.text (stderr): New file.
103373         * doc/gnulib.texi (Function Substitutes): Use new files.
103374         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
103375         prior to 1.7.0.
103376         * tests/test-ftello.c (main): Likewise for ftello.
103377         * tests/test-fseeko.sh: New file.
103378         * tests/test-ftello.sh: New file.
103379         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
103380         with seekable stdin.
103381         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
103382         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
103383         (gl_REPLACE_FSEEKO): New macro.
103384         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
103385         * modules/fseeko (Files): Distribute fseeko.c.
103386         * modules/ftello (Files): Distribute ftello.c.
103387         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
103388         mode.
103389         * lib/ftello.c (rpl_ftello): New file.
103390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
103391         fseeko, ftello.
103392         (gl_STDIN_LARGE_OFFSET): New macro.
103393         * modules/stdio (Makefile.am): Perform the replacement.
103394         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
103396 2007-05-23  Bruno Haible  <bruno@clisp.org>
103398         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
103399         GNULIB_POSIXCHECK is defined.
103401 2007-05-21  Bruno Haible  <bruno@clisp.org>
103403         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
103404         Check also the output for NaN arguments. When cross-compiling, guess
103405         no on IRIX.
103406         * lib/vasnprintf.c: Update comments.
103407         * tests/test-vasnprintf-posix.c (strisnan): New function.
103408         (test_function): Use it.
103409         * tests/test-vasprintf-posix.c (strisnan): New function.
103410         (test_function): Use it.
103411         * tests/test-snprintf-posix.h (strisnan): New function.
103412         (test_function): Use it.
103413         * tests/test-sprintf-posix.h (strisnan): New function.
103414         (test_function): Use it.
103415         Reported by Eric Blake.
103417 2007-05-20  Bruno Haible  <bruno@clisp.org>
103419         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
103420         numbers that fails on BeOS.
103421         * doc/functions/frexpl.texi: Update.
103423 2007-05-20  Jim Meyering  <jim@meyering.net>
103425         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
103426         forced upon us by glibc-2.6.
103428 2007-05-20  Bruno Haible  <bruno@clisp.org>
103430         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
103431         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
103432         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
103433         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
103434         NEED_PRINTF_INFINITE.
103435         (is_infinitel): New function.
103436         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
103437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
103438         gl_PREREQ_VASNPRINTF_INFINITE.
103439         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
103440         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103441         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
103442         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
103443         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
103444         gl_PREREQ_VASNPRINTF_INFINITE.
103445         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103446         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103447         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103448         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103449         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103450         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103451         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103452         * doc/functions/fprintf.texi: Update.
103453         * doc/functions/printf.texi: Update.
103454         * doc/functions/snprintf.texi: Update.
103455         * doc/functions/sprintf.texi: Update.
103456         * doc/functions/vfprintf.texi: Update.
103457         * doc/functions/vprintf.texi: Update.
103458         * doc/functions/vsnprintf.texi: Update.
103459         * doc/functions/vsprintf.texi: Update.
103461 2007-05-20  Bruno Haible  <bruno@clisp.org>
103463         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
103464         was not found in libc.
103465         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
103467 2007-05-20  Bruno Haible  <bruno@clisp.org>
103469         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103470         printed as "-nan" instead of "nan".
103471         * tests/test-vasprintf-posix.c (test_function): Likewise.
103472         * tests/test-snprintf-posix.h (test_function): Likewise.
103473         * tests/test-sprintf-posix.h (test_function): Likewise.
103474         Needed for HP-UX 11.
103476 2007-05-20  Jim Meyering  <jim@meyering.net>
103478         Fix buggy test for the fchownat-deref bug.
103479         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
103480         symlink required for the run-test.  Without it, this test would
103481         always declare that fchownat doesn't work, and client code would
103482         unnecessarily use the replacement function with fixed libc.
103483         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
103484         Reported by Greg Schafer.
103486 2007-05-19  Bruno Haible  <bruno@clisp.org>
103488         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
103489         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
103490         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
103491         Needed for IRIX 6.5 and Solaris 2.5.1.
103493 2007-05-19  Bruno Haible  <bruno@clisp.org>
103495         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
103496         (test_function): Skip tests involving -0.0 on platforms where
103497         -0.0 = 0.0.
103498         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
103499         (test_function): Skip tests involving -0.0 on platforms where
103500         -0.0 = 0.0.
103501         * tests/test-snprintf-posix.h (have_minus_zero): New function.
103502         (test_function): Skip tests involving -0.0 on platforms where
103503         -0.0 = 0.0.
103504         * tests/test-sprintf-posix.h (have_minus_zero): New function.
103505         (test_function): Skip tests involving -0.0 on platforms where
103506         -0.0 = 0.0.
103507         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
103508         tests.
103509         * tests/test-printf-posix.h (test_function): Likewise.
103510         * tests/test-printf-posix.output: Remove all -0.0 related results.
103511         Needed for IRIX 6.5.
103513 2007-05-19  Bruno Haible  <bruno@clisp.org>
103515         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103516         printed as "nan0x7fffffff" instead of "nan".
103517         * tests/test-vasprintf-posix.c (test_function): Likewise.
103518         * tests/test-snprintf-posix.h (test_function): Likewise.
103519         * tests/test-sprintf-posix.h (test_function): Likewise.
103520         * tests/test-fprintf-posix.h (NaN): Remove macro.
103521         (test_function): Remove all NaN related tests.
103522         * tests/test-printf-posix.h (NaN): Remove macro.
103523         (test_function): Remove all NaN related tests.
103524         * tests/test-printf-posix.output: Remove all NaN related results.
103525         Needed for IRIX 6.5.
103527 2007-05-19  Bruno Haible  <bruno@clisp.org>
103529         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
103530         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
103532 2007-05-19  Bruno Haible  <bruno@clisp.org>
103534         * lib/float_.h: New file.
103535         * m4/float_h.m4: New file.
103536         * modules/float: New file.
103537         * modules/isnanl (Dependencies): Add float.
103538         * modules/isnanl-nolibm (Dependencies): Likewise.
103539         * modules/mathl (Dependencies): Likewise.
103540         * modules/printf-frexpl (Dependencies): Likewise.
103541         * modules/signbit (Dependencies): Likewise.
103542         * modules/vasnprintf (Dependencies): Likewise.
103543         * doc/headers/float.texi: Update.
103545 2007-05-19  Jim Meyering  <jim@meyering.net>
103547         * lib/utimens.c (gl_futimens): Rename from futimens,
103548         now that glibc-2.6 declares futimens.
103549         * lib/utimens.h: Likewise.
103551 2007-05-19  Bruno Haible  <bruno@clisp.org>
103553         Avoid test failures on mingw.
103554         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
103555         * tests/test-printf-posix.sh: Likewise.
103556         * tests/test-vfprintf-posix.sh: Likewise.
103557         * tests/test-vprintf-posix.sh: Likewise.
103559 2007-05-19  Bruno Haible  <bruno@clisp.org>
103561         Fix *printf result for NaN, Inf, -0.0 on mingw.
103562         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
103563         * lib/vasnprintf.c: Include math.h and isnan.h.
103564         (is_infinite_or_zero): New function.
103565         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
103566         values in the %f, %F, %e, %E, %g, %G directives.
103567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
103568         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103569         gl_PRINTF_INFINITE and test its result. Invoke
103570         gl_PREREQ_VASNPRINTF_INFINITE.
103571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103572         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103573         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103578         * doc/functions/fprintf.texi: Update.
103579         * doc/functions/printf.texi: Update.
103580         * doc/functions/snprintf.texi: Update.
103581         * doc/functions/sprintf.texi: Update.
103582         * doc/functions/vfprintf.texi: Update.
103583         * doc/functions/vprintf.texi: Update.
103584         * doc/functions/vsnprintf.texi: Update.
103585         * doc/functions/vsprintf.texi: Update.
103587 2007-05-19  Bruno Haible  <bruno@clisp.org>
103589         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
103590         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
103591         Instead of multiplying with 10^k, set extra_zeroes to k.
103592         (scale10_round_long_double): Remove function.
103594 2007-05-18  Bruno Haible  <bruno@clisp.org>
103596         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
103597         introduced on 2007-05-06.
103599 2007-05-18  Bruno Haible  <bruno@clisp.org>
103601         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
103602         %g directives.
103603         * tests/test-vasprintf-posix.c (test_function): Likewise.
103604         * tests/test-snprintf-posix.h (test_function): Likewise.
103605         * tests/test-sprintf-posix.h (test_function): Likewise.
103607 2007-05-18  Bruno Haible  <bruno@clisp.org>
103609         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
103610         (strmatch): New function.
103611         (test_function): Test the %f directive on numbers of various exponents.
103612         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
103613         (strmatch): New function.
103614         (test_function): Test the %f directive on numbers of various exponents.
103615         * tests/test-snprintf-posix.h (strmatch): New function.
103616         (test_function): Test the %f directive on numbers of various exponents.
103617         * tests/test-sprintf-posix.h (strmatch): New function.
103618         (test_function): Test the %f directive on numbers of various exponents.
103619         * tests/test-snprintf-posix.c (SIZEOF): New macro.
103620         * tests/test-sprintf-posix.c (SIZEOF): New macro.
103621         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
103622         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
103624 2007-05-18  Bruno Haible  <bruno@clisp.org>
103626         Add support for 'long double' number output.
103627         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
103628         * lib/vasnprintf.c: Include math.h and float+.h.
103629         (mp_limb_t): New type.
103630         (GMP_LIMB_BITS): New macro.
103631         (mp_twolimb_t): New type.
103632         (GMP_TWOLIMB_BITS): New macro.
103633         (mpn_t): New type.
103634         (multiply, divide, convert_to_decimal, decode_long_double,
103635         scale10_round_long_double, scale10_round_decimal_long_double,
103636         floorlog10l): New functions.
103637         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
103638         for the %f, %F, %e, %E, %g, %G directives.
103639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
103640         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103641         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
103642         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
103643         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103644         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103645         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103647         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103650         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
103651         * modules/snprintf-posix (Depends-on): Likewise.
103652         * modules/sprintf-posix (Depends-on): Likewise.
103653         * modules/vasnprintf-posix (Depends-on): Likewise.
103654         * modules/vasprintf-posix (Depends-on): Likewise.
103655         * modules/vfprintf-posix (Depends-on): Likewise.
103656         * modules/vsnprintf-posix (Depends-on): Likewise.
103657         * modules/vsprintf-posix (Depends-on): Likewise.
103658         * modules/vasnprintf (Files): Add lib/float+.h.
103659         * doc/functions/fprintf.texi: Update.
103660         * doc/functions/printf.texi: Update.
103661         * doc/functions/snprintf.texi: Update.
103662         * doc/functions/sprintf.texi: Update.
103663         * doc/functions/vfprintf.texi: Update.
103664         * doc/functions/vprintf.texi: Update.
103665         * doc/functions/vsnprintf.texi: Update.
103666         * doc/functions/vsprintf.texi: Update.
103668 2007-05-18  Bruno Haible  <bruno@clisp.org>
103670         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
103672 2007-05-18  Bruno Haible  <bruno@clisp.org>
103674         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
103675         for printing 64-bit integers. Needed for mingw.
103677 2007-05-18  Bruno Haible  <bruno@clisp.org>
103679         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
103680         gl_FUNC_FREXPL_WORKS.
103681         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
103683 2007-05-18  Bruno Haible  <bruno@clisp.org>
103685         * modules/frexpl-nolibm-tests: New file.
103687         * modules/frexpl-nolibm: New file.
103688         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
103690 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
103692         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
103693         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103694         GCC 4.2, which otherwise issues a lot of warnings.
103695         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
103696         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
103697         Likewise.
103698         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
103699         * modules/iconv_open (iconv.h): Likewise.
103700         * modules/locale (locale.h): Likewise.
103701         * modules/netinet_in (netinet/in.h): Likewise.
103702         * modules/sys_select (sys_select.h): Likewise.
103703         * modules/sys_socket (sys/socket.h): Likewise.
103704         * modules/sys_stat (sys/stat.h): Likewise.
103705         * modules/sysexits (sysexits.h): Likewise.
103706         * modules/unistd (unistd.h): Likewise.
103708 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103710         * modules/closein-tests (Makefile.am): Distribute
103711         `test-closein.sh'.
103713 2007-05-17  Bruno Haible  <bruno@clisp.org>
103715         * tests/test-printf-posix.output: Renamed from
103716         tests/test-fprintf-posix.out.
103717         * modules/fprintf-posix-tests: Update.
103718         * modules/printf-posix-tests: Update.
103719         * modules/vfprintf-posix-tests: Update.
103720         * modules/vprintf-posix-tests: Update.
103721         * tests/test-fprintf-posix.sh: Update.
103722         * tests/test-printf-posix.sh: Update.
103723         * tests/test-vfprintf-posix.sh: Update.
103724         * tests/test-vprintf-posix.sh: Update.
103725         Reported by Ralf Wildenhues.
103727 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
103729         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
103730         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103731         GCC 4.2, which otherwise issues a lot of warnings.
103732         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
103733         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
103734         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
103735         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
103736         it should no longer be needed.
103737         * lib/string_.h: Likewise.
103738         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
103739         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
103740         * modules/inttypes (inttypes.h): Likewise.
103741         * modules/math (math.h): Likewise.
103742         * modules/search (search.h): Likewise.
103743         * modules/signal (signal.h): Likewise.
103744         * modules/stdint (stdint.h): Likewise.
103745         * modules/stdio (stdio.h): Likewise.
103746         * modules/stdlib (stdlib.h): Likewise.
103747         * modules/string (string.h): Likewise.
103748         * modules/sys_time (sys/time.h): Likewise.
103749         * modules/time (time.h): Likewise.
103750         * modules/wchar (wchar.h): Likewise.
103751         * modules/wctype (wtype.h): Likewise.
103753 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
103755         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
103757 2007-05-13  Bruno Haible  <bruno@clisp.org>
103759         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
103760         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
103761         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
103762         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
103763         (gl_PREREQ_STRTOK_R): Don't require it here.
103765 2007-05-13  Bruno Haible  <bruno@clisp.org>
103767         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
103768         when used in C++ mode.
103770 2007-05-12  Bruno Haible  <bruno@clisp.org>
103772         * lib/linebuffer.h: Tweak doc.
103773         * lib/linebuffer.c: Likewise.
103775 2007-05-12  James Youngman  <jay@gnu.org>
103777         * lib/linebuffer.c (readlinebuffer_delim): New function,
103778         like readlinebuffer, but use a caller-specified delimiter.
103779         (readlinebuffer): Just call readlinebuffer_delim with '\n'
103780         as the delimiter.
103781         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
103783 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
103785         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
103786         * modules/openat (Files): Remove openat-die.c.
103787         (Depends-on): Add openat-die.
103788         * modules/openat-die: New module.
103790 2007-05-06  Bruno Haible  <bruno@clisp.org>
103792         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
103793         Update with info about Cygwin.
103794         * doc/functions/fprintf.texi: Update.
103795         * doc/functions/printf.texi: Update.
103796         * doc/functions/snprintf.texi: Update.
103797         * doc/functions/sprintf.texi: Update.
103798         * doc/functions/vfprintf.texi: Update.
103799         * doc/functions/vprintf.texi: Update.
103800         * doc/functions/vsnprintf.texi: Update.
103801         * doc/functions/vsprintf.texi: Update.
103802         Reported by Eric Blake.
103804 2007-05-06  Bruno Haible  <bruno@clisp.org>
103806         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
103807         padding ourselves for the floating-point directives.
103808         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
103809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
103810         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103811         gl_PRINTF_FLAG_ZERO and test its result. Invoke
103812         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
103813         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103814         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
103815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103816         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103817         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103818         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103819         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103820         * tests/test-snprintf-posix.h (test_function): Also check the width
103821         and some flags in the %f directive.
103822         * tests/test-sprintf-posix.h (test_function): Likewise.
103823         * tests/test-vasnprintf-posix.c (test_function): Likewise.
103824         * tests/test-vasprintf-posix.c (test_function): Likewise.
103825         * doc/functions/fprintf.texi: Update.
103826         * doc/functions/printf.texi: Update.
103827         * doc/functions/snprintf.texi: Update.
103828         * doc/functions/sprintf.texi: Update.
103829         * doc/functions/vfprintf.texi: Update.
103830         * doc/functions/vprintf.texi: Update.
103831         * doc/functions/vsnprintf.texi: Update.
103832         * doc/functions/vsprintf.texi: Update.
103834 2007-05-06  Bruno Haible  <bruno@clisp.org>
103836         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
103837         pass the ' flag character to sprintf or snprintf.
103838         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
103839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
103840         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103841         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
103842         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
103843         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103844         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
103845         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103846         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103847         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103848         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103849         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103850         * tests/test-snprintf-posix.h (test_function): Also check the grouping
103851         flag.
103852         * tests/test-sprintf-posix.h (test_function): Likewise.
103853         * tests/test-vasnprintf-posix.c (test_function): Likewise.
103854         * tests/test-vasprintf-posix.c (test_function): Likewise.
103855         * doc/functions/fprintf.texi: Update.
103856         * doc/functions/printf.texi: Update.
103857         * doc/functions/snprintf.texi: Update.
103858         * doc/functions/sprintf.texi: Update.
103859         * doc/functions/vfprintf.texi: Update.
103860         * doc/functions/vprintf.texi: Update.
103861         * doc/functions/vsnprintf.texi: Update.
103862         * doc/functions/vsprintf.texi: Update.
103864 2007-05-01  Bruno Haible  <bruno@clisp.org>
103866         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
103868 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
103870         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
103871         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
103873 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
103875         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
103876         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
103877         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
103879 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
103881         * lib/argp-help.c (struct hol_entry): New member `ord'.
103882         (HOL_ENTRY_PTRCMP): Use ord for comparison
103883         (hol_sort): Initialize ord.
103885 2007-05-01  Bruno Haible  <bruno@clisp.org>
103887         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
103888         Reported by Eric Blake.
103889         * doc/gnulib.texi (Function Substitutes): Update.
103891 2007-05-01  Bruno Haible  <bruno@clisp.org>
103893         * doc/functions.texi: Remove file, now redundant through
103894         doc/functions/*.texi.
103896 2007-05-01  Bruno Haible  <bruno@clisp.org>
103898         * modules/argp (Depends-on): Add sleep.
103900 2007-05-01  Bruno Haible  <bruno@clisp.org>
103902         * modules/sleep-tests: New file.
103903         * tests/test-sleep.c: New file.
103905         * modules/sleep: New file.
103906         * lib/sleep.c: New file.
103907         * m4/sleep.m4: New file.
103908         * lib/unistd_.h (sleep): New declaration.
103909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
103910         HAVE_SLEEP.
103911         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
103912         * doc/functions/sleep.texi: Document the sleep module.
103914 2007-05-01  Bruno Haible  <bruno@clisp.org>
103916         * lib/sigprocmask.h: Remove file.
103917         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
103918         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
103919         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
103920         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
103921         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
103922         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
103923         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
103924         HAVE_SIGSET_T as a shell variable.
103925         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
103926         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
103927         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
103928         (Depends-on): Add signal. Remove verify.
103929         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
103930         (Include): Mention <signal.h> instead of sigprocmask.h.
103931         * NEWS: Mention the change.
103932         * lib/fatal-signal.c: Don't include sigprocmask.h.
103934 2007-05-01  Bruno Haible  <bruno@clisp.org>
103936         * modules/signal: New file.
103937         * lib/signal_.h: New file.
103938         * m4/signal_h.m4: New file.
103940 2007-05-01  Bruno Haible  <bruno@clisp.org>
103942         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
103943         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
103944         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
103945         HAVE_WCTYPE_CTMP_BUG into wctype.h.
103947 2007-05-01  Bruno Haible  <bruno@clisp.org>
103949         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
103950         configure time.
103951         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
103952         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
103953         * modules/sys_stat (Makefile.am): Substitute their values into
103954         sys/stat.h.
103956 2007-05-01  Bruno Haible  <bruno@clisp.org>
103958         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
103959         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
103960         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
103962 2007-05-01  Bruno Haible  <bruno@clisp.org>
103964         * doc/header/assert.texi: Undo last change: don't mention the gnulib
103965         'assert' module here.
103967 2007-05-01  Bruno Haible  <bruno@clisp.org>
103969         * doc/functions/*.texi: New files.
103970         * doc/functions/google-ranking.txt: New file.
103971         * doc/gnulib.texi (Function Substitutes): New chapter.
103972         (ctime, inet_ntoa): Remove sections.
103973         * doc/ctime.texi: Remove file.
103974         * doc/inet_ntoa.texi: Remove file.
103975         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
103976         dependencies.
103977         (%.info): New rule, specifying a --reference-limit.
103979 2007-05-01  Bruno Haible  <bruno@clisp.org>
103981         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
103983 2007-05-01  Bruno Haible  <bruno@clisp.org>
103985         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
103986         the portability of 'mkdir' to mingw systems.
103988 2007-05-01  Bruno Haible  <bruno@clisp.org>
103990         * doc/headers/google-ranking.txt: New file.
103992 2007-04-30  Eric Blake  <ebb9@byu.net>
103994         Prefer fseeko to fseek.
103995         * modules/getpass (Depends-on): Add fseeko.
103996         * lib/getpass.c (getpass): Use fseeko, not fseek.
103998 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
104000         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
104001         assumes the sorting is stable, while most qsort implementations
104002         are not.  Use argument addresses to ensure they never compare as
104003         equal.
104005         * tests/test-argp-2.sh (usage-indent test): Fix output
104006         (func_compare): Restore diff options
104007         * tests/test-argp.c: Restore #include "progname.h"
104009 2007-04-29  Bruno Haible  <bruno@clisp.org>
104011         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
104012         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104013         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
104014         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104015         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
104016         (configure.ac): Define CHECK_SNPRINTF_POSIX.
104017         (TESTS, check_PROGRAMS): Add test-snprintf.
104018         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
104019         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
104020         (TESTS, check_PROGRAMS): Add test-vsnprintf.
104021         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
104022         assertions that fail on HP-UX, OSF/1, or IRIX.
104023         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
104025 2007-04-29  Bruno Haible  <bruno@clisp.org>
104027         * MODULES.html.sh (posix_functions): Remove 'contents'.
104029 2007-04-29  Karl Berry  <karl@gnu.org>
104031         * config/srclist.txt (gendocs_template_min): new entry.
104033 2007-04-29  Bruno Haible  <bruno@clisp.org>
104035         Work around fpurge bug on BSD systems.
104036         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
104037         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
104038         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
104039         fpurge to rpl_fpurge if the system already has this function.
104040         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
104041         the case where the system already has this function. Correct invariants
104042         on BSD systems.
104043         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
104044         BSD systems.
104046 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
104048         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
104049         proposed by Sven Verdoolaege.
104051         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
104052         options.
104053         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
104054         (usage and help tests): Update
104056 2007-04-29  Bruno Haible  <bruno@clisp.org>
104058         * tests/test-fflush.c (main): Use a file of size 17, not 10.
104059         Print more information in case of failure. Disable a test on BeOS.
104061 2007-04-29  Bruno Haible  <bruno@clisp.org>
104063         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
104064         This helps debugging on systems on which no gdb is available.
104066 2007-04-29  Bruno Haible  <bruno@clisp.org>
104068         * lib/freading.h: Improve comments.
104069         * lib/fwriting.h: Likewise.
104070         * tests/test-freading.c (main): Don't check freading immediately after
104071         repositioning. Needed for glibc.
104073 2007-04-29  Bruno Haible  <bruno@clisp.org>
104075         * lib/freading.c (freading): Trivial simplification.
104077 2007-04-28  Bruno Haible  <bruno@clisp.org>
104079         * tests/test-fwriting.c (main): Also test the interaction between
104080         fflush and fwriting.
104081         * modules/fwriting-tests (Depends-on): Add fflush.
104083         * tests/test-freading.c (main): Also test the interaction between
104084         fflush and freading.
104085         * modules/freading-tests (Depends-on): Add fflush.
104087 2007-04-28  Bruno Haible  <bruno@clisp.org>
104089         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
104090         fseeko and ftello.
104091         Suggested by Eric Blake.
104093 2007-04-28  Jim Meyering  <jim@meyering.net>
104095         Avoid false-negative in gl_STDINT_H's C99 conformance test.
104096         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
104097         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
104099 2007-04-27  Eric Blake  <ebb9@byu.net>
104101         * doc/headers/assert.texi (assert.h): Document assert module use.
104103 2007-04-27  Bruno Haible  <bruno@clisp.org>
104105         * doc/headers/*.texi: New files.
104106         * doc/gnulib.texi (Header File Substitutes): New chapter.
104107         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
104108         dependencies.
104109         (standards.info ,standards.html, standards.dvi): Update dependencies.
104110         (mostlyclean, clean): New targets.
104112 2007-04-27  Bruno Haible  <bruno@clisp.org>
104114         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
104115         * modules/sysexits (Files, Makefile.am): Update.
104117         * lib/sys_socket_.h: Renamed from lib/socket_.h.
104118         * modules/sys_socket (Files, Makefile.am): Update.
104120         * lib/sys_stat_.h: Renamed from lib/stat_.h.
104121         * modules/sys_stat (Files, Makefile.am): Update.
104123 2007-04-27  Eric Blake  <ebb9@byu.net>
104125         * lib/freading.h: Improve comments.
104126         * lib/fwriting.h: Likewise.
104127         * lib/fflush.c: Likewise.
104129         Fix closein for mingw.
104130         * modules/closein-tests: Add tests for closein.
104131         * tests/test-closein.c: New file.
104132         * tests/test-closein.sh: Likewise.
104133         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
104134         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
104136 2007-04-27  Bruno Haible  <bruno@clisp.org>
104138         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
104139         version is < 6.
104140         * lib/math_.h [__DECC]: Likewise.
104141         * lib/stdio_.h [__DECC]: Likewise.
104142         * lib/stdlib_.h [__DECC]: Likewise.
104143         * lib/string_.h [__DECC]: Likewise.
104144         * lib/time_.h [__DECC]: Likewise.
104145         * lib/wchar_.h [__DECC]: Likewise.
104146         * lib/wctype_.h [__DECC]: Likewise.
104148 2007-04-27  Bruno Haible  <bruno@clisp.org>
104150         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
104152 2007-04-27  Bruno Haible  <bruno@clisp.org>
104154         * lib/fflush.c: Add comments.
104155         * modules/fpurge-tests (Depends-on): Add fflush.
104156         * modules/freadable-tests (Depends-on): Likewise.
104157         * modules/fwritable-tests (Depends-on): Likewise.
104159 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
104161         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
104162         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
104163         Report by Bruno Haible <bruno@clisp.org>.
104165 2007-04-26  Eric Blake  <ebb9@byu.net>
104167         Fix fflush on mingw.
104168         * modules/fflush (Depends-on): Add freading.
104169         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
104170         but unread data.
104172 2007-04-26  Eric Blake  <ebb9@byu.net>
104173         and Bruno Haible  <bruno@clisp.org>
104175         Implement freading and fwriting.
104176         * lib/freading.c: New file.
104177         * lib/freading.h: Likewise.
104178         * m4/freading.m4: Likewise.
104179         * modules/freading: Likewise.
104180         * modules/freading-tests: Likewise.
104181         * tests/test-freading.c: Likewise.
104182         * lib/fwriting.c: New file.
104183         * lib/fwriting.h: Likewise.
104184         * m4/fwriting.m4: Likewise.
104185         * modules/fwriting: Likewise.
104186         * modules/fwriting-tests: Likewise.
104187         * tests/test-fwriting.c: Likewise.
104188         * MODULES.html.sh (File stream based Input/Output): Mention them.
104190 2007-04-26  Bruno Haible  <bruno@clisp.org>
104192         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
104193         'long' when we assume it.
104194         Suggested by Eric Blake.
104196 2007-04-26  Bruno Haible  <bruno@clisp.org>
104198         Ensure fseeko, ftello are declared on glibc systems.
104199         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
104200         * modules/fseeko (configure.ac-early): Likewise.
104201         * modules/ftello (configure.ac-early): Likewise.
104202         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
104203         AC_FUNC_FSEEKO for this.
104204         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
104205         (gl_CHECK_FSEEKO): Remove macro.
104207 2007-04-26  Bruno Haible  <bruno@clisp.org>
104209         * tests/test-fflush.c (main): Also check the ftell result after
104210         fflush and fseek/fseeko.
104211         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
104212         file descriptor position cache in the stream.
104213         * lib/fseeko.c (rpl_fseeko): Likewise.
104215 2007-04-26  Bruno Haible  <bruno@clisp.org>
104217         * modules/fflush-tests (Depends-on): Add fseeko.
104219 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
104220             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104222         * lib/argz_.h: ensure error_t definition is obtained in same
104223         mechanism system argz.h would have.
104224         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
104225         argz facilities are known bad.  Err on the side of caution if
104226         cross-compiling.
104228 2007-04-25  Eric Blake  <ebb9@byu.net>
104230         * lib/fpurge.c (includes): Use stdlib.h for free.
104231         * tests/test-fflush.c (main): Also test fflush-fseeko.
104233 2007-04-25  Bruno Haible  <bruno@clisp.org>
104235         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
104236         * lib/fseeko.c: New file.
104237         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
104238         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
104239         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
104240         gl_FUNC_FSEEKO.
104241         (gl_FUNC_FSEEKO): Invoke it.
104242         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
104243         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
104244         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
104246 2007-04-25  Bruno Haible  <bruno@clisp.org>
104248         * modules/fflush (Depends-on): Add ftello.
104250 2007-04-25  Bruno Haible  <bruno@clisp.org>
104252         * modules/ftello-tests: New file.
104253         * tests/test-ftello.c: New file.
104255         * modules/ftello: New file.
104256         * m4/ftello.m4: New file.
104257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
104258         HAVE_FTELLO.
104259         * lib/stdio_.h (ftello): New declaration.
104260         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
104261         HAVE_FTELLO.
104263 2007-04-25  Bruno Haible  <bruno@clisp.org>
104265         * modules/fseeko-tests: New file.
104266         * tests/test-fseeko.c: New file.
104268         * modules/fseeko: New file.
104269         * m4/fseeko.m4: New file.
104270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
104271         HAVE_FSEEKO.
104272         * lib/stdio_.h (fseeko): New declaration.
104273         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
104274         HAVE_FSEEKO.
104276 2007-04-25  Bruno Haible  <bruno@clisp.org>
104278         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
104280 2007-04-25  Bruno Haible  <bruno@clisp.org>
104282         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
104283         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
104284         * tests/test-unistd.c: Likewise.
104285         * tests/test-fcntl.c: Likewise.
104287 2007-04-23  Eric Blake  <ebb9@byu.net>
104289         * lib/fflush.c: Fix missing include.
104290         Reported by Bruno Haible.
104292 2007-04-23  Bruno Haible  <bruno@clisp.org>
104294         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
104295         Reported by Eric Blake.
104297 2007-04-23  Bruno Haible  <bruno@clisp.org>
104299         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
104301 2007-04-23  Bruno Haible  <bruno@clisp.org>
104303         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
104305 2007-04-23  Bruno Haible  <bruno@clisp.org>
104307         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
104308         Needed on HP-UX 11.
104310 2007-04-16  Eric Blake  <ebb9@byu.net>
104312         Make fflush rely on fpurge.
104313         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
104314         open coding all variants.
104315         * modules/fflush (Depends-on): Add fpurge and unistd.
104316         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
104317         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
104319         Fix --with-tests compilation on cygwin.
104320         * modules/argmatch-tests (Makefile.am): List gnulib library first
104321         in LDADD.
104322         * modules/argp-tests (Makefile.am): Likewise.
104323         * modules/array-list-tests (Makefile.am): Likewise.
104324         * modules/array-oset-tests (Makefile.am): Likewise.
104325         * modules/avltree-list-tests (Makefile.am): Likewise.
104326         * modules/avltree-oset-tests (Makefile.am): Likewise.
104327         * modules/avltreehash-list-tests (Makefile.am): Likewise.
104328         * modules/carray-list-tests (Makefile.am): Likewise.
104329         * modules/dirname-tests (Makefile.am): Likewise.
104330         * modules/frexp-tests (Makefile.am): Likewise.
104331         * modules/isnanl-tests (Makefile.am): Likewise.
104332         * modules/linked-list-tests (Makefile.am): Likewise.
104333         * modules/linkedhash-list-tests (Makefile.am): Likewise.
104334         * modules/lock-tests (Makefile.am): Likewise.
104335         * modules/rbtree-list-tests (Makefile.am): Likewise.
104336         * modules/rbtree-oset-tests (Makefile.am): Likewise.
104337         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
104338         * modules/tls-tests (Makefile.am): Likewise.
104339         * modules/tsearch-tests (Makefile.am): Likewise.
104340         * modules/xvasprintf-tests (Makefile.am): Likewise.
104342         Fix fpurge for cygwin.
104343         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
104344         value.
104345         * modules/fpurge-tests (Depends-on): Clean up trash.
104347 2007-04-16  Simon Josefsson  <simon@josefsson.org>
104349         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
104351         * m4/autobuild.m4: Re-indent.
104353 2007-04-13  Bruno Haible  <bruno@clisp.org>
104355         * modules/fpurge-tests: New file.
104356         * tests/test-fpurge.c: New file.
104358         * modules/fpurge: New file.
104359         * lib/fpurge.h: New file.
104360         * lib/fpurge.c: New file.
104361         * m4/fpurge.m4: New file.
104363 2007-04-13  Bruno Haible  <bruno@clisp.org>
104365         * modules/fbufmode-tests: New file.
104366         * tests/test-fbufmode.c: New file.
104368         * modules/fbufmode: New file.
104369         * lib/fbufmode.h: New file.
104370         * lib/fbufmode.c: New file.
104371         * m4/fbufmode.m4: New file.
104373 2007-04-13  Bruno Haible  <bruno@clisp.org>
104375         * modules/fwritable-tests: New file.
104376         * tests/test-fwritable.c: New file.
104378         * modules/fwritable: New file.
104379         * lib/fwritable.h: New file.
104380         * lib/fwritable.c: New file.
104381         * m4/fwritable.m4: New file.
104383 2007-04-13  Bruno Haible  <bruno@clisp.org>
104385         * modules/freadable-tests: New file.
104386         * tests/test-freadable.c: New file.
104388         * modules/freadable: New file.
104389         * lib/freadable.h: New file.
104390         * lib/freadable.c: New file.
104391         * m4/freadable.m4: New file.
104393 2007-04-13  Bruno Haible  <bruno@clisp.org>
104395         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
104396         MOSTLYCLEANFILES.
104398 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
104400         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
104401         gzip bootstrap.conf to avoid dragging in i18n machinery.
104402         (gnulib_tool_option): Use it.
104404 2007-04-13  Bruno Haible  <bruno@clisp.org>
104406         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
104407         %F directives.
104408         * tests/test-vasprintf-posix.c (test_function): Likewise.
104409         * tests/test-snprintf-posix.h (test_function): Likewise.
104410         * tests/test-sprintf-posix.h (test_function): Likewise.
104411         * tests/test-fprintf-posix.h (test_function): Likewise.
104412         * tests/test-printf-posix.h (test_function): Likewise.
104413         * tests/test-fprintf-posix.out: Likewise.
104415 2007-04-13  Bruno Haible  <bruno@clisp.org>
104417         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
104418         * modules/tls-tests (configure.ac): Likewise.
104419         Reported by Arto C. Nirkko <anirkko@insel.ch>.
104421 2007-04-13  Bruno Haible  <bruno@clisp.org>
104423         * lib/tls.c (glthread_tls_get): Fix return type.
104424         Patch by Arto C. Nirkko <anirkko@insel.ch>.
104426 2007-04-12  Eric Blake  <ebb9@byu.net>
104428         * modules/gettime (Depends-on): Remove gettime.
104429         Reported by Dmitry V. Levin.
104431 2007-04-12  Bruno Haible  <bruno@clisp.org>
104433         * modules/fflush (Include): Mention <stdio.h>.
104434         * modules/strtoimax (Include): Mention <inttypes.h>.
104435         * modules/strtoumax (Include): Likewise.
104437 2007-04-12  Eric Blake  <ebb9@byu.net>
104439         * .cvsignore: New file.
104440         * .gitignore: Likewise.
104442 2007-04-12  Bruno Haible  <bruno@clisp.org>
104444         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
104445         not before, since $(LDADD) often contains libgnu.a.
104446         * modules/striconv-tests (test_striconv_LDADD): Likewise.
104447         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
104448         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
104449         Needed on Cygwin.
104451 2007-04-12  Eric Blake  <ebb9@byu.net>
104453         Work around glibc's failure to flush stdin on fclose.
104454         * lib/closein.c (close_stdin): Flush stdin before closing.
104456         Work around glibc's failure to reset seekable stdin on exit.
104457         * modules/closein: New module.
104458         * lib/closein.c: New file.
104459         * lib/closein.h: Likewise.
104460         * m4/closein.m4: Likewise.
104461         * MODULES.html.sh (File stream based Input/Output): Document it.
104463 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104465         * gnulib-tool: Rename generated 'autobuild' script to
104466         'do-autobuild' in --create-megatestdir output.
104468         * doc/gnulib.texi (Build robot for gnulib): Fix.
104470 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104472         * modules/sysexits (Depends-on): Add absolute-header.
104474 2007-04-12  Eric Blake  <ebb9@byu.net>
104476         No need to preserve errno on success.
104477         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
104478         Reported by Bruno Haible.
104480 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104482         * MODULES.html.sh (Support for maintaining and releasing
104483         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
104485 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104487         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
104489 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104491         * modules/autobuild: New module.
104493         * m4/autobuild.m4: New file.
104495 2007-04-11  Bruno Haible  <bruno@clisp.org>
104497         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
104498         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
104499         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
104500         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
104501         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104502         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104503         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104504         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104505         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104506         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104507         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
104508         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104509         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104510         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
104511         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104512         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104513         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
104514         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104515         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104516         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
104517         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104518         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104519         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
104520         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104521         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104522         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
104523         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104524         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104525         Reported by Eric Blake.
104527 2007-04-11  Bruno Haible  <bruno@clisp.org>
104529         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
104531 2007-04-10  Bruno Haible  <bruno@clisp.org>
104533         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
104534         for NaN and Infinity. Needed on FreeBSD 6.1.
104535         * tests/test-vasnprintf-posix.c (test_function): Undo last change
104536         regarding results for "%010a" of Infinity and NaN.
104537         * tests/test-vasprintf-posix.c (test_function): Likewise.
104538         * tests/test-snprintf-posix.h (test_function): Likewise.
104539         * tests/test-sprintf-posix.h (test_function): Likewise.
104540         * tests/test-fprintf-posix.h (test_function): Likewise.
104541         * tests/test-printf-posix.h (test_function): Likewise.
104542         * tests/test-fprintf-posix.out: Likewise.
104544 2007-04-10  Bruno Haible  <bruno@clisp.org>
104546         * modules/locale-tests: New file.
104547         * tests/test-locale.c: New file.
104549         * modules/locale: New file.
104550         * lib/locale_.h: New file.
104551         * m4/locale_h.m4: New file.
104553 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
104554             Bruno Haible  <bruno@clisp.org>
104556         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
104557         be determined, test for availability of the copysignf, copysign,
104558         copysignl functions.
104559         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
104560         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
104561         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
104563 2007-04-09  Eric Blake  <ebb9@byu.net>
104565         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
104566         * modules/stdio (Makefile.am): Support fflush.
104567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
104568         * modules/fflush: New file.
104569         * lib/fflush.c: Likewise.
104570         * m4/fflush.m4: Likewise.
104571         * modules/fflush-tests: New test.
104572         * tests/test-fflush.c: Likewise.
104573         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
104575 2007-04-06  Bruno Haible  <bruno@clisp.org>
104577         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
104578         (VASNPRINTF): Use signbit for faster determination whether to print a
104579         minus sign.
104580         * modules/vasnprintf (Files): Remove lib/float+.h.
104581         * modules/fprintf-posix (Depends-on): Add signbit.
104582         * modules/snprintf-posix (Depends-on): Likewise.
104583         * modules/sprintf-posix (Depends-on): Likewise.
104584         * modules/vasnprintf-posix (Depends-on): Likewise.
104585         * modules/vasprintf-posix (Depends-on): Likewise.
104586         * modules/vfprintf-posix (Depends-on): Likewise.
104587         * modules/vsnprintf-posix (Depends-on): Likewise.
104588         * modules/vsprintf-posix (Depends-on): Likewise.
104590 2007-04-06  Bruno Haible  <bruno@clisp.org>
104592         * tests/test-frexp.c (main): Test also the sign bit of zero results.
104593         * tests/test-frexpl.c (main): Likewise.
104594         * tests/test-ldexpl.c (main): Likewise.
104595         * modules/frexp-tests (Depends-on): Add signbit.
104596         * modules/frexpl-tests (Depdends-on): Likewise.
104597         * modules/ldexpl-tests (Depdends-on): Likewise.
104599 2007-04-06  Bruno Haible  <bruno@clisp.org>
104601         * modules/signbit-tests: New file.
104602         * tests/test-signbit.c: New file.
104604         * modules/signbit: New file.
104605         * lib/signbitf.c: New file.
104606         * lib/signbitd.c: New file.
104607         * lib/signbitl.c: New file.
104608         * m4/signbit.m4: New file.
104609         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
104610         (signbit): New macro.
104611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
104612         REPLACE_SIGNBIT.
104613         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
104614         REPLACE_FREXPL into math.h.
104616 2007-04-06  Bruno Haible  <bruno@clisp.org>
104618         * modules/isnanf-nolibm-tests: New file.
104619         * tests/test-isnanf.c: New file.
104621         * modules/isnanf-nolibm: New file.
104622         * lib/isnanf.h: New file.
104623         * lib/isnanf.c: New file.
104624         * lib/isnan.c: Consider the USE_FLOAT macro.
104625         * m4/isnanf.m4: New file.
104627 2007-04-06  Bruno Haible  <bruno@clisp.org>
104629         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
104630         (Link): New section.
104632         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
104634 2007-04-06  Bruno Haible  <bruno@clisp.org>
104636         Assume the 'long double' type.
104637         * m4/longdouble.m4: Remove file.
104638         * config/srclist.txt: Don't mention longdouble.m4.
104639         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
104640         * lib/float+.h: Likewise.
104641         * lib/frexp.c: Likewise.
104642         * lib/printf-args.h: Likewise.
104643         * lib/printf-args.c: Likewise.
104644         * lib/printf-frexp.c: Likewise.
104645         * lib/printf-parse.c: Likewise.
104646         * lib/vasnprintf.c: Likewise.
104647         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
104648         * m4/intl.m4: Likewise.
104649         * m4/isnanl.m4: Likewise.
104650         * m4/printf.m4: Likewise.
104651         * m4/printf-frexpl.m4: Likewise.
104652         * m4/vasnprintf.m4: Likewise.
104653         * modules/allocsa (Files): Remove m4/longdouble.m4.
104654         * modules/gettext (Files): Likewise.
104655         * modules/relocatable-prog-wrapper (Files): Likewise.
104656         * modules/vasnprintf (Files): Likewise.
104657         * modules/isnanl (Files): Likewise.
104658         (Include): Simplify.
104659         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
104660         (Include): Simplify.
104661         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
104662         (Include): Simplify.
104663         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
104664         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104665         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
104666         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104667         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104668         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104669         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
104670         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104671         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104672         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104673         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
104674         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104675         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
104676         * tests/test-isnanl.c: Likewise.
104677         * tests/test-snprintf-posix.h: Likewise.
104678         * tests/test-sprintf-posix.h: Likewise.
104679         * tests/test-vasnprintf-posix.c: Likewise.
104680         * tests/test-vasnprintf-posix2.c: Likewise.
104681         * tests/test-vasprintf-posix.c: Likewise.
104683 2007-04-06  Bruno Haible  <bruno@clisp.org>
104685         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
104686         * lib/math_.h [__DECC]: Include the overridden include file through
104687         #include_next, outside the double-inclusion guard.
104688         * lib/stdio_.h [__DECC]: Likewise.
104689         * lib/stdlib_.h [__DECC]: Likewise.
104690         * lib/string_.h [__DECC]: Likewise.
104691         * lib/time_.h [__DECC]: Likewise.
104692         * lib/wchar_.h [__DECC]: Likewise.
104693         * lib/wctype_.h [__DECC]: Likewise.
104694         * lib/inttypes_.h [__DECC]: Likewise.
104695         Reported by Albert Chin <china@thewrittenword.com> in
104696         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
104698 2007-04-04  Eric Blake  <ebb9@byu.net>
104700         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
104701         1.5.x.
104703 2007-04-04  Bruno Haible  <bruno@clisp.org>
104705         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
104706         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
104708 2007-04-04  Bruno Haible  <bruno@clisp.org>
104710         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
104711         results for "%010a" of Infinity and NaN.
104712         * tests/test-vasprintf-posix.c (test_function): Likewise.
104713         * tests/test-snprintf-posix.h (test_function): Likewise.
104714         * tests/test-sprintf-posix.h (test_function): Likewise.
104715         * tests/test-fprintf-posix.h (test_function): Remove these tests.
104716         * tests/test-printf-posix.h (test_function): Likewise.
104717         * tests/test-fprintf-posix.out: Update.
104718         Needed for FreeBSD 6.1.
104720 2007-04-04  Bruno Haible  <bruno@clisp.org>
104722         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
104723         directly used by the gnulib modules nor by gnulib-tool.
104725 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
104727         * DEPENDENCIES: Give overall description of version dependency
104728         desirability.  Use more-typical names for apps.
104729         Add shell, coreutils, diffutils, grep, tar, gzip.
104731 2007-04-04  Simon Josefsson  <simon@josefsson.org>
104733         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
104735 2007-04-04  Karl Berry  <karl@gnu.org>
104737         * MODULES.html.sh (func_module): missing '.
104739 2007-04-03  Bruno Haible  <bruno@clisp.org>
104741         * modules/argmatch-tests (Makefile.am): New variable
104742         test_argmatch_LDADD.
104743         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
104744         * modules/array-list-tests (Makefile.am): New variable
104745         test_array_list_LDADD.
104746         * modules/array-oset-tests (Makefile.am): New variable
104747         test_array_oset_LDADD.
104748         * modules/avltree-list-tests (Makefile.am): New variable
104749         test_avltree_list_LDADD.
104750         * modules/avltree-oset-tests (Makefile.am): New variable
104751         test_avltree_oset_LDADD.
104752         * modules/avltreehash-list-tests (Makefile.am): New variable
104753         test_avltreehash_list_LDADD.
104754         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
104755         test_canonicalize_lgpl_LDADD.
104756         * modules/carray-list-tests (Makefile.am): New variable
104757         test_carray_list_LDADD.
104758         * modules/dirname-tests (Makefile.am): New variable
104759         test_dirname_LDADD.
104760         * modules/linked-list-tests (Makefile.am): New variable
104761         test_linked_list_LDADD.
104762         * modules/linkedhash-list-tests (Makefile.am): New variable
104763         test_linkedhash_list_LDADD.
104764         * modules/rbtree-list-tests (Makefile.am): New variable
104765         test_rbtree_list_LDADD.
104766         * modules/rbtree-oset-tests (Makefile.am): New variable
104767         test_rbtree_oset_LDADD.
104768         * modules/rbtreehash-list-tests (Makefile.am): New variable
104769         test_rbtreehash_list_LDADD.
104770         * modules/xvasprintf-tests (Makefile.am): New variable
104771         test_xvasprintf_LDADD.
104772         Reported by Eric Blake.
104774 2007-04-03  Eric Blake  <ebb9@byu.net>
104776         * DEPENDENCIES: Weaken m4 requirements.
104778 2007-04-03  Bruno Haible  <bruno@clisp.org>
104780         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
104781         * modules/isnanl-tests (configure.ac): Likewise.
104783 2007-04-03  Ben Pfaff  <blp@gnu.org>
104785         * modules/iconv_open: Add $(srcdir)/ to source directory
104786         references in Makefile fragments that call gperf, to fix VPATH
104787         builds.
104789 2007-04-03  Bruno Haible  <bruno@clisp.org>
104791         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
104792         * lib/ldexpl.c: Undo last change.
104794 2007-04-03  Bruno Haible  <bruno@clisp.org>
104796         * modules/printf-frexpl (Depends-on): Undo last change.
104797         (Files): Add m4/ldexpl.m4.
104799 2007-04-03  Bruno Haible  <bruno@clisp.org>
104801         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
104802         * modules/isnanl (Link): New section.
104804         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
104805         * modules/frexp (Link): New section.
104807         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
104808         * modules/frexpl (Link): New section.
104810         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
104811         * modules/ldexpl (Link): New section.
104813 2007-04-03  Bruno Haible  <bruno@clisp.org>
104815         * modules/TEMPLATE-EXTENDED: New file.
104816         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
104818 2007-04-03  Bruno Haible  <bruno@clisp.org>
104820         * DEPENDENCIES: New file.
104821         Suggested by Simon Josefsson.
104823 2007-04-03  Bruno Haible  <bruno@clisp.org>
104825         * doc/gnulib.texi: Escape @.
104827 2007-04-03  James Youngman  <jay@gnu.org>
104828         and Paul Eggert  <eggert@cs.ucla.edu>
104830         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
104831         birthtime on all systems that have birthtime, not just those which
104832         use st_birthtimensec rather than st_birthtim.  Putting zero in
104833         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
104834         that the birth time is not available for files on an NFS mount.
104836 2007-04-03  Simon Josefsson  <simon@josefsson.org>
104838         * modules/memxor: Move back from crypto/, suggested by Bruno.
104839         * modules/crypto/hmac-sha1: Fix memxor dependency.
104841         * modules/crypto/gc: Moved from ../.
104843 2007-04-02  Eric Blake  <ebb9@byu.net>
104845         * lib/ldexpl.c (includes): Avoid libm.
104847         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
104849 2007-04-02  Bruno Haible  <bruno@clisp.org>
104851         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
104852         on IRIX.
104854 2007-04-02  Bruno Haible  <bruno@clisp.org>
104856         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
104857         x86 or x86_64 platforms running MacOS X.
104858         Reported by Ryan Schmidt <@ryandesign.com>.
104860 2007-04-02  Bruno Haible  <bruno@clisp.org>
104862         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
104863         i386.
104865 2007-04-01  Simon Josefsson  <simon@josefsson.org>
104867         * modules/crypto/arcfour: Moved from ../.
104868         * modules/crypto/arcfour-tests: Moved from ../.
104869         * modules/crypto/arctwo: Moved from ../.
104870         * modules/crypto/arctwo-tests: Moved from ../.
104871         * modules/crypto/des: Moved from ../.
104872         * modules/crypto/des-tests: Moved from ../.
104873         * modules/crypto/gc-arcfour: Moved from ../.
104874         * modules/crypto/gc-arcfour-tests: Moved from ../.
104875         * modules/crypto/gc-arctwo: Moved from ../.
104876         * modules/crypto/gc-arctwo-tests: Moved from ../.
104877         * modules/crypto/gc-des: Moved from ../.
104878         * modules/crypto/gc-des-tests: Moved from ../.
104879         * modules/crypto/gc-hmac-md5: Moved from ../.
104880         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
104881         * modules/crypto/gc-hmac-sha1: Moved from ../.
104882         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
104883         * modules/crypto/gc-md2: Moved from ../.
104884         * modules/crypto/gc-md2-tests: Moved from ../.
104885         * modules/crypto/gc-md4: Moved from ../.
104886         * modules/crypto/gc-md4-tests: Moved from ../.
104887         * modules/crypto/gc-md5: Moved from ../.
104888         * modules/crypto/gc-md5-tests: Moved from ../.
104889         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
104890         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
104891         * modules/crypto/gc-random: Moved from ../.
104892         * modules/crypto/gc-rijndael: Moved from ../.
104893         * modules/crypto/gc-rijndael-tests: Moved from ../.
104894         * modules/crypto/gc-sha1: Moved from ../.
104895         * modules/crypto/gc-sha1-tests: Moved from ../.
104896         * modules/crypto/gc-tests: Moved from ../.
104897         * modules/crypto/hmac-md5: Moved from ../.
104898         * modules/crypto/hmac-md5-tests: Moved from ../.
104899         * modules/crypto/hmac-sha1: Moved from ../.
104900         * modules/crypto/hmac-sha1-tests: Moved from ../.
104901         * modules/crypto/md2: Moved from ../.
104902         * modules/crypto/md2-tests: Moved from ../.
104903         * modules/crypto/md4: Moved from ../.
104904         * modules/crypto/md4-tests: Moved from ../.
104905         * modules/crypto/md5: Moved from ../.
104906         * modules/crypto/md5-tests: Moved from ../.
104907         * modules/crypto/memxor: Moved from ../.
104908         * modules/crypto/rijndael: Moved from ../.
104909         * modules/crypto/rijndael-tests: Moved from ../.
104910         * modules/crypto/sha1: Moved from ../.
104912 2007-03-30  James Youngman  <jay@gnu.org>
104914         * tests/test-stat-time.c (prepare_test): use chmod() rather than
104915         rename() to change the ctime of a file (because ctime is unaffected
104916         by rename on jfs2 on AIX 5.1).
104917         (main): Start by doing cleanup, in case a previous run failed leaving
104918         test files behind.
104920 2007-03-31  Bruno Haible  <bruno@clisp.org>
104922         Support old proprietary implementations of iconv.
104923         * modules/iconv_open: New file.
104924         * lib/iconv_.h: New file.
104925         * m4/iconv_h.m4: New file.
104926         * lib/iconv_open.c: New file.
104927         * lib/iconv_open-aix.gperf: New file.
104928         * lib/iconv_open-hpux.gperf: New file.
104929         * lib/iconv_open-irix.gperf: New file.
104930         * lib/iconv_open-osf.gperf: New file.
104931         * m4/iconv_open.m4: New file.
104932         * modules/linebreak (Depends-on): Add iconv_open.
104933         * modules/striconv (Depends-on): Likewise.
104934         * modules/striconveh (Depends-on): Likewise.
104935         * modules/unicodeio (Depends-on): Likewise.
104936         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
104937         (iconv_t)(-1).
104938         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
104939         conversion if cd is (iconv_t)(-1).
104940         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
104941         is not possible.
104943 2007-03-31  Bruno Haible  <bruno@clisp.org>
104945         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
104946         work on Solaris either. Protect also second use of "autodetect_jp".
104948 2007-03-31  Bruno Haible  <bruno@clisp.org>
104950         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
104951         the function is not present.
104953 2007-03-31  Bruno Haible  <bruno@clisp.org>
104955         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
104956         the function is not present.
104958 2007-03-31  Bruno Haible  <bruno@clisp.org>
104960         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
104961         a bug in HP-UX iconv_open().
104963 2007-03-31  Bruno Haible  <bruno@clisp.org>
104965         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
104966         (Mathematics <math.h>): New section, add fpieee.
104967         (Input/output <stdio.h>): Add fseterr.
104968         (Mathematics <math.h>): New section, add printf-frexp.
104969         (Container data structures): Add sublist.
104970         (Core language properties): Add fpucw, inline.
104971         (Functions for greatest-width integer types <inttypes.h>): Add
104972         imaxabs, imaxdiv, inttypes.
104973         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
104974         isnanl-nolibm, ldexp.
104975         (Mathematics <math.h>): New section, add printf-frexpl.
104976         (Support for systems lacking POSIX:2001): Add fprintf-posix,
104977         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
104978         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
104979         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
104980         (Unicode string functions): Add unistr/u*-mbtoucr.
104981         (Java): Add javacomp-script, javaexec-script.
104982         (C#): Add csharpcomp-script, csharpexec-script.
104983         (Support for building libraries and executables): Add havelib,
104984         relocatable-*.
104985         (Support for maintaining and releasing projects): Renamed from
104986         'Support for maintaining and release projects'. Add announce-gen.
104988 2007-03-31  Bruno Haible  <bruno@clisp.org>
104990         * README: Talk primarily about git.
104991         (git and CVS): Renamed from CVS.
104992         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
104993         gnulib is available through git.
104994         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
104996 2007-03-30  Bruno Haible  <bruno@clisp.org>
104998         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
104999         * lib/poll_.h: Likewise.
105000         * lib/stat_.h: Likewise.
105001         * lib/sys_time_.h: Likewise.
105002         * lib/sysexit_.h: Likewise.
105003         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
105004         * lib/stdbool_.h: Likewise.
105005         * lib/byteswap_.h: Add double-inclusion guard.
105007 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
105009         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
105011 2007-03-30  Karl Berry  <karl@gnu.org>
105013         * config/srclist-update: double space after USA in the license
105014         substitution, since that's how it's usually (?) written.
105016 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
105018         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
105019         reported by Bruno Haible.
105021 2007-03-29  Bruno Haible  <bruno@clisp.org>
105023         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
105024         a bug in AIX iconv().
105026 2007-03-29  Bruno Haible  <bruno@clisp.org>
105028         * modules/ldexpl-tests: New file.
105029         * tests/test-ldexpl.c: New file.
105031 2007-03-29  Bruno Haible  <bruno@clisp.org>
105033         * lib/ldexpl.c: Include fpucw.h.
105034         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
105035         multiplication.
105036         * modules/ldexpl (Depends-on): Add fpucw.
105038 2007-03-29  Bruno Haible  <bruno@clisp.org>
105040         * modules/ldexpl: New file.
105041         * m4/ldexpl.m4: New file.
105042         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
105043         set.
105044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
105045         REPLACE_LDEXPL.
105046         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
105047         REPLACE_LDEXPL.
105048         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
105049         gl_FUNC_LDEXPL_WORKS.
105050         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
105051         * modules/mathl (Files): Remove lib/ldexpl.c.
105052         (Depends-on): Add ldexpl.
105054 2007-03-29  Bruno Haible  <bruno@clisp.org>
105056         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
105058 2007-03-29  Bruno Haible  <bruno@clisp.org>
105060         * tests/test-striconveh.c (main): Don't assume that a direct conversion
105061         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
105062         and possibly also HP-UX.
105063         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
105064         work on AIX, IRIX, HP-UX, OSF/1.
105065         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
105066         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
105067         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
105068         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
105069         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
105070         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
105072 2007-03-29  Bruno Haible  <bruno@clisp.org>
105074         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
105076 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
105078         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
105079         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
105081 2007-03-29  Eric Blake  <ebb9@byu.net>
105083         * lib/acl-internal.h: Remove redundant include.
105084         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
105085         Cygwin when a file is locked.
105087 2007-03-29  Bruno Haible  <bruno@clisp.org>
105089         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
105090         file.
105091         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
105093 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
105095         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
105096         try to remove a parent directory if the child couldn't be removed
105097         (except for the first rmdir, which could fail because the child
105098         doesn't exist).  Problem reported by Jeff Blaine in
105099         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
105101 2007-03-28  Bruno Haible  <bruno@clisp.org>
105103         * lib/striconveh.c (utf8conv_carefully): New function.
105104         (mem_cd_iconveh_internal): Invoke it.
105106 2007-03-28  Bruno Haible  <bruno@clisp.org>
105108         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
105109         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
105110         input.
105111         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
105112         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
105113         unistr/u8-uctomb.
105115 2007-03-28  Bruno Haible  <bruno@clisp.org>
105117         * modules/unistr/u8-mbtoucr: New file.
105118         * lib/unistr/u8-mbtoucr.c: New file.
105119         * modules/unistr/u16-mbtoucr: New file.
105120         * lib/unistr/u16-mbtoucr.c: New file.
105121         * modules/unistr/u16-mbtoucr: New file.
105122         * lib/unistr/u16-mbtoucr.c: New file.
105123         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
105125 2007-03-27  Simon Josefsson  <simon@josefsson.org>
105126             Bruno Haible  <bruno@clisp.org>
105128         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
105129         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
105130         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
105132         * m4/stdio_h.m4: Add stubs for vasprintf too.
105134         * modules/stdio: Support vasprintf in sed command.
105136         * modules/vasprintf: Depend on stdio for prototypes.  Remove
105137         vasprintf.h.  Add stdio module indicator.
105139         * lib/stdio_.h: Declare asprintf and vasprintf, based on
105140         vasprintf.h.
105142         * lib/vasprintf.h: File removed.
105144         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
105145         * lib/vasprintf.c: Ditto.
105146         * lib/xvasprintf.c: Ditto.
105147         * tests/test-vasprintf-posix.c: Ditto.
105148         * tests/test-vasprintf.c: Ditto.
105150 2007-03-27  Bruno Haible  <bruno@clisp.org>
105152         Make vasnprintf multithread-safe.
105153         * lib/vasnprintf.c (decimal_point_char): New function.
105154         (VASNPRINTF): Use it.
105155         Suggested by Simon Josefsson.
105157 2007-03-27  Eric Blake  <ebb9@byu.net>
105159         Support sub-second birthtime on cygwin.
105160         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
105161         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
105162         (get_stat_birthtime): Also work with st_birthtim.
105164 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
105166         * lib/stat-time.h (USE_BIRTHTIME): Remove.
105167         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
105168         (get_stat_birthtime_ns): Do not try to use "spare" fields.
105169         (get_stat_birthtime_ns): Simplify compile-time tests.
105170         (get_stat_birthtime): Change the API to look like
105171         get_stat_mtime etc., except return a negative tv_nsec on error.
105172         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
105173         Don't check for "spare" fields.
105174         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
105175         or for struct stat.st_birthtime, as these tests aren't used.
105176         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
105178 2007-03-27  Bruno Haible  <bruno@clisp.org>
105180         * lib/stat-time.h: Include <sys/stat.h>.
105182 2007-03-27  James Youngman  <jay@gnu.org>
105184         * lib/stat-time.h (get_stat_birthtime): New function for
105185           retrieving st_birthtime as provided by UFS2 (hence *BSD).
105186         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
105187           and its variants.
105188         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
105189         * modules/stat-time-test: New file.
105190         * tests/test-stat-time.c: New test, devised by Bruno Haible.
105192 2007-03-26  Bruno Haible  <bruno@clisp.org>
105194         Better support of signalling NaNs.
105195         * lib/atanl.c: Include isnanl.h.
105196         (atanl): Perform test for NaN at the beginning of the function and
105197         through a call to isnanl.
105198         * lib/cosl.c: Include isnanl.h.
105199         (cosl): Perform test for NaN at the beginning of the function and
105200         through a call to isnanl.
105201         * lib/ldexpl.c: Include isnanl.h.
105202         (ldexpl): Perform test for NaN through a call to isnanl.
105203         * lib/logl.c: Include isnanl.h.
105204         (logl): Perform test for NaN at the beginning of the function and
105205         through a call to isnanl.
105206         * lib/sinl.c: Include isnanl.h.
105207         (sinl): Perform test for NaN at the beginning of the function and
105208         through a call to isnanl.
105209         * lib/sqrtl.c: Include isnanl.h.
105210         (sqrtl): Perform test for NaN at the beginning of the function and
105211         through a call to isnanl.
105212         * lib/tanl.c: Include isnanl.h.
105213         (tanl): Perform test for NaN at the beginning of the function and
105214         through a call to isnanl.
105215         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
105216         * modules/mathl (Depends-on): Add isnanl.
105218 2007-03-26  Eric Blake  <ebb9@byu.net>
105220         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
105221         regression in logic sense of previous patch.
105223 2007-03-26  Bruno Haible  <bruno@clisp.org>
105225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
105226         unportable shell command "if ! ...".
105227         Reported by Ralf Wildenhues.
105229 2007-03-25  Bruno Haible  <bruno@clisp.org>
105231         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
105232         <sysexits.h> file, and only add EX_CONFIG.
105233         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
105234         absolute file name and whether it is sufficient. Substitute also
105235         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
105236         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
105237         ABSOLUTE_SYSEXITS_H into sysexits.h.
105239 2007-03-25  Bruno Haible  <bruno@clisp.org>
105241         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
105242         hints is NULL.
105244 2007-03-25  Bruno Haible  <bruno@clisp.org>
105246         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
105247         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
105249 2007-03-25  Bruno Haible  <bruno@clisp.org>
105251         * lib/vasnprintf.c: Include langinfo.h.
105252         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
105253         multithread-safe.
105254         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
105255         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
105256         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105257         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105258         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105259         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105260         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105261         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
105262         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105263         Reported by Simon Josefsson.
105265 2007-03-25  Bruno Haible  <bruno@clisp.org>
105267         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
105268         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
105269         * modules/vasnprintf (Depends-on): Add stdint.
105271 2007-03-25  Bruno Haible  <bruno@clisp.org>
105273         * modules/fpieee: New file.
105274         * m4/fpieee.m4: New file.
105275         * modules/isnan-nolibm (Depends-on): Add fpieee.
105276         * modules/isnanl-nolibm (Depends-on): Add fpieee.
105277         * modules/isnanl (Depends-on): Add fpieee.
105279 2007-03-25  Bruno Haible  <bruno@clisp.org>
105281         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
105283 2007-03-25  Bruno Haible  <bruno@clisp.org>
105285         Avoid test failures on IRIX 6.5.
105286         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
105287         (main): Use it.
105288         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
105289         macros.
105290         (main): Use them.
105292 2007-03-25  Bruno Haible  <bruno@clisp.org>
105294         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
105295         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
105296         exists but doesn't work.
105297         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
105298         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
105299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
105300         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
105301         math.h.
105303 2007-03-25  Bruno Haible  <bruno@clisp.org>
105305         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
105306         returns inf. Needed on IRIX 6.5.
105308 2007-03-25  Bruno Haible  <bruno@clisp.org>
105310         * tests/test-frexpl.c: Include isnanl-nolibm.h.
105311         (main): Use isnanl instead of x != x idiom.
105312         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
105314         * tests/test-frexp.c: Include isnan.h.
105315         (main): Use isnan instead of x != x idiom.
105316         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
105318 2007-03-25  Bruno Haible  <bruno@clisp.org>
105320         * tests/test-frexp.c (NaN): New function/macro.
105321         (main): Use it instead of 0.0 / 0.0.
105322         * tests/test-isnan.c (NaN): New function/macro.
105323         (main): Use it instead of 0.0 / 0.0.
105324         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
105325         (test_function): Use it instead of 0.0 / 0.0.
105326         * tests/test-vasprintf-posix.c (NaN): New function/macro.
105327         (test_function): Use it instead of 0.0 / 0.0.
105328         * tests/test-snprintf-posix.h (NaN): New function/macro.
105329         (test_function): Use it instead of 0.0 / 0.0.
105330         * tests/test-sprintf-posix.h (NaN): New function/macro.
105331         (test_function): Use it instead of 0.0 / 0.0.
105332         * tests/test-fprintf-posix.h (NaN): New function/macro.
105333         (test_function): Use it instead of 0.0 / 0.0.
105334         * tests/test-printf-posix.h (NaN): New function/macro.
105335         (test_function): Use it instead of 0.0 / 0.0.
105337         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
105339 2007-03-25  Bruno Haible  <bruno@clisp.org>
105341         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
105343 2007-03-25  Bruno Haible  <bruno@clisp.org>
105345         * lib/regexec.c (merge_state_with_log): Make static.
105347 2007-03-25  Bruno Haible  <bruno@clisp.org>
105349         * lib/trigl.c (kernel_rem_pio2): Make static.
105351 2007-03-25  Bruno Haible  <bruno@clisp.org>
105353         * lib/sincosl.c (sincosl_table): Make static.
105355 2007-03-25  Bruno Haible  <bruno@clisp.org>
105357         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
105358         if the compiler does not support C99.
105360 2007-03-25  Bruno Haible  <bruno@clisp.org>
105362         * modules/time (Makefile.am): Ensure all rule action lines start with a
105363         tab.
105365 2007-03-24  Bruno Haible  <bruno@clisp.org>
105367         * modules/tsearch-tests: New file.
105368         * tests/test-tsearch.sh: New file.
105369         * tests/test-tsearch.c: New file, mostly copied from glibc.
105371         * modules/search-tests: New file.
105372         * tests/test-search.c: New file.
105374         * modules/search: New file.
105375         * lib/search_.h: New file, incorporating lib/tsearch.h.
105376         * m4/search_h.m4: New file.
105377         * lib/tsearch.h: Remove file.
105378         * lib/tsearch.c: Include search.h instead of tsearch.h.
105379         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
105380         HAVE_TSEARCH.
105381         * modules/tsearch (Files): Remove lib/tsearch.h.
105382         (Depends-on): Add search.
105383         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
105384         (Include): Change tsearch.h into search.h.
105386 2007-03-24  Bruno Haible  <bruno@clisp.org>
105388         * modules/fpucw: New file.
105389         * lib/fpucw.h: New file.
105390         * lib/frexp.c: Include fpucw.h.
105391         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105392         (FUNC): Use them.
105393         * lib/printf-frexp.c: Include fpucw.h.
105394         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105395         (FUNC): Use them.
105396         * lib/vasnprintf.c: Include fpucw.h.
105397         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
105398         'long double' calculations.
105399         * tests/test-frexpl.c: Include fpucw.h.
105400         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105401         * tests/test-printf-frexpl.c: Include fpucw.h.
105402         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105403         * modules/frexpl (Depends-on): Add fpucw.
105404         * modules/printf-frexpl (Depends-on): Likewise.
105405         * modules/fprintf-posix (Depends-on): Likewise.
105406         * modules/snprintf-posix (Depends-on): Likewise.
105407         * modules/sprintf-posix (Depends-on): Likewise.
105408         * modules/vasnprintf-posix (Depends-on): Likewise.
105409         * modules/vasprintf-posix (Depends-on): Likewise.
105410         * modules/vfprintf-posix (Depends-on): Likewise.
105411         * modules/vsnprintf-posix (Depends-on): Likewise.
105412         * modules/vsprintf-posix (Depends-on): Likewise.
105413         * modules/frexpl-tests (Depends-on): Likewise.
105414         * modules/printf-frexpl-tests (Depends-on): Likewise.
105416 2007-03-24  Bruno Haible  <bruno@clisp.org>
105418         * lib/float+.h: New file.
105419         * lib/isnan.c: Include float+.h.
105420         (SIZE): New macro.
105421         (FUNC): Compare only SIZE bytes of the value.
105422         * lib/vasnprintf.c: Include float+.h.
105423         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
105424         SIZEOF_LDBL or SIZEOF_DBL bytes.
105425         * modules/isnan-nolibm (Files): Add lib/float+.h.
105426         * modules/isnanl-nolibm (Files): Add lib/float+.h.
105427         * modules/isnanl (Files): Add lib/float+.h.
105428         * modules/vasnprintf (Files): Add lib/float+.h.
105430 2007-03-24  Bruno Haible  <bruno@clisp.org>
105432         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
105433         include isnanl-nolibm.h.
105435 2007-03-24  Bruno Haible  <bruno@clisp.org>
105437         * tests/test-read-file.c (main): Don't produce spurious output for
105438         expected situations. Make the test fail if it encountered unexpected
105439         results.
105441 2007-03-24  Bruno Haible  <bruno@clisp.org>
105443         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
105444         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
105446 2007-03-24  Bruno Haible  <bruno@clisp.org>
105448         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
105450 2007-03-24  Bruno Haible  <bruno@clisp.org>
105452         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
105453         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
105455         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
105456         * modules/utf8-ucs4: Turn into a symbolic link to module
105457         unistr/u8-mbtouc.
105459         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
105460         utf8-ucs4-unsafe.
105461         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
105462         unistr/u8-mbtouc-unsafe.
105464         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
105465         * modules/utf16-ucs4: Turn into a symbolic link to module
105466         unistr/u16-mbtouc.
105468         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
105469         utf16-ucs4-unsafe.
105470         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
105471         unistr/u16-mbtouc-unsafe.
105473         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
105474         * modules/ucs4-utf8: Turn into a symbolic link to module
105475         unistr/u8-ubtomb.
105477         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
105478         * modules/ucs4-utf16: Turn into a symbolic link to module
105479         unistr/u16-ubtomb.
105481 2007-03-24  Bruno Haible  <bruno@clisp.org>
105483         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
105484         Enable the function only if HAVE_INLINE.
105485         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
105486         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105487         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
105488         Enable the function only if HAVE_INLINE.
105489         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
105490         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105491         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
105492         Enable the function only if HAVE_INLINE.
105493         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
105494         Enable the function only if HAVE_INLINE.
105495         * modules/utf8-ucs4: Update.
105496         * modules/utf8-ucs4-unsafe: Update.
105497         * modules/utf16-ucs4: Update.
105498         * modules/utf16-ucs4-unsafe: Update.
105499         * modules/ucs4-utf8: Update.
105500         * modules/ucs4-utf16: Update.
105502 2007-03-24  Bruno Haible  <bruno@clisp.org>
105504         * lib/utf8-ucs4.h: Remove file.
105505         * lib/utf8-ucs4-unsafe.h: Remove file.
105506         * lib/utf16-ucs4.h: Remove file.
105507         * lib/utf16-ucs4-unsafe.h: Remove file.
105508         * lib/ucs4-utf8.h: Remove file.
105509         * lib/ucs4-utf16.h: Remove file.
105510         * lib/unistr.h: Include their previous contents.
105511         * m4/utf-ucs4.m4: Remove file.
105512         * m4/ucs4-utf.m4: Remove file.
105513         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
105514         (Depends-on): Add unistr/base.
105515         (configure.ac): Remove gl_UTF_UCS4.
105516         (Makefile.am): Update.
105517         (Include): Change to unistr.h.
105518         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
105519         (Depends-on): Add unistr/base.
105520         (configure.ac): Remove gl_UTF_UCS4.
105521         (Makefile.am): Update.
105522         (Include): Change to unistr.h.
105523         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
105524         (Depends-on): Add unistr/base.
105525         (configure.ac): Remove gl_UTF_UCS4.
105526         (Makefile.am): Update.
105527         (Include): Change to unistr.h.
105528         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
105529         (Depends-on): Add unistr/base.
105530         (configure.ac): Remove gl_UTF_UCS4.
105531         (Makefile.am): Update.
105532         (Include): Change to unistr.h.
105533         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
105534         (Depends-on): Add unistr/base.
105535         (configure.ac): Remove gl_UCS4_UTF.
105536         (Makefile.am): Update.
105537         (Include): Change to unistr.h.
105538         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
105539         (Depends-on): Add unistr/base.
105540         (configure.ac): Remove gl_UCS4_UTF.
105541         (Makefile.am): Update.
105542         (Include): Change to unistr.h.
105543         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
105544         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
105545         utf8-ucs4-unsafe.h.
105546         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
105547         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
105548         utf16-ucs4-unsafe.h.
105549         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
105550         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
105551         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
105552         * lib/unistr/u8-strchr.c: Likewise.
105553         * lib/unistr/u8-strrchr.c: Likewise.
105554         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
105555         * lib/unistr/u16-strchr.c: Likewise.
105556         * lib/unistr/u16-strrchr.c: Likewise.
105557         * lib/striconveh.c: Update.
105558         * lib/linebreak.c: Update.
105560 2007-03-24  Bruno Haible  <bruno@clisp.org>
105562         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
105563         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
105565 2007-03-22  Bruno Haible  <bruno@clisp.org>
105567         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
105569 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
105571         * MODULES.html.sh (File system functions): New module write-any-file.
105572         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
105573         * m4/write-any-file.m4: New files.
105575 2007-03-23  Eric Blake  <ebb9@byu.net>
105577         * gnulib-tool: Rearrange space-tab sequences, since some editors
105578         like to eat them.
105580 2007-03-23  Eric Blake  <ebb9@byu.net>
105582         * lib/version-etc.c (version_etc_va): Update license wording to
105583         be more concise.  Recommended by Richard Stallman.
105585 2007-03-22  Bruno Haible  <bruno@clisp.org>
105587         * lib/poll.c (MSG_PEEK): New fallback definition.
105589 2007-03-22  Bruno Haible  <bruno@clisp.org>
105591         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
105592         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
105593         (main): Update.
105594         Fixes a compilation error on BeOS.
105596 2007-03-22  Bruno Haible  <bruno@clisp.org>
105598         * modules/frexpl-tests: New file.
105599         * tests/test-frexpl.c: New file.
105601         * modules/frexpl: New file.
105602         * m4/frexpl.m4: New file.
105603         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
105604         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
105605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
105606         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
105607         (Depends-on): Add frexpl. Remove isnanl-nolibm.
105608         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
105610 2007-03-22  Bruno Haible  <bruno@clisp.org>
105612         * lib/frexpl.c: Share code with lib/frexp.c.
105613         * modules/mathl (Files): Add lib/frexp.c.
105614         (Depends-on): Add isnanl-nolibm.
105616 2007-03-22  Bruno Haible  <bruno@clisp.org>
105618         * modules/printf-frexp (Files): Add m4/frexp.m4.
105619         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
105620         only if the found frexp function actually works.
105622 2007-03-22  Bruno Haible  <bruno@clisp.org>
105624         * lib/frexp.c: Remove older implementation that uses divisions.
105626 2007-03-21  Bruno Haible  <bruno@clisp.org>
105628         * modules/frexp-tests: New file.
105629         * tests/test-frexp.c: New file.
105631         * modules/frexp: New file.
105632         * lib/frexp.c: New file.
105633         * m4/frexp.m4: New file.
105634         * lib/math_.h (frexp): New declaration.
105635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
105636         REPLACE_FREXP.
105637         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
105639 2007-03-21  Bruno Haible  <bruno@clisp.org>
105641         * modules/isnanl-tests: New file.
105642         * tests/test-isnanl.c: New file.
105644         * modules/isnanl: New file.
105645         * lib/isnanl.h: New file.
105646         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
105647         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
105648         gl_FUNC_ISNANL_WORKS.
105649         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
105650         New macros.
105652 2007-03-21  Bruno Haible  <bruno@clisp.org>
105654         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
105655         lib/isnanl.h.
105656         (Include): Update.
105657         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
105658         * lib/vasnprintf.c: Update.
105659         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
105660         tests/test-isnanl.h, remove tests/test-isnanl.c.
105661         (Makefile.am): Update.
105662         * tests/test-isnanl-nolibm.c: New file.
105663         * tests/test-isnanl.h: New file.
105664         * tests/test-isnanl.c: Remove file.
105666 2007-03-21  Jim Meyering  <jim@meyering.net>
105668         When trying to open ".", treat ESTALE like EACCES.
105669         * lib/savewd.c (savewd_save): Resort to forking not just upon
105670         failure with EACCES, but also when errno is ESTALE.
105672 2007-03-20  Bruno Haible  <bruno@clisp.org>
105674         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
105675         Needed on AIX 5.1. Reported by Matthew Woehlke.
105677 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105679         Suggestions by Bruno Haible:
105680         * lib/acl-internal.h: Include "gettext.h" rather than rolling
105681         our own.
105682         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
105683         * modules/acl (Depends-on): Add gettext.
105685 2007-03-19  Bruno Haible  <bruno@clisp.org>
105687         * modules/iconvme: Remove file.
105688         * lib/iconvme.h: Remove file.
105689         * lib/iconvme.c: Remove file.
105690         * m4/iconvme.m4: Remove file.
105692 2007-03-19  Bruno Haible  <bruno@clisp.org>
105694         * doc/relocatable-maint.texi: Break long shell script line.
105695         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105697 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105699         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
105700         handle file_has_acl.
105701         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
105702         * lib/acl.c: Move header inclusions and related macro defns into
105703         lib/acl-internal.h.
105704         (S_ISLNK): Remove defn, since that's now done for us.
105705         (file_has_acl): Move to lib/file-has-acl.c.
105706         Call acl_trivial if available.  This is the crucial part of the fix.
105707         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
105708         shared within the library.  Rewrite a bit, partly to make it compatible
105709         with the GNU coding style.
105710         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
105711         Remove unnecessary double-quotes.
105712         Don't test for acl_to_text; the build will catch that.
105713         Replace acl_entries if it doesn't exist and it is needed.
105714         Check for -lsec and acl_trivial (as used on Solaris 10).
105715         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
105716         lib/file-has-acl.c.
105717         (Depends-on): Add sys_stat, for S_ISLNK.
105719 2007-03-19  Ben Pfaff  <blp@gnu.org>
105721         * doc/gnulib.texi: Fix typos.
105722         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105724 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105726         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
105727         If size is zero here, buf must be zero.
105729 2007-03-19  Simon Josefsson  <simon@josefsson.org>
105731         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
105732         <bruno@clisp.org>.
105734 2007-03-18  Bruno Haible  <bruno@clisp.org>
105736         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
105737         Suggested by Eric Blake.
105739 2007-03-18  Ben Pfaff  <blp@gnu.org>
105741         * doc/relocatable.texi: Recommend using as prefix a directory
105742         that does not exist and will never be created.  Based on
105743         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
105744         and others.
105746 2007-03-17  Bruno Haible  <bruno@clisp.org>
105748         * lib/fchownat.c: Include lchown.h.
105750 2007-03-17  Bruno Haible  <bruno@clisp.org>
105752         Fix endless loop when the given allocated size was > INT_MAX.
105753         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
105754         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
105755         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
105756         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
105757         * lib/sprintf.c (sprintf): Likewise.
105759 2007-03-17  Bruno Haible  <bruno@clisp.org>
105761         * tests/test-argp-2.sh (func_compare): Output a context diff.
105763 2007-03-17  Bruno Haible  <bruno@clisp.org>
105765         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
105766         locale's decimal-point character.
105768 2007-03-17  Bruno Haible  <bruno@clisp.org>
105770         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
105771         before comparing it. Needed because on some platforms (e.g. x86) a
105772         'long double' occupies less bytes than sizeof (long double).
105774 2007-03-17  Bruno Haible  <bruno@clisp.org>
105776         * tests/test-crc.c (main): Make printf statements 64-bit clean.
105777         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
105778         * tests/test-getaddrinfo.c (simple): Likewise.
105779         * tests/test-read-file.c (main): Likewise.
105781 2007-03-17  Bruno Haible  <bruno@clisp.org>
105783         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
105785 2007-03-17  Bruno Haible  <bruno@clisp.org>
105787         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
105788         unused variable.
105790 2007-03-17  Bruno Haible  <bruno@clisp.org>
105792         * tests/test-c-strcasecmp.c: Include c-strcase.h.
105793         * tests/test-c-strncasecmp.c: Likewise.
105795 2007-03-17  Bruno Haible  <bruno@clisp.org>
105797         * modules/stdlib (Depends-on): Add unistd.
105798         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
105799         Needed for MacOS X 10.3.
105801 2007-03-17  Bruno Haible  <bruno@clisp.org>
105803         * lib/unistr/u-strdup.h: Include <stdlib.h>.
105805 2007-03-17  Bruno Haible  <bruno@clisp.org>
105807         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
105809 2007-03-17  Bruno Haible  <bruno@clisp.org>
105811         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
105812         to reflect files copied from gnulib (with or without modifications).
105813         Suggested by Jim Meyering.
105815 2007-03-17  Eric Blake  <ebb9@byu.net>
105817         * NEWS: Document stdlib change from 2007-02-18.
105819 2007-03-17  Jim Meyering  <jim@meyering.net>
105821         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
105822         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
105823         someone uses a name containing shell meta-characters.
105824         Reported by Alfred M. Szmidt.
105826         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
105828 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
105830         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
105831         and copy gettext configuration files only if configure.ac contains
105832         a use of AM_GNU_GETTEXT_VERSION.
105834 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
105836         * build-aux/bootstrap (gnulib_name): New variable.
105837         (gnulib_tool_options): Use it.
105839 2007-03-13  Simon Josefsson  <simon@josefsson.org>
105841         * tests/test-des.c: Use new namespace.
105843 2007-03-15  Bruno Haible  <bruno@clisp.org>
105845         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
105846         Reported by James Youngman <jay@gnu.org>.
105848 2007-03-15  Bruno Haible  <bruno@clisp.org>
105850         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
105851         declared prototype. Needed with cc on OSF/1 5.1.
105853 2007-03-15  Bruno Haible  <bruno@clisp.org>
105855         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
105856         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
105857         (struct gl_list_implementation): Add dispose_fn argument to the
105858         'create_empty', 'create' methods.
105859         (struct gl_list_impl_base): Add field 'dispose_fn'.
105860         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
105861         argument.
105862         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
105863         dispose_fn argument.
105864         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
105865         dispose_fn on the dropped values.
105866         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
105867         dispose_fn argument.
105868         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
105869         dropped values.
105870         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
105871         (gl_tree_remove_node): Call dispose_fn on the dropped value.
105872         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
105873         (gl_tree_remove_node): Call dispose_fn on the dropped value.
105874         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
105875         argument.
105876         (gl_tree_list_free): Call dispose_fn on the dropped values.
105877         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
105878         the dropped values.
105879         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
105880         Add dispose_fn argument.
105881         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
105882         Call dispose_fn on the dropped values.
105883         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
105884         Add dispose_fn argument.
105885         (gl_sublist_create): Initialize the 'dispose_fn' field.
105886         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
105887         * tests/test-array_list.c (main): Update.
105888         * tests/test-carray_list.c (main): Update.
105889         * tests/test-avltree_list.c (main): Update.
105890         * tests/test-rbtree_list.c (main): Update.
105891         * tests/test-avltreehash_list.c (main): Update.
105892         * tests/test-rbtreehash_list.c (main): Update.
105893         * tests/test-linked_list.c (main): Update.
105894         * tests/test-linkedhash_list.c (main): Update.
105895         * tests/test-array_oset.c (main): Update.
105897 2007-03-15  Bruno Haible  <bruno@clisp.org>
105899         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
105900         (gl_oset_create_empty): Add dispose_fn argument.
105901         (struct gl_oset_implementation): Add dispose_fn argument to
105902         'create_empty' method.
105903         (struct gl_oset_impl_base): Add dispose_fn field.
105904         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
105905         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
105906         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
105907         values.
105908         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
105909         (gl_tree_oset_free): Call dispose_fn on the dropped values.
105910         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
105911         dropped value.
105912         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
105913         dropped value.
105914         * tests/test-array_oset.c (main): Update.
105915         * tests/test-avltree_oset.c (main): Update.
105916         * tests/test-rbtree_oset.c (main): Update.
105917         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
105919 2007-03-13  Bruno Haible  <bruno@clisp.org>
105921         * tests/test-stdbool.c (i): Update after last patch.
105923 2007-03-12  Bruno Haible  <bruno@clisp.org>
105925         * lib/quotearg.c: Include <wctype.h> early, before the definition of
105926         the iswprint macro. Needed on Solaris 2.5.1.
105928 2007-03-12  Bruno Haible  <bruno@clisp.org>
105930         * tests/test-printf-frexp.c (main): Declare x as volatile.
105932 2007-03-12  Simon Josefsson  <simon@josefsson.org>
105934         * doc/gnulib.texi (Build robot for gnulib): New section.
105936 2007-03-12  Jim Meyering  <jim@meyering.net>
105938         * build-aux/bootstrap: New file.
105939         * build-aux/bootstrap.conf: New file, from coreutils.
105941 2007-03-11  Bruno Haible  <bruno@clisp.org>
105943         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
105945 2007-03-12  Simon Josefsson  <simon@josefsson.org>
105947         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
105948         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
105949         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
105951 2007-03-11  Bruno Haible  <bruno@clisp.org>
105953         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
105954         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
105956 2007-03-11  Bruno Haible  <bruno@clisp.org>
105958         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
105959         formula. Needed for SunPRO C 5.0.
105961 2007-03-11  Bruno Haible  <bruno@clisp.org>
105963         * modules/long-options (Depends-on): Add getopt.
105965 2007-03-11  Bruno Haible  <bruno@clisp.org>
105967         * modules/modechange (Depends-on): Add stdbool.
105969 2007-03-11  Bruno Haible  <bruno@clisp.org>
105971         * modules/i-ring (Depends-on): Add stdbool.
105973 2007-03-11  Bruno Haible  <bruno@clisp.org>
105975         * modules/gc-des (Depends-on): Add stdbool.
105977 2007-03-11  Bruno Haible  <bruno@clisp.org>
105979         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
105981 2007-03-11  Bruno Haible  <bruno@clisp.org>
105983         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
105985 2007-03-11  Bruno Haible  <bruno@clisp.org>
105987         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
105989 2007-03-11  Bruno Haible  <bruno@clisp.org>
105991         * lib/vasnprintf.c (sprintf): Undefine.
105993 2007-03-11  Bruno Haible  <bruno@clisp.org>
105995         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
105996         initializers in SunPRO C and Compaq C compilers.
105998 2007-03-11  Bruno Haible  <bruno@clisp.org>
106000         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
106001         decrementing code ANSI C compliant.
106003 2007-03-11  Bruno Haible  <bruno@clisp.org>
106005         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
106006         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
106008 2007-03-11  Bruno Haible  <bruno@clisp.org>
106010         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
106011         <stdbool.h> substitute doesn't pass.
106013 2007-03-11  Bruno Haible  <bruno@clisp.org>
106015         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
106017 2007-03-11  Bruno Haible  <bruno@clisp.org>
106019         * gnulib-tool (func_create_megatestdir): Create also an autobuild
106020         script, for submission to autobuild.josefsson.org.
106022 2007-03-10  Bruno Haible  <bruno@clisp.org>
106024         * modules/canonicalize-lgpl-tests: New file.
106025         * tests/test-canonicalize-lgpl.sh: New file.
106026         * tests/test-canonicalize-lgpl.c: New file.
106028         * modules/c-strcase-tests: New file.
106029         * tests/test-c-strcase.sh: New file.
106030         * tests/test-c-strcasecmp.c: New file.
106031         * tests/test-c-strncasecmp.c: New file.
106033         * modules/atexit-tests: New file.
106034         * tests/test-atexit.sh: New file.
106035         * tests/test-atexit.c: New file.
106037 2007-03-10  Bruno Haible  <bruno@clisp.org>
106039         * tests/test-binary-io.sh: Use temporary filenames that are not so
106040         likely to clash with those of other tests (in a parallel make).
106041         * tests/test-binary-io.c: Likewise.
106043 2007-03-10  Bruno Haible  <bruno@clisp.org>
106045         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
106046         fallback; use #error instead.
106047         Suggested by Simon Josefsson.
106049 2007-03-10  Bruno Haible  <bruno@clisp.org>
106051         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
106052         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
106053         first and the last.
106055 2007-03-10  Bruno Haible  <bruno@clisp.org>
106057         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
106059 2007-03-10  Bruno Haible  <bruno@clisp.org>
106061         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
106062         "make distcheck".
106063         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
106064         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
106065         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
106067 2007-03-10  Bruno Haible  <bruno@clisp.org>
106069         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
106070         variable.
106071         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
106072         variable.
106074 2007-03-09  Eric Blake  <ebb9@byu.net>
106075         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
106077         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
106078         types are not being provided by gnulib.
106079         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
106080         types are supported.
106082 2007-03-10  Bruno Haible  <bruno@clisp.org>
106084         * lib/stdio_.h (__attribute__): New macro.
106085         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
106086         vsprintf): Specify __attribute__ __format__ for GCC.
106087         Suggested by Eric Blake.
106089 2007-03-09  Bruno Haible  <bruno@clisp.org>
106091         * modules/printf-posix-tests: New file.
106092         * tests/test-printf-posix.sh: New file.
106093         * tests/test-printf-posix.c: New file.
106095         * modules/printf-posix: New file.
106096         * lib/printf.c: New file.
106097         * m4/printf-posix-rpl.m4: New file.
106098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
106099         REPLACE_PRINTF.
106100         * lib/stdio_.h (printf): New declaration.
106101         (format, __format__, ____printf____, ____scanf____, ____strftime____,
106102         ____strfmon____): New macros.
106103         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
106104         REPLACE_PRINTF.
106106 2007-03-09  Bruno Haible  <bruno@clisp.org>
106108         * tests/test-vasnprintf-posix2.sh: New file.
106109         * tests/test-vasnprintf-posix2.c: New file.
106110         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
106111         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
106112         (Makefile.am): Activate test-vasnprintf-posix2.sh.
106114         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
106115         a locale dependent decimal point, rather than always '.'.
106117 2007-03-09  Eric Blake  <ebb9@byu.net>
106119         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
106120         spite of platforms like Tandem/NSK that define it to -1.
106122 2007-03-08  Bruno Haible  <bruno@clisp.org>
106124         * modules/vprintf-posix-tests: New file.
106125         * tests/test-vprintf-posix.sh: New file.
106126         * tests/test-vprintf-posix.c: New file.
106127         * tests/test-printf-posix.h: New file.
106129         * modules/vprintf-posix: New file.
106130         * lib/vprintf.c: New file.
106131         * m4/vprintf-posix.m4: New file.
106132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
106133         REPLACE_VPRINTF.
106134         * lib/stdio_.h (vprintf): New declaration.
106135         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
106136         REPLACE_VPRINTF.
106138 2007-03-08  Bruno Haible  <bruno@clisp.org>
106140         * modules/fprintf-posix-tests: New file.
106141         * tests/test-fprintf-posix.sh: New file.
106142         * tests/test-fprintf-posix.c: New file.
106144         * modules/fprintf-posix: New file.
106145         * lib/fprintf.c: New file.
106146         * m4/fprintf-posix.m4: New file.
106147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
106148         REPLACE_FPRINTF.
106149         * lib/stdio_.h (fprintf): New declaration.
106150         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
106151         REPLACE_FPRINTF.
106153 2007-03-08  Bruno Haible  <bruno@clisp.org>
106155         * modules/vfprintf-posix-tests: New file.
106156         * tests/test-vfprintf-posix.sh: New file.
106157         * tests/test-vfprintf-posix.c: New file.
106158         * tests/test-fprintf-posix.h: New file.
106159         * tests/test-fprintf-posix.out: New file.
106161         * modules/vfprintf-posix: New file.
106162         * lib/vfprintf.c: New file.
106163         * m4/vfprintf-posix.m4: New file.
106164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
106165         REPLACE_VFPRINTF.
106166         * lib/stdio_.h (vfprintf): New declaration.
106167         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
106168         REPLACE_VFPRINTF.
106170 2007-03-08  Bruno Haible  <bruno@clisp.org>
106172         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
106174 2007-03-08  Bruno Haible  <bruno@clisp.org>
106176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
106177         instead of 'expr' invocations.
106178         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106179         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106180         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
106182         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106183         Suggested by Paul Eggert.
106185 2007-03-08  Bruno Haible  <bruno@clisp.org>
106187         * modules/fseterr-tests: New file.
106188         * tests/test-fseterr.c: New file.
106190         * modules/fseterr: New file.
106191         * lib/fseterr.h: New file.
106192         * lib/fseterr.c: New file.
106194 2007-03-08  Bruno Haible  <bruno@clisp.org>
106196         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
106197         * lib/getopt_.h: Likewise.
106198         * lib/mbswidth.h: Likewise.
106199         * lib/setenv.h: Likewise.
106200         * lib/vasnprintf.h: Likewise.
106201         * lib/vasprintf.h: Likewise.
106202         * lib/verror.h: Likewise.
106203         * lib/xsetenv.h: Likewise.
106204         * lib/xvasprintf.h: Likewise.
106206 2007-03-08  Jim Meyering  <jim@meyering.net>
106208         * users.txt: Add parted.
106210         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
106212 2007-03-07  Bruno Haible  <bruno@clisp.org>
106214         * m4/printf.m4: Make the shell script snippets copy&pastable.
106216 2007-03-02  Bruno Haible  <bruno@clisp.org>
106218         * lib/netinet_in_.h: New file.
106219         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
106220         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
106221         * modules/netinet_in (Files): Add lib/netinet_in_.h.
106222         (Depends-on): Add absolute-header.
106223         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
106224         into netinet/in.h.
106226 2007-03-03  Bruno Haible  <bruno@clisp.org>
106228         * lib/sys_select_.h: New file.
106229         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
106230         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
106231         * modules/sys_select (Files): Add lib/sys_select_.h.
106232         (Depends-on): Add absolute-header.
106233         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
106234         into sys/select.h.
106236 2007-03-02  Bruno Haible  <bruno@clisp.org>
106238         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
106239         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
106240         values.
106241         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
106242         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
106243         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
106244         * modules/sys_socket (Depends-on): Add absolute-header.
106245         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
106246         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
106247         (Include): Remove requirement of inclusion of <sys/types.h>.
106249 2007-03-02  Bruno Haible  <bruno@clisp.org>
106251         * lib/byteswap_.h (bswap_32): Fix formula.
106253 2007-03-06  Bruno Haible  <bruno@clisp.org>
106255         * modules/sprintf-posix-tests: New file.
106256         * tests/test-sprintf-posix.c: New file.
106258         * modules/sprintf-posix: New file.
106259         * lib/sprintf.c: New file.
106260         * m4/sprintf-posix.m4: New file.
106261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
106262         REPLACE_SPRINTF.
106263         * lib/stdio_.h (sprintf): New declaration.
106264         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
106265         REPLACE_SPRINTF.
106267 2007-03-06  Bruno Haible  <bruno@clisp.org>
106269         * modules/vsprintf-posix-tests: New file.
106270         * tests/test-vsprintf-posix.c: New file.
106271         * tests/test-sprintf-posix.h: New file.
106273         * modules/vsprintf-posix: New file.
106274         * lib/vsprintf.c: New file.
106275         * m4/vsprintf-posix.m4: New file.
106276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
106277         REPLACE_VSPRINTF.
106278         * lib/stdio_.h (vsprintf): New declaration.
106279         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
106280         REPLACE_VSPRINTF.
106282 2007-03-06  Bruno Haible  <bruno@clisp.org>
106284         * modules/vsnprintf (Depend-on): Remove minmax.
106286 2007-03-06  Bruno Haible  <bruno@clisp.org>
106288         * modules/snprintf-posix-tests: New file.
106289         * tests/test-snprintf-posix.c: New file.
106291         * modules/snprintf-posix: New file.
106292         * m4/snprintf-posix.m4: New file.
106293         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
106294         gl_FUNC_SNPRINTF.
106295         (gl_FUNC_SNPRINTF): Invoke it.
106296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
106297         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
106298         is set.
106299         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
106301 2007-03-06  Bruno Haible  <bruno@clisp.org>
106303         * modules/vsnprintf-posix-tests: New file.
106304         * tests/test-vsnprintf-posix.c: New file.
106305         * tests/test-snprintf-posix.h: New file.
106307         * modules/vsnprintf-posix: New file.
106308         * m4/vsnprintf-posix.m4: New file.
106309         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
106310         gl_FUNC_VSNPRINTF.
106311         (gl_FUNC_VSNPRINTF): Invoke it.
106312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
106313         * lib/stdio_.h (vsnprintf): Define as a replacement if
106314         REPLACE_VSNPRINTF is set.
106315         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
106317 2007-03-06  Bruno Haible  <bruno@clisp.org>
106319         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
106320         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
106322 2007-03-06  Bruno Haible  <bruno@clisp.org>
106324         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
106325         (asinl): Declare also if HAVE_DECL_ASINL is set.
106326         (atanl): Declare also if HAVE_DECL_ATANL is set.
106327         (ceill): Declare also if HAVE_DECL_CEILL is set.
106328         (cosl): Declare also if HAVE_DECL_COSL is set.
106329         (expl): Declare also if HAVE_DECL_EXPL is set.
106330         (floorl): Declare also if HAVE_DECL_FLOORL is set.
106331         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
106332         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
106333         (logl): Declare also if HAVE_DECL_LOGL is set.
106334         (sinl): Declare also if HAVE_DECL_SINL is set.
106335         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
106336         (tanl): Declare also if HAVE_DECL_TANL is set.
106337         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
106338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
106339         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
106340         declaration of frexpl, ldexpl.
106341         * modules/printf-frexpl (Depends-on): Add math.
106342         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
106344 2007-03-05  Bruno Haible  <bruno@clisp.org>
106346         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
106347         frexpl and ldexpl are declared.
106348         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
106350 2007-03-05  Bruno Haible  <bruno@clisp.org>
106352         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
106353         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
106355 2007-03-05  Bruno Haible  <bruno@clisp.org>
106357         * lib/stdio_.h: Include <stddef.h>.
106359 2007-03-05  Bruno Haible  <bruno@clisp.org>
106361         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
106363 2007-03-05  Bruno Haible  <bruno@clisp.org>
106365         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
106366         NetBSD 4, from Ralf Wildenhues.
106368 2007-03-04  Bruno Haible  <bruno@clisp.org>
106370         * lib/vasprintf.h: Update #if logic for the case when the functions
106371         exist but are overridden.
106373 2007-03-04  Bruno Haible  <bruno@clisp.org>
106375         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
106376         implementations: glibc-2.4 and MacOS X 10.3.
106377         * tests/test-vasnprintf-posix.c (test_function): Test also the case
106378         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
106379         * tests/test-vasprintf-posix.c (test_function): Likewise.
106381 2007-03-04  Bruno Haible  <bruno@clisp.org>
106383         * modules/vasprintf-posix-tests: New file.
106384         * tests/test-vasprintf-posix.c: New file.
106386         * modules/vasprintf-posix: New file.
106387         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
106388         defined.
106389         * m4/vasprintf-posix.m4: New file.
106390         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
106391         gl_FUNC_VASPRINTF.
106392         (gl_FUNC_VASPRINTF): Invoke it.
106393         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
106394         here.
106395         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
106397 2007-03-04  Bruno Haible  <bruno@clisp.org>
106399         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
106400         REPLACE_GETTIMEOFDAY.
106401         * modules/sys_time (Makefile.am): Likewise.
106402         * m4/sys_time_h.m4: Likewise.
106403         * m4/gettimeofday.m4: Likewise.
106405 2007-03-04  Bruno Haible  <bruno@clisp.org>
106407         * modules/vasnprintf-posix-tests: New file.
106408         * tests/test-vasnprintf-posix.c: New file.
106410         * modules/vasnprintf-posix: New file.
106411         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
106412         printf-frexpl.h.
106413         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
106414         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
106415         REPLACE_VASNPRINTF is defined.
106416         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
106417         gl_FUNC_VASNPRINTF.
106418         (gl_FUNC_VASNPRINTF): Invoke it.
106419         * m4/vasnprintf-posix.m4: New file.
106420         * m4/printf.m4: New file.
106422 2007-03-04  Bruno Haible  <bruno@clisp.org>
106424         Compile progreloc.c only if --enable-relocatable is specified.
106425         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
106426         if --enable-relocatable was specified.
106427         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
106428         lib_SOURCES.
106430 2007-03-04  Jim Meyering  <jim@meyering.net>
106432         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
106433         Use it consistently, rather than enumerating errno constants.
106435 2007-03-04  Bruno Haible  <bruno@clisp.org>
106437         * modules/xvasprintf-tests: New file.
106438         * tests/test-xvasprintf.c: New file.
106440         * modules/vasprintf-tests: New file.
106441         * tests/test-vasprintf.c: New file.
106443         * modules/vasnprintf-tests: New file.
106444         * tests/test-vasnprintf.c: New file.
106446         * modules/vsnprintf-tests: New file.
106447         * tests/test-vsnprintf.c: New file.
106449         * modules/snprintf-tests: New file.
106450         * tests/test-snprintf.c: New file.
106452 2007-03-04  Bruno Haible  <bruno@clisp.org>
106454         Compile relocatable.c only if --enable-relocatable is specified.
106455         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
106456         gl_RELOCATABLE_LIBRARY.
106457         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
106458         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
106459         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
106460         gl_RELOCATABLE_LIBRARY.
106461         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
106462         (Makefile.am): Remove lib_SOURCES.
106463         * modules/relocatable-lib-lgpl (configure.ac): Invoke
106464         gl_RELOCATABLE_LIBRARY.
106465         (Makefile.am): Remove lib_SOURCES.
106466         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
106467         always.
106468         * modules/relocatable-prog-wrapper (configure.ac): Invoke
106469         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
106471 2007-03-04  Bruno Haible  <bruno@clisp.org>
106473         * modules/argmatch-tests: New file.
106474         * tests/test-argmatch.c: New file.
106476         * tests/test-allocsa.c (main): Halve the number of loop runs.
106478         * modules/alloca-opt-tests: New file.
106479         * tests/test-alloca-opt.c: New file.
106481 2007-03-04  Jim Meyering  <jim@meyering.net>
106483         Work around difference between Linux ACLs and Solaris 10 ZFS.
106484         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
106485         for EINVAL.
106487 2007-03-03  Bruno Haible  <bruno@clisp.org>
106489         * modules/relocatable-prog (Depends-on): Add back progreloc's
106490         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
106492 2007-03-03  Bruno Haible  <bruno@clisp.org>
106494         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
106495         * modules/relocatable-lib: New file.
106497 2007-03-03  Bruno Haible  <bruno@clisp.org>
106499         * modules/relocatable-prog: Renamed from modules/relocatable.
106500         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
106502 2007-03-03  Bruno Haible  <bruno@clisp.org>
106504         * modules/relocatable-script (Files): Add doc/relocatable.texi,
106505         m4/relocatable-lib.m4.
106506         (Depends-on): Remove 'relocatable'.
106507         (configure.ac): Add gl_RELOCATABLE_NOP.
106509 2007-03-03  Bruno Haible  <bruno@clisp.org>
106511         * modules/relocatable-prog-wrapper: New file.
106512         * modules/relocatable (Depends-on): Add it. Remove all other
106513         dependencies except progname.
106514         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
106516         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
106517         (gl_FUNC_STRERROR): Nop.
106518         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
106520         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
106521         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
106523         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
106524         (gl_FUNC_READLINK): Update.
106526         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
106528 2007-03-03  Bruno Haible  <bruno@clisp.org>
106530         * lib/xreadlink.c: Include <unistd.h> unconditionally.
106531         * modules/xreadlink (Depends-on): Add unistd.
106532         * modules/xreadlink-with-size (Depends-on): Likewise.
106534 2007-03-03  Bruno Haible  <bruno@clisp.org>
106536         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
106537         extracted from gt_FUNC_SETENV.
106538         (gt_FUNC_SETENV): Remove macro.
106539         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
106540         remove gt_FUNC_SETENV.
106542 2007-03-03  Bruno Haible  <bruno@clisp.org>
106544         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
106545         ENABLE_RELOCATABLE here.
106546         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
106548 2007-03-03  Bruno Haible  <bruno@clisp.org>
106550         * modules/rbtreehash-list-tests (Depends-on): Add progname.
106551         * tests/test-rbtreehash_list.c: Include progname.h.
106552         (main): Call set_program_name.
106554         * modules/rbtree-oset-tests (Depends-on): Add progname.
106555         * tests/test-rbtree_oset.c: Include progname.h.
106556         (main): Call set_program_name.
106558         * modules/rbtree-list-tests (Depends-on): Add progname.
106559         * tests/test-rbtree_list.c: Include progname.h.
106560         (main): Call set_program_name.
106562         * modules/linked-list-tests (Depends-on): Add progname.
106563         * tests/test-linked_list.c: Include progname.h.
106564         (main): Call set_program_name.
106566 2007-03-03  Bruno Haible  <bruno@clisp.org>
106568         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
106569         All uses of __restrict changed to _Restrict_.
106570         * lib/glob_.h (__restrict): Remove macro.
106572 2007-03-02  Bruno Haible  <bruno@clisp.org>
106574         * modules/gettext (configure.ac): Require gettext infrastructure
106575         from version 0.16.1.
106577 2007-03-02  Bruno Haible  <bruno@clisp.org>
106579         * modules/linkedhash-list-tests (Depends-on): Add progname.
106580         * tests/test-linkedhash_list.c: Include progname.h.
106581         (main): Call set_program_name.
106583         * modules/carray-list-tests (Depends-on): Add progname.
106584         * tests/test-carray_list.c: Include progname.h.
106585         (main): Call set_program_name.
106587         * modules/avltreehash-list-tests (Depends-on): Add progname.
106588         * tests/test-avltreehash_list.c: Include progname.h.
106589         (main): Call set_program_name.
106591         * modules/avltree-oset-tests (Depends-on): Add progname.
106592         * tests/test-avltree_oset.c: Include progname.h.
106593         (main): Call set_program_name.
106595         * modules/avltree-list-tests (Depends-on): Add progname.
106596         * tests/test-avltree_list.c: Include progname.h.
106597         (main): Call set_program_name.
106599         * modules/array-oset-tests (Depends-on): Add progname.
106600         * tests/test-array_oset.c: Include progname.h.
106601         (main): Call set_program_name.
106603         * modules/array-list-tests (Depends-on): Add progname.
106604         * tests/test-array_list.c: Include progname.h.
106605         (main): Call set_program_name.
106607         * modules/argp-tests (Depends-on): Add progname.
106608         * tests/test-argp.c: Include argp.h first. Include progname.h.
106609         (main): Call set_program_name.
106611 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
106613         * doc/gnulib-tool.texi (Initial import): Reword description of
106614         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
106615         limited effect even if defined after the first system include.
106617 2007-03-01  Bruno Haible  <bruno@clisp.org>
106619         * build-aux/config.libpath: Update to libtool-1.5.22.
106620         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
106622 2007-03-01  Bruno Haible  <bruno@clisp.org>
106624         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
106625         foo_CFLAGS.
106626         Reported by Ralf Wildenhues.
106628 2007-03-01  Bruno Haible  <bruno@clisp.org>
106630         * build-aux/install-reloc: Remove object files left over by some
106631         compilers.
106632         Reported by Ralf Wildenhues.
106634 2007-03-01  Bruno Haible  <bruno@clisp.org>
106636         * build-aux/install-reloc: Break long lines.
106638 2007-03-01  Bruno Haible  <bruno@clisp.org>
106640         * doc/relocatable.texi: Document that it may not work on OpenBSD.
106641         Reported by Ralf Wildenhues.
106643 2007-03-01  Bruno Haible  <bruno@clisp.org>
106645         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
106646         include ordering constraints.
106648 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106650         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
106651         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
106652         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
106653         as another example.
106654         * lib/time_.h: Fix misspelling.
106655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106656         Require gl_HEADER_TIME_H_DEFAULTS.
106657         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
106658         * m4/time_r.m4 (gl_TIME_R): Likewise.
106659         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
106661 2007-03-01  Bruno Haible  <bruno@clisp.org>
106663         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
106664         * m4/utimens.m4 (gl_UTIMENS): Likewise.
106666 2007-03-01  Jim Meyering  <jim@meyering.net>
106668         * modules/xreadlink (Maintainer): Add my name.
106669         * modules/xreadlink-with-size (Depends-on): Alphabetize.
106671 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
106672             Bruno Haible  <bruno@clisp.org>
106674         * build-aux/install-reloc: Compile also c-ctype.c.
106675         * build-aux/relocatable.sh.in: New file.
106676         * doc/relocatable.texi: New file.
106677         * doc/relocatable-maint.texi: New file.
106678         * doc/gnulib.texi: Include relocatable-maint.texi.
106679         * lib/progreloc.c: Include unistd.h unconditionally.
106680         * lib/relocwrapper.c: Include unistd.h unconditionally.
106681         Include c-ctype.h.
106682         (add_dotbin): Use c_tolower.
106683         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
106684         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
106685         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
106686         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
106687         to m4/relocatable-lib.m4.
106688         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
106689         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
106690         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
106691         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
106692         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
106693         * modules/relocatable: New file.
106694         * modules/relocatable-lib: New file.
106695         * modules/relocatable-script: New file.
106697 2007-02-28  Bruno Haible  <bruno@clisp.org>
106699         Import --enable-relocatable infrastructure.
106700         * build-aux/config.libpath: New file, from GNU gettext.
106701         * build-aux/install-reloc: New file, from GNU gettext.
106702         * build-aux/reloc-ldflags: New file, from GNU gettext.
106703         * lib/relocatable.h: New file, from GNU gettext.
106704         * lib/relocatable.c: New file, from GNU gettext.
106705         * lib/relocwrapper.c: New file, from GNU gettext.
106706         * m4/relocatable.m4: New file, from GNU gettext.
106708 2007-02-28  Bruno Haible  <bruno@clisp.org>
106710         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
106712         * modules/xreadlink: New file, from GNU gettext with modifications.
106713         * lib/xreadlink.c: New file, from GNU gettext.
106714         * lib/xreadlink.h: Add comments.
106715         (xreadlink): New declaration.
106717         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
106718         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
106719         lib/xreadlink-with-size.c.
106720         (configure.ac): Remove gl_XREADLINK invocation.
106721         (Makefile.am): Augment lib_SOURCES.
106722         * m4/xreadlink.m4: Remove file.
106723         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
106724         (xreadlink_with_size): Renamed from xreadink.
106725         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
106726         * modules/canonicalize (Depends-on): Replace xreadlink with
106727         xreadlink-with-size.
106728         * lib/canonicalize.c (canonicalize_filename_mode): Update.
106730 2007-02-25  Jim Meyering  <jim@meyering.net>
106732         * build-aux/announce-gen: When complaining about excess arguments,
106733         list them.
106735 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106737         * README: Document signed integer overflow situation more
106738         accurately.
106740 2007-02-25  Bruno Haible  <bruno@clisp.org>
106742         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
106743         'a' or 'A' conversion.
106745 2007-02-25  Bruno Haible  <bruno@clisp.org>
106747         * modules/filename: Renamed from modules/pathname.
106748         (Files): Replace lib/pathname.h with lib/filename.h. Replace
106749         lib/concatpath.c with lib/concat-filename.c.
106750         (Makefile.am): Update.
106751         (Include): Replace pathname.h with filename.h.
106752         * lib/filename.h: Renamed from lib/pathname.h.
106753         (concatenated_filename): Renamed from concatenated_pathname.
106754         * lib/concat-filename.c: Renamed from lib/concatpath.c.
106755         (concatenated_filename): Renamed from concatenated_pathname.
106756         * lib/findprog.c: Include filename.h instead of pathname.h.
106757         (find_in_path): Update.
106758         * lib/javacomp.c: Include filename.h instead of pathname.h.
106759         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
106760         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
106761         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
106762         is_oldgcj_14_13_usable, is_javac_usable): Update.
106763         * lib/javaexec.c: Include filename.h instead of pathname.h.
106764         (execute_java_class): Update.
106765         * modules/findprog: Update.
106766         * modules/javacomp: Update.
106767         * modules/javaexec: Update.
106768         * MODULES.html.sh (File system functions): Add 'filename', remove
106769         'pathname'.
106771 2007-02-25  Bruno Haible  <bruno@clisp.org>
106773         * modules/printf-frexpl-tests: New file.
106774         * tests/test-printf-frexpl.c: New file.
106776         * modules/printf-frexpl: New file.
106777         * lib/printf-frexpl.h: New file.
106778         * lib/printf-frexpl.c: New file.
106779         * m4/printf-frexpl.m4: New file.
106781 2007-02-25  Bruno Haible  <bruno@clisp.org>
106783         * modules/printf-frexp-tests: New file.
106784         * tests/test-printf-frexp.c: New file.
106786         * modules/printf-frexp: New file.
106787         * lib/printf-frexp.h: New file.
106788         * lib/printf-frexp.c: New file.
106789         * m4/printf-frexp.m4: New file.
106791 2007-02-25  Bruno Haible  <bruno@clisp.org>
106793         Assume automake >= 1.10 for the tests.
106794         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
106795         * modules/arctwo-tests: Likewise.
106796         * modules/argp-tests: Likewise.
106797         * modules/avltree-list-tests: Likewise.
106798         * modules/avltree-oset-tests: Likewise.
106799         * modules/avltreehash-list-tests: Likewise.
106800         * modules/carray-list-tests: Likewise.
106801         * modules/crc-tests: Likewise.
106802         * modules/des-tests: Likewise.
106803         * modules/gc-arcfour-tests: Likewise.
106804         * modules/gc-arctwo-tests: Likewise.
106805         * modules/gc-des-tests: Likewise.
106806         * modules/gc-hmac-md5-tests: Likewise.
106807         * modules/gc-hmac-sha1-tests: Likewise.
106808         * modules/gc-md2-tests: Likewise.
106809         * modules/gc-md4-tests: Likewise.
106810         * modules/gc-md5-tests: Likewise.
106811         * modules/gc-pbkdf2-sha1-tests: Likewise.
106812         * modules/gc-rijndael-tests: Likewise.
106813         * modules/gc-sha1-tests: Likewise.
106814         * modules/gc-tests: Likewise.
106815         * modules/getaddrinfo-tests: Likewise.
106816         * modules/hmac-md5-tests: Likewise.
106817         * modules/hmac-sha1-tests: Likewise.
106818         * modules/linked-list-tests: Likewise.
106819         * modules/linkedhash-list-tests: Likewise.
106820         * modules/lock-tests: Likewise.
106821         * modules/md2-tests: Likewise.
106822         * modules/md4-tests: Likewise.
106823         * modules/md5-tests: Likewise.
106824         * modules/rbtree-list-tests: Likewise.
106825         * modules/rbtree-oset-tests: Likewise.
106826         * modules/rbtreehash-list-tests: Likewise.
106827         * modules/read-file-tests: Likewise.
106828         * modules/rijndael-tests: Likewise.
106829         * modules/stdint-tests: Likewise.
106830         * modules/tls-tests: Likewise.
106832 2007-02-24  Bruno Haible  <bruno@clisp.org>
106834         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
106835         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
106836         function; instead check whether isnan with a double argument links.
106837         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
106838         function; instead check whether isnan with a 'long double' argument
106839         links.
106840         Reported by Eric Blake <ebb9@byu.net>.
106842 2007-02-24  Bruno Haible  <bruno@clisp.org>
106844         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
106845         defined.
106846         * lib/isnanl.c: Remove all code. Just include isnan.c.
106847         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
106849 2007-02-25  Jim Meyering  <jim@meyering.net>
106851         Avoid conflicting types for 'unsetenv' on FreeBSD.
106852         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
106853         conflicting with FreeBSD's (5.0 and 6.1) function declaration
106854         in stdlib.h.
106856 2007-02-24  Bruno Haible  <bruno@clisp.org>
106858         * modules/isnanl-nolibm-tests: New file.
106859         * tests/test-isnanl.c: New file.
106861         * modules/isnanl-nolibm: New file.
106862         * lib/isnanl.h: New file.
106863         * lib/isnanl.c: New file.
106864         * m4/isnanl.m4: New file.
106866 2007-02-24  Bruno Haible  <bruno@clisp.org>
106868         * modules/isnan-nolibm-tests: New file.
106869         * tests/test-isnan.c: New file.
106871         * modules/isnan-nolibm: New file.
106872         * lib/isnan.h: New file.
106873         * lib/isnan.c: New file.
106874         * m4/isnan.m4: New file.
106876 2007-02-24  Bruno Haible  <bruno@clisp.org>
106878         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
106879         assume that an exponent fits in 20 bits.
106881 2007-02-24  Jim Meyering  <jim@meyering.net>
106883         * m4/regex.m4: Update the description of the configure-time option,
106884         --without-included-regex, to state accurately what the defaults are,
106885         and perhaps to give people an idea why using this option is risky.
106887 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
106889         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
106890         loops on small arguments.  This attempts to avoid the problem
106891         Bruno Haible reported for AIX 4.3.2 in
106892         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
106894 2007-02-23  Bruno Haible  <bruno@clisp.org>
106896         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
106897         Needed for help2man.
106899 2007-02-23  Karl Berry  <karl@gnu.org>
106901         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
106902         exists, foo.h should be cvs-ignored, not committed.
106904 2007-02-23  Eric Blake  <ebb9@byu.net>
106906         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
106907         * lib/stat-time.h (includes): Likewise.
106908         * lib/utimecmp.c (includes): Likewise.
106909         * lib/utimens.h (includes): Likewise.
106910         * lib/getdate.y (includes): Also include "timespec.h" for use
106911         internal to the module.
106912         * modules/utimens (Depends-on): Revert yesterday's patch.
106913         * modules/nanosleep (Depends-on): Add missing dependency.
106915 2007-02-22  Bruno Haible  <bruno@clisp.org>
106917         * lib/glob.c: Don't include getlogin_r.h.
106919 2007-02-22  Jim Meyering  <jim@meyering.net>
106921         * modules/utimens (Depends-on): Add timespec, required for
106922         utimens.h's inclusion of timespec.h.
106924 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
106926         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
106927         long unreadable paths in GNU/Linux.  Problem reported by Andreas
106928         Schwab in
106929         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
106930         I'll try to think of a better way to fix the Solaris problem.
106932         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
106933         like glibc; on Solaris 10, it fails with errno == EINVAL.
106934         POSIX says the behavior is unspecified if the first argument is NULL,
106935         so play it safe and never pass NULL to the system getcwd.
106937 2007-02-21  Jim Meyering  <jim@meyering.net>
106939         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
106940         of gettimeofday.  It would conflict with the one now always
106941         provided via sys_time_.h.  Reported by Matthew Woehlke, as
106942         an IRIX 6.5 build failure.
106944 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
106946         Minor fixups to port to Solaris 10 with Sun C 5.8.
106947         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
106948         * modules/getcwd (Depends-on): Add dirfd.
106949         * lib/putenv.c (putenv): #undef it.
106950         (rpl_putenv): New decl.
106951         (malloc, free): Include <stdlib.h> rather than prototyping separately.
106953 2007-02-20  Bruno Haible  <bruno@clisp.org>
106955         * modules/stdio-tests: New file.
106956         * tests/test-stdio.c: New file.
106958         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
106959         (Depends-on): Add stdio.
106960         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
106961         (Include): Use <stdio.h> instead of vsnprintf.h.
106962         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
106963         HAVE_DECL_VSNPRINTF.
106964         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
106966         * modules/snprintf (Files): Remove lib/snprintf.h.
106967         (Depends-on): Add stdio.
106968         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
106969         (Include): Use <stdio.h> instead of snprintf.h.
106970         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
106971         HAVE_DECL_SNPRINTF.
106972         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
106973         * lib/getaddrinfo.c: Likewise.
106975         * modules/stdio: New file.
106976         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
106977         * lib/snprintf.h: Remove file.
106978         * lib/vsnprintf.h: Remove file.
106979         * lib/.cppi-disable: Remove snprintf.h.
106980         * m4/stdio_h.m4: New file.
106981         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
106983 2007-02-20  Jim Meyering  <jim@meyering.net>
106985         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
106986         used by e.g., mingw.  From Bruno Haible.
106988 2007-02-19  Bruno Haible  <bruno@clisp.org>
106990         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
106991         warnings.
106992         Reported by Ben Pfaff <blp@cs.stanford.edu>.
106994 2007-02-19  Bruno Haible  <bruno@clisp.org>
106996         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
106997         from mingw users.
106999 2007-02-19  Bruno Haible  <bruno@clisp.org>
107001         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
107002         warnings.
107003         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
107005 2007-02-19  Jim Meyering  <jim@meyering.net>
107007         Don't use FD after a successful "fdopendir (fd)".
107008         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
107009         Reset it by calling dirfd on the just-obtained DIR*.
107011         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
107012         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
107014 2007-02-18  Bruno Haible  <bruno@clisp.org>
107016         * lib/readlink.c: Include <unistd.h>.
107017         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
107018         HAVE_READLINK.
107019         * modules/readlink (Depends-on): Add unistd.
107020         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107021         (Include): Add <unistd.h>.
107023         * lib/getlogin_r.h: Remove file.
107024         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
107025         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
107026         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
107027         HAVE_DECL_GETLOGIN_R.
107028         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
107029         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107030         (Include): Use <unistd.h> instead of getlogin_r.h.
107032         * lib/getcwd.h: Remove file.
107033         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
107034         * lib/xgetcwd.c: Likewise.
107035         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
107036         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
107037         * modules/getcwd (Files): Remove lib/getcwd.h.
107038         (Depends-on): Add unistd.
107039         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107040         (Include): Use <unistd.h> instad of getcwd.h.
107042         * lib/ftruncate.c: Include <unistd.h> first.
107043         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
107044         Set HAVE_FTRUNCATE.
107045         * modules/ftruncate (Depends-on): Add unistd.
107046         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107048         * lib/fchdir.c: Include <unistd.h> first.
107049         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
107050         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
107051         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
107052         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107053         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
107055         * lib/dup2.c: Include <unistd.h> first.
107056         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
107057         HAVE_DUP2.
107058         * modules/dup2 (Depends-on): Add unistd.
107059         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107061         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
107062         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
107063         REPLACE_CHOWN. Don't define chown as a macro here.
107064         * modules/chown (Depends-on): Add unistd.
107065         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107067         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
107068         Add definition for GL_LINK_WARNING.
107069         (chown, dup2): New declarations.
107070         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
107071         link warning.
107072         (ftruncate): New declaration.
107073         (getcwd): New declaration, taken from old getcwd.h.
107074         (getlogin_r): New declaration, taken from old getlogin_r.h.
107075         (readlink): New declaration.
107076         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
107077         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
107078         (gl_PREREQ_UNISTD): Remove macro.
107079         (gl_UNISTD_MODULE_INDICATOR): New macro.
107080         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
107081         many new variables. Don't set UNISTD_H.
107082         * modules/unistd (Description): Change.
107083         (Depends-on): Add link-warning.
107084         (configure.ac): Update.
107085         (Makefile.am): Create unistd.h always. Substitute many new variables
107086         into it.
107088 2007-02-18  Bruno Haible  <bruno@clisp.org>
107090         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
107091         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
107092         HAVE_GETSUBOPT.
107093         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
107094         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
107095         * lib/getsubopt.h: Remove file.
107096         * modules/getsubopt (Files): Remove lib/getsubopt.h.
107097         (Depends-on): Add stdlib.
107098         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107099         (Includes): Use <stdlib.h> instead of getsubopt.h.
107100         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
107101         Set HAVE_GETSUBOPT.
107102         * lib/getsubopt.c: Don't include getsubopt.h.
107104 2007-02-18  Bruno Haible  <bruno@clisp.org>
107106         * modules/fchdir (Depends-on): Add dup2.
107108 2007-02-18  Bruno Haible  <bruno@clisp.org>
107110         * lib/stdlib_.h: Handle glibc's special invocation convention
107111         specially.
107113 2007-02-18  Bruno Haible  <bruno@clisp.org>
107115         * modules/stdlib-tests: New file.
107116         * tests/test-stdlib.c: New file.
107118         * modules/mkstemp (Files): Remove lib/mkstemp.h.
107119         (Depends-on): Add stdlib.
107120         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107121         (Includes): Use <stdlib.h> instead of mkstemp.h.
107122         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
107123         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
107124         * lib/mkstemp.c: Don't include mkstemp.h.
107125         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
107126         * lib/stdlib--.h: Don't include mkstemp.h.
107128         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
107129         (Depends-on): Add stdlib.
107130         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107131         (Includes): Use <stdlib.h> instead of mkdtemp.h.
107132         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
107133         HAVE_MKDTEMP.
107134         * lib/mkdtemp.c: Don't include mkdtemp.h.
107135         * lib/clean-temp.c: Don't include mkdtemp.h.
107137         * modules/exit (Files): Remove lib/exit.h.
107138         (Depends-on): Add stdlib.
107139         (Makefile.am): Remove lib_SOURCES.
107140         (Include): Use <stdlib.h> instead of exit.h.
107141         * lib/argmatch.c: Don't include exit.h.
107142         * lib/execute.c: Likewise.
107143         * lib/pagealign_alloc.c: Likewise.
107144         * lib/pipe.c: Likewise.
107145         * lib/wait-process.c: Likewise.
107146         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
107147         * lib/exitfail.c: Likewise.
107148         * lib/savewd.c: Likewise.
107149         * lib/xsetenv.c: Likewise.
107151         * modules/stdlib: New file.
107152         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
107153         and extra comments about mkstemp().
107154         * lib/exit.h: Remove file.
107155         * lib/mkdtemp.h: Remove file.
107156         * lib/mkstemp.h: Remove file.
107157         * m4/stdlib_h.m4: New file.
107158         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
107160 2007-02-18  Bruno Haible  <bruno@clisp.org>
107162         * modules/math-tests: New file.
107163         * tests/test-math.c: New file.
107165         * modules/math: New file.
107166         * modules/mathl (Files): Remove lib/mathl.h.
107167         (Depends-on): Add math.
107168         (Makefile.am): Don't mention mathl.h.
107169         (Include): Use <math.h> instead of mathl.h.
107170         * lib/math_.h: New file.
107171         * lib/mathl.h: Remove file.
107172         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
107173         mathl.h.
107174         * lib/asinl.c: Likewise.
107175         * lib/atanl.c: Likewise.
107176         * lib/ceill.c: Likewise.
107177         * lib/cosl.c: Likewise.
107178         * lib/expl.c: Likewise.
107179         * lib/floorl.c: Likewise.
107180         * lib/frexpl.c: Likewise.
107181         * lib/ldexpl.c: Likewise.
107182         * lib/logl.c: Likewise.
107183         * lib/sincosl.c: Likewise.
107184         * lib/sinl.c: Likewise.
107185         * lib/sqrtl.c: Likewise.
107186         * lib/tanl.c: Likewise.
107187         * lib/trigl.c: Likewise.
107188         * m4/math_h.m4: New file.
107189         * MODULES.html.sh (Mathematics): Add math.
107191 2007-02-17  Bruno Haible  <bruno@clisp.org>
107193         * modules/wctype-tests: New file.
107194         * tests/test-wctype.c: New file.
107196         * modules/wchar-tests: New file.
107197         * tests/test-wchar.c: New file.
107199         * modules/unistd-tests: New file.
107200         * tests/test-unistd.c: New file.
107202         * modules/time-tests: New file.
107203         * tests/test-time.c: New file.
107205         * modules/sysexits-tests: New file.
107206         * tests/test-sysexits.c: New file.
107208         * modules/sys_time-tests: New file.
107209         * tests/test-sys_time.c: New file.
107211         * modules/sys_stat-tests: New file.
107212         * tests/test-sys_stat.c: New file.
107214         * modules/sys_socket-tests: New file.
107215         * tests/test-sys_socket.c: New file.
107217         * modules/sys_select-tests: New file.
107218         * tests/test-sys_select.c: New file.
107220         * modules/string-tests: New file.
107221         * tests/test-string.c: New file.
107223         * modules/stdbool-tests: New file.
107224         * tests/test-stdbool.c: New file.
107226         * modules/netinet_in-tests: New file.
107227         * tests/test-netinet_in.c: New file.
107229         * modules/inttypes-tests: New file.
107230         * tests/test-inttypes.c: New file.
107232         * modules/fcntl-tests: New file.
107233         * tests/test-fcntl.c: New file.
107235         * modules/byteswap-tests: New file.
107236         * tests/test-byteswap.c: New file.
107238         * modules/arpa_inet-tests: New file.
107239         * tests/test-arpa_inet.c: New file.
107241 2007-02-17  Bruno Haible  <bruno@clisp.org>
107243         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
107244         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
107245         if the corresponding module is not enabled. Emit link warnings if
107246         the function is used nevertheless.
107247         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
107248         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
107249         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
107250         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
107251         * modules/inttypes (Depends-on): Add link-warning.
107252         (Makefile.am): Copy the contents of build-aux/link-warning.h into
107253         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
107254         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
107255         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
107256         * modules/imaxdiv (configure.ac): Likewise.
107257         * modules/strtoimax (configure.ac): Likewise.
107258         * modules/strtoumax (configure.ac): Likewise.
107260 2007-02-17  Bruno Haible  <bruno@clisp.org>
107262         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
107263         gl_STRING_MODULE_INDICATOR_DEFAULTS.
107264         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
107265         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
107267 2007-02-17  Bruno Haible  <bruno@clisp.org>
107269         * modules/link-warning: New file.
107270         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
107271         * lib/string_.h (GL_LINK_WARNING): Remove definition.
107272         * modules/string (Depends-on): Add link-warning.
107273         (Makefile.am): Copy the contents of build-aux/link-warning.h into
107274         string.h.
107275         * MODULES.html.sh (Support for building libraries and executables): Add
107276         link-warning.
107278 2007-02-17  Bruno Haible  <bruno@clisp.org>
107280         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
107281         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
107282         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
107283         long lines.
107285 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
107286             Bruno Haible  <bruno@clisp.org>
107288         * modules/tmpfile: New file.
107289         * lib/tmpfile.c: New file.
107290         * m4/tmpfile.m4: New file.
107291         * MODULES.html.sh (func_all_modules): New section "Input/output".
107293 2007-02-15  Bruno Haible  <bruno@clisp.org>
107295         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
107296         (supports_delete_on_close): New function.
107297         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
107299 2007-02-14  Bruno Haible  <bruno@clisp.org>
107301         * modules/mbspcasecmp-tests: New file.
107302         * tests/test-mbspcasecmp.sh: New file.
107303         * tests/test-mbspcasecmp.c: New file.
107305         New module mbspcasecmp.
107306         * modules/mbspcasecmp: New file.
107307         * lib/mbspcasecmp.c: New file.
107308         * lib/string_.h (strncasecmp): Change warning message.
107309         (mbspcasecmp): New declaration.
107310         * m4/mbspcasecmp.m4: New file.
107311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107312         GNULIB_MBSPCASECMP.
107313         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
107314         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
107316 2007-02-14  Bruno Haible  <bruno@clisp.org>
107318         * modules/mbsncasecmp-tests: New file.
107319         * tests/test-mbsncasecmp.sh: New file.
107320         * tests/test-mbsncasecmp.c: New file.
107322         New module mbsncasecmp.
107323         * modules/mbsncasecmp: New file.
107324         * lib/mbsncasecmp.c: New file.
107325         * lib/string_.h (mbsncasecmp): New declaration.
107326         * m4/mbsncasecmp.m4: New file.
107327         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107328         GNULIB_MBSNCASECMP.
107329         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
107330         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
107332 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
107334         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
107335         Verify that it doesn't overlap with our flags.
107336         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
107337         do not have the desired effect in multibyte locales; instead, use
107338         mbscasecmp.
107339         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
107340         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
107341         we don't require GNU fnmatch ourselves (if our users require it, they
107342         should do so explicitly).
107344         Fix regex code so it doesn't rely on strcasecmp.
107345         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
107346         Otherwise, include gnulib's langinfo.h.
107347         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
107348         undesirable behavior in non-C locales.  Instead, rely on localecharset.
107349         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
107350         * modules/regex (FILES): Remove m4/codeset.m4.
107351         (Depends-on): Add localcharset.  Remove strcase.
107353 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107355         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
107356         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
107358 2007-02-13  Bruno Haible  <bruno@clisp.org>
107360         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
107361         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107363 2007-02-12  Bruno Haible  <bruno@clisp.org>
107365         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
107366         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
107367         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
107368         time warning rather than a link error.
107370 2007-02-12  Bruno Haible  <bruno@clisp.org>
107372         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
107373         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
107374         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107376 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107378         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
107379         args, not 2.
107381 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107383         New module 'time', so that apps can include <time.h> as per
107384         POSIX and GNU instead of separate include files like time_r.h
107385         and timegm.h.  This implementation tries out a simpler approach
107386         for replacing decls in standard include files (as compared to
107387         the string module), somewhat as an experiment.
107389         * config/srclist.txt: Comment out mktime.c for now.
107390         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
107391         since it doesn't apply any more.  Use generic wording instead.
107392         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
107393         'time'.
107394         * lib/time_.h, m4/time_h.m4, modules/time: New files.
107395         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
107396         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
107397         Don't include <sys/types.h>; no longer needed since we assume C89.
107398         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
107399         * lib/strftime.c: Likewise.
107400         * lib/time_r.c: Likewise.
107401         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
107402         * lib/nanosleep.c: Include <time.h> first, to check interface.
107403         * lib/strptime.c: Likewise.
107404         * lib/time_r.c: Likewise.
107405         * lib/timegm.c: Likewise.
107406         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
107407         needed.
107408         * lib/timegm.c: Don't include timegm.h; no longer needed.
107409         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
107410         time.h now handles any problems in that area.
107411         (struct timespec, nanosleep): Remove; time.h now arranges for these.
107412         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
107413         that time.h defines struct timespec.
107414         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
107415         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
107416         handles that.
107417         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
107418         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
107419         needed.  Set REPLACE_LOCALTIME.
107420         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
107421         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
107422         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
107423         nanosleep; time_h.m4 now does that.  Don't require
107424         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
107425         module handles this now.
107426         * modules/getdate (Depends-on): Remove timespec.  Add time.
107427         * modules/nanosleep (Depends-on): Likewise.
107428         * modules/stat-time (Depends-on): Likewise.
107429         * modules/nanosleep (Include): Include time.h, not timespec.h.
107430         * modules/strptime (Files): Remove lib/strptime.h.
107431         (Depends-on): Add extensions, time.
107432         (Include): Include time.h, not strptime.h.
107433         * modules/time_r (Files): Remove lib/time_r.h.
107434         (Depends-on): Add time.
107435         (Include): Include time.h, not time_r.h.
107436         * modules/timegm: Likewise.
107437         * modules/timespec (Description): Now does timespec-related decls
107438         of our own, instead of struct timespec itself.
107439         (Depends-on): Add time; remove extensions.
107440         (Maintainer): Add self.
107441         * modules/utimecmp (Depends-on): Add time; remove timespec.
107442         * modules/utimens (Depends-on): Likewise.
107443         * modules/xnanosleep (Depends-on): Likewise.
107445 2007-02-11  Bruno Haible  <bruno@clisp.org>
107447         * lib/c-strstr.c: Include allocsa.h.
107448         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107449         * lib/c-strcasestr.c: Include allocsa.h.
107450         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107451         * lib/strcasestr.c: Include allocsa.h.
107452         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107453         * lib/mbsstr.c: Include allocsa.h.
107454         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107455         allocsa/freesa instead of malloc/free.
107456         * lib/mbscasestr.c: Include allocsa.h.
107457         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107458         allocsa/freesa instead of malloc/free.
107459         * modules/c-strstr (Depends-on): Add allocsa.
107460         * modules/c-strcasestr (Depends-on): Likewise.
107461         * modules/strcasestr (Depends-on): Likewise.
107462         * modules/mbsstr (Depends-on): Likewise.
107463         * modules/mbscasestr (Depends-on): Likewise.
107465 2007-02-11  Bruno Haible  <bruno@clisp.org>
107467         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
107469         * modules/mbsspn-tests: New file.
107470         * tests/test-mbsspn.sh: New file.
107471         * tests/test-mbsspn.c: New file.
107473 2007-02-11  Bruno Haible  <bruno@clisp.org>
107475         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
107477         * modules/mbspbrk-tests: New file.
107478         * tests/test-mbspbrk.sh: New file.
107479         * tests/test-mbspbrk.c: New file.
107481 2007-02-11  Bruno Haible  <bruno@clisp.org>
107483         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
107484         unneeded cast.
107486         * modules/mbscspn-tests: New file.
107487         * tests/test-mbscspn.sh: New file.
107488         * tests/test-mbscspn.c: New file.
107490 2007-02-11  Bruno Haible  <bruno@clisp.org>
107492         * modules/mbscasecmp-tests: New file.
107493         * tests/test-mbscasecmp.sh: New file.
107494         * tests/test-mbscasecmp.c: New file.
107496 2007-02-11  Bruno Haible  <bruno@clisp.org>
107498         Ensure O(n) worst-case complexity of mbscasestr.
107499         * lib/mbscasestr.c: Include stdbool.h.
107500         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107501         functions.
107502         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
107503         the bookkeeping indicates that it's worth it.
107504         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
107506         * modules/mbscasestr-tests: New file.
107507         * tests/test-mbscasestr1.c: New file.
107508         * tests/test-mbscasestr2.sh: New file.
107509         * tests/test-mbscasestr2.c: New file.
107510         * tests/test-mbscasestr3.sh: New file.
107511         * tests/test-mbscasestr3.c: New file.
107512         * tests/test-mbscasestr4.sh: New file.
107513         * tests/test-mbscasestr4.c: New file.
107514         * m4/locale-tr.m4: New file.
107516 2007-02-11  Bruno Haible  <bruno@clisp.org>
107518         Ensure O(n) worst-case complexity of mbsstr.
107519         * lib/mbsstr.c: Include stdbool.h.
107520         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107521         functions.
107522         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
107523         bookkeeping indicates that it's worth it.
107524         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
107526         * modules/mbsstr-tests: New file.
107527         * tests/test-mbsstr1.c: New file.
107528         * tests/test-mbsstr2.sh: New file.
107529         * tests/test-mbsstr2.c: New file.
107530         * tests/test-mbsstr3.sh: New file.
107531         * tests/test-mbsstr3.c: New file.
107532         * m4/locale-fr.m4: New file.
107534 2007-02-11  Bruno Haible  <bruno@clisp.org>
107536         * lib/mbsrchr.c (mbsrchr): Fix bug.
107538         * modules/mbsrchr-tests: New file.
107539         * tests/test-mbsrchr.sh: New file.
107540         * tests/test-mbsrchr.c: New file.
107542 2007-02-11  Bruno Haible  <bruno@clisp.org>
107544         * lib/mbschr.c (mbschr): Fix bug.
107546         * modules/mbschr-tests: New file.
107547         * tests/test-mbschr.sh: New file.
107548         * tests/test-mbschr.c: New file.
107549         * m4/locale-zh.m4: New file.
107551 2007-02-11  Bruno Haible  <bruno@clisp.org>
107553         Support for copying multibyte string iterators.
107554         * lib/mbiter.h: Include <string.h>.
107555         (mbiter_multi_copy): New function.
107556         (mbi_copy): New macro.
107557         * lib/mbuiter.h: Include <string.h>.
107558         (mbuiter_multi_copy): New function.
107559         (mbui_copy): New macro.
107561 2007-02-11  Bruno Haible  <bruno@clisp.org>
107563         New module mbslen.
107564         * modules/mbslen: New file.
107565         * lib/mbslen.c: New file.
107566         * lib/string_.h (mbslen): New declaration.
107567         * m4/mbslen.m4: New file.
107568         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107569         GNULIB_MBSLEN.
107570         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
107571         * MODULES.html.sh (Internationalization functions): Add mbslen.
107573 2007-02-11  Bruno Haible  <bruno@clisp.org>
107575         Ensure O(n) worst-case complexity of strcasestr substitute.
107576         * lib/strcasestr.c: Include stdbool.h.
107577         (knuth_morris_pratt): New function.
107578         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107579         bookkeeping indicates that it's worth it.
107580         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
107582         * modules/strcasestr-tests: New file.
107583         * tests/test-strcasestr.c: New file.
107585 2007-02-11  Bruno Haible  <bruno@clisp.org>
107587         Ensure O(n) worst-case complexity of c_strcasestr.
107588         * lib/c-strcasestr.c: Include stdbool.h, string.h.
107589         (knuth_morris_pratt): New function.
107590         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
107591         the bookkeeping indicates that it's worth it.
107592         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
107594         * modules/c-strcasestr-tests: New file.
107595         * tests/test-c-strcasestr.c: New file.
107597 2007-02-11  Bruno Haible  <bruno@clisp.org>
107599         Ensure O(n) worst-case complexity of c_strstr.
107600         * lib/c-strstr.c: Include stdbool.h, string.h.
107601         (knuth_morris_pratt): New function.
107602         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107603         bookkeeping indicates that it's worth it.
107604         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
107606         * lib/c-strstr.c: Complete rewrite for maintainability.
107608         * modules/c-strstr-tests: New file.
107609         * tests/test-c-strstr.c: New file.
107611 2007-02-11  Bruno Haible  <bruno@clisp.org>
107613         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
107614         5.2.1 and earlier, whereby \055 was treated just like the range
107615         delimiter '-'.
107616         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
107618 2007-02-08  Bruno Haible  <bruno@clisp.org>
107620         * modules/regex (Depends-on): Add stdbool.
107621         Reported by Dalibor Topic <robilad@kaffe.org>.
107623 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
107625         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
107626         Prefer returning from main to exiting from it.
107627         Remove unnecessary parens after sizeof.
107629 2007-02-05  Bruno Haible  <bruno@clisp.org>
107631         New module mbssep.
107632         * modules/mbssep: New file.
107633         * lib/mbssep.c: New file.
107634         * lib/string_.h (strsep): Add a conditional link warning.
107635         (mbssep): New declaration.
107636         * m4/mbssep.m4: New file.
107637         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107638         GNULIB_MBSSEP.
107639         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
107640         * MODULES.html.sh (Internationalization functions): Add mbssep.
107642 2007-02-05  Bruno Haible  <bruno@clisp.org>
107644         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
107645         Optimize search in case of 1 delimiter.
107647 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
107649         * lib/acl.h: Include sys/types.h before sys/acl.h.
107651 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
107653         Merge upstream fix for glibc bugzilla #3957:
107655         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
107657         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
107658         bit for RE_HAT_LISTS_NOT_NEWLINE.
107659         (build_charclass_op): Remove bogus comment.
107661 2007-02-05  Simon Josefsson  <simon@josefsson.org>
107663         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
107665 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
107667         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
107668         * lib/memmem.c [!defined _LIBC]: Include config.h.
107670 2007-02-04  Bruno Haible  <bruno@clisp.org>
107672         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
107673         warning message.
107675 2007-02-04  Bruno Haible  <bruno@clisp.org>
107677         New module mbstok_r.
107678         * modules/mbstok_r: New file.
107679         * lib/mbstok_r.c: New file.
107680         * lib/string_.h (strtok_r): Change argument names to match the
107681         comments. Add a conditional link warning.
107682         (mbstok_r): New declaration.
107683         * m4/mbstok_r.m4: New file.
107684         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107685         GNULIB_MBSTOK_R.
107686         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
107687         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
107689 2007-02-04  Bruno Haible  <bruno@clisp.org>
107691         New module mbsspn.
107692         * modules/mbsspn: New file.
107693         * lib/mbsspn.c: New file.
107694         * lib/string_.h (strspn): Add a conditional link warning.
107695         (mbsspn): New declaration.
107696         * m4/mbsspn.m4: New file.
107697         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107698         GNULIB_MBSSPN.
107699         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
107700         * MODULES.html.sh (Internationalization functions): Add mbsspn.
107702 2007-02-04  Bruno Haible  <bruno@clisp.org>
107704         New module mbspbrk.
107705         * modules/mbspbrk: New file.
107706         * lib/mbspbrk.c: New file.
107707         * lib/string_.h (strpbrk): Add a conditional link warning.
107708         (mbspbrk): New declaration.
107709         * m4/mbspbrk.m4: New file.
107710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107711         GNULIB_MBSPBRK.
107712         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
107713         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
107715 2007-02-04  Bruno Haible  <bruno@clisp.org>
107717         New module mbscspn.
107718         * modules/mbscspn: New file.
107719         * lib/mbscspn.c: New file.
107720         * lib/string_.h (strcspn): Add a conditional link warning.
107721         (mbscspn): New declaration.
107722         * m4/mbscspn.m4: New file.
107723         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107724         GNULIB_MBSCSPN.
107725         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
107726         * MODULES.html.sh (Internationalization functions): Add mbscspn.
107728 2007-02-04  Bruno Haible  <bruno@clisp.org>
107730         New module mbscasestr, reduced goal of strcasestr.
107731         * modules/mbscasestr: New file.
107732         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
107733         (mbscasestr): Renamed from strcasestr.
107734         * lib/strcasestr.c: Don't include mbuiter.h.
107735         (strcasestr): Remove support for multibyte locales.
107736         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
107737         Change the conditional link warning.
107738         (mbscasestr): New declaration.
107739         * m4/mbscasestr.m4: New file.
107740         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
107741         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
107742         REPLACE_STRCASESTR.
107743         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
107744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107745         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107746         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
107747         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
107748         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107749         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
107750         (Depends-on): Remove mbuiter.
107751         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
107753 2007-02-04  Bruno Haible  <bruno@clisp.org>
107755         Simplify handling of strncasecmp.
107756         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
107757         the conditional link warning.
107758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107759         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
107760         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
107761         * modules/strcase (configure.ac): Don't invoke
107762         gl_STRING_MODULE_INDICATOR.
107763         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
107765 2007-02-04  Bruno Haible  <bruno@clisp.org>
107767         New module mbscasecmp, reduced goal of strcasecmp.
107768         * modules/mbscasecmp: New file.
107769         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
107770         (mbscasecmp): Renamed from strcasecmp.
107771         * lib/strcasecmp.c: Don't include mbuiter.h.
107772         (strcasecmp): Remove support for multibyte locales.
107773         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
107774         Change the conditional link warning.
107775         (mbscasecmp): New declaration.
107776         * m4/mbscasecmp.m4: New file.
107777         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
107778         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
107779         REPLACE_STRCASECMP.
107780         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
107781         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107782         GNULIB_MBSCASECMP.
107783         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
107784         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
107785         * modules/strcase (Files): Remove m4/mbrtowc.m4.
107786         (Depends-on): Remove mbuiter.
107787         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
107789 2007-02-04  Bruno Haible  <bruno@clisp.org>
107791         New module mbsstr. Remove module strstr.
107792         * modules/mbsstr: New file.
107793         * modules/strstr: Remove file.
107794         * lib/mbsstr.c: Renamed from lib/strstr.c.
107795         (mbsstr): Renamed from strstr.
107796         * lib/string_.h (strstr): Remove declaration. Change the conditional
107797         link warning.
107798         (mbsstr): New declaration.
107799         * m4/mbsstr.m4: New file.
107800         * m4/strstr.m4: Remove file.
107801         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
107802         REPLACE_STRSTR.
107803         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
107804         Don't initialize GNULIB_STRSTR.
107805         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
107806         substitute GNULIB_STRSTR and REPLACE_STRSTR.
107807         * MODULES.html.sh (Internationalization functions): Add mbsstr.
107808         (Support for systems lacking ANSI C 89): Remove strstr.
107810 2007-02-04  Bruno Haible  <bruno@clisp.org>
107812         New module mbsrchr.
107813         * modules/mbsrchr: New file.
107814         * lib/mbsrchr.c: New file.
107815         * lib/string_.h (strrchr): Add a conditional link warning.
107816         (mbsrchr): New declaration.
107817         * m4/mbsrchr.m4: New file.
107818         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107819         GNULIB_MBSRCHR.
107820         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
107821         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
107823 2007-02-04  Bruno Haible  <bruno@clisp.org>
107825         New module mbschr.
107826         * modules/mbschr: New file.
107827         * lib/mbschr.c: New file.
107828         * lib/string_.h (strchr): Add a conditional link warning.
107829         (mbschr): New declaration.
107830         * m4/mbschr.m4: New file.
107831         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107832         GNULIB_MBSCHR.
107833         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
107834         * MODULES.html.sh (Internationalization functions): Add mbschr.
107836 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
107838         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
107840         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
107842 2007-02-04  Bruno Haible  <bruno@clisp.org>
107844         New module description section 'configure.ac-early'.
107845         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
107846         (func_get_autoconf_early_snippet): New function.
107847         (func_import, func_create_testdir): Use it. Remove special cases for
107848         modules 'extensions' and 'lock'.
107849         * modules/extensions (configure.ac-early): Require
107850         gl_USE_SYSTEM_EXTENSIONS.
107851         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
107853 2007-02-04  Bruno Haible  <bruno@clisp.org>
107855         Make use of gcj-4.3's -fsource and -ftarget option.
107856         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
107857         and if so try the options -fsource and -ftarget.
107858         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
107859         source_version, ftarget_option, target_version arguments.
107860         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
107861         (is_envjavac_oldgcj_14_14_usable): Renamed from
107862         is_envjavac_gcj_14_14_usable.
107863         (is_envjavac_oldgcj_14_13_usable): Renamed from
107864         is_envjavac_gcj_14_13_usable.
107865         (is_gcj_present): Update.
107866         (is_gcj_43, is_gcj43_usable): New functions.
107867         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
107868         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
107869         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
107870         try the options -fsource and -ftarget.
107872 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107874         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
107875         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
107876         larger value.
107878 2007-02-03  Jim Meyering  <jim@meyering.net>
107880         Give tools a better chance to allocate space for very large buffers.
107881         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
107883         Make pwd and readlink work also when run with an unreadable parent dir
107884         on systems with openat support.
107885         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
107886         provided getcwd function, even when we have openat support.
107887         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
107889 2007-02-02  Bruno Haible  <bruno@clisp.org>
107891         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
107892         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
107893         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
107894         portability problems if one of these functions is only used on specific
107895         platforms.
107896         Reported by Paul Eggert.
107898 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
107900         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
107901         is causing more trouble than it's curing.
107902         * lib/regex_internal.h (__mempcpy): Remove.
107903         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
107904         (and make the code a tad smaller to boot).
107905         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
107907 2007-02-02  Jim Meyering  <jim@meyering.net>
107909         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
107910         section, not in the Makefile.am: one.
107912 2007-02-02  Eric Blake  <ebb9@byu.net>
107914         * lib/strchrnul.c: Always include config.h first.
107916         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
107917         gnulib strstr is not necessary here.
107919 2007-02-02  Simon Josefsson  <simon@josefsson.org>
107921         * m4/socklen.m4: Fix typo.
107923 2007-02-02  Eric Blake  <ebb9@byu.net>
107925         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
107926         * modules/netinet_in (Makefile.am): Likewise.
107928 2007-02-01  Bruno Haible  <bruno@clisp.org>
107930         * lib/string_.h (GL_LINK_WARNING): New macro.
107931         (strcasecmp, strstr, strcasestr): If provided by the system,
107932         conditionally define as a macro that leads to a warning instead of to
107933         an error.
107934         (strncasecmp): Conditionally define as a macro that leads to a warning.
107936 2007-02-01  Karl Berry  <karl@gnu.org>
107938         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
107940 2007-02-01  Bruno Haible  <bruno@clisp.org>
107942         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
107943         renamings.
107945 2007-02-01  Eric Blake  <ebb9@byu.net>
107947         * modules/regex (Depends-on): Revert dependence on mempcpy.
107948         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
107949         module's definition of mempcpy.
107950         Reported by Paul Eggert.
107952 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
107954         * lib/string_.h: If the gnulib module XYZ is not present, undefine
107955         the symbol XYZ before redefining it.  This fixes a problem with
107956         programs that don't use XYZ, when compiled on systems that define
107957         XYZ to something else.
107959 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
107961         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
107962         occurs when "mkdir -m foo" creates a setgid directory that is (1)
107963         writeable to group or other and (2) is intended to have a special
107964         mode bit that is set or cleared.  In such a case, the directory
107965         should be neither group- nor other-writeable until the special
107966         mode bits are right.
107968 2007-01-31  Eric Blake  <ebb9@byu.net>
107970         * modules/mountlist (Depends-on): Add strstr.
107972         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
107973         bug.
107974         * modules/string (Makefile.am): Remove redundant replacement.
107975         * modules/regex (Depends-on): Add mempcpy.
107977 2007-01-31  Bruno Haible  <bruno@clisp.org>
107979         New module description field 'Link'.
107980         * gnulib-tool (func_usage): Document --extract-link-directive.
107981         (sed_extract_prog): Recognize 'Link' directive.
107982         (func_get_link_directive): New function.
107983         (func_import): Show summary of link directives.
107984         Handle --extract-link-directive option.
107985         * modules/acl (Link): New section.
107986         * modules/clock-time (Link): New section.
107987         * modules/euidaccess (Link): New section.
107988         * modules/gettext (Link): New section.
107989         * modules/iconv (Link): New section.
107990         * modules/lock (Link): New section.
107991         * modules/nanosleep (Link): New section.
107992         * modules/readline (Link): New section.
107994 2007-01-27  Bruno Haible  <bruno@clisp.org>
107996         Enforce the use of gnulib modules for unportable <string.h> functions.
107997         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
107998         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
107999         (gl_HEADER_STRING_H_BODY): Require it.
108000         * lib/string_.h: If the gnulib module XYZ is not present, redefine
108001         the symbol XYZ to one that gives a link error.
108002         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
108003         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
108004         * modules/mempcpy (configure.ac): Likewise.
108005         * modules/memrchr (configure.ac): Likewise.
108006         * modules/stpcpy (configure.ac): Likewise.
108007         * modules/stpncpy (configure.ac): Likewise.
108008         * modules/strcase (configure.ac): Likewise.
108009         * modules/strcasestr (configure.ac): Likewise.
108010         * modules/strchrnul (configure.ac): Likewise.
108011         * modules/strdup (configure.ac): Likewise.
108012         * modules/strndup (configure.ac): Likewise.
108013         * modules/strnlen (configure.ac): Likewise.
108014         * modules/strpbrk (configure.ac): Likewise.
108015         * modules/strsep (configure.ac): Likewise.
108016         * modules/strstr (configure.ac): Likewise.
108017         * modules/strtok_r (configure.ac): Likewise.
108019 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
108021         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
108023 2007-01-30  Jim Meyering  <jim@meyering.net>
108025         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
108027 2007-01-29  Bruno Haible  <bruno@clisp.org>
108029         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
108030         * lib/execute.c: Likewise.
108031         * lib/pipe.c: Likewise.
108032         * lib/printf-args.h: Likewise.
108033         * lib/printf-args.c: Likewise.
108034         * lib/printf-parse.c: Likewise.
108035         * lib/vasnprintf.c: Likewise.
108037 2007-01-29  Eric Blake  <ebb9@byu.net>
108039         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
108040         declaration.
108042 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
108044         * lib/strptime.h (strptime): Use 'restrict' for args where
108045         POSIX requires this.
108046         * lib/strptime.c (strptime): Likewise.
108047         Change license notice from LGPL to GPL, since gnulib-tool will
108048         change this as needed.
108049         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
108050         defined.
108051         Include "strptime.h" first, to check interface.
108052         Do not #undef _LIBC and _NL_CURRENT.
108053         Do not include <stdlib.h>; no longer needed.
108054         Include "time_r.h" and declare ptime_locale_status
108055         only if _LIBC is not defined.
108056         (__P): Remove unused macro.
108057         (match_string): Bring back glibc version, but use it only if _LIBC
108058         is defined.
108059         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
108060         Remove unnecessary assertion and abort() call.
108061         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
108062         * m4/strptime.m4: Fix serial number comment.
108063         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
108064         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
108065         (Depends-on): Add time_r.
108067 2007-01-29  Bruno Haible  <bruno@clisp.org>
108069         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108070         strptime.
108071         * modules/strptime (Depends-on): Add stdbool.
108072         * lib/strptime.h: Include <time.h> always. Add comments.
108074 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108076         * modules/strptime: New file.
108077         * lib/strptime.h: New file.
108078         * lib/strptime.c: New file.
108079         * m4/strptime.m4: New file.
108081 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
108083         * MODULES.html.sh: New module mpsort.
108084         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
108086         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
108087         a circularity problem with HP-UX ia64 reported by Bob Proulx in
108088         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
108089         All uses changed.
108090         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
108091         All uses changed.
108092         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
108093         to _Restrict_.
108094         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
108095         the parameter matches the prototype.
108097 2007-01-28  Jim Meyering  <jim@meyering.net>
108099         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
108100         sys/time.h here, reverting that part of the previous patch:
108101         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
108103 2007-01-28  Bruno Haible  <bruno@clisp.org>
108105         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
108106         value of $(SYS_TIME_H).
108107         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
108108         remove it conditionally, too. [added by Jim Meyering]
108109         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
108110         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
108111         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
108112         GETTIMEOFDAY_REPLACEMENT to 1.
108114 2007-01-28  Bruno Haible  <bruno@clisp.org>
108116         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
108117         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
108118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
108119         Set UNISTD_H instead of UNISTD_H2.
108120         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
108122 2007-01-28  Bruno Haible  <bruno@clisp.org>
108124         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
108125         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
108127 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108129         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
108130         (func_create_testdir): Ensure C locale for `grep' and `tr'
108131         character ranges.
108132         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
108133         ACLOCAL_AMFLAGS parsing state machine.
108135 2007-01-27  Bruno Haible  <bruno@clisp.org>
108137         * modules/unistr/base: Update.
108139 2007-01-27  Bruno Haible  <bruno@clisp.org>
108141         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
108142         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
108143         * modules/unistr/u32-mbtouc-unsafe: Renamed from
108144         modules/unistr/u32-mbtouc.
108145         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
108146         * lib/unistr.h: Update.
108147         * lib/linebreak.c: Update.
108148         * modules/unistr/u32-mbtouc: Renamed from
108149         modules/unistr/u32-mbtouc-safe.
108150         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
108151         * lib/unistr.h: Update.
108152         * lib/unistr/u32-to-u8.c: Update.
108153         * lib/unistr/u32-to-u16.c: Update.
108155 2007-01-27  Bruno Haible  <bruno@clisp.org>
108157         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
108158         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
108159         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
108160         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
108161         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
108162         * modules/unistr/u16-mbtouc-unsafe: Renamed from
108163         modules/unistr/u16-mbtouc.
108164         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
108165         * lib/unistr.h: Update.
108166         * lib/linebreak.c: Update.
108167         * modules/linebreak: Update.
108168         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
108169         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
108170         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
108171         * modules/unistr/u16-mbtouc: Renamed from
108172         modules/unistr/u16-mbtouc-safe.
108173         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
108174         * lib/unistr.h: Update.
108175         * lib/unistr/u16-to-u8.c: Update.
108176         * modules/unistr/u16-to-u8: Update.
108177         * lib/unistr/u16-to-u32.c: Update.
108178         * modules/unistr/u16-to-u32: Update.
108180 2007-01-27  Bruno Haible  <bruno@clisp.org>
108182         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
108183         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
108184         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
108185         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
108186         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
108187         * modules/unistr/u8-mbtouc-unsafe: Renamed from
108188         modules/unistr/u8-mbtouc.
108189         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
108190         * lib/unistr.h: Update.
108191         * lib/striconveh.c: Update.
108192         * modules/striconveh: Update.
108193         * lib/linebreak.c: Update.
108194         * modules/linebreak: Update.
108195         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
108196         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
108197         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
108198         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
108199         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
108200         * lib/unistr.h: Update.
108201         * lib/striconveh.c: Update.
108202         * modules/striconveh: Update.
108203         * lib/unistr/u8-to-u16.c: Update.
108204         * modules/unistr/u8-to-u16: Update.
108205         * lib/unistr/u8-to-u32.c: Update.
108206         * modules/unistr/u8-to-u32: Update.
108208 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108210         Sync from Libtool.
108211         * lib/argz.c: Do not include strings.h nor memory.h, include
108212         string.h unconditionally.  Patch by Simon Josefsson.
108214 2007-01-27  Bruno Haible  <bruno@clisp.org>
108216         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
108217         from gl_HEADER_STRING_H_BODY.
108218         (gl_HEADER_STRING_H_BODY): Require it.
108219         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
108220         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
108221         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
108222         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
108223         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
108224         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
108225         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
108226         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
108227         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
108228         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
108229         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
108230         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
108231         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
108232         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
108233         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
108235 2007-01-27  Bruno Haible  <bruno@clisp.org>
108237         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
108238         check_PROGRAMS into noinst_PROGRAMS.
108239         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
108240         check_PROGRAMS in this case.
108241         (func_import): Set for_test to false.
108242         (func_create_testdir): Set for_test to true.
108244 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108245             Bruno Haible  <bruno@clisp.org>
108247         * modules/strcasestr (Files): Remove lib/strcasestr.h.
108248         (Depends-on): Add string.
108249         (Includes): Use <string.h> instead of strcasestr.h.
108250         * modules/string (Makefile.am): Also substitute the value of
108251         REPLACE_STRCASESTR.
108252         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
108253         assume strcasestr is declared in <string.h> not <strings.h>. Also
108254         set REPLACE_STRCASESTR.
108255         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
108256         REPLACE_STRCASESTR.
108257         * lib/strcasestr.h: Remove file.
108258         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
108259         * lib/string_.h (strcasestr): New declaration.
108261 2007-01-27  Bruno Haible  <bruno@clisp.org>
108263         * lib/string_.h: Use 'extern'.
108265 2007-01-27  Jim Meyering  <jim@meyering.net>
108267         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
108268         of set-but-not-used local, "q".
108270         * lib/mempcpy.c: Include <config.h> before <string.h>.
108271         This fixes a compilation error on HP-UX, due to the system's
108272         "restrict"-using mempcpy prototype.
108274 2007-01-26  Bruno Haible  <bruno@clisp.org>
108276         Small optimization.
108277         * lib/javacomp.c: Include c-strstr.h.
108278          (is_envjavac_gcj): Use c_strstr instead of strstr.
108279         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
108281 2007-01-26  Bruno Haible  <bruno@clisp.org>
108283         * MODULES.html.sh (Unicode string functions): Add the new modules.
108285         * modules/uniconv/u32-strconv-to-locale: New file.
108286         * lib/uniconv/u32-strconv-to-locale.c: New file.
108288         * modules/uniconv/u16-strconv-to-locale: New file.
108289         * lib/uniconv/u16-strconv-to-locale.c: New file.
108291         * modules/uniconv/u8-strconv-to-locale: New file.
108292         * lib/uniconv/u8-strconv-to-locale.c: New file.
108294         * modules/uniconv/u32-strconv-from-locale: New file.
108295         * lib/uniconv/u32-strconv-from-locale.c: New file.
108297         * modules/uniconv/u16-strconv-from-locale: New file.
108298         * lib/uniconv/u16-strconv-from-locale.c: New file.
108300         * modules/uniconv/u8-strconv-from-locale: New file.
108301         * lib/uniconv/u8-strconv-from-locale.c: New file.
108303         * modules/uniconv/u32-strconv-to-enc: New file.
108304         * lib/uniconv/u32-strconv-to-enc.c: New file.
108305         * modules/uniconv/u32-strconv-to-enc-tests: New file.
108306         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
108308         * modules/uniconv/u16-strconv-to-enc: New file.
108309         * lib/uniconv/u16-strconv-to-enc.c: New file.
108310         * lib/uniconv/u-strconv-to-enc.h: New file.
108311         * modules/uniconv/u16-strconv-to-enc-tests: New file.
108312         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
108314         * modules/uniconv/u8-strconv-to-enc: New file.
108315         * lib/uniconv/u8-strconv-to-enc.c: New file.
108316         * modules/uniconv/u8-strconv-to-enc-tests: New file.
108317         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
108319         * modules/uniconv/u32-strconv-from-enc: New file.
108320         * lib/uniconv/u32-strconv-from-enc.c: New file.
108321         * modules/uniconv/u32-strconv-from-enc-tests: New file.
108322         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
108324         * modules/uniconv/u16-strconv-from-enc: New file.
108325         * lib/uniconv/u16-strconv-from-enc.c: New file.
108326         * modules/uniconv/u16-strconv-from-enc-tests: New file.
108327         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
108329         * modules/uniconv/u8-strconv-from-enc: New file.
108330         * lib/uniconv/u8-strconv-from-enc.c: New file.
108331         * lib/uniconv/u-strconv-from-enc.h: New file.
108332         * modules/uniconv/u8-strconv-from-enc-tests: New file.
108333         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
108335         * modules/uniconv/u32-conv-from-enc: New file.
108336         * lib/uniconv/u32-conv-from-enc.c: New file.
108337         * modules/uniconv/u32-conv-from-enc-tests: New file.
108338         * tests/uniconv/test-u32-conv-from-enc.c: New file.
108340         * modules/uniconv/u16-conv-from-enc: New file.
108341         * lib/uniconv/u16-conv-from-enc.c: New file.
108342         * lib/uniconv/u-conv-from-enc.h: New file.
108343         * modules/uniconv/u16-conv-from-enc-tests: New file.
108344         * tests/uniconv/test-u16-conv-from-enc.c: New file.
108346         * modules/uniconv/u8-conv-from-enc: New file.
108347         * lib/uniconv/u8-conv-from-enc.c: New file.
108348         * modules/uniconv/u8-conv-from-enc-tests: New file.
108349         * tests/uniconv/test-u8-conv-from-enc.c: New file.
108351         * modules/uniconv/base: New file.
108352         * lib/uniconv.h: New file.
108354 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
108356         * doc/gnulib-tool.texi (Initial import): Update to match current
108357         behavior with strdup module.
108358         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
108359         * lib/memmem.h: Remove; all uses removed.  This is now done
108360         by <string.h>.
108361         * lib/mempcpy.h: Likewise.
108362         * lib/memrchr.h: Likewise.
108363         * lib/stpcpy.h: Likewise.
108364         * lib/stpncpy.h: Likewise.
108365         * lib/strcase.h: Likewise.
108366         * lib/strchrnul.h: Likewise.
108367         * lib/strdup.h: Likewise.
108368         * lib/strndup.h: Likewise.
108369         * lib/strnlen.h: Likewise.
108370         * lib/strpbrk.h: Likewise.
108371         * lib/strsep.h: Likewise.
108372         * lib/strstr.h: Likewise.
108373         * lib/strtok_r.h: Likewise.
108374         * lib/string_.h: New file.
108375         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
108376         Rely on <string.h> instead.
108377         * lib/canon-host.c: Likewise.
108378         * lib/chdir-long.c: Likewise.
108379         * lib/concatpath.c: Likewise.
108380         * lib/exclude.c: Likewise.
108381         * lib/fchdir.c: Likewise.
108382         * lib/getaddrinfo.c: Likewise.
108383         * lib/getcwd.c: Likewise.
108384         * lib/getsubopt.c: Likewise.
108385         * lib/glob.c: Likewise.
108386         * lib/hard-locale.c: Likewise.
108387         * lib/iconvme.c: Likewise.
108388         * lib/javacomp.c: Likewise.
108389         * lib/mempcpy.c: Likewise.
108390         * lib/memrchr.c: Likewise.
108391         * lib/regex_internal.h: Likewise.
108392         * lib/stpncpy.c: Likewise.
108393         * lib/strcasecmp.c: Likewise.
108394         * lib/strchrnul.c: Likewise.
108395         * lib/strdup.c: Likewise.
108396         * lib/striconv.c: Likewise.
108397         * lib/striconveh.c: Likewise.
108398         * lib/striconveha.c: Likewise.
108399         * lib/strncasecmp.c: Likewise.
108400         * lib/strndup.c: Likewise.
108401         * lib/strnlen.c: Likewise.
108402         * lib/strsep.c: Likewise.
108403         * lib/strstr.c: Likewise.
108404         * lib/strtok_r.c: Likewise.
108405         * lib/userspec.c: Likewise.
108406         * lib/w32spawn.h: Likewise.
108407         * lib/xstrndup.c: Likewise.
108408         * lib/mountlist.c (strstr): Remove decl.
108409         * m4/string_h.m4: New file.
108410         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
108411         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
108412         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
108413         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
108414         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
108415         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
108416         Set REPLACE_STRCASECMP if necessary.
108417         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
108418         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
108419         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
108420         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
108421         HAVE_DECL_STRDUP if necessary.
108422         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
108423         since gl_FUNC_STRNDUP does that now.
108424         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
108425         Check for decl here...
108426         (gl_PREREQ_STRNLEN): ... not here.
108427         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
108428         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
108429         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
108430         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
108431         necessary.
108432         * modules/string: New file.
108433         * modules/memmem (Files): Remove special-purpose include file.
108434         (Depends-on): Add string.
108435         (Include): Include <string.h>, not the removed file.
108436         * modules/mempcpy: Likewise.
108437         * modules/memrchr: Likewise.
108438         * modules/stpcpy: Likewise.
108439         * modules/stpncpy: Likewise.
108440         * modules/strcase: Likewise.
108441         * modules/strchrnul: Likewise.
108442         * modules/strdup: Likewise.
108443         * modules/strndup: Likewise.
108444         * modules/strnlen: Likewise.
108445         * modules/strpbrk: Likewise.
108446         * modules/strsep: Likewise.
108447         * modules/strstr: Likewise.
108448         * modules/strtok_r: Likewise.
108449         * tests/test-dirname.c: Don't include "strdup.h", since
108450         <string.h> now suffices.
108451         * tests/test-memmem.c: Don't include "memmem.h", since
108452         <string.h> now suffices.
108454 2007-01-25  Bruno Haible  <bruno@clisp.org>
108456         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
108457         *resultp is 0.
108459         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
108460         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
108461         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
108462         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
108464         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
108465         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
108466         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
108467         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
108468         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
108469         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
108471 2007-01-24  Bruno Haible  <bruno@clisp.org>
108473         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
108474         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
108475         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
108476         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
108477         gl_FUNC_FTS_CORE.
108478         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
108479         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
108480         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
108481         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
108482         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
108483         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
108484         gl_FUNC_FCHOWNAT.
108485         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
108486         gl_FUNC_STRFTIME.
108487         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
108488         Reported by Ralf Wildenhues.
108490 2007-01-24  Bruno Haible  <bruno@clisp.org>
108492         Drop AC_REQUIRE calls that are redundant with the module dependencies.
108493         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
108494         gl_GETADDRINFO.
108495         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
108496         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
108497         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
108499 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
108501         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
108502         Don't use 'exit'; just return from 'main'.
108503         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
108505         * lib/fnmatch_.h: Readjust white space and comments to match
108506         glibc, to avoid spurious diffs.
108508 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108510         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
108511         2004-12-01 change by Jakub Jelinek, since this code won't compile
108512         if !LIBC.  Problem reported by Bob Proulx.
108514 2007-01-23  Bruno Haible  <bruno@clisp.org>
108516         * lib/striconveh.c: Include c-strcaseeq.h.
108517         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
108518         * modules/striconveh (Depends-on): Add c-strcaseeq.
108520 2007-01-23  Bruno Haible  <bruno@clisp.org>
108522         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
108524         * modules/c-strcaseeq: New file.
108525         * lib/c-strcaseeq.h: New file.
108527         * modules/streq: New file.
108528         * lib/streq.h: New file.
108530 2007-01-23  Bruno Haible  <bruno@clisp.org>
108532         * modules/striconveha-tests: New file.
108533         * tests/test-striconveha.c: New file.
108535         * lib/striconveha.h: Include <stdbool.h>.
108536         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
108537         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
108538         (mem_iconveha_notranslit): Renamed from mem_iconveha.
108539         (mem_iconveha): New function.
108540         (str_iconveha_notranslit): Renamed from str_iconveha.
108541         (str_iconveha): New function.
108542         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
108543         c-strcase.
108545 2007-01-23  Bruno Haible  <bruno@clisp.org>
108547         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
108548         encodings without forgiving before trying any encoding with handler.
108549         (str_iconveha): Try all encodings without forgiving before trying any
108550         encoding with handler.
108552 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108554         Import the following changes from libc.
108556         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
108558         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
108560         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
108562         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
108563         normal_bracket label.
108565         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
108567         [BZ #361]
108568         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
108569         to normal_bracket after fetching the next character.
108571 2007-01-22  Bruno Haible  <bruno@clisp.org>
108573         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
108574         argument.
108575         * lib/striconveh.c (iconv_carefully_1): New function.
108576         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
108577         argument.
108578         (str_cd_iconveh): Update.
108579         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
108580         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
108581         * tests/test-striconveh.c (MAGIC): New macro.
108582         (new_offsets): New function.
108583         (main): Test call with and without offsets.
108585 2007-01-22  Bruno Haible  <bruno@clisp.org>
108587         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
108588         * modules/sys_select (Makefile.am): Likewise.
108589         * modules/sys_socket (Makefile.am): Likewise.
108590         * modules/sys_time (Makefile.am): Likewise.
108592 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
108594         * modules/gettimeofday (License): Change from GPL to LGPL, since
108595         gettimeofday is a library function.
108597 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108599         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
108601 2007-01-21  Bruno Haible  <bruno@clisp.org>
108603         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
108605 2007-01-21  Bruno Haible  <bruno@clisp.org>
108607         * modules/striconveha: New file.
108608         * lib/striconveha.h: New file.
108609         * lib/striconveha.c: New file.
108610         * MODULES.html.sh (Internationalization functions): Add striconveha.
108611         * lib/striconv.c (str_iconv): Optimize the case of an empty input
108612         string.
108613         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
108615 2007-01-21  Bruno Haible  <bruno@clisp.org>
108617         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
108618         * lib/striconveh.c (str_iconveh): Likewise.
108620 2007-01-21  Bruno Haible  <bruno@clisp.org>
108622         * lib/striconveh.h (mem_iconveh): New declaration.
108623         * lib/striconveh.c (mem_iconveh): New function.
108624         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
108626 2007-01-21  Bruno Haible  <bruno@clisp.org>
108628         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
108630         * lib/striconveh.h (mem_cd_iconveh): Change specification.
108631         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
108632         original result buffer.
108633         (str_cd_iconveh): Update.
108634         * tests/test-striconveh.c (main): Update.
108636         * lib/striconv.h (mem_cd_iconv): Change specification.
108637         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
108638         result buffer.
108639         (str_cd_iconv): Update.
108640         * tests/test-striconv.c (main): Update.
108642 2007-01-21  Bruno Haible  <bruno@clisp.org>
108644         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
108646 2007-01-20  Jim Meyering  <jim@meyering.net>
108648         * lib/userspec.c (parse_with_separator): If a user or group string
108649         starts with "+", skip the corresponding name-to-ID look-up, since
108650         such a look-up must fail: user and group names may not include "+".
108652 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
108654         * lib/poll.c: Include sys/time.h and time.h unconditionally,
108655         since we now assume the sys_time module.
108656         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
108657         check for sys/time.h; no longer needed.
108658         * modules/poll (Depends-on): Depend on sys_time.
108660 2007-01-18  Bruno Haible  <bruno@clisp.org>
108662         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
108663         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108665         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
108666         gettimeofday.
108668         * tests/test-gettimeofday.c: Include <time.h>.
108669         (dummy): Remove variable.
108671         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
108672         gl_HEADER_SYS_TIME_H.
108673         (gl_HEADER_SYS_TIME_H): New macro.
108675         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
108676         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
108678         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
108679         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108680         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
108681         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
108682         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108683         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
108684         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
108685         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108687         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
108688         last change; it caused a compilation error when cross-compiling to
108689         Cygwin.
108691 2007-01-18  Jim Meyering  <jim@meyering.net>
108693         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
108694         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
108695         than the race-prone "test -d sys || mkdir sys".
108696         (configure.ac): Use AC_PROG_MKDIR_P.
108697         * modules/sys_select: Likewise.
108698         * modules/sys_socket: Likewise.
108699         * modules/sys_time: Likewise.
108701 2007-01-18  Eric Blake  <ebb9@byu.net>
108703         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
108704         replace gettimeofday.
108705         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
108706         name, to avoid infinite recursion.
108708 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
108710         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
108711         module sys_time.
108712         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
108713         assume timespec.h defines struct timeval.
108714         * lib/settime.c: Likewise.
108715         * lib/utimens.c: Likewise.
108716         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
108717         since we now assume the gettimeofday module.
108718         * lib/tempname.c (__gen_tempname): Likewise.
108719         * lib/gettimeofday.h: Remove.
108720         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
108721         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
108722         Include <time.h>, for 'time()'.
108723         (localtime_buffer_addr): Also use this workaround if
108724         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
108725         to simplify the uses.  All uses changed.
108726         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
108727         that #undef is inside {}, and 'const' follows type name consistently.
108728         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
108729         (gettimeofday): Do not use the maximum possible value for
108730         tv->tv_usec, since that might break usages other than ls.c.
108731         Instead, we'll leave ls.c alone.  This undoes today's patch
108732         by Bruno.  Add a compile-time warning for 1s-clock resolution;
108733         we've never observed the problem but might as well keep the
108734         canary.
108735         * lib/nanosleep.c: Include timespec.h first, for interface check.
108736         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
108737         now assume the sys_time module.
108738         * lib/tempname.c: Likewise.
108739         * lib/timespec.h: Likewise.
108740         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
108741         needed.
108742         * lib/strftime.c: Likewise.
108743         * lib/timespec.h: Likewise.
108744         * lib/posixtm.c: Include posixtm.h first, for interface check.
108745         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
108746         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
108747         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
108748         * lib/sys_time_.h: New file.
108749         * lib/timespec.h (struct timespec): Use long int, not long.
108750         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
108751         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
108752         Remove obsolescent call to AC_HEADER_TIME.
108753         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
108754         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
108755         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108756         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
108757         Likewise.
108758         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
108759         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
108760         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
108761         into the sys_time module.  Check for gettimeofday just once.
108762         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
108763         for gettimeofday signature to just check the signature.  Merely
108764         compile it, since linking doesn't test signature.  Improve test for
108765         whether gettimeofday.o is actually needed.
108766         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
108767         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
108768         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
108769         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108770         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
108771         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
108772         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
108773         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
108774         than worrying about sys/time.h.
108775         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
108776         Don't bother worrying about TIME_WITH_SYS_TIME.
108777         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
108778         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
108779         * m4/sys_time_h.m4: New file.
108780         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
108781         Don't include sys/time.h.  Return from main rather than exiting.
108782         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
108783         all uses changed.
108784         * modules/gethrxtime (Depends-on): Add sys_time.
108785         * modules/gettime (Depends-on): Likewise.
108786         * modules/gettimeofday (Depends-on): Likewise.
108787         * modules/nanosleep (Depends-on): Likewise.
108788         * modules/settime (Depends-on): Likewise.
108789         * modules/tempname (Depends-on): Likewise.
108790         * modules/utimens (Depends-on): Likewise.
108791         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
108792         (Include): Change back to <sys/time.h>.
108793         (Maintainer): Add self.
108794         * modules/sys_time: New file.
108795         * modules/tempname (Depends-on): Add gettimeofday.
108796         * tests/test-gettimeofday.c: Include <sys/time.h>
108797         rather than gettimeofday.h.
108799 2007-01-17  Bruno Haible  <bruno@clisp.org>
108801         * gnulib-tool (func_get_license): Revert last patch. Instead, let
108802         the license default to GPL.
108803         (func_create_testdir): Don't complain if a module is LGPL and its
108804         tests module depends on GPLed modules.
108806 2007-01-17  Bruno Haible  <bruno@clisp.org>
108808         * lib/gettimeofday.c (gettimeofday): Add code for the case
108809         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
108810         maximum possible value for tv->tv_usec, rather than the minimum one.
108812 2005-10-08  Martin Lambers  <marlam@marlam.de>
108813 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108814 2007-01-16  Bruno Haible  <bruno@clisp.org>
108816         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
108817         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
108818         gl_FUNC_GETTIMEOFDAY.
108819         (Include): Add gettimeofday.h.
108820         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
108821         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
108822         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
108823         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
108824         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
108825         * lib/gettimeofday.h: New file.
108826         * lib/gettimeofday.c: Include <sys/timeb.h>.
108827         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
108828         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108829         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
108830         fall back on time().
108832         * tests/test-gettimeofday.c: New file.
108833         * modules/gettimeofday-tests: New file.
108835 2007-01-16  Eric Blake  <ebb9@byu.net>
108837         * modules/fnmatch (Depends-on): Depend on wchar.
108838         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
108839         * m4/fnmatch.m4: Likewise.
108840         * modules/mbchar (Makefile.am): Assume <wchar.h>.
108841         * m4/mbchar.m4: Likewise.
108842         * modules/mbswidth (Depends-on): Depend on wchar.
108843         * lib/mbswidth.c: Assume <wchar.h>.
108844         * m4/mbswidth.m4: Likewise.
108845         * modules/quotearg (Depends-on): Depend on wchar.
108846         * lib/quotearg.c: Assume <wchar.h>.
108847         * m4/quotearg.m4: Likewise.
108848         * modules/regex (Depends-on): Depend on wchar.
108849         * lib/regex_internal.h: Assume <wchar.h>.
108850         * m4/regex.m4: Likewise.
108851         * modules/stdint (Depends-on): Depend on wchar.
108852         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
108853         * m4/stdint.m4: Likewise.
108854         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
108855         * modules/strftime (Depends-on): Depend on wchar.
108856         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
108857         * modules/strtol (Depends-on): Depend on wchar.
108858         * lib/strtol.c: Assume <wchar.h>.
108859         * modules/wcwidth (Depends-on): Depend on wchar.
108860         * lib/wcwidth.h: Assume <wchar.h>.
108861         * m4/wcwidth.m4: Likewise.
108863 2007-01-16  Bruno Haible  <bruno@clisp.org>
108865         * modules/csharpexec-script: New, created from...
108866         * modules/csharpexec: ... this.
108868 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
108870         * modules/javaexec-script: New, created from...
108871         * modules/javaexec: ... this.
108873 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108875         * modules/poll (Dependencies): Add sys_select.
108877 2007-01-15  Jim Meyering  <jim@meyering.net>
108879         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
108880         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
108881         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
108882         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
108884 2007-01-15  Bruno Haible  <bruno@clisp.org>
108886         * modules/striconveh: New file.
108887         * lib/striconveh.h: New file.
108888         * lib/striconveh.c: New file.
108889         * MODULES.html.sh (Internationalization functions): Add striconveh.
108891         * modules/striconveh-tests: New file.
108892         * tests/test-striconveh.c: New file.
108894 2007-01-15  Bruno Haible  <bruno@clisp.org>
108896         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
108897         not from GNU libiconv or GNU libc.
108899 2007-01-15  Bruno Haible  <bruno@clisp.org>
108901         * doc/gnulib-intro.texi (Copyright): Explain the different license
108902         terms for module descriptions, autoconf macros, tests, documentation.
108904 2007-01-14  Bruno Haible  <bruno@clisp.org>
108906         * modules/striconv-tests: New file.
108907         * tests/test-striconv.c: New file.
108909 2007-01-14  Bruno Haible  <bruno@clisp.org>
108911         * modules/iconv-tests: New file.
108912         * tests/test-iconv.c: New file.
108914 2007-01-14  Bruno Haible  <bruno@clisp.org>
108916         * gnulib-tool (func_get_license): For test modules, use the license of
108917         the main module.
108919 2007-01-14  Bruno Haible  <bruno@clisp.org>
108921         * modules/iconv (Include): Clarify that <iconv.h> can only be included
108922         if iconv is found to exist.
108924 2007-01-14  Bruno Haible  <bruno@clisp.org>
108926         * modules/c-ctype-tests: New file.
108927         * tests/test-c-ctype.c: New file.
108929 2007-01-14  Bruno Haible  <bruno@clisp.org>
108931         * modules/binary-io-tests: New file.
108932         * tests/test-binary-io.sh: New file.
108933         * tests/test-binary-io.c: New file.
108935 2007-01-14  Bruno Haible  <bruno@clisp.org>
108937         * modules/array-oset-tests: New file.
108938         * tests/test-array_oset.c: New file.
108940 2007-01-14  Bruno Haible  <bruno@clisp.org>
108942         * modules/array-list-tests: New file.
108943         * tests/test-array_list.c: New file.
108945 2007-01-14  Bruno Haible  <bruno@clisp.org>
108947         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
108948         and make.
108949         Reported by Simon Josefsson in
108950         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
108952 2007-01-14  Bruno Haible  <bruno@clisp.org>
108954         * modules/allocsa-tests: New file.
108955         * tests/test-allocsa.c: New file.
108957 2007-01-14  Bruno Haible  <bruno@clisp.org>
108959         * modules/fchdir (Depends-on): Add absolute-header.
108960         * modules/unistd (Depends-on): Likewise.
108962 2006-12-30  Bruno Haible  <bruno@clisp.org>
108964         * modules/fchdir: New file.
108965         * modules/unistd (Files): Add lib/unistd_.h.
108966         (Makefile.am): Generate unistd.h from unistd_.h.
108967         * lib/fchdir.c: New file.
108968         * lib/dirent_.h: New file.
108969         * lib/unistd_.h: New file.
108970         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
108971         * m4/fchdir.m4: New file.
108972         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
108973         (gl_HEADER_UNISTD): Invoke it.
108974         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
108975         function.
108976         * lib/backupfile.c (opendir, closedir): Undefine.
108977         * lib/chown.c (open, close): Undefine.
108978         * lib/clean-temp.c (open, close): Undefine.
108979         * lib/copy-file.c (open, close): Undefine.
108980         * lib/execute.c (open, close): Undefine.
108981         * lib/fsusage.c (open, close): Undefine.
108982         * lib/gc-gnulib.c (open, close): Undefine.
108983         * lib/getcwd.c (opendir, closedir): Undefine.
108984         * lib/glob.c (opendir, closedir): Undefine.
108985         * lib/javacomp.c (open, close): Undefine.
108986         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
108987         * lib/openat-proc.c (open, close): Undefine.
108988         * lib/pagealign_alloc.c (open, close): Undefine.
108989         * lib/pipe.c (open, close): Undefine.
108990         * lib/progreloc.c (open, close): Undefine.
108991         * lib/savedir.c (opendir, closedir): Undefine.
108992         * lib/utime.c (open, close): Undefine.
108993         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
108995 2007-01-10  Bruno Haible  <bruno@clisp.org>
108997         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
108999 2007-01-12  Eric Blake  <ebb9@byu.net>
109001         Provide a robust <wchar.h>.  Further simplifications are now
109002         possible in other modules, but not included here.
109003         * modules/wchar: New module.
109004         * m4/wchar.m4: New file.
109005         * lib/wchar_.h: Likewise.
109006         * modules/mbchar (Depends-on): Depend on wchar, as the first use
109007         of the new module.
109008         * MODULES.html.sh (Extended multibyte and wide character utilities):
109009         New section.
109011 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
109013         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
109014         to a reasonable default for memory allocation.
109015         (xreadlink): Don't allocate a huge buffer, to work around a buggy
109016         file system that reports garbage st_size values for symlinks.
109017         Problem reported by Liyang Hu.
109019 2007-01-11  Simon Josefsson  <simon@josefsson.org>
109021         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
109022         Emacs .#* auto-save files).
109024 2007-01-11  Bruno Haible  <bruno@clisp.org>
109026         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
109027         directory.
109029 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109031         Use @...@ consistently in lib/wctype_.h.
109032         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
109033         on it being set to 1 or 0.
109034         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
109035         go back to AC_SUBSTing it.
109036         * modules/wctype (Makefile.am): Undo previous change.
109038 2007-01-10  Eric Blake  <ebb9@byu.net>
109040         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
109041         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
109042         * modules/wctype (Makefile.am): Likewise.
109043         Reported by Chris McGuire.
109045 2007-01-10  Jim Meyering  <jim@meyering.net>
109047         fts.c: a small readability/maintainability improvement
109048         * lib/fts.c (fts_read): Make this code slightly more readable and
109049         maintainable by hoisting the "sp->fts_cur = p" assignments to
109050         immediately follow the statements that set P.  Derived from
109051         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
109053 2007-01-10  Eric Blake  <ebb9@byu.net>
109055         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
109056         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
109057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
109058         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
109059         Reported by Chris McGuire.
109061 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109063         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
109064         in sed script.
109066 2007-01-09  Bruno Haible  <bruno@clisp.org>
109068         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
109069         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
109070         variables.
109071         (func_module): Use them.
109073 2007-01-09  Bruno Haible  <bruno@clisp.org>
109075         * modules/unistr/base: New file.
109076         * lib/unistr.h: New file.
109078         * modules/unistr/u8-to-u16: New file.
109079         * lib/unistr/u8-to-u16.c: New file.
109081         * modules/unistr/u8-to-u32: New file.
109082         * lib/unistr/u8-to-u32.c: New file.
109084         * modules/unistr/u16-to-u8: New file.
109085         * lib/unistr/u16-to-u8.c: New file.
109087         * modules/unistr/u16-to-u32: New file.
109088         * lib/unistr/u16-to-u32.c: New file.
109090         * modules/unistr/u32-to-u8: New file.
109091         * lib/unistr/u32-to-u8.c: New file.
109093         * modules/unistr/u32-to-u16: New file.
109094         * lib/unistr/u32-to-u16.c: New file.
109096         * modules/unistr/u8-check: New file.
109097         * modules/unistr/u16-check: New file.
109098         * modules/unistr/u32-check: New file.
109099         * lib/unistr/u8-check.c: New file.
109100         * lib/unistr/u16-check.c: New file.
109101         * lib/unistr/u32-check.c: New file.
109103         * modules/unistr/u8-chr: New file.
109104         * modules/unistr/u16-chr: New file.
109105         * modules/unistr/u32-chr: New file.
109106         * lib/unistr/u8-chr.c: New file.
109107         * lib/unistr/u16-chr.c: New file.
109108         * lib/unistr/u32-chr.c: New file.
109110         * modules/unistr/u8-cmp: New file.
109111         * modules/unistr/u16-cmp: New file.
109112         * modules/unistr/u32-cmp: New file.
109113         * lib/unistr/u8-cmp.c: New file.
109114         * lib/unistr/u16-cmp.c: New file.
109115         * lib/unistr/u32-cmp.c: New file.
109117         * modules/unistr/u8-cpy: New file.
109118         * modules/unistr/u16-cpy: New file.
109119         * modules/unistr/u32-cpy: New file.
109120         * lib/unistr/u8-cpy.c: New file.
109121         * lib/unistr/u16-cpy.c: New file.
109122         * lib/unistr/u32-cpy.c: New file.
109123         * lib/unistr/u-cpy.h: New file.
109125         * modules/unistr/u8-cpy-alloc: New file.
109126         * modules/unistr/u16-cpy-alloc: New file.
109127         * modules/unistr/u32-cpy-alloc: New file.
109128         * lib/unistr/u8-cpy-alloc.c: New file.
109129         * lib/unistr/u16-cpy-alloc.c: New file.
109130         * lib/unistr/u32-cpy-alloc.c: New file.
109131         * lib/unistr/u-cpy-alloc.h: New file.
109133         * modules/unistr/u8-endswith: New file.
109134         * modules/unistr/u16-endswith: New file.
109135         * modules/unistr/u32-endswith: New file.
109136         * lib/unistr/u8-endswith.c: New file.
109137         * lib/unistr/u16-endswith.c: New file.
109138         * lib/unistr/u32-endswith.c: New file.
109139         * lib/unistr/u-endswith.h: New file.
109141         * modules/unistr/u8-mblen: New file.
109142         * modules/unistr/u16-mblen: New file.
109143         * modules/unistr/u32-mblen: New file.
109144         * lib/unistr/u8-mblen.c: New file.
109145         * lib/unistr/u16-mblen.c: New file.
109146         * lib/unistr/u32-mblen.c: New file.
109148         * modules/unistr/u8-mbtouc: New file.
109149         * modules/unistr/u16-mbtouc: New file.
109150         * modules/unistr/u32-mbtouc: New file.
109151         * lib/unistr/u8-mbtouc.c: New file.
109152         * lib/unistr/u16-mbtouc.c: New file.
109153         * lib/unistr/u32-mbtouc.c: New file.
109155         * modules/unistr/u8-mbtouc-safe: New file.
109156         * modules/unistr/u16-mbtouc-safe: New file.
109157         * modules/unistr/u32-mbtouc-safe: New file.
109158         * lib/unistr/u8-mbtouc-safe.c: New file.
109159         * lib/unistr/u16-mbtouc-safe.c: New file.
109160         * lib/unistr/u32-mbtouc-safe.c: New file.
109162         * modules/unistr/u8-move: New file.
109163         * modules/unistr/u16-move: New file.
109164         * modules/unistr/u32-move: New file.
109165         * lib/unistr/u8-move.c: New file.
109166         * lib/unistr/u16-move.c: New file.
109167         * lib/unistr/u32-move.c: New file.
109168         * lib/unistr/u-move.h: New file.
109170         * modules/unistr/u8-next: New file.
109171         * modules/unistr/u16-next: New file.
109172         * modules/unistr/u32-next: New file.
109173         * lib/unistr/u8-next.c: New file.
109174         * lib/unistr/u16-next.c: New file.
109175         * lib/unistr/u32-next.c: New file.
109177         * modules/unistr/u8-prev: New file.
109178         * modules/unistr/u16-prev: New file.
109179         * modules/unistr/u32-prev: New file.
109180         * lib/unistr/u8-prev.c: New file.
109181         * lib/unistr/u16-prev.c: New file.
109182         * lib/unistr/u32-prev.c: New file.
109184         * modules/unistr/u8-set: New file.
109185         * modules/unistr/u16-set: New file.
109186         * modules/unistr/u32-set: New file.
109187         * lib/unistr/u8-set.c: New file.
109188         * lib/unistr/u16-set.c: New file.
109189         * lib/unistr/u32-set.c: New file.
109190         * lib/unistr/u-set.h: New file.
109192         * modules/unistr/u8-startswith: New file.
109193         * modules/unistr/u16-startswith: New file.
109194         * modules/unistr/u32-startswith: New file.
109195         * lib/unistr/u8-startswith.c: New file.
109196         * lib/unistr/u16-startswith.c: New file.
109197         * lib/unistr/u32-startswith.c: New file.
109198         * lib/unistr/u-startswith.h: New file.
109200         * modules/unistr/u8-stpcpy: New file.
109201         * modules/unistr/u16-stpcpy: New file.
109202         * modules/unistr/u32-stpcpy: New file.
109203         * lib/unistr/u8-stpcpy.c: New file.
109204         * lib/unistr/u16-stpcpy.c: New file.
109205         * lib/unistr/u32-stpcpy.c: New file.
109206         * lib/unistr/u-stpcpy.h: New file.
109208         * modules/unistr/u8-stpncpy: New file.
109209         * modules/unistr/u16-stpncpy: New file.
109210         * modules/unistr/u32-stpncpy: New file.
109211         * lib/unistr/u8-stpncpy.c: New file.
109212         * lib/unistr/u16-stpncpy.c: New file.
109213         * lib/unistr/u32-stpncpy.c: New file.
109214         * lib/unistr/u-stpncpy.h: New file.
109216         * modules/unistr/u8-strcat: New file.
109217         * modules/unistr/u16-strcat: New file.
109218         * modules/unistr/u32-strcat: New file.
109219         * lib/unistr/u8-strcat.c: New file.
109220         * lib/unistr/u16-strcat.c: New file.
109221         * lib/unistr/u32-strcat.c: New file.
109222         * lib/unistr/u-strcat.h: New file.
109224         * modules/unistr/u8-strchr: New file.
109225         * modules/unistr/u16-strchr: New file.
109226         * modules/unistr/u32-strchr: New file.
109227         * lib/unistr/u8-strchr.c: New file.
109228         * lib/unistr/u16-strchr.c: New file.
109229         * lib/unistr/u32-strchr.c: New file.
109231         * modules/unistr/u8-strcmp: New file.
109232         * modules/unistr/u16-strcmp: New file.
109233         * modules/unistr/u32-strcmp: New file.
109234         * lib/unistr/u8-strcmp.c: New file.
109235         * lib/unistr/u16-strcmp.c: New file.
109236         * lib/unistr/u32-strcmp.c: New file.
109238         * modules/unistr/u8-strcpy: New file.
109239         * modules/unistr/u16-strcpy: New file.
109240         * modules/unistr/u32-strcpy: New file.
109241         * lib/unistr/u8-strcpy.c: New file.
109242         * lib/unistr/u16-strcpy.c: New file.
109243         * lib/unistr/u32-strcpy.c: New file.
109244         * lib/unistr/u-strcpy.h: New file.
109246         * modules/unistr/u8-strcspn: New file.
109247         * modules/unistr/u16-strcspn: New file.
109248         * modules/unistr/u32-strcspn: New file.
109249         * lib/unistr/u8-strcspn.c: New file.
109250         * lib/unistr/u16-strcspn.c: New file.
109251         * lib/unistr/u32-strcspn.c: New file.
109252         * lib/unistr/u-strcspn.h: New file.
109254         * modules/unistr/u8-strdup: New file.
109255         * modules/unistr/u16-strdup: New file.
109256         * modules/unistr/u32-strdup: New file.
109257         * lib/unistr/u8-strdup.c: New file.
109258         * lib/unistr/u16-strdup.c: New file.
109259         * lib/unistr/u32-strdup.c: New file.
109260         * lib/unistr/u-strdup.h: New file.
109262         * modules/unistr/u8-strlen: New file.
109263         * modules/unistr/u16-strlen: New file.
109264         * modules/unistr/u32-strlen: New file.
109265         * lib/unistr/u8-strlen.c: New file.
109266         * lib/unistr/u16-strlen.c: New file.
109267         * lib/unistr/u32-strlen.c: New file.
109268         * lib/unistr/u-strlen.h: New file.
109270         * modules/unistr/u8-strmblen: New file.
109271         * modules/unistr/u16-strmblen: New file.
109272         * modules/unistr/u32-strmblen: New file.
109273         * lib/unistr/u8-strmblen.c: New file.
109274         * lib/unistr/u16-strmblen.c: New file.
109275         * lib/unistr/u32-strmblen.c: New file.
109277         * modules/unistr/u8-strmbtouc: New file.
109278         * modules/unistr/u16-strmbtouc: New file.
109279         * modules/unistr/u32-strmbtouc: New file.
109280         * lib/unistr/u8-strmbtouc.c: New file.
109281         * lib/unistr/u16-strmbtouc.c: New file.
109282         * lib/unistr/u32-strmbtouc.c: New file.
109284         * modules/unistr/u8-strncat: New file.
109285         * modules/unistr/u16-strncat: New file.
109286         * modules/unistr/u32-strncat: New file.
109287         * lib/unistr/u8-strncat.c: New file.
109288         * lib/unistr/u16-strncat.c: New file.
109289         * lib/unistr/u32-strncat.c: New file.
109290         * lib/unistr/u-strncat.h: New file.
109292         * modules/unistr/u8-strncmp: New file.
109293         * modules/unistr/u16-strncmp: New file.
109294         * modules/unistr/u32-strncmp: New file.
109295         * lib/unistr/u8-strncmp.c: New file.
109296         * lib/unistr/u16-strncmp.c: New file.
109297         * lib/unistr/u32-strncmp.c: New file.
109299         * modules/unistr/u8-strncpy: New file.
109300         * modules/unistr/u16-strncpy: New file.
109301         * modules/unistr/u32-strncpy: New file.
109302         * lib/unistr/u8-strncpy.c: New file.
109303         * lib/unistr/u16-strncpy.c: New file.
109304         * lib/unistr/u32-strncpy.c: New file.
109305         * lib/unistr/u-strncpy.h: New file.
109307         * modules/unistr/u8-strnlen: New file.
109308         * modules/unistr/u16-strnlen: New file.
109309         * modules/unistr/u32-strnlen: New file.
109310         * lib/unistr/u8-strnlen.c: New file.
109311         * lib/unistr/u16-strnlen.c: New file.
109312         * lib/unistr/u32-strnlen.c: New file.
109313         * lib/unistr/u-strnlen.h: New file.
109315         * modules/unistr/u8-strpbrk: New file.
109316         * modules/unistr/u16-strpbrk: New file.
109317         * modules/unistr/u32-strpbrk: New file.
109318         * lib/unistr/u8-strpbrk.c: New file.
109319         * lib/unistr/u16-strpbrk.c: New file.
109320         * lib/unistr/u32-strpbrk.c: New file.
109321         * lib/unistr/u-strpbrk.h: New file.
109323         * modules/unistr/u8-strrchr: New file.
109324         * modules/unistr/u16-strrchr: New file.
109325         * modules/unistr/u32-strrchr: New file.
109326         * lib/unistr/u8-strrchr.c: New file.
109327         * lib/unistr/u16-strrchr.c: New file.
109328         * lib/unistr/u32-strrchr.c: New file.
109330         * modules/unistr/u8-strspn: New file.
109331         * modules/unistr/u16-strspn: New file.
109332         * modules/unistr/u32-strspn: New file.
109333         * lib/unistr/u8-strspn.c: New file.
109334         * lib/unistr/u16-strspn.c: New file.
109335         * lib/unistr/u32-strspn.c: New file.
109336         * lib/unistr/u-strspn.h: New file.
109338         * modules/unistr/u8-strstr: New file.
109339         * modules/unistr/u16-strstr: New file.
109340         * modules/unistr/u32-strstr: New file.
109341         * lib/unistr/u8-strstr.c: New file.
109342         * lib/unistr/u16-strstr.c: New file.
109343         * lib/unistr/u32-strstr.c: New file.
109344         * lib/unistr/u-strstr.h: New file.
109346         * modules/unistr/u8-strtok: New file.
109347         * modules/unistr/u16-strtok: New file.
109348         * modules/unistr/u32-strtok: New file.
109349         * lib/unistr/u8-strtok.c: New file.
109350         * lib/unistr/u16-strtok.c: New file.
109351         * lib/unistr/u32-strtok.c: New file.
109352         * lib/unistr/u-strtok.h: New file.
109354         * modules/unistr/u8-uctomb: New file.
109355         * modules/unistr/u16-uctomb: New file.
109356         * modules/unistr/u32-uctomb: New file.
109357         * lib/unistr/u8-uctomb.c: New file.
109358         * lib/unistr/u16-uctomb.c: New file.
109359         * lib/unistr/u32-uctomb.c: New file.
109361         * MODULES.html.sh (Unicode string functions): Add the new modules.
109363 2007-01-08  Bruno Haible  <bruno@clisp.org>
109365         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
109366         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
109367         subdirectories.
109369 2007-01-08  Karl Berry  <karl@gnu.org>
109371         * doc/error.texi: mention that main() fns must set program_name
109372         when progname is used.
109374 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
109376         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
109377         WCTYPE_H is empty, for the benefit of builds from non-distclean
109378         directories.  Problem reported by Eric Blake in
109379         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
109381 2007-01-08  Bruno Haible  <bruno@clisp.org>
109383         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
109384         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
109385         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
109386         PROVIDE_CANONICALIZE_FILENAME_MODE.
109387         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
109389 2007-01-08  Bruno Haible  <bruno@clisp.org>
109391         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
109392         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
109393         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
109394         * lib/fts.c: Likewise.
109395         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
109397 2006-12-25  Bruno Haible  <bruno@clisp.org>
109399         * modules/utf8-ucs4-safe: New file.
109400         * lib/utf8-ucs4-safe.h: New file.
109401         * lib/unistr/utf8-ucs4-safe.c: New file.
109403         * modules/utf16-ucs4-safe: New file.
109404         * lib/utf16-ucs4-safe.h: New file.
109405         * lib/unistr/utf16-ucs4-safe.c: New file.
109407         * MODULES.html.sh (Unicode string functions): Add the new modules.
109409 2007-01-08  Bruno Haible  <bruno@clisp.org>
109411         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
109412         (Depends-on): Add unitypes.
109413         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109414         (u8_mbtouc_aux): Move out to separate file.
109415         (u8_mbtouc): Use ucs4_t, uint8_t types.
109416         * lib/unistr/utf8-ucs4.c: New file.
109418         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
109419         (Depends-on): Add unitypes.
109420         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109421         (u16_mbtouc_aux): Move out to separate file.
109422         (u16_mbtouc): Use ucs4_t, uint16_t types.
109423         * lib/unistr/utf16-ucs4.c: New file.
109425         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
109426         (Depends-on): Add unitypes.
109427         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
109428         (u8_uctomb_aux): Move out to separate file.
109429         (u8_uctomb): Use ucs4_t, uint8_t types.
109430         * lib/unistr/ucs4-utf8.c: New file.
109432         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
109433         (Depends-on): Add unitypes.
109434         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
109435         (u16_uctomb_aux): Move out to separate file.
109436         (u16_uctomb): Use ucs4_t, uint16_t types.
109437         * lib/unistr/ucs4-utf16.c: New file.
109439 2006-12-25  Bruno Haible  <bruno@clisp.org>
109441         * modules/unitypes: New file.
109442         * lib/unitypes.h: New file.
109443         * MODULES.html.sh (func_all_modules): New section "Unicode string
109444         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
109445         this section. Add unitypes.
109447 2007-01-08  Bruno Haible  <bruno@clisp.org>
109449         Avoid variable names that conflict with those from libtool.
109450         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
109451         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
109452         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
109453         library_names_spec to acl_library_names_spec, hardcode_* to
109454         acl_hardcode_*.
109455         Reported by Ralf Wildenhues.
109457 2007-01-08  Bruno Haible  <bruno@clisp.org>
109459         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
109460         definition.
109461         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
109462         definition.
109463         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
109464         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
109465         definition.
109466         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
109467         definition.
109468         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
109469         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
109470         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
109471         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
109472         definition.
109473         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
109474         definition.
109475         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
109476         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
109477         GC_USE_<algorithm>.
109478         * lib/gc-libgcrypt.c: Likewise.
109479         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
109480         * modules/gc-arctwo (configure.ac): Likewise.
109481         * modules/gc-des (configure.ac): Likewise.
109482         * modules/gc-hmac-md5 (configure.ac): Likewise.
109483         * modules/gc-hmac-sha1 (configure.ac): Likewise.
109484         * modules/gc-md2 (configure.ac): Likewise.
109485         * modules/gc-md4 (configure.ac): Likewise.
109486         * modules/gc-md5 (configure.ac): Likewise.
109487         * modules/gc-random (configure.ac): Likewise.
109488         * modules/gc-rijndael (configure.ac): Likewise.
109489         * modules/gc-sha1 (configure.ac): Likewise.
109491 2007-01-08  Bruno Haible  <bruno@clisp.org>
109493         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
109494         macro definition.
109495         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
109496         definition.
109497         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
109498         definition.
109499         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
109500         * modules/fcntl-safer (configure.ac): Likewise.
109501         * modules/fopen-safer (configure.ac): Likewise.
109502         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
109503         GNULIB_FWRITEERROR macro definition.
109505 2007-01-08  Bruno Haible  <bruno@clisp.org>
109507         * m4/gnulib-common.m4: New file.
109508         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
109509         (func_get_filelist): Add m4/gnulib-common.m4.
109511 2007-01-08  Bruno Haible  <bruno@clisp.org>
109513         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
109514         command.
109516 2007-01-08  Jim Meyering  <jim@meyering.net>
109518         Use a more robust test for a "can't happen" condition.
109519         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
109520         narrowed the st_size value.  Presuming the "can't happen" condition
109521         is true, that narrowing could conceivably convert an invalid st_size
109522         value into a valid one.  Instead, use a change based on Matthew
109523         Woehlke's original patch.
109525         Slight readability improvement: use an assert-like macro
109526         in place of literal "abort ()" uses.
109527         * lib/fts.c (fts_assert): Define.
109528         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
109529         Use this macro instead of a bare 'abort'.
109531 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
109533         Don't worry about using IRIX 5.3's wctype.h broken definitions;
109534         simply work around them.
109535         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
109536         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
109537         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
109538         declaring.
109539         Don't bother to define as macros, since the standard doesn't require it.
109540         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
109541         longer worry about IRIX 5.3.
109542         (HAVE_WCTYPE_CTMP_BUG): Remove.
109544 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
109546         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
109547         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
109548         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
109549         Problems reported by Georg Schwarz for IRIX 5.3.
109551         * gnulib-tool (autoconf_minversion): Take the maximum version number
109552         found, not the minimum.  Problem reported by James Youngman.
109554 2007-01-03  Karl Berry  <karl@gnu.org>
109556         * doc/error.texi: new file, explaining interaction with progname.
109557         * doc/gnulib.texi: include it.  Update copyright.
109559 2007-01-03  Simon Josefsson  <simon@josefsson.org>
109561         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
109562         AC_CANONICAL_HOST, to improve autobuild outputs.
109564 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
109565             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
109567         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
109568         sockets, server sockets, and other file descriptors.  Count errors
109569         to compute the return value.  Reorder the code a bit to be easier
109570         to follow.  Don't set event bits that were not requested (except
109571         POLLERR and POLLHUP).
109573 2007-01-01  Bruno Haible  <bruno@clisp.org>
109575         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
109577 2007-01-03  Jim Meyering  <jim@meyering.net>
109579         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
109581 2007-01-02  Bruno Haible  <bruno@clisp.org>
109583         * modules/settime (Include): Require timespec.h.
109584         * modules/nanosleep (Include): Likewise.
109586 2007-01-01  Bruno Haible  <bruno@clisp.org>
109588         * gnulib-tool (func_emit_copyright_notice): Bump year.
109589         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
109591 2007-01-01  Bruno Haible  <bruno@clisp.org>
109593         Improve support for OpenBSD.
109594         * build-aux/config.rpath (libname_spec): Export.
109595         (library_names_spec): New variable. Export.
109596         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
109597         library_names_spec from the config.rpath output. Locate shared library
109598         through the name pattern in library_names_spec.
109600 2007-01-01  Eric Blake  <ebb9@byu.net>
109602         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
109604 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
109606         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
109607         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
109608         assume the C locale, and avoid an "eval" that could cause trouble.
109609         Problem with SORT reported by Bob Proulx.
109611         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
109612         Define.  Trivial patch from Henning Nielsen Lund, originally
109613         sent to bug-grep@gnu.org today.
109615 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
109617         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
109618         struct stat.  Problem reported by Henning Nielsen Lund.
109619         * lib/acl.c: Include acl.h first, to check interface.  Don't
109620         bother to include sys/types.h and sys/stat.h again.
109622 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
109624         Import the following change from libc; problem reported by
109625         Sven Verdoolaege.
109627         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
109629         [BZ #1373]
109630         * lib/argp.h: Remove __NTH for __argp_usage inline function.
109632 2006-12-28  Jim Meyering  <jim@meyering.net>
109634         * build-aux/announce-gen: Do not assume that the package
109635         builds any of tar.gz, tar.bz2, and .xdelta files.
109636         Suggestion from Simon Josefsson.
109638 2006-12-28  Simon Josefsson  <simon@josefsson.org>
109640         * modules/announce-gen: New file.
109642 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
109644         * lib/mbchar.h: Just include <wctype.h>; the wctype module
109645         handles its gotchas now.
109646         * lib/mbswidth.c: Likewise.
109647         * lib/wcwidth.h: Likewise.
109648         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
109649         and iswcntrl; the wctype module does this stuff now.
109650         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
109651         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
109652         * modules/mbchar (Depends-on): Add wctype.
109653         * modules/mbswidth (Depends-on): Likewise.
109654         * modules/wcwidth (Depends-on): Likewise.
109656 2006-12-27  Eric Blake  <ebb9@byu.net>
109658         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
109659         module uses more than what <wctype.h> is required to provide.
109661 2006-12-26  Eric Blake  <ebb9@byu.net>
109663         * gnulib-tool (sed_extract_prog): Avoid space-tab.
109665 2006-12-26  Eric Blake  <ebb9@byu.net>
109667         * modules/absolute-header: New module.
109668         * modules/fcntl (Depends-on): Depend on it.
109669         * modules/inttypes (Depends-on): Likewise.
109670         * modules/stdint (Depends-on): Likewise.
109671         * modules/sys_stat (Depends-on): Likewise.
109672         * modules/wctype (Depends-on): Likewise.
109673         * MODULES.html.sh (Support for building libraries and
109674         executables): Document it.
109676 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
109678         * gnulib-tool (SED): Remove, undoing previous change.
109679         The problem was that it broke coreutils on Solaris, because
109680         "sed --posix" leaked into a makefile.
109681         (sed): New alias, if 'alias' and GNU sed.
109683 2006-12-24  Jim Meyering  <jim@meyering.net>
109685         Work around an fchownat bug in glibc-2.4:
109686         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
109687         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
109688         in spite of the -P option.
109689         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
109690         New macros.
109691         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
109692         * modules/openat (Files): Add lib/fchownat.c.
109693         * lib/openat.c (fchownat): Don't define here.  Move to...
109694         * lib/fchownat.c: ...this new file.
109696 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
109698         Fix bug reported by Bruno Haible in
109699         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
109700         where quotearg.c didn't compile on Mac OS X 10.2 because it
109701         lacks <wchar.h> and wint_t.
109702         * lib/wctype_.h (__wctype_wint_t): New type.
109703         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
109704         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
109705         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
109706         Arg is now of type __wctype_wint_t, not wint_t.
109707         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
109708         substitute HAVE_WINT_T.
109709         * modules/wctype (Files): Add m4/wint_t.m4.
109710         (wctype.h): Substitute HAVE_WINT_T.
109712 2006-12-23  Bruno Haible  <bruno@clisp.org>
109714         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
109716 2006-12-23  Bruno Haible  <bruno@clisp.org>
109718         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
109719         S_ISLNK.
109720         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
109721         mingw.
109723 2006-12-22  Bruno Haible  <bruno@clisp.org>
109725         * lib/copy-file.c: Include acl.h.
109726         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
109727         Close the file descriptors only after being done with copy_acl.
109728         * modules/copy-file (Depends-on): Add acl.
109730 2006-12-22  Bruno Haible  <bruno@clisp.org>
109732         * gnulib-tool (SED): New variable.
109733         Use $SED instead of sed everywhere.
109735 2006-12-22  Bruno Haible  <bruno@clisp.org>
109737         * modules/no-c++: New file.
109738         * m4/no-c++.m4: New file.
109739         * MODULES.html.sh (Support for building libraries and executables):
109740         Add no-c++.
109742 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
109744         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109745         Include <limits.h>, and use its INT_MAX to rewrite the
109746         j loop so that it does not overflow 'int'.  Problem reported by
109747         Ralf Wildenhues in
109748         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
109749         Play it safe by shifting left by 1 rather than multiplying by 2,
109750         as GCC is less likely to optimize this away when the value
109751         is signed (when it assumes overflow leads to undefined behavior).
109752         Also, don't assume time_t uses two's complement.
109754 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
109756         * MODULES.html.sh: New module wctype.
109757         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
109758         * lib/fnmatch.c: Don't bother to include <wchar.h> before
109759         <wctype.h>, since the new wctype module should fix this.
109760         * lib/quotearg.c: Include <wctype.h> unconditionally, since
109761         the wctype module should arrange for it.
109762         * lib/regex_internal.h: Likewise.
109763         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
109764         since the wctype module should handle this now.
109765         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
109766         * modules/fnmatch (Depends-on): Add wctype.
109767         * modules/quotearg (Depends-on): Likewise.
109768         * modules/regex (Depends-on): Likewise.
109770 2006-12-19  Bruno Haible  <bruno@clisp.org>
109772         * lib/strdup.h [C++]: Wrap definitions in extern "C".
109773         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
109775 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109777         * modules/savewd (Depends-on): Fix dependency on fcntl.
109779 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109781         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
109782         conforms to C99, rather than relying on the user's environment
109783         setting of STDINT_H.
109785 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109786         and Eric Blake  <ebb9@byu.net>
109788         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
109789         This is more consistent with the other defines here.
109790         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
109791         Port to z/OS.  Problem reported by Paul Gilmartin.
109792         Change local vars to use gl_ prefix rather than ac_.
109793         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
109794         with other defines.
109795         * modules/double-slash-root: New module.
109796         * modules/dirname (Files): Remove m4/double-slash-root.m4.
109797         (Depends-on): Add double-slash-root.
109798         * MODULES.html.sh (File system functions): Mention new module.
109800 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
109802         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
109803         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
109804         This is for the benefit of gzip, which doesn't do i18n.
109806 2006-12-12  Jim Meyering  <jim@meyering.net>
109808         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
109809         Reported by Andreas Schwab <schwab@suse.de>.
109811 2006-12-12  Bruno Haible  <bruno@clisp.org>
109813         Merge these changes.
109814         2006-09-05  Bruno Haible  <bruno@clisp.org>
109815         * lib/iconvme.c (iconv_string): No need to save and restore errno when
109816         iconv_alloc succeeded.
109817         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
109818         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
109819         test for " && dest " at the end - dest is always != NULL there. Call
109820         iconv with 4xNULL arguments initially, to reset the state. Call iconv
109821         with 2xNULL arguments, also to flush the state storage. Handle the
109822         IRIX iconv behaviour. Realloc the final result, to throw away unused
109823         memory.
109825 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
109827         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
109828         and fchmodat unconditionally, since glibc 2.4 has them.
109829         Problem reported by Arkadiusz Miskiewicz.
109831 2006-12-10  Bruno Haible  <bruno@clisp.org>
109833         * gnulib-tool (func_import): Show the include files only for those
109834         modules that are copied and specified.
109835         Reported by Karl Berry.
109837 2006-12-08  Jim Meyering  <jim@meyering.net>
109839         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
109840         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
109842         * build-aux/announce-gen: Add two new options, both optional:
109843         --bootstrap-tools=TOOL_LIST
109844               a comma-separated list of tools, e.g.,
109845               autoconf,automake,bison,gnulib
109846         --gnulib-snapshot-date=DATE
109847               if gnulib is in the bootstrap tool list,
109848               then report this as the snapshot date.
109849               If not specified, use the current date/time.
109850               If you specify a date here, be sure it's UTC.
109852 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109854         * tests/test-argp-2.sh: Fix test to match actual output.
109855         (func_compare): Fix sed script to be portable.
109857 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
109859         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
109860         workaround for this case.  It is not autoconfigured now; offhand
109861         it's hard to see how to autoconfigure it.
109863 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
109865         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
109866         a directory that is about to be chowned.  Such a directory's
109867         initial file permissions should permit the owner only and this
109868         should not be changed until after the chown, since the group and
109869         other bits would be incorrect if they granted permission before
109870         the chown.
109872         Fix porting problem for iswctype reported by Georg Schwarz in:
109873         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
109874         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
109875         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
109876         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
109877         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
109879 2006-12-03  Jim Meyering  <jim@meyering.net>
109881         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
109882         p->fts_statp may not yet be defined.
109883         (fts_read): Instead, set it in the caller, once p->fts_statp is
109884         sure to be defined, and corresponds to a top-level directory.
109885         This bug made du -x fail.  Here's the coreutils test case:
109886         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
109887         Reported by Mike Frysinger.
109889 2006-12-01  Jim Meyering  <jim@meyering.net>
109891         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
109892         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
109893         Reported by Simon Josefsson.
109895 2006-11-30  Jim Meyering  <jim@meyering.net>
109897         * m4/warning.m4: Use the all-permissive copyright notice
109898         recommended by RMS (rather than LGPL).
109899         * m4/vararrays.m4: Likewise.
109900         * m4/flexmember.m4: Likewise.
109902 2006-11-29  Bruno Haible  <bruno@clisp.org>
109904         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109905         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
109906         using +=.
109907         Reported by Simon Josefsson <simon@josefsson.org>.
109909 2006-11-28  James Youngman  <jay@gnu.org>
109911         * README: Advise users that they might find the bug-gnulib@gnu.org
109912         and autotools-announce@gnu.org mailing lists useful.
109914 2006-11-28  Bruno Haible  <bruno@clisp.org>
109916         * m4/ptrdiff_max.m4: Remove file.
109918 2006-11-21  Bruno Haible  <bruno@clisp.org>
109920         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
109921         _AC_COMPUTE_INT.
109922         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109923         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
109924         _AC_COMPUTE_INT.
109925         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109926         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
109927         _AC_COMPUTE_INT.
109928         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109930 2006-11-28  Jim Meyering  <jim@meyering.net>
109932         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
109933         warning from "gcc -Wshadow" about shadowing the builtin.
109935 2006-11-27  Bruno Haible  <bruno@clisp.org>
109937         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
109938         _AC_COMPUTE_INT.
109939         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109941 2006-11-27  Bruno Haible  <bruno@clisp.org>
109942             Paul Eggert  <eggert@cs.ucla.edu>
109944         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
109946 2006-11-26  Bruno Haible  <bruno@clisp.org>
109948         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109949         noinst_LTLIBRARIES.
109951 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
109952             Bruno Haible  <bruno@clisp.org>
109954         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
109955         if compiling with "gcc -ansi".
109957 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
109959         Fix some incompatibilities with gcc -ansi -pedantic.
109960         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
109961         if compiling pedantically with GCC, unless it's C99 or later.
109962         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
109963         it mishandles gcc -ansi -pedantic as well.
109964         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
109965         if gcc -pedantic.
109966         * lib/regexec.c (check_node_accept_bytes): Don't use auto
109967         initializers for struct if -pedantic, unless it's C99 or later.
109969 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
109971         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
109972         Don't close an fd more than once. Identical atimes indicate
109973         success, not failure.
109975 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
109977         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
109979 2006-11-23  Jim Meyering  <jim@meyering.net>
109981         * build-aux/announce-gen: New file.  From coreutils.
109983 2006-11-22  Jim Meyering  <jim@meyering.net>
109985         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
109986         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
109987         (fts_read): Use a temporary to narrow the overused st_size member
109988         before using it in a switch statement.  Reported by Matthew Woehlke.
109990         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
109991         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
109993 2006-11-20  Bruno Haible  <bruno@clisp.org>
109995         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
109996         changequote instead of pairs of brackets.
109997         Reported by Andreas Schwab <schwab@suse.de>.
109999 2006-11-21  Jim Meyering  <jim@meyering.net>
110001         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
110002         so as to remain compatible with older compilers.
110003         Patch from Michael Deutschmann.
110005 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110007         * MODULES.html.sh (File system functions): Add openat.
110009         * lib/openat.h (rpl_fstatat): New macro, if
110010         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
110011         (fstatat): Define to rpl_fstatat under the same conditions,
110012         unless COMPILING_FSTATAT.
110013         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
110014         seems to have the bug.
110015         * lib/fstatat.c: New file.
110016         * modules/openat (Files): Add it.
110018 2006-11-20  Bruno Haible  <bruno@clisp.org>
110020         * Makefile: New file.
110022 2006-11-20  Jim Meyering  <jim@meyering.net>
110024         The beginnings of syntax-related checks for gnulib.
110025         * lib/Makefile: New file.
110026         * lib/t-idcache: New script.  Ensure that the two halves of
110027         idcache.c stay in sync.
110029         * lib/idcache.c: Adjust comments in user- and group- portions to
110030         be more accurate, and to be consistent with one another.
110032 2006-11-20  Jim Meyering  <jim@meyering.net>
110034         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
110035         continue using the flexible array member (thus, this module performs
110036         half as many malloc calls), with the addition that...
110037         (getgroup, getuser): Consistently record a non-match via an empty
110038         "name" string, and map an empty string match to a NULL return value.
110039         * modules/idcache (Depends-on): Re-add flexmember.
110041         * lib/idcache.c (getuser): Remove all uses of the register keyword.
110042         (getuidbyname, getgroup, getgidbyname): Likewise.
110044         Use cleaner syntax: NULL rather than 0.
110045         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
110047 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110049         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
110050         It mishandled the case where the group was missing.
110051         Problem reported by Greg Schafer.
110052         * modules/idcache: Likewise.
110054 2006-11-18  Jim Meyering  <jim@meyering.net>
110056         * check-module (%exempt_header): Add exception for some
110057         conditionally-included headers.
110059         * modules/i-ring (Depends-on): Add verify.
110060         (License): Change to LGPL.
110062 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
110064         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
110065         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
110066         and inttostr.h.  Use snprintf rather than uinttostr, so that
110067         LGPLed code doesn't depend on GPLed.
110069 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
110071         * modules/inline (License): Change from GPL to LGPL.
110073 2006-11-17  Jim Meyering  <jim@meyering.net>
110075         * modules/d-type (License): Switch to LGPL.
110077 2006-11-15  Bruno Haible  <bruno@clisp.org>
110079         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
110081 2006-11-15  Eric Blake  <ebb9@byu.net>
110083         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
110084         the module dependency.
110086 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110087             Bruno Haible  <bruno@clisp.org>
110089         * gnulib-tool (func_create_testdir): Add license consistency check.
110091 2006-11-15  Eric Blake  <ebb9@byu.net>
110093         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
110094         random "(cached)" in configure output.
110096 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110098         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
110099         test for conforming inttypes.h is both announced and cached.
110101         * MODULES.html.sh (seen_modules, seen_files): New variables.
110102         (func_module): Rewrite to use a few less gnulib-tool and sed
110103         invocations.  Avoid a couple of quadratic algorithms for ...
110104         (missed_modules, missed_files): ... these, with ...
110105         (func_append, func_tmpdir): ... these new functions, from
110106         gnulib-tool.  Analogously, install traps for cleanup.
110108         * tests/test-gc.c (main): Remove unused variables.
110109         * tests/test-read-file.c: Include stdlib.h, for 'free'.
110111 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
110113         * modules/inttostr (License): Change to LGPL.
110115 2006-11-14  Eric Blake  <ebb9@byu.net>
110117         * modules/tempname (License): Change to LGPL.
110119 2006-11-14  Eric Blake  <ebb9@byu.net>
110121         * doc/functions.texi (Function Portability): *printf functions on
110122         Cygwin now understand all POSIX size specifiers.
110124 2006-11-14  Bruno Haible  <bruno@clisp.org>
110126         * modules/c-ctype (License): Change to LGPL.
110128 2006-11-12  Bruno Haible  <bruno@clisp.org>
110130         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
110131         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
110132         for GNOME libraries, for which the include files are installed in
110133         subdirectories of $prefix/include.
110135 2006-11-12  Bruno Haible  <bruno@clisp.org>
110137         * m4/lib-link.m4: Require at least autoconf-2.54.
110138         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
110139         name to underscores for the --with option.
110141 2006-11-13  Bruno Haible  <bruno@clisp.org>
110143         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
110144         the tests directory.
110145         Reported by Ralf Wildenhues.
110147 2006-11-13  Bruno Haible  <bruno@clisp.org>
110149         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
110150         (func_emit_initmacro_end): Undo the override here.
110151         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
110152         Works around the famous automake error in coreutils.
110154 2006-11-13  Eric Blake  <ebb9@byu.net>
110156         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
110157         element, not its node.
110159 2006-11-12  Bruno Haible  <bruno@clisp.org>
110161         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
110162         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
110164 2006-11-12  Bruno Haible  <bruno@clisp.org>
110166         * gnulib-tool: New option --local-symlink.
110167         (func_usage): Document it.
110168         (lsymbolic): New variable.
110169         (func_import, func_create_testdir): If --symlink was not specified,
110170         test whether --local-symlink was specified and the file comes from
110171         the local_gnulib_dir.
110173 2006-11-12  Bruno Haible  <bruno@clisp.org>
110175         * gnulib-tool (func_ln): New function.
110176         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
110178 2006-11-12  Bruno Haible  <bruno@clisp.org>
110180         Finish support for source files in subdirectories.
110181         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
110182         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
110183         AUTOMAKE_OPTIONS.
110184         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
110186 2006-11-12  Bruno Haible  <bruno@clisp.org>
110188         * gnulib-tool (func_get_automake_snippet): Synthesize also an
110189         EXTRA_lib_SOURCES augmentation.
110190         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
110192 2006-11-12  Jim Meyering  <jim@meyering.net>
110194         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
110195         file descriptors.  This also averts a failure on systems with
110196         native openat support when a traversed directory lacks "x" access.
110197         * lib/fts_.h: Include "i-ring.h"
110198         (struct FTS) [fts_fd_ring]: New member.
110199         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
110200         (FCHDIR): Add parentheses.
110201         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
110202         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
110203         When descending, rather than simply closing the previous
110204         fts_cwd_fd value, push that file descriptor onto the ring.
110205         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
110206         (fts_open): Initialize the new fd_ring member.
110207         (fts_close): Clear the ring.
110208         (fts_safe_changedir): When possible, use our new fd_ring to skip
110209         the diropen and fstat and dev/ino comparison that would normally
110210         accompany a virtual `chdir ("..")'.
110212         * modules/fts (Depends-on): Add i-ring.
110213         * modules/i-ring: New module.
110214         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
110215         * m4/i-ring.m4: New file.
110217 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110219         * gnulib-tool (func_create_testdir): Fix replacement of
110220         `build-aux' in configure.ac.  Run autotools in gltests
110221         subdirectory.
110222         (func_create_testdir, func_create_megatestdir, test): There is
110223         no need for '--force' in most autotool invocations in a new
110224         tree.  Actually fail the whole test if any of the tools, or the
110225         configure or make stages fail.
110227         Sync from Automake.
110228         * build-aux/gnupload: Revert last change.  Add pointer to upload
110229         instructions of the GNU Maintenance Instructions.
110230         Suggestion by Karl Berry.
110232 2006-11-10  Jim Meyering  <jim@meyering.net>
110234         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
110236 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
110238         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
110239         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
110240         (bind_textdomain_codeset) [! ENABLE_NLS]:
110241         Evaluate all the arguments.  That way, callers get compatible behavior
110242         if the arguments have side effects.  Also, it avoids some GCC
110243         diagnostics in some cases; Joel E. Denny reported problems when Bison
110244         was configured with --enable-gcc-warnigs.
110246 2006-11-10  Jim Meyering  <jim@meyering.net>
110248         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
110249         relevant options in CFLAGS (like -O, -fno-inline) are taken into
110250         account.
110252 2006-11-10  Jim Meyering  <jim@meyering.net>
110254         * modules/inline: New file/module.
110255         * modules/xalloc (Files): Remove m4/inline.m4.
110256         (Depends-on): Add inline, instead.
110257         * modules/oset: Likewise.
110258         * modules/list: Likewise.
110260 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
110262         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
110263         Problem reported by Matthew Woehlke.
110265 2006-11-09  Bruno Haible  <bruno@clisp.org>
110267         * lib/tempname.c (gen_tempname): Remove variant that invokes
110268         __gen_tempname.
110269         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
110270         __gen_tempname.
110272 2006-11-08  Bruno Haible  <bruno@clisp.org>
110274         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
110275         to 'yes' instead of 'cross-compiling'.
110277 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
110279         * lib/quotearg.h (quotearg_free): New decl.
110280         * lib/quotearg.c (quotearg_free): New function.
110281         (slot0, nslots, slotvec0, slotvec):
110282         Now file-scope so that quotearg_free can get at them.
110284 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110286         Sync from Automake.
110287         * build-aux/gnupload: Add missing 'gnu' to example URL.
110288         Report by Karl Berry.
110290 2006-11-08  Bruno Haible  <bruno@clisp.org>
110292         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
110293         Suggested by Paul Eggert.
110295 2006-11-08  Jim Meyering  <jim@meyering.net>
110297         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
110298         It's already included if !_LIBC.
110299         (fts_safe_changedir): Add a comment.
110301 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110303         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
110304         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
110305         Matthew Woehlke.
110307         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
110308         definitions up, to avoid colliding with change below.
110309         (static_inline) [HAVE_INLINE]: New macro.
110310         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
110311         Provide extern decls when !HAVE_INLINE.  Do not define unless
110312         static_inline is defined, either by us or by xmalloc.c.  Use
110313         static_inline rather than static inline.
110314         (XCALLOC): Optimize sizeof(T) = 1 case.
110315         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
110317 2006-11-07  Bruno Haible  <bruno@clisp.org>
110319         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
110320         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
110321         AC_C_INLINE.
110322         * modules/xalloc (Files): Add m4/inline.m4.
110324 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110326         * README: Fix typo.
110327         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
110328         (Miscellanous Notes): ...from this.
110330 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110332         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
110333         Mention that offsetof should be used instead of sizeof.
110334         From Bruno Haible.
110336 2006-11-07  Bruno Haible  <bruno@clisp.org>
110338         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
110340 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110342         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110343         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
110344         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110345         (gl_tree_add_before, gl_tree_add_after):
110346         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
110347         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
110348         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
110349         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
110350         (gl_linked_add_after, gl_linked_add_at): Likewise.
110351         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
110352         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110353         (gl_tree_add_before, gl_tree_add_after): Likewise.
110354         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
110355         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
110356         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
110358 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110360         * lib/gl_oset.h: Use C comment style, not C++ comment style.
110362 2006-11-06  Bruno Haible  <bruno@clisp.org>
110364         * m4/inline.m4: New file.
110365         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
110366         * modules/list (Files): Add m4/inline.m4.
110367         * modules/oset (Files): Likewise.
110369 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110371         * lib/idcache.c: Include <stddef.h>, for offsetof.
110372         (struct userid.name): Change from char * to a flexible array member.
110373         All uses changed.
110374         * modules/idcache (Depends-on): Add flexmember.
110376         * MODULES.html.sh (Core language properties): New module flexmember.
110377         * modules/flexmember, m4/flexmember.m4: New files.
110379         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
110380         inline functions that are identical with the old xnmalloc_inline,
110381         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
110382         that we can avoid some unnecessary integer multiplications and
110383         divisions in the common case where the element size is known at
110384         compile time.
110385         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
110386         needed.
110387         (xnboundedmalloc): Remove.
110388         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
110389         arguments, for consistency with rest of this header.
110390         (xcharalloc): Rewrite using XNMALLOC.
110391         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
110392         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
110393         versions have been moved to lib/xalloc.h and renamed to be the
110394         non-*_inline versions.
110395         (xmalloc, xrealloc): Implement without reference to the xnmalloc
110396         and xnrealloc functions, since those functions are now inline and
110397         now call us.
110398         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
110399         renaming described above.
110400         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
110401         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
110402         captures the dependency in AC_C_INLINE.
110404         New module canonicalize-lgpl, proposed by Charles Wilson in
110405         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
110406         with a few small changes afterwards.
110407         * MODULES.html.sh (File system functions): New module
110408         canonicalize-lgpl.
110409         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
110410         and canonicalize_file_name.
110411         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
110412         * modules/canonicalize-lgpl: New files.
110414 2006-11-05  Bruno Haible  <bruno@clisp.org>
110416         * gnulib-tool (func_import, func_create_testdir): Create directories
110417         also for files in subdirectories of lib/.
110419 2006-11-05  Bruno Haible  <bruno@clisp.org>
110421         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
110422         ANSI C compliant.
110424 2006-11-03  Bruno Haible  <bruno@clisp.org>
110426         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110427         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
110428         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
110429         (xnboundedmalloc): New inline function.
110430         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
110431         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
110432         xmalloc.
110433         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
110434         xmalloc.
110435         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
110436         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
110437         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
110438         xmalloc.
110439         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110440         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
110441         xmalloc.
110442         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
110443         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110444         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
110445         xmalloc.
110446         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110447         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
110448         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110449         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
110450         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
110451         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
110452         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
110454 2006-11-03  Bruno Haible  <bruno@clisp.org>
110456         * lib/c-ctype.h [C++]: Define functions without name mangling.
110457         * lib/fwriteerror.h [C++]: Likewise.
110458         * lib/gcd.h [C++]: Likewise.
110459         * lib/linebreak.h [C++]: Likewise.
110461 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
110463         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
110464         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
110465         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
110466         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110467         Check for functions and headers just once.
110468         Check for declaration of canonicalize_file_name.
110469         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
110471 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110473         * gnulib-tool (func_import): Fix typo in actioncmd.
110475 2006-11-02  Bruno Haible  <bruno@clisp.org>
110477         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
110478         newline sequence in the Makefile.am snippet as a space, like "make"
110479         does.
110480         Reported by Roger Persson <perrog@gmail.com>.
110482 2006-11-01  Bruno Haible  <bruno@clisp.org>
110484         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
110485         already declared in <string.h>.
110486         * lib/strcase.h (strncasecmp): Don't declare it if yes.
110488 2006-11-01  Bruno Haible  <bruno@clisp.org>
110490         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
110491         * lib/strcase.h: Include <string.h>.
110492         (strcasecmp): Define to rpl_strcasecmp here.
110494 2006-11-01  Bruno Haible  <bruno@clisp.org>
110496         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
110498 2006-11-01  Eric Blake  <ebb9@byu.net>
110500         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
110502         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
110504 2006-10-29  Bruno Haible  <bruno@clisp.org>
110506         Make it compile in C++ mode.
110507         * lib/full-write.c (full_rw): Add a cast.
110509 2006-11-01  Bruno Haible  <bruno@clisp.org>
110511         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
110512         be POSIX compliant.
110513         Reported by Roger Persson <perrog@gmail.com>.
110515 2006-11-01  Eric Blake  <ebb9@byu.net>
110517         * lib/getopt_.h: Fix comments.
110519 2006-10-31  Eric Blake  <ebb9@byu.net>
110521         * modules/tmpdir (Depends-on): Add sys_stat.
110522         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
110523         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
110524         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
110525         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
110526         tempname.
110528 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
110530         Avoid some C++ diagnostics reported by Bruno Haible.
110531         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
110532         xmalloc.
110533         (quotearg_alloc): Use xcharalloc rather than xmalloc.
110534         (struct slotvec): Move to top level.
110535         (quotearg_n_options): Rewrite to avoid xmalloc.
110536         * lib/xalloc.h (xcharalloc): New function.
110537         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
110538         [defined __cplusplus]: Add function template that provides result
110539         type propagation.  This part of the change is from Bruno Haible.
110541 2006-10-29  Bruno Haible  <bruno@clisp.org>
110543         Make it compile in C++ mode.
110544         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
110545         * lib/strnlen1.c (strnlen1): Cast memchr result.
110546         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
110547         * lib/clean-temp.c (string_equals, string_hash): Add casts.
110548         (create_temp_dir): Rename local variable 'template'.
110549         (compile_csharp_using_sscli): Add cast.
110550         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
110551         * lib/findprog.c (find_in_path): Likewise.
110552         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
110553         * lib/wait-process.c (register_slave_subprocess): Likewise.
110555 2006-10-22  Bruno Haible  <bruno@clisp.org>
110557         * modules/tsearch: New file.
110558         * lib/tsearch.h: New file.
110559         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
110560         * m4/tsearch.m4: New file.
110561         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
110563 2006-10-29  Eric Blake  <ebb9@byu.net>
110565         * lib/arcfour.c: Assume config.h.
110566         * lib/arctwo.c: Likewise.
110567         * lib/base64.c: Likewise.
110568         * lib/check-version.c: Likewise.
110569         * lib/crc.c: Likewise.
110570         * lib/des.c: Likewise.
110571         * lib/gc-gnulib.c: Likewise.
110572         * lib/gc-libgcrypt.c: Likewise.
110573         * lib/gc-pbkdf2-sha1.c: Likewise.
110574         * lib/getaddrinfo.c: Likewise.
110575         * lib/getdelim.c: Likewise.
110576         * lib/getline.c: Likewise.
110577         * lib/hmac-md5.c: Likewise.
110578         * lib/hmac-sha1.c: Likewise.
110579         * lib/iconvme.c: Likewise.
110580         * lib/md2.c: Likewise.
110581         * lib/md4.c: Likewise.
110582         * lib/memxor.c: Likewise.
110583         * lib/read-file.c: Likewise.
110584         * lib/readline.c: Likewise.
110585         * lib/rijndael-alg-fst.c: Likewise.
110586         * lib/rijndael-api-fst.c: Likewise.
110587         * lib/xgetdomainname.c: Likewise.
110589 2006-10-28  Eric Blake  <ebb9@byu.net>
110591         * lib/xstrndup.c: Assume config.h.
110593 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
110595         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
110596         stat-macros.h is now for our own macros, whereas stat_h is for
110597         macros in the <sys/stat.h> name space.
110598         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
110599         (STAT_MACROS_H): Remove.
110600         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
110601         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
110602         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
110603         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
110604         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
110605         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
110606         Move these macros to ...
110607         * lib/stat_.h: here.  Don't include stat-macros.h.
110608         * lib/canonicalize.c: Don't include stat-macros.h.
110609         * lib/chown.c: Likewise.
110610         * lib/euidaccess.c: Likewise.
110611         * lib/file-type.c: Likewise.
110612         * lib/filemode.c: Likewise.
110613         * lib/glob.c: Likewise.
110614         * lib/isapipe.c: Likewise.
110615         * lib/lchown.c: Likewise.
110616         * lib/lstat.c: Likewise.
110617         * lib/mkdir-p.c: Likewise.
110618         * lib/rmdir.c: Likewise.
110619         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
110620         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
110621         unless mkdir isn't declared, to speed up 'configure'.
110622         Always create sys/stat.h, since it's unlikely any real sys/stat.h
110623         would define all the S_* symbols.
110624         * modules/canonicalize (Depends-on):
110625         Depend on sys_stat, not stat-macros.
110626         * modules/chown: Likewise.
110627         * modules/euidaccess: Likewise.
110628         * modules/filemode: Likewise.
110629         * modules/file-type: Likewise.
110630         * modules/glob: Likewise.
110631         * modules/isapipe: Likewise.
110632         * modules/lchown: Likewise.
110633         * modules/lstat: Likewise.
110634         * modules/mkancesdirs: Likewise.
110635         * modules/rmdir: Likewise.
110636         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
110637         * modules/modechange: Likewise.
110638         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
110639         (configure.ac): Remove gl_STAT_MACROS.
110640         * modules/sys_stat (Depends-on): Remove stat-macros.
110642 2006-10-27  Bruno Haible  <bruno@clisp.org>
110644         * m4/signed.m4: Remove file.
110645         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
110646         invocation.
110647         * modules/vasnprintf (Files): Remove m4/signed.m4.
110649 2006-10-27  Bruno Haible  <bruno@clisp.org>
110651         Update to GNU gettext 0.16.
110652         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
110653         m4/inttypes-h.m4, m4/signed.m4.
110654         * m4/gettext.m4: Update to GNU gettext 0.16.
110655         * m4/intl.m4: New file, from GNU gettext.
110656         * m4/intldir.m4: New file, from GNU gettext.
110657         * config/srclist.txt: Update
110659 2006-10-27  Eric Blake  <ebb9@byu.net>
110661         * MODULES.html.sh: Document tempname.
110662         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
110663         dependencies.
110664         (Files): Move lib/tempname.c...
110665         * modules/tempname: ...to this new module.
110666         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
110667         (gl_PREREQ_TEMPNAME): Move...
110668         * m4/tempname.m4: ...to this new file.
110669         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
110670         * modules/sys_stat (Depends-on): Add stat-macros.
110671         * lib/stat_.h (includes): Pick up stat macros.
110672         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
110673         if stat macros are broken.
110674         * lib/tempname.c (includes): No need to include "stat-macros.h".
110675         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
110676         (direxists, __path_search) [!_LIBC]: Don't compile these in
110677         gnulib; the tmpdir module covers that.
110678         * lib/tempname.h: New file.
110680 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
110682         * COPYING: Explain how gnulib-tool converts licence headers.
110683         Almost all wording by Eric Blake.
110685 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
110687         * lib/mbchar.h (is_basic_table): Make read-only.
110688         * lib/mbchar.c (is_basic_table): Likewise.
110689         Reported by John Darrington.
110691 2006-10-25  Bruno Haible  <bruno@clisp.org>
110693         * lib/progname.h (set_program_name): Undefine before defining.
110695 2006-10-25  Bruno Haible  <bruno@clisp.org>
110697         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
110698         false for non-gcc C++ compilers.
110699         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
110701 2006-10-24  Bruno Haible  <bruno@clisp.org>
110703         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
110704         iconv implementations like Irix iconv.
110706 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110708         * modules/vararrays: New file.
110709         * m4/vararrays.m4: New file, taken from diffutils.
110710         * MODULES.html.sh: New module vararrays.
110712 2006-10-24  Karl Berry  <karl@gnu.org>
110714         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
110715         Don't call GNU Unix.
110717 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110719         * users.txt: Add Libtool.
110721         Sync from Libtool:
110723         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110725         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
110726         to gnulib's policy of including config.h unconditionally.
110728 2006-10-24  Bruno Haible  <bruno@clisp.org>
110730         * modules/wcwidth (Files): Add m4/wint_t.m4.
110731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
110732         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
110734 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110736         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
110737         to pacify GCC with some -W flags enabled.  Problem reported by
110738         Bruno Haible.
110740 2006-10-24  Jim Meyering  <jim@meyering.net>
110742         * MODULES.html.sh: Remove uinttostr.  It's not a module.
110743         Reported by Karl Berry.
110745 2006-10-23  Bruno Haible  <bruno@clisp.org>
110747         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
110749 2006-10-24  Bruno Haible  <bruno@clisp.org>
110751         * lib/gl_list.h: Use C comment style, not C++ comment style.
110753 2006-10-23  Eric Blake  <ebb9@byu.net>
110755         * lib/getaddrinfo.c (includes): Add missing include.
110757 2006-10-23  Bruno Haible  <bruno@clisp.org>
110758             Paul Eggert  <eggert@cs.ucla.edu>
110760         Ability to rename obstack_free.
110761         * lib/obstack.h (__obstack_free): New macro. Declare instead of
110762         obstack_free.
110763         (obstack_free): Invoke the __obstack_free macro.
110764         * lib/obstack.c (obstack_free): Use __obstack_free macro.
110766 2006-10-23  Bruno Haible  <bruno@clisp.org>
110767             Paul Eggert  <eggert@cs.ucla.edu>
110769         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
110770         __argc, __argv from the declaration. (They are defined as macros on
110771         mingw.)
110773 2006-10-22  Bruno Haible  <bruno@clisp.org>
110775         * doc/gnulib-intro.texi: New file.
110776         * doc/gnulib.texi: Include it.
110778 2006-10-21  Bruno Haible  <bruno@clisp.org>
110780         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
110781         "Introduction", "Miscellanous Notes", "Particular Modules".
110783 2006-10-21  Bruno Haible  <bruno@clisp.org>
110785         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110786         Change mostlyclean-local rule to avoid sh syntax error from bash
110787         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
110789 2006-10-23  Jim Meyering  <jim@meyering.net>
110791         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
110792         in place of snprintf.
110794         * modules/inttostr (Files): Add lib/uinttostr.c.
110795         * lib/uinttostr.c (inttostr): New file/function.
110796         * lib/inttostr.h (uinttostr): Declare.
110797         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
110798         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
110799         Add uinttostr.
110800         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
110802 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
110804         * lib/canonicalize.c (ELOOP): Define if not already defined.
110805         Problem reported by Bruno Haible in
110806         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
110808 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
110810         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
110811         Problem reported by Perry Smith and Ville Laurikari.
110813         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
110814         uses.
110816 2006-10-19  Bruno Haible  <bruno@clisp.org>
110818         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
110819         for mingw.
110821 2006-10-19  Bruno Haible  <bruno@clisp.org>
110823         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
110824         Needed for mingw.
110826 2006-10-19  Bruno Haible  <bruno@clisp.org>
110828         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
110830 2006-10-19  Bruno Haible  <bruno@clisp.org>
110832         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
110833         it.
110835 2006-10-19  Bruno Haible  <bruno@clisp.org>
110837         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
110838         invocation.
110840 2006-10-19  Bruno Haible  <bruno@clisp.org>
110842         * gnulib-tool (func_create_testdir): Don't include ftruncate and
110843         mountlist by default.
110845 2006-10-16  Bruno Haible  <bruno@clisp.org>
110847         * lib/c-strstr.c: Include c-strstr.h.
110849 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110851         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
110852         in a slash.
110854 2006-10-18  Bruno Haible  <bruno@clisp.org>
110856         * lib/lock.h [C++]: Wrap definitions in extern "C".
110858 2006-10-18  Bruno Haible  <bruno@clisp.org>
110860         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
110861         gl_LIBOBJS list.
110863 2006-10-18  Bruno Haible  <bruno@clisp.org>
110865         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
110867 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
110869         * lib/xstrtol.h: Include gettext.h.
110870         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
110871         Problem reported by Eric Blake.
110872         * modules/xstrtol (Depends-on): Add gettext-h.
110874 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
110876         * lib/strftime.c (advance): New macro.
110877         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
110878         incomplete type, so you can't add 0 to it.  Problem and patch
110879         reported by Eelco Dolstra for dietlibc.
110881 2006-10-18  Jim Meyering  <jim@meyering.net>
110883         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
110884         type for a local, and rename it: s/up/user_proc/.
110886 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
110888         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
110889         READ_UTMP_USER_PROCESS.
110890         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
110892 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
110894         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
110895         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
110897 2006-10-17  Eric Blake  <ebb9@byu.net>
110899         * lib/sigprocmask.c (sigprocmask): Fix typo.
110901         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
110903         * modules/clean-temp (Makefile.am): Don't add to make output...
110904         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
110905         config.h.
110907 2006-10-17  Bruno Haible  <bruno@clisp.org>
110909         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
110910         differently if DEFAULT_TEXT_DOMAIN is set.
110912 2006-10-16  Bruno Haible  <bruno@clisp.org>
110914         * lib/clean-temp.c: Include fwriteerror.h.
110916 2006-10-16  Bruno Haible  <bruno@clisp.org>
110918         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
110920 2006-10-16  Bruno Haible  <bruno@clisp.org>
110922         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
110923         * lib/sigprocmask.h: Include <sys/types.h>.
110924         (sigset_t): Use the system's definition if present.
110926 2006-10-17  Eric Blake  <ebb9@byu.net>
110928         * lib/xvasprintf.c (includes): Assume config.h.
110929         * lib/xasprintf.c (includes): Likewise.
110931 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
110933         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
110934         at least as wide as intmax_t.
110936 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
110938         (Imported from Automake.)
110939         * build-aux/gnupload: Update to version 1.1 of directive file.
110941 2006-10-16  Eric Blake  <ebb9@byu.net>
110943         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
110944         match Automake 1.10a.
110946 2006-10-14  Bruno Haible  <bruno@clisp.org>
110948         * modules/sigprocmask: New file.
110949         * lib/sigprocmask.h: New file.
110950         * lib/sigprocmask.c: New file.
110951         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
110952         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
110953         request sigprocmask.o.
110954         (gl_PREREQ_SIGPROCMASK): New macro.
110955         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
110956         (Depends-on): Add sigprocmask.
110957         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
110958         gt_SIGNALBLOCKING. Test for 'raise' only once.
110959         * lib/fatal-signal.c: Include sigprocmask.h.
110960         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
110961         unblock_fatal_signals): Define always.
110962         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
110963         sigprocmask.
110965 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
110967         Sync from Automake.
110968         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
110969         which incorrectly sets the mode of an existing destination
110970         directory.  In some cases the unpatched install-sh could do the
110971         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
110972         system.  We hope this is rare in practice, but it's clearly worth
110973         fixing.  Problem reported by Alex Unleashed in
110974         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
110975         Also, don't bother to check for -m bugs unless we're using -m;
110976         suggested by Stepan Kasal.
110978 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110980         Sync from Automake.
110981         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
110982         `-c' flag, so they appear at the same position as in %FASTDEP%
110983         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
110984         which ignores unknown options only after the first non-option.
110985         Bug report against M4 by Nelson H. F. Beebe.
110987 2006-10-13  Jim Meyering  <jim@meyering.net>
110989         Fix a bug in yesterday's change.
110990         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
110991         p->fts_statp->st_dev would be used uninitialized.
110992         Ensures that we always call fts_stat on the very first entry.
110993         Miklos Szeredi reported that find -xdev stopped working.
110995 2006-10-12  Bruno Haible  <bruno@clisp.org>
110997         * gnulib-tool (func_get_automake_snippet): Append an automatically
110998         computed EXTRA_DIST augmentation.
110999         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
111000         * modules/alloca-opt (Makefile.am): Likewise.
111001         * modules/allocsa (Makefile.am): Likewise.
111002         * modules/arcfour (Makefile.am): Likewise.
111003         * modules/arctwo (Makefile.am): Likewise.
111004         * modules/argmatch (Makefile.am): Likewise.
111005         * modules/argz (Makefile.am): Likewise.
111006         * modules/atexit (Makefile.am): Likewise.
111007         * modules/backupfile (Makefile.am): Likewise.
111008         * modules/byteswap (Makefile.am): Likewise.
111009         * modules/c-strtod (Makefile.am): Likewise.
111010         * modules/c-strtold (Makefile.am): Likewise.
111011         * modules/calloc (Makefile.am): Likewise.
111012         * modules/canon-host (Makefile.am): Likewise.
111013         * modules/canonicalize (Makefile.am): Likewise.
111014         * modules/chdir-long (Makefile.am): Likewise.
111015         * modules/chdir-safer (Makefile.am): Likewise.
111016         * modules/check-version (Makefile.am): Likewise.
111017         * modules/chown (Makefile.am): Likewise.
111018         * modules/cloexec (Makefile.am): Likewise.
111019         * modules/close-stream (Makefile.am): Likewise.
111020         * modules/closeout (Makefile.am): Likewise.
111021         * modules/crc (Makefile.am): Likewise.
111022         * modules/csharpexec (Makefile.am): Likewise.
111023         * modules/cycle-check (Makefile.am): Likewise.
111024         * modules/des (Makefile.am): Likewise.
111025         * modules/dev-ino (Makefile.am): Likewise.
111026         * modules/dirfd (Makefile.am): Likewise.
111027         * modules/dirname (Makefile.am): Likewise.
111028         * modules/dup2 (Makefile.am): Likewise.
111029         * modules/eealloc (Makefile.am): Likewise.
111030         * modules/error (Makefile.am): Likewise.
111031         * modules/euidaccess (Makefile.am): Likewise.
111032         * modules/exclude (Makefile.am): Likewise.
111033         * modules/exitfail (Makefile.am): Likewise.
111034         * modules/fcntl-safer (Makefile.am): Likewise.
111035         * modules/fcntl (Makefile.am): Likewise.
111036         * modules/file-type (Makefile.am): Likewise.
111037         * modules/fileblocks (Makefile.am): Likewise.
111038         * modules/filemode (Makefile.am): Likewise.
111039         * modules/filenamecat (Makefile.am): Likewise.
111040         * modules/fnmatch (Makefile.am): Likewise.
111041         * modules/fopen-safer (Makefile.am): Likewise.
111042         * modules/fpending (Makefile.am): Likewise.
111043         * modules/fprintftime (Makefile.am): Likewise.
111044         * modules/free (Makefile.am): Likewise.
111045         * modules/fsusage (Makefile.am): Likewise.
111046         * modules/ftruncate (Makefile.am): Likewise.
111047         * modules/fts (Makefile.am): Likewise.
111048         * modules/gc-arcfour (Makefile.am): Likewise.
111049         * modules/gc-des (Makefile.am): Likewise.
111050         * modules/gc-hmac-md5 (Makefile.am): Likewise.
111051         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
111052         * modules/gc-md4 (Makefile.am): Likewise.
111053         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
111054         * modules/gc-sha1 (Makefile.am): Likewise.
111055         * modules/gc (Makefile.am): Likewise.
111056         * modules/getaddrinfo (Makefile.am): Likewise.
111057         * modules/getcwd (Makefile.am): Likewise.
111058         * modules/getdelim (Makefile.am): Likewise.
111059         * modules/getdomainname (Makefile.am): Likewise.
111060         * modules/getgroups (Makefile.am): Likewise.
111061         * modules/gethostname (Makefile.am): Likewise.
111062         * modules/gethrxtime (Makefile.am): Likewise.
111063         * modules/getline (Makefile.am): Likewise.
111064         * modules/getloadavg (Makefile.am): Likewise.
111065         * modules/getlogin_r (Makefile.am): Likewise.
111066         * modules/getndelim2 (Makefile.am): Likewise.
111067         * modules/getopt (Makefile.am): Likewise.
111068         * modules/getpagesize (Makefile.am): Likewise.
111069         * modules/getpass-gnu (Makefile.am): Likewise.
111070         * modules/getpass (Makefile.am): Likewise.
111071         * modules/getsubopt (Makefile.am): Likewise.
111072         * modules/gettime (Makefile.am): Likewise.
111073         * modules/gettimeofday (Makefile.am): Likewise.
111074         * modules/getugroups (Makefile.am): Likewise.
111075         * modules/getusershell (Makefile.am): Likewise.
111076         * modules/glob (Makefile.am): Likewise.
111077         * modules/group-member (Makefile.am): Likewise.
111078         * modules/hard-locale (Makefile.am): Likewise.
111079         * modules/hash (Makefile.am): Likewise.
111080         * modules/hmac-md5 (Makefile.am): Likewise.
111081         * modules/hmac-sha1 (Makefile.am): Likewise.
111082         * modules/human (Makefile.am): Likewise.
111083         * modules/idcache (Makefile.am): Likewise.
111084         * modules/imaxabs (Makefile.am): Likewise.
111085         * modules/imaxdiv (Makefile.am): Likewise.
111086         * modules/inet_ntop (Makefile.am): Likewise.
111087         * modules/inet_pton (Makefile.am): Likewise.
111088         * modules/intprops (Makefile.am): Likewise.
111089         * modules/inttostr (Makefile.am): Likewise.
111090         * modules/inttypes (Makefile.am): Likewise.
111091         * modules/isapipe (Makefile.am): Likewise.
111092         * modules/javaversion (Makefile.am): Likewise.
111093         * modules/lchmod (Makefile.am): Likewise.
111094         * modules/lchown (Makefile.am): Likewise.
111095         * modules/localcharset (Makefile.am): Likewise.
111096         * modules/long-options (Makefile.am): Likewise.
111097         * modules/lstat (Makefile.am): Likewise.
111098         * modules/malloc (Makefile.am): Likewise.
111099         * modules/mathl (Makefile.am): Likewise.
111100         * modules/mbchar (Makefile.am): Likewise.
111101         * modules/md2 (Makefile.am): Likewise.
111102         * modules/md4 (Makefile.am): Likewise.
111103         * modules/md5 (Makefile.am): Likewise.
111104         * modules/memcasecmp (Makefile.am): Likewise.
111105         * modules/memchr (Makefile.am): Likewise.
111106         * modules/memcmp (Makefile.am): Likewise.
111107         * modules/memcoll (Makefile.am): Likewise.
111108         * modules/memcpy (Makefile.am): Likewise.
111109         * modules/memmem (Makefile.am): Likewise.
111110         * modules/memmove (Makefile.am): Likewise.
111111         * modules/mempcpy (Makefile.am): Likewise.
111112         * modules/memrchr (Makefile.am): Likewise.
111113         * modules/memset (Makefile.am): Likewise.
111114         * modules/memxor (Makefile.am): Likewise.
111115         * modules/mkancesdirs (Makefile.am): Likewise.
111116         * modules/mkdir-p (Makefile.am): Likewise.
111117         * modules/mkdir (Makefile.am): Likewise.
111118         * modules/mkdtemp (Makefile.am): Likewise.
111119         * modules/mkstemp (Makefile.am): Likewise.
111120         * modules/mktime (Makefile.am): Likewise.
111121         * modules/modechange (Makefile.am): Likewise.
111122         * modules/mountlist (Makefile.am): Likewise.
111123         * modules/nanosleep (Makefile.am): Likewise.
111124         * modules/obstack (Makefile.am): Likewise.
111125         * modules/openat (Makefile.am): Likewise.
111126         * modules/pagealign_alloc (Makefile.am): Likewise.
111127         * modules/pathmax (Makefile.am): Likewise.
111128         * modules/physmem (Makefile.am): Likewise.
111129         * modules/poll (Makefile.am): Likewise.
111130         * modules/posixtm (Makefile.am): Likewise.
111131         * modules/posixver (Makefile.am): Likewise.
111132         * modules/putenv (Makefile.am): Likewise.
111133         * modules/quote (Makefile.am): Likewise.
111134         * modules/quotearg (Makefile.am): Likewise.
111135         * modules/raise (Makefile.am): Likewise.
111136         * modules/read-file (Makefile.am): Likewise.
111137         * modules/readline (Makefile.am): Likewise.
111138         * modules/readlink (Makefile.am): Likewise.
111139         * modules/readtokens (Makefile.am): Likewise.
111140         * modules/readutmp (Makefile.am): Likewise.
111141         * modules/realloc (Makefile.am): Likewise.
111142         * modules/regex (Makefile.am): Likewise.
111143         * modules/rename-dest-slash (Makefile.am): Likewise.
111144         * modules/rename (Makefile.am): Likewise.
111145         * modules/rijndael (Makefile.am): Likewise.
111146         * modules/rmdir (Makefile.am): Likewise.
111147         * modules/rpmatch (Makefile.am): Likewise.
111148         * modules/safe-read (Makefile.am): Likewise.
111149         * modules/safe-write (Makefile.am): Likewise.
111150         * modules/same-inode (Makefile.am): Likewise.
111151         * modules/same (Makefile.am): Likewise.
111152         * modules/save-cwd (Makefile.am): Likewise.
111153         * modules/savedir (Makefile.am): Likewise.
111154         * modules/setenv (Makefile.am): Likewise.
111155         * modules/settime (Makefile.am): Likewise.
111156         * modules/sha1 (Makefile.am): Likewise.
111157         * modules/sig2str (Makefile.am): Likewise.
111158         * modules/snprintf (Makefile.am): Likewise.
111159         * modules/stat-macros (Makefile.am): Likewise.
111160         * modules/stat-time (Makefile.am): Likewise.
111161         * modules/stdbool (Makefile.am): Likewise.
111162         * modules/stdint (Makefile.am): Likewise.
111163         * modules/stdlib-safer (Makefile.am): Likewise.
111164         * modules/stpcpy (Makefile.am): Likewise.
111165         * modules/stpncpy (Makefile.am): Likewise.
111166         * modules/strcase (Makefile.am): Likewise.
111167         * modules/strcasestr (Makefile.am): Likewise.
111168         * modules/strchrnul (Makefile.am): Likewise.
111169         * modules/strcspn (Makefile.am): Likewise.
111170         * modules/strdup (Makefile.am): Likewise.
111171         * modules/strerror (Makefile.am): Likewise.
111172         * modules/strftime (Makefile.am): Likewise.
111173         * modules/strndup (Makefile.am): Likewise.
111174         * modules/strnlen (Makefile.am): Likewise.
111175         * modules/strpbrk (Makefile.am): Likewise.
111176         * modules/strsep (Makefile.am): Likewise.
111177         * modules/strstr (Makefile.am): Likewise.
111178         * modules/strtod (Makefile.am): Likewise.
111179         * modules/strtoimax (Makefile.am): Likewise.
111180         * modules/strtok_r (Makefile.am): Likewise.
111181         * modules/strtol (Makefile.am): Likewise.
111182         * modules/strtoll (Makefile.am): Likewise.
111183         * modules/strtoul (Makefile.am): Likewise.
111184         * modules/strtoull (Makefile.am): Likewise.
111185         * modules/strtoumax (Makefile.am): Likewise.
111186         * modules/strverscmp (Makefile.am): Likewise.
111187         * modules/sys_socket (Makefile.am): Likewise.
111188         * modules/sys_stat (Makefile.am): Likewise.
111189         * modules/sysexits (Makefile.am): Likewise.
111190         * modules/time_r (Makefile.am): Likewise.
111191         * modules/timegm (Makefile.am): Likewise.
111192         * modules/timespec (Makefile.am): Likewise.
111193         * modules/tmpfile-safer (Makefile.am): Likewise.
111194         * modules/trim (Makefile.am): Likewise.
111195         * modules/unistd-safer (Makefile.am): Likewise.
111196         * modules/unlinkdir (Makefile.am): Likewise.
111197         * modules/unlocked-io (Makefile.am): Likewise.
111198         * modules/userspec (Makefile.am): Likewise.
111199         * modules/utime (Makefile.am): Likewise.
111200         * modules/utimecmp (Makefile.am): Likewise.
111201         * modules/utimens (Makefile.am): Likewise.
111202         * modules/vasnprintf (Makefile.am): Likewise.
111203         * modules/vasprintf (Makefile.am): Likewise.
111204         * modules/vsnprintf (Makefile.am): Likewise.
111205         * modules/xalloc (Makefile.am): Likewise.
111206         * modules/xgetcwd (Makefile.am): Likewise.
111207         * modules/xnanosleep (Makefile.am): Likewise.
111208         * modules/xreadlink (Makefile.am): Likewise.
111209         * modules/xstrtod (Makefile.am): Likewise.
111210         * modules/xstrtol (Makefile.am): Likewise.
111211         * modules/xstrtold (Makefile.am): Likewise.
111212         * modules/yesno (Makefile.am): Likewise.
111213         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
111215 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111217         * modules/error (Makefile.am): Distribute files through
111218         EXTRA_DIST, not lib_SOURCES.
111220 2006-10-12  Eric Blake  <ebb9@byu.net>
111222         * modules/error (Makefile.am): Distribute files in /lib.
111223         * modules/obstack (Makefile.am): Likewise.
111225 2006-10-12  Bruno Haible  <bruno@clisp.org>
111227         * modules/acl (Makefile.am): Distribute all files in lib/ through
111228         EXTRA_DIST.
111229         * modules/arcfour (Makefile.am): Likewise.
111230         * modules/arctwo (Makefile.am): Likewise.
111231         * modules/argmatch (Makefile.am): Likewise.
111232         * modules/argz (Makefile.am): Likewise.
111233         * modules/atexit (Makefile.am): Likewise.
111234         * modules/backupfile (Makefile.am): Likewise.
111235         * modules/c-strtod (Makefile.am): Likewise.
111236         * modules/c-strtold (Makefile.am): Likewise.
111237         * modules/calloc (Makefile.am): Likewise.
111238         * modules/canon-host (Makefile.am): Likewise.
111239         * modules/canonicalize (Makefile.am): Likewise.
111240         * modules/chdir-long (Makefile.am): Likewise.
111241         * modules/chdir-safer (Makefile.am): Likewise.
111242         * modules/check-version (Makefile.am): Likewise.
111243         * modules/chown (Makefile.am): Likewise.
111244         * modules/cloexec (Makefile.am): Likewise.
111245         * modules/close-stream (Makefile.am): Likewise.
111246         * modules/closeout (Makefile.am): Likewise.
111247         * modules/crc (Makefile.am): Likewise.
111248         * modules/cycle-check (Makefile.am): Likewise.
111249         * modules/des (Makefile.am): Likewise.
111250         * modules/dirfd (Makefile.am): Likewise.
111251         * modules/dirname (Makefile.am): Likewise.
111252         * modules/dup2 (Makefile.am): Likewise.
111253         * modules/euidaccess (Makefile.am): Likewise.
111254         * modules/exclude (Makefile.am): Likewise.
111255         * modules/exitfail (Makefile.am): Likewise.
111256         * modules/fcntl-safer (Makefile.am): Likewise.
111257         * modules/file-type (Makefile.am): Likewise.
111258         * modules/fileblocks (Makefile.am): Likewise.
111259         * modules/filemode (Makefile.am): Likewise.
111260         * modules/filenamecat (Makefile.am): Likewise.
111261         * modules/fnmatch (Makefile.am): Likewise.
111262         * modules/fopen-safer (Makefile.am): Likewise.
111263         * modules/fpending (Makefile.am): Likewise.
111264         * modules/fprintftime (Makefile.am): Likewise.
111265         * modules/free (Makefile.am): Likewise.
111266         * modules/fsusage (Makefile.am): Likewise.
111267         * modules/ftruncate (Makefile.am): Likewise.
111268         * modules/fts (Makefile.am): Likewise.
111269         * modules/gc (Makefile.am): Likewise.
111270         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
111271         * modules/getaddrinfo (Makefile.am): Likewise.
111272         * modules/getcwd (Makefile.am): Likewise.
111273         * modules/getdelim (Makefile.am): Likewise.
111274         * modules/getdomainname (Makefile.am): Likewise.
111275         * modules/getgroups (Makefile.am): Likewise.
111276         * modules/gethostname (Makefile.am): Likewise.
111277         * modules/gethrxtime (Makefile.am): Likewise.
111278         * modules/getline (Makefile.am): Likewise.
111279         * modules/getloadavg (Makefile.am): Likewise.
111280         * modules/getlogin_r (Makefile.am): Likewise.
111281         * modules/getopt (Makefile.am): Likewise.
111282         * modules/getpass (Makefile.am): Likewise.
111283         * modules/getpass-gnu (Makefile.am): Likewise.
111284         * modules/getsubopt (Makefile.am): Likewise.
111285         * modules/gettime (Makefile.am): Likewise.
111286         * modules/gettimeofday (Makefile.am): Likewise.
111287         * modules/getugroups (Makefile.am): Likewise.
111288         * modules/getusershell (Makefile.am): Likewise.
111289         * modules/glob (Makefile.am): Likewise.
111290         * modules/group-member (Makefile.am): Likewise.
111291         * modules/hard-locale (Makefile.am): Likewise.
111292         * modules/hash (Makefile.am): Likewise.
111293         * modules/hmac-md5 (Makefile.am): Likewise.
111294         * modules/hmac-sha1 (Makefile.am): Likewise.
111295         * modules/human (Makefile.am): Likewise.
111296         * modules/idcache (Makefile.am): Likewise.
111297         * modules/imaxabs (Makefile.am): Likewise.
111298         * modules/imaxdiv (Makefile.am): Likewise.
111299         * modules/inet_ntop (Makefile.am): Likewise.
111300         * modules/inet_pton (Makefile.am): Likewise.
111301         * modules/inttostr (Makefile.am): Likewise.
111302         * modules/isapipe (Makefile.am): Likewise.
111303         * modules/lchown (Makefile.am): Likewise.
111304         * modules/long-options (Makefile.am): Likewise.
111305         * modules/lstat (Makefile.am): Likewise.
111306         * modules/malloc (Makefile.am): Likewise.
111307         * modules/mathl (Makefile.am): Likewise.
111308         * modules/mbchar (Makefile.am): Likewise.
111309         * modules/md2 (Makefile.am): Likewise.
111310         * modules/md4 (Makefile.am): Likewise.
111311         * modules/md5 (Makefile.am): Likewise.
111312         * modules/memcasecmp (Makefile.am): Likewise.
111313         * modules/memchr (Makefile.am): Likewise.
111314         * modules/memcmp (Makefile.am): Likewise.
111315         * modules/memcoll (Makefile.am): Likewise.
111316         * modules/memcpy (Makefile.am): Likewise.
111317         * modules/memmem (Makefile.am): Likewise.
111318         * modules/memmove (Makefile.am): Likewise.
111319         * modules/mempcpy (Makefile.am): Likewise.
111320         * modules/memrchr (Makefile.am): Likewise.
111321         * modules/memset (Makefile.am): Likewise.
111322         * modules/memxor (Makefile.am): Likewise.
111323         * modules/mkancesdirs (Makefile.am): Likewise.
111324         * modules/mkdir (Makefile.am): Likewise.
111325         * modules/mkdir-p (Makefile.am): Likewise.
111326         * modules/mkdtemp (Makefile.am): Likewise.
111327         * modules/mkstemp (Makefile.am): Likewise.
111328         * modules/mktime (Makefile.am): Likewise.
111329         * modules/modechange (Makefile.am): Likewise.
111330         * modules/mountlist (Makefile.am): Likewise.
111331         * modules/nanosleep (Makefile.am): Likewise.
111332         * modules/openat (Makefile.am): Likewise.
111333         * modules/pagealign_alloc (Makefile.am): Likewise.
111334         * modules/physmem (Makefile.am): Likewise.
111335         * modules/poll (Makefile.am): Likewise.
111336         * modules/posixtm (Makefile.am): Likewise.
111337         * modules/posixver (Makefile.am): Likewise.
111338         * modules/putenv (Makefile.am): Likewise.
111339         * modules/quote (Makefile.am): Likewise.
111340         * modules/quotearg (Makefile.am): Likewise.
111341         * modules/raise (Makefile.am): Likewise.
111342         * modules/read-file (Makefile.am): Likewise.
111343         * modules/readline (Makefile.am): Likewise.
111344         * modules/readlink (Makefile.am): Likewise.
111345         * modules/readtokens (Makefile.am): Likewise.
111346         * modules/readutmp (Makefile.am): Likewise.
111347         * modules/realloc (Makefile.am): Likewise.
111348         * modules/regex (Makefile.am): Likewise.
111349         * modules/rename (Makefile.am): Likewise.
111350         * modules/rename-dest-slash (Makefile.am): Likewise.
111351         * modules/rijndael (Makefile.am): Likewise.
111352         * modules/rmdir (Makefile.am): Likewise.
111353         * modules/rpmatch (Makefile.am): Likewise.
111354         * modules/safe-read (Makefile.am): Likewise.
111355         * modules/safe-write (Makefile.am): Likewise.
111356         * modules/same (Makefile.am): Likewise.
111357         * modules/save-cwd (Makefile.am): Likewise.
111358         * modules/savedir (Makefile.am): Likewise.
111359         * modules/setenv (Makefile.am): Likewise.
111360         * modules/settime (Makefile.am): Likewise.
111361         * modules/sha1 (Makefile.am): Likewise.
111362         * modules/sig2str (Makefile.am): Likewise.
111363         * modules/snprintf (Makefile.am): Likewise.
111364         * modules/stdlib-safer (Makefile.am): Likewise.
111365         * modules/stpcpy (Makefile.am): Likewise.
111366         * modules/stpncpy (Makefile.am): Likewise.
111367         * modules/strcase (Makefile.am): Likewise.
111368         * modules/strcasestr (Makefile.am): Likewise.
111369         * modules/strchrnul (Makefile.am): Likewise.
111370         * modules/strcspn (Makefile.am): Likewise.
111371         * modules/strdup (Makefile.am): Likewise.
111372         * modules/strerror (Makefile.am): Likewise.
111373         * modules/strftime (Makefile.am): Likewise.
111374         * modules/strndup (Makefile.am): Likewise.
111375         * modules/strnlen (Makefile.am): Likewise.
111376         * modules/strpbrk (Makefile.am): Likewise.
111377         * modules/strsep (Makefile.am): Likewise.
111378         * modules/strstr (Makefile.am): Likewise.
111379         * modules/strtod (Makefile.am): Likewise.
111380         * modules/strtoimax (Makefile.am): Likewise.
111381         * modules/strtok_r (Makefile.am): Likewise.
111382         * modules/strtol (Makefile.am): Likewise.
111383         * modules/strtoll (Makefile.am): Likewise.
111384         * modules/strtoul (Makefile.am): Likewise.
111385         * modules/strtoull (Makefile.am): Likewise.
111386         * modules/strtoumax (Makefile.am): Likewise.
111387         * modules/strverscmp (Makefile.am): Likewise.
111388         * modules/time_r (Makefile.am): Likewise.
111389         * modules/timegm (Makefile.am): Likewise.
111390         * modules/tmpfile-safer (Makefile.am): Likewise.
111391         * modules/unistd-safer (Makefile.am): Likewise.
111392         * modules/unlinkdir (Makefile.am): Likewise.
111393         * modules/userspec (Makefile.am): Likewise.
111394         * modules/utime (Makefile.am): Likewise.
111395         * modules/utimecmp (Makefile.am): Likewise.
111396         * modules/utimens (Makefile.am): Likewise.
111397         * modules/vasnprintf (Makefile.am): Likewise.
111398         * modules/vasprintf (Makefile.am): Likewise.
111399         * modules/vsnprintf (Makefile.am): Likewise.
111400         * modules/xalloc (Makefile.am): Likewise.
111401         * modules/xgetcwd (Makefile.am): Likewise.
111402         * modules/xnanosleep (Makefile.am): Likewise.
111403         * modules/xreadlink (Makefile.am): Likewise.
111404         * modules/xstrtod (Makefile.am): Likewise.
111405         * modules/xstrtol (Makefile.am): Likewise.
111406         * modules/xstrtold (Makefile.am): Likewise.
111407         * modules/yesno (Makefile.am): Likewise.
111409 2006-10-12  Jim Meyering  <jim@meyering.net>
111411         * m4/getloadavg.m4: Revert the change below.
111413         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
111414         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
111415         fail with a symlink, which is what coreutils' ./bootstrap now
111416         creates by default.
111418 2006-10-12  Bruno Haible  <bruno@clisp.org>
111420         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
111421         mingw.
111422         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
111423         MSVC and mingw explicitly.
111425 2006-10-11  Simon Josefsson  <jas@extundo.com>
111426             Bruno Haible  <bruno@clisp.org>
111428         Add support for multiple gnulib-tool invocations in the scope of a
111429         single configure.ac file.
111430         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
111431         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
111432         with the same contents as the _LIBADD variable.
111433         (func_emit_initmacro_start, func_emit_initmacro_end,
111434         func_emit_initmacro_done): New functions.
111435         (func_import, func_create_testdir): Invoke them. Allow the identifiers
111436         gl_LIBOBJS and gl_LTLIBOBJS.
111438 2006-10-11  Bruno Haible  <bruno@clisp.org>
111440         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
111441         (func_create_testdir): Don't create po/Makefile.am, don't invoke
111442         autoreconf. Instead, invoke autopoint explicitly but move back the
111443         *.m4 files from gnulib.
111445 2006-10-11  Bruno Haible  <bruno@clisp.org>
111447         * gnulib-tool (func_usage): Make module names after --create-testdir
111448         optional.
111449         (func_create_testdir): If no module was specified, use nearly all
111450         modules.
111452 2006-10-12  Jim Meyering  <jim@meyering.net>
111454         Big performance improvement for fts-based tools that use FTS_NOSTAT.
111455         Avoid spurious inode-mismatch problems on non-POSIX file systems.
111456         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
111457         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
111458         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
111459         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
111460         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
111461         (fts_set_stat_required): New function.
111462         (fts_open): Defer the calls to fts_stat, if possible or requested.
111463         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
111464         into fts_stat itself.
111465         (fts_read): Perform any required (deferred) fts_stat call.
111466         (fts_build): Likewise, for the directory we're about to open and read.
111467         In the readdir loop, carefully decide whether each entry will require
111468         an eventual call to fts_stat, using dirent.d_type info if available.
111469         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
111470         a command line argument into this function.  Update all callers.
111471         Map a return value of FTS_DOT to FTS_D for a command line argument.
111472         * modules/fts (Depends-on): Add d-type.  Alphabetize.
111473         Thanks to Miklos Szeredi for his tenacity and for the initial
111474         bug report about "find" failing on a FUSE-based file system.
111476         * lib/fts.c (fts_open): Use consistent indentation.
111478 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111480         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
111481         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
111482         reported by Jim Meyering.  All uses of cache variables renamed
111483         to match Autoconf's.
111484         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
111485         the other one.
111487         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
111488         Fix misspelling in diagnostic.
111490 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111492         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
111493         defined.  Problem reported by Matthew Woehlke.
111495         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
111496         Add support for Tandem NonStop R series.
111497         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
111498         Use new macro.
111500         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
111501         (has_trailing_slash): Omit size arg; all callers changed.
111502         Omit 'inline', since it doesn't help performance and we'd
111503         need to configure it.
111504         Don't count //, ///, etc. as having a trailing slash.
111505         As a side effect, this removes a C99ism reported by Matthew Woehlke.
111506         (rpl_rename_dest_slash): On failure, use rename's errno rather
111507         than (in some cases) an incorrect or junk errno.
111508         Simplify code by removing need to compute length; this does
111509         cause it to make two passes instead of one over the file name,
111510         but it's worth it.
111512         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
111513         change, since Autoconf's version may no longer be appropriate now
111514         that we are using CVS Autoconf's version.  Add support for Tandem.
111516 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111517             Bruno Haible  <bruno@clisp.org>
111519         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
111520         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
111521         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
111522         gl_AC_TYPE_LONG_LONG.
111524         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
111525         instead of HAVE_LONG_LONG.
111526         * lib/printf-args.c (printf_fetchargs): Likewise.
111527         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
111528         * lib/vasnprintf.c (VASNPRINTF): Likewise.
111529         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
111530         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
111531         gl_AC_TYPE_LONG_LONG.
111533 2006-10-11  Bruno Haible  <bruno@clisp.org>
111535         * m4/longlong.m4: Add comments.
111536         * m4/ulonglong.m4: Likewise.
111538 2006-10-10  Bruno Haible  <bruno@clisp.org>
111540         Make it possible to #define stpcpy, strdup to aliases.
111541         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
111542         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
111544 2006-10-10  Bruno Haible  <bruno@clisp.org>
111546         Make it possible to #define gcd to an alias.
111547         * lib/gcd.c: Include config.h.
111549 2006-10-10  Bruno Haible  <bruno@clisp.org>
111551         Make it possible to #define c_isascii to an alias.
111552         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
111553         defined. Undefine the macros before defining them, to avoid gcc
111554         warnings.
111555         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
111556         define NO_C_CTYPE_MACROS early.
111558 2006-10-10  Bruno Haible  <bruno@clisp.org>
111560         Make it possible to #define set_program_name to an alias.
111561         * lib/progname.c: Don't undefine set_program_name; instead, undefine
111562         ENABLE_RELOCATABLE early.
111564 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
111566         Port to Tandem NSK OSS, which has 64-bit signed int but at most
111567         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
111568         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
111569         More generally, don't assume that 64-bit signed int is available
111570         if unsigned int is, and vice versa.
111571         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
111572         unsigned symbols, not on their signed counterparts.
111573         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
111574         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
111575         (UINT64_C, UINTMAX_C):
111576         Likewise.
111577         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
111578         unsigned counterparts.
111579         (Have_long_long, Unsigned): New macros.
111580         (Int): Renamed from INT.
111581         (strtoimax): Use the new macros.
111582         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
111583         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
111584         * modules/inttypes (inttypes.h): Substitute
111585         HAVE_UNSIGNED_LONG_LONG_INT.
111586         * modules/stdint (stdint.h): Likewise.
111587         (Files): Add m4/ulonglong.m4.
111589 2006-10-10  Bruno Haible  <bruno@clisp.org>
111591         Fix a gcc -Wshadow warning.
111592         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
111593         to 'bucket'.
111594         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
111595         gl_linked_indexof_from_to): Likewise.
111596         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
111597         Likewise.
111598         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
111599         Likewise.
111600         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
111601         Reported by Eric Blake.
111603 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
111605         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
111606         for NetBSD.  Problem reported by Bruno Haible.
111608 2006-10-09  Jim Meyering  <jim@meyering.net>
111610         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
111611         Patch from Bruno Haible.
111613 2006-10-09  Jim Meyering  <jim@meyering.net>
111615         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
111616         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
111617         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
111619 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
111621         Don't include <config.h> twice; this doesn't work in some cases,
111622         e.g., when config.h has "#define intmax_t long long int" and
111623         we include <config.h>, <inttypes.h>, <config.h> in that order.
111624         Problem reported by Matthew Woehlke in:
111625         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
111626         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
111627         * lib/fts-cycle.c: Don't include config.h.
111628         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
111629         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
111630         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
111631         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
111632         inttypes.h.
111633         * lib/xstrtoumax.c: Likewise.
111634         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
111635         __strtol and the like, so that this module is more like its siblings.
111636         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
111637         Remove; no longer needed now that we assume gnulib inttypes.h.
111639 2006-10-08  Bruno Haible  <bruno@clisp.org>
111641         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
111642         option.
111644 2006-10-07  Jim Meyering  <jim@meyering.net>
111646         * modules/inttypes (inttypes.h): Revert what seems to have been
111647         an inadvertent part of today's change: use "|", not "/" in the
111648         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
111650 2006-10-07  Bruno Haible  <bruno@clisp.org>
111652         * modules/sublist: New file.
111654 2006-10-07  Bruno Haible  <bruno@clisp.org>
111656         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
111657         * modules/argz (argz.h): Likewise.
111658         * modules/arpa_inet (arpa/inet.h): Likewise.
111659         * modules/byteswap (byteswap.h): Likewise.
111660         * modules/configmake (configmake.h): Likewise.
111661         * modules/fcntl (fcntl.h): Likewise.
111662         * modules/fnmatch (fnmatch.h): Likewise.
111663         * modules/getopt (getopt.h): Likewise.
111664         * modules/glob (glob.h): Likewise.
111665         * modules/inttypes (inttypes.h): Likewise.
111666         * modules/netinet_in (netinet/in.h): Likewise.
111667         * modules/poll (poll.h): Likewise.
111668         * modules/stdbool (stdbool.h): Likewise.
111669         * modules/stdint (stdint.h): Likewise.
111670         * modules/sys_select (sys/select.h): Likewise.
111671         * modules/sys_socket (sys/socket.h): Likewise.
111672         * modules/sys_stat (sys/stat.h): Likewise.
111673         * modules/sysexits (sysexits.h): Likewise.
111674         * modules/unistd (unistd.h): Likewise.
111675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111676         Add a "DO NOT EDIT" comment to the generated file.
111677         (func_import): Likewise for gnulib-comp.m4.
111679 2006-10-07  Bruno Haible  <bruno@clisp.org>
111681         * lib/gl_sublist.h: New file.
111682         * lib/gl_sublist.c: New file.
111684 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
111686         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
111687         name (relative to the original working directory) and the file
111688         name component (relative to the temporary working directory).  All
111689         callers changed.
111690         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
111691         * lib/mkdir-p.c (make_dir_parents): Likewise.
111692         * lib/mkdir-p.h (make_dir_parents): Likewise.
111694 2006-10-06  Eric Blake  <ebb9@byu.net>
111696         Define several macros for use by the clean-temp module.
111697         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
111698         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
111699         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
111701         * lib/clean-temp.h (close_stream_temp): New declaration.
111702         * lib/clean-temp.c (includes): Pull in headers according to what
111703         other modules are in use.
111704         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
111706 2006-10-06  Bruno Haible  <bruno@clisp.org>
111708         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
111709         instead of fopen, fwriteerror.
111711 2006-10-06  Bruno Haible  <bruno@clisp.org>
111713         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
111714         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
111715         int.
111716         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
111717         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
111718         Return an error indicator.
111719         Suggested by Eric Blake.
111721 2006-10-06  Bruno Haible  <bruno@clisp.org>
111723         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
111724         Reported by Eric Blake.
111726 2006-10-06  Bruno Haible  <bruno@clisp.org>
111728         * modules/closeout (Description): Mention stderr too.
111730 2006-10-06  Bruno Haible  <bruno@clisp.org>
111731         and Paul Eggert  <eggert@cs.ucla.edu>
111733         * lib/closeout.c (close_stdout): Also close stderr.
111734         * lib/closeout.h: Update comment.
111736 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
111738         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
111739         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
111740         * lib/dirchownmod.c: Include lchown.h.
111741         * lib/lchown.c: Don't include files that lchown.h now includes.
111742         Don't declare chown, since lchown.h now does that.
111743         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
111744         (lchown): Define to rpl_chown if lchown is declared but
111745         does not exist.  Declare using a prototype if lchown is not
111746         declared.  Add a copyright notice.
111747         * lib/mkstemp.h: Include <unistd.h>.
111748         * lib/openat.c: Include lchown.h.
111750         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
111751         we now test for that separately.
111752         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
111753         rather than O_NOFOLLOW, when testing whether it's possible to
111754         avoid a race condition reliably.
111755         * lib/savewd.c (savewd_chdir): Likewise.
111757         Remove macros that are no longer needed now that stdint.h is
111758         reliable.
111759         * lib/fsusage.c (UINTMAX_MAX): Remove.
111760         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
111761         * lib/utimecmp.c (SIZE_MAX): Remove.
111763         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
111765         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
111766         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
111767         O_NOATIME works.
111769 2006-10-05  Bruno Haible  <bruno@clisp.org>
111771         * lib/gl_list.h (gl_sortedlist_search_from_to,
111772         gl_sortedlist_indexof_from_to): New declarations.
111773         (gl_list_implementation): New fields sortedlist_search_from_to,
111774         sortedlist_indexof_from_to.
111775         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
111776         inline functions.
111777         * lib/gl_list.c (gl_sortedlist_search_from_to,
111778         gl_sortedlist_indexof_from_to): New functions.
111779         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
111780         function.
111781         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
111782         (gl_array_sortedlist_search_from_to): New function.
111783         (gl_array_list_implementation): Update.
111784         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
111785         function.
111786         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
111787         (gl_carray_sortedlist_search_from_to): New function.
111788         (gl_carray_list_implementation): Update.
111789         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
111790         gl_linked_sortedlist_indexof_from_to): New functions.
111791         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
111792         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
111793         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
111794         gl_tree_sortedlist_indexof_from_to): New functions.
111795         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
111796         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
111797         Update.
111798         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
111799         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
111800         Update.
111802 2006-10-05  Bruno Haible  <bruno@clisp.org>
111804         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
111805         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
111806         (struct gl_list_implementation): Add fields search_from_to,
111807         indexof_from_to. Remove fields search, indexof.
111808         (gl_list_search): Use the search_from_to method.
111809         (gl_list_search_from, gl_list_search_from_to): New functions.
111810         (gl_list_indexof): Use the indexof_from_to method.
111811         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
111812         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
111813         (gl_list_search_from, gl_list_search_from_to): New functions.
111814         (gl_list_indexof): Use the indexof_from_to method.
111815         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
111816         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
111817         gl_array_indexof. Add start_index, end_index arguments.
111818         (gl_array_search_from_to): Renamed from gl_array_search. Add
111819         start_index, end_index arguments.
111820         (gl_array_remove, gl_array_list_implementation): Update.
111821         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
111822         gl_carray_indexof. Add start_index, end_index arguments.
111823         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
111824         start_index, end_index arguments.
111825         (gl_carray_remove, gl_carray_list_implementation): Update.
111826         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
111827         gl_linked_search. Add start_index, end_index arguments.
111828         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
111829         start_index, end_index arguments.
111830         (gl_linked_remove): Update.
111831         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
111832         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
111833         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
111834         field to 'size_t'.
111835         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
111836         gl_tree_search. Add start_index, end_index arguments.
111837         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
111838         start_index, end_index arguments.
111839         (gl_tree_remove): Update.
111840         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
111841         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
111842         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
111843         function.
111844         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
111845         gl_tree_search. Add start_index, end_index arguments.
111846         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
111847         start_index, end_index arguments.
111848         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
111849         Update.
111850         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
111852 2006-10-05  Bruno Haible  <bruno@clisp.org>
111854         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
111856         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
111857         fwriteerror_temp): New declarations.
111858         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
111859         (descriptors): New variable.
111860         (cleanup): First, close the descriptors.
111861         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
111862         fclose_temp, fwriteerror_temp): New functions.
111864 2006-10-04  Jim Meyering  <jim@meyering.net>
111866         * lib/fts.c (fts_open): Tiny comment change.
111868 2006-10-04  Bruno Haible  <bruno@clisp.org>
111870         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
111871         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
111872         gl_LOCK_BODY.
111873         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
111874         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
111875         gl_LOCK_EARLY_BODY.
111876         (gl_LOCK): Require gl_LOCK_BODY.
111878 2006-10-04  Bruno Haible  <bruno@clisp.org>
111880         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
111881         (gl_oset_search_atleast): New declaration.
111882         (struct gl_oset_implementation): Add field 'search_atleast'.
111883         (gl_oset_search_atleast): New inline function.
111884         * lib/gl_oset.c (gl_oset_search_atleast): New function.
111885         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
111886         (gl_array_oset_implementation): Update.
111887         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
111888         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
111889         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
111891 2006-10-04  Bruno Haible  <bruno@clisp.org>
111893         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
111895 2006-10-03  Bruno Haible  <bruno@clisp.org>
111897         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
111898         from gl_avltreehash_list_implementation.
111900 2006-10-03  Bruno Haible  <bruno@clisp.org>
111902         * lib/gl_oset.c (gl_oset_add): Fix return type.
111904 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
111906         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
111908 2006-10-02  Eric Blake  <ebb9@byu.net>
111910         * modules/strnlen (Depends-on): Add extensions.
111912 2006-10-02  Eric Blake  <ebb9@byu.net>
111914         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
111915         definition in 2.60+.
111917 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
111919         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
111920         checks.
111922 2006-10-02  Bruno Haible  <bruno@clisp.org>
111924         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
111925         to the AUTOMAKE_OPTIONS.
111926         Reported by Jim Meyering.
111928 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
111930         Work around bug in Solaris 10 /proc file system:
111931         /proc/self/fd/NNN/.. isn't the parent directory of
111932         the directory whose file descriptor is NNN.  This needs to
111933         be worked around at run time, not compile time, since a
111934         program might be built on Solaris 8, where things work, and
111935         run on Solaris 10.
111936         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
111937         to use the following interface instead:
111938         (OPENAT_BUFFER_SIZE): New macro.
111939         (openat_proc_name): New function.
111940         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
111941         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
111942         Likewise.
111943         * lib/openat-proc.c: New file.
111944         * modules/openat (Files): Add lib/openat-proc.c.
111945         (Depends-on): Add same-inode, stdbool.
111946         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
111948 2006-09-29  Bruno Haible  <bruno@clisp.org>
111950         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
111951         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
111952         argument. Set stdout_closed before testing for ferror, not after.
111953         (fwriteerror, fwriteerror_no_ebadf): New functions.
111955 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111957         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
111959 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
111961         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
111962         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
111964 2006-09-28  Jim Meyering  <jim@meyering.net>
111966         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
111967         Include <unistd.h>.
111969 2006-09-28  Bruno Haible  <bruno@clisp.org>
111971         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
111972         * modules/linkedhash-list (Depends-on): Likewise.
111973         * modules/rbtreehash-list (Depends-on): Likewise.
111975 2006-09-28  Bruno Haible  <bruno@clisp.org>
111977         * lib/strndup.h: Simplify the redefinition of strndup.
111978         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
111979         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
111981 2006-09-28  Bruno Haible  <bruno@clisp.org>
111983         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
111984         * lib/gl_linkedhash_list.c: Likewise.
111985         * lib/gl_rbtreehash_list.c: Likewise.
111987 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
111989         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
111990         getaddrinfo.
111992         * lib/__fpending.h: Don't include <stdio_ext.h> unless
111993         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
111994         it causes <stdio_ext.h> to cause a compile-time error.
111995         Problem reported by Nelson H. F. Beebe.
111996         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
111997         of HAVE_DECL___PENDING.
111999         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
112000         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
112001         declaration.
112003 2006-09-27  Jim Meyering  <jim@meyering.net>
112005         This file could end up with a definition for a function
112006         named __strndup, rather than rpl_strndup on a system with
112007         incomplete weak_alias support.
112008         * lib/strndup.c (strndup): Rename from __strndup.
112009         Remove #defines that used to map __strndup to strndup.
112010         Don't use K&R prototypes.
112011         Remove LIBC-related code, since this file is not sync'd with glibc.
112012         * lib/strndup.h: Revamp, accordingly.
112013         * m4/strndup.m4: Modernize.
112015 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
112017         * modules/savewd (Depends-on): Add 'raise'.
112018         * lib/savewd.c: Include <signal.h>, for 'raise'.
112020 2006-09-26  Jim Meyering  <jim@meyering.net>
112022         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
112023         when we detect Darwin 8.7.0's acl_get_file bug.
112024         Rearrange to perform the new (below) run-test while $LIBS
112025         contains any acl-related library.  Set USE_ACL at the end.
112026         (gl_ACL_GET_FILE): New function.
112028 2006-09-26  Eric Blake  <ebb9@byu.net>
112030         * lib/verror.c: Include <config.h> unconditionally.
112032 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
112034         * modules/clock-time (Maintainer): Add self.
112035         * modules/getlogin_r (Depends-on): Add extensions.
112037 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112039         * modules/clock-time: New module.
112040         * modules/nanosleep (Depends-on): Add clock-time.
112041         * modules/gethrxtime (Depends-on): Likewise.
112042         * modules/gettime (Depends-on): Likewise.
112043         * modules/settime (Depends-on): Likewise.
112045         * modules/fts-lgpl: Depend on openat.
112046         * modules/mkancesdirs: Depend on savewd.
112047         * modules/mkdir-p: Likewise.
112049 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112051         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
112053         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
112054         `gl_have_arbitrary_file_name_length_limit' to
112055         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
112056         actually works between configure runs.
112058 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112059             Bruno Haible  <bruno@clisp.org>
112061         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
112063 2006-09-25  Jim Meyering  <jim@meyering.net>
112065         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
112066         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
112068 2006-09-25  Eric Blake  <ebb9@byu.net>
112070         * gnulib-tool (func_import, func_create_testdir): Fix typos in
112071         exec's in 2006-09-18 patch when shuffling fds.
112073 2006-09-25  Bruno Haible  <bruno@clisp.org>
112075         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
112076         Reported by Jim Meyering.
112078 2006-09-24  Jim Meyering  <jim@meyering.net>
112080         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
112081         compare a pointer against a literal "0".  That caused failures with
112082         at least HP-UX's hpcc.
112084 2006-09-22  Simon Josefsson  <jas@extundo.com>
112086         * modules/gc-sha1:
112087         * modules/gc-md4:
112088         * modules/gc-hmac-sha1:
112089         * modules/gc-hmac-md5:
112090         * modules/gc-des:
112091         * modules/gc-arcfour: Distribute more files.
112093 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112095         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
112096         (gl_linked_iterator_from_to): Initialize struct completely.
112097         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
112098         (gl_tree_iterator_from_to): Likewise
112099         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
112100         * lib/gl_array_list.c [lint] (gl_array_iterator)
112101         (gl_array_iterator_from_to): Likewise.
112102         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
112103         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
112104         (gl_carray_iterator_from_to): Likewise.
112106         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
112107         * lib/md4.c (md4_process_block): Remove unused variable.
112108         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
112109         parentheses for clarity.
112111 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112113         * modules/bison-i18n (Depends-on): Add gettext.
112115 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112117         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
112118         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
112119         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
112120         also add missing comma that caused broken test.
112121         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
112122         stdlib.h, for `abort'.
112123         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
112124         variables.
112125         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
112126         include unistd.h if present, for `rmdir'.
112127         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
112128         variables.
112129         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
112130         in the process include standard headers for prototypes.
112131         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
112132         gets declared on GNU/Linux.
112133         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
112134         unistd.h, for `rmdir'.
112135         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
112137         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
112138         always true.
112139         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
112141         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
112143 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112145         * gnulib-tool (func_version): Create output all at once.  This
112146         may help avoid triggering unnecessary SIGPIPEs, and at any
112147         rate it doesn't hurt.
112149 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112150             Bruno Haible  <bruno@clisp.org>
112152         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
112153         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
112154         * m4/signed.m4 (bh_C_SIGNED): Likewise.
112156         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
112157         (gl_FUNC_VASPRINTF): Invoke it.
112159 2006-09-22  Bruno Haible  <bruno@clisp.org>
112161         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
112162         getloadavg.c as first argument.
112164 2006-09-22  Bruno Haible  <bruno@clisp.org>
112166         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
112167         at the beginning of the gl_INIT macro.
112168         * modules/getloadavg (configure.ac): Pass $gl_source_base to
112169         gl_GETLOADAVG.
112171 2006-09-22  Bruno Haible  <bruno@clisp.org>
112173         * gnulib-tool (func_create_megatestdir): Don't include the config-h
112174         module.
112175         Suggested by Ralf Wildenhues.
112177 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
112179         Import this patch from libc:
112181         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
112183         * lib/regex_internal.c (re_string_reconstruct): Handle
112184         offset < pstr->valid_raw_len && pstr->offsets_needed case.
112185         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
112186         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
112187         re_string_context_at.
112189         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
112190         now requires it.
112191         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
112192         gl_REGEX now does it for us.
112193         (gl_REGEX): Add test taken from
112194         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
112196         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
112197         Check that large offsets work.  Modernize Autoconf usages.
112198         Prefer "yes" to mean a good thing rather than a bad.
112199         Don't put "#define mkstemp" in config.h, as this might interfere
112200         with standard system headers that "#define mkstemp mkstemp64".
112202         * modules/mkstemp (Depends-on): Add extensions, so that
112203         mkstemp is visible on some platforms.
112204         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
112205         (Include): Change to "mkstemp.h" from <stdlib.h>.
112206         (Files): Add mkstemp.h.
112208         * lib/mkstemp.h: New file, since some standard headers
112209         #define mkstemp.
112210         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
112211         Include "mkstemp.h".
112212         Make the _LIBC code resemble glibc original more,
112213         e.g., use K&R style.
112214         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
112215         (mkstemp): Remove, since mkstemp.h does this for us.
112216         * lib/stdlib--.h: Include mkstemp.h.
112218         Import this patch from libc:
112220         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
112222         * lib/tempname.c (__gen_tempname): Change attempts_min
112223         into a macro.  Use preprocessor to decide how to initialize
112224         attempts [Coverity CID 67].
112226 2006-09-20  Bruno Haible  <bruno@clisp.org>
112228         * lib/mkdtemp.c: Import from libc.
112229         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
112230                 * sysdeps/posix/tempname.c (__gen_tempname): Change
112231                 attempts_min into a macro.  Use preprocessor to decide how to
112232                 initialize attempts [Coverity CID 67].
112233         2001-11-27  Paul Eggert  <eggert@twinsun.com>
112234                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
112235                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
112237 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112239         * gnulib-tool (func_exit): New function, to allow to pass the
112240         exit status portably through the trap.  Use everywhere.
112241         (--help, --version): Signal a write error.
112242         (trap): catch SIGPIPE, for write errors.
112243         Exit at the end of the trap, with the correct exit status.
112245 2006-09-19  Karl Berry  <karl@gnu.org>
112247         * doc/gnulib.texi: note about the license texinfo files.
112249 2006-09-19  Eric Blake  <ebb9@byu.net>
112251         * gnulib-tool: Avoid space-tab.
112253 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
112255         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
112256         that prevented coreutils 6.1 from building.  Problem reported
112257         by Petter Reinholdtsen.
112259 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
112261         * gnulib-tool (avoidlist): Fix typo that broke options like
112262         --avoid=lock that are used by coreutils bootstrap.
112264 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
112266         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
112267         more systematically.
112269 2006-09-18  Jim Meyering  <jim@meyering.net>
112271         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
112273 2006-09-18  Bruno Haible  <bruno@clisp.org>
112275         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
112277 2006-09-18  Bruno Haible  <bruno@clisp.org>
112279         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
112280         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
112281         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
112282         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
112283         * m4/gettext.m4: Require autoconf >= 2.52.
112284         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
112285         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
112286         of gl_cv_header_inttypes_h.
112288 2006-09-18  Bruno Haible  <bruno@clisp.org>
112290         * lib/javaversion.c: Include configmake.h.
112292 2006-09-18  Bruno Haible  <bruno@clisp.org>
112294         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
112295         avoid that the while loops be executed in a subshell.
112297 2006-09-18  Bruno Haible  <bruno@clisp.org>
112299         * MODULES.html.sh (func_module): Break long lines.
112300         Suggested by Bruce Korb <bkorb@gnu.org>.
112302 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112304         Speed up by a factor of 1.12.
112305         * gnulib-tool (nl): New variable.
112306         (func_import): Rewrite include directive extraction to only read each
112307         directive once.
112309 2006-09-17  Bruno Haible  <bruno@clisp.org>
112311         * modules/javaversion (Makefile.am): Remove DEFS setting.
112312         (Depends-on): Add configmake, for PKGDATADIR definition.
112314 2006-09-17  Bruno Haible  <bruno@clisp.org>
112316         * gnulib-tool (func_create_testdir): Rewrite all files at once.
112318 2006-09-17  Bruno Haible  <bruno@clisp.org>
112320         * gnulib-tool (func_append): New function, stolen from libtool.m4.
112321         (func_modules_transitive_closure, func_modules_add_dummy,
112322         func_modules_to_filelist, func_import, func_create_testdir,
112323         func_create_megatestdir, ...): Use it wherever possible.
112324         Suggested by Ralf Wildenhues.
112326 2006-09-16  Karl Berry  <karl@gnu.org>
112328         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
112329         to avoid sectioning errors.
112330         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
112331         [ifinfo]: blank line after @center-ed titles.
112332         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
112333         Spell FSF address consistently with others.
112334         (These changes approved by rms.)
112336 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112338         Speed up by a factor of 1.61.
112339         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
112340         already checked module names again.
112342 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112344         Speed up by a factor of 1.13.
112345         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
112346         for new_files, and the input to func_add_or_update.
112348 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112350         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
112351         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
112353 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112355         * modules/mkancesdirs (Depends-on): Add fcntl.
112356         * modules/savewd: New file.
112357         * MODULES.html.sh (File system functions): Add savewd.
112359         * modules/configmake (Makefile.am): Add support for the
112360         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
112362 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112364         * m4/savewd.m4: New file.
112366 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112368         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
112369         (dirchownmod): New arg FD.  All callers changed.
112370         Use FD rather than opening the directory ourself, as opening is
112371         now the caller's responsibility.
112372         * lib/dirchownmod.h: Likewise.
112373         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
112374         hosts that require <sys/types.h> before <sys/stat.h>.  Include
112375         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
112376         (test_dir): Remove.
112377         (mkancesdirs): Return length of prefix of FILE that has already
112378         been made, or -2 if there is a child doing the work.  Redo
112379         algorithm so that it is O(N) rather than O(N**2).  Optimize away
112380         ".", and treat ".." specially since it might stray back into
112381         already-created areas.  Use a subprocess if necessary.  New arg
112382         WD; all users changed.  MAKE_DIR function should now return 1
112383         if it creates a directory that is not readable.  Return -2 if
112384         a child process is spun off.
112385         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
112386         Adjust signature to match code.
112387         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
112388         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
112389         all users changed.
112390         * lib/savewd.c, lib/savewd.h: New files.
112392 2006-09-15  Jim Meyering  <jim@meyering.net>
112394         * modules/rename-dest-slash: New module.
112395         * MODULES.html.sh (posix_compat): Add it here.
112397         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
112399 2006-09-15  Jim Meyering  <jim@meyering.net>
112401         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
112402         file.
112404         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
112406 2006-09-15  Jim Meyering  <jim@meyering.net>
112408         * lib/rename-dest-slash.c (has_trailing_slash): Use
112409         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
112410         (rpl_rename_dest_slash): Perform the cheaper trailing slash
112411         test before testing whether SRC is a directory.
112412         Suggestions from Bruno Haible.
112414         Avoid a warning about an unused variable.
112415         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
112416         into the #ifdef block where it's used.
112418         * lib/rename-dest-slash.c: New file.
112420 2006-09-14  Bruno Haible  <bruno@clisp.org>
112422         * lib/allocsa.c: Include <config.h> unconditionally.
112423         * lib/asnprintf.c: Likewise.
112424         * lib/asprintf.c: Likewise.
112425         * lib/c-strcasecmp.c: Likewise.
112426         * lib/c-strcasestr.c: Likewise.
112427         * lib/c-strncasecmp.c: Likewise.
112428         * lib/c-strstr.c: Likewise.
112429         * lib/classpath.c: Likewise.
112430         * lib/clean-temp.c: Likewise.
112431         * lib/concatpath.c: Likewise.
112432         * lib/copy-file.c: Likewise.
112433         * lib/csharpcomp.c: Likewise.
112434         * lib/csharpexec.c: Likewise.
112435         * lib/execute.c: Likewise.
112436         * lib/fatal-signal.c: Likewise.
112437         * lib/findprog.c: Likewise.
112438         * lib/fwriteerror.c: Likewise.
112439         * lib/gl_array_list.c: Likewise.
112440         * lib/gl_array_oset.c: Likewise.
112441         * lib/gl_avltree_list.c: Likewise.
112442         * lib/gl_avltree_oset.c: Likewise.
112443         * lib/gl_avltreehash_list.c: Likewise.
112444         * lib/gl_carray_list.c: Likewise.
112445         * lib/gl_linked_list.c: Likewise.
112446         * lib/gl_linkedhash_list.c: Likewise.
112447         * lib/gl_list.c: Likewise.
112448         * lib/gl_oset.c: Likewise.
112449         * lib/gl_rbtree_list.c: Likewise.
112450         * lib/gl_rbtree_oset.c: Likewise.
112451         * lib/gl_rbtreehash_list.c: Likewise.
112452         * lib/imaxabs.c: Likewise.
112453         * lib/imaxdiv.c: Likewise.
112454         * lib/javacomp.c: Likewise.
112455         * lib/javaexec.c: Likewise.
112456         * lib/javaversion.c: Likewise.
112457         * lib/linebreak.c: Likewise.
112458         * lib/localcharset.c: Likewise.
112459         * lib/lock.c: Likewise.
112460         * lib/mbchar.c: Likewise.
112461         * lib/mbswidth.c: Likewise.
112462         * lib/mkdtemp.c: Likewise.
112463         * lib/pipe.c: Likewise.
112464         * lib/printf-args.c: Likewise.
112465         * lib/printf-parse.c: Likewise.
112466         * lib/progname.c: Likewise.
112467         * lib/progreloc.c: Likewise.
112468         * lib/readlink.c: Likewise.
112469         * lib/sh-quote.c: Likewise.
112470         * lib/stpcpy.c: Likewise.
112471         * lib/stpncpy.c: Likewise.
112472         * lib/strcasecmp.c: Likewise.
112473         * lib/strcasestr.c: Likewise.
112474         * lib/strcspn.c: Likewise.
112475         * lib/striconv.c: Likewise.
112476         * lib/strncasecmp.c: Likewise.
112477         * lib/strnlen1.c: Likewise.
112478         * lib/strstr.c: Likewise.
112479         * lib/strtok_r.c: Likewise.
112480         * lib/tls.c: Likewise.
112481         * lib/tmpdir.c: Likewise.
112482         * lib/unicodeio.c: Likewise.
112483         * lib/unsetenv.c: Likewise.
112484         * lib/vasnprintf.c: Likewise.
112485         * lib/vasprintf.c: Likewise.
112486         * lib/wait-process.c: Likewise.
112487         * lib/xallocsa.c: Likewise.
112488         * lib/xsetenv.c: Likewise.
112489         * lib/xstriconv.c: Likewise.
112491 2006-09-13  Simon Josefsson  <jas@extundo.com>
112493         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
112494         that internally, suggested by Ralf Wildenhues
112495         <Ralf.Wildenhues@gmx.de>.
112497 2006-09-13  Simon Josefsson  <jas@extundo.com>
112499         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
112500         @LIBOBJS@.
112501         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112503 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
112505         * lib/_fpending.c: Include <config.h> unconditionally, since we no
112506         longer worry about uses that don't define HAVE_CONFIG_H.
112507         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
112508         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
112509         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
112510         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
112511         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
112512         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
112513         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
112514         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
112515         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
112516         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
112517         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
112518         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
112519         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
112520         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
112521         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
112522         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
112523         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
112524         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
112525         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
112526         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
112527         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
112528         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
112529         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
112530         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
112531         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
112532         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
112533         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
112534         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
112535         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
112536         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
112537         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
112538         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
112539         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
112540         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
112541         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
112542         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
112543         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
112544         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
112545         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
112546         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
112547         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
112548         Likewise.
112550 2006-09-13  Eric Blake  <ebb9@byu.net>
112552         * lib/getopt.c: Fix typo in last commit.
112554 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
112556         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
112557         dgettext.
112559 2006-09-12  Jim Meyering  <jim@meyering.net>
112561         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
112562         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
112563         Reported by Nelson H. F. Beebe.
112565 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
112567         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
112568         program_invocation_name and program_invocation_short_name are
112569         initialized.
112570         * lib/argp-namefrob.h: Move declarations of program_invocation_name
112571         and program_invocation_short_name to argp.h, so they are visible
112572         to user programs.
112573         * lib/argp.h: Likewise
112575 2006-09-10  Bruno Haible  <bruno@clisp.org>
112577         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
112578         m4/inttypes_h.m4, m4/uintmax_t.m4.
112580 2006-09-10  Bruno Haible  <bruno@clisp.org>
112582         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
112583         gl_AC_TYPE_UINTMAX_T.
112585 2006-09-10  Bruno Haible  <bruno@clisp.org>
112587         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
112589 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112591         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
112592         convention.  Text proposed by Bruno Haible.
112593         (struct argp_option): Document the use of N_() wrappers.
112595         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
112596         '\v', and translate the two parts separately, instead of feeding
112597         the whole string to gettext.  This allows to exclude
112598         '\v' from the strings visible to the translator by writing doc
112599         strings as N_("..") "\v" N_("..").
112601 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
112603         * config/srclist.txt: Undo latest change; the bug was fixed.
112605 2006-09-09  Bruno Haible  <bruno@clisp.org>
112607         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
112608         assignments if building a library without libtool.
112609         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
112610         in func_emit_lib_Makefile_am.
112611         (func_import): When building a static library libfoo.a, arrange to
112612         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
112613         (func_create_testdir): Likewise.
112614         * modules/gc (configure.ac, Makefile.am): If building statically,
112615         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
112616         * modules/iconvme (configure.ac, Makefile.am): Likewise.
112617         * modules/striconv (configure.ac, Makefile.am): Likewise.
112618         Based on a suggestion by Ralf Wildenhues.
112620 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112622         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
112623         Check for unistd.h too, since Autoconf doesn't assume POSIX.
112624         Also:
112626         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112627         Add year_2050_test to catch glibc bug 2821
112628         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
112630         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
112631         Prefer #ifdef to #if.
112633         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
112634         Return from 'main' instead of calling 'exit'.
112636 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112638         * lib/mktime.c (guess_time_tm): Fix bug where mktime
112639         returned the maximum time_t value rather than (time_t) -1.
112640         Problem originally reported by William Bardwell
112641         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
112643         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
112644         Moved to here ...
112645         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
112646         ... from here.
112648 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112650         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
112651         2821 is fixed.
112653 2006-09-08  Jim Meyering  <jim@meyering.net>
112655         Don't make generated files read-only.  That would bother too many
112656         people.  However, do retain the ability to work when targets are
112657         read-only: remove the destination and temporary files before writing
112658         them (when generated via sed or echo), or by using the -f option for
112659         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
112660         * modules/alloca-opt, modules/argz, modules/arpa_inet:
112661         * modules/byteswap, modules/configmake, modules/fcntl:
112662         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
112663         * modules/localcharset, modules/netinet_in, modules/poll:
112664         * modules/stdbool, modules/stdint, modules/sys_select:
112665         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112667 2006-09-08  Jim Meyering  <jim@meyering.net>
112669         Avoid new build failure on FreeBSD 6.0.
112670         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
112671         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
112672         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
112674 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112676         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
112678 2006-09-07  Jim Meyering  <jim@meyering.net>
112680         Fix global typo in last change: use chmod u-w, not chmod u-x.
112681         Spotted by Paul Eggert and Bruce Korb.
112682         * modules/alloca-opt, modules/argz, modules/arpa_inet:
112683         * modules/byteswap, modules/configmake, modules/fcntl:
112684         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
112685         * modules/localcharset, modules/netinet_in, modules/poll:
112686         * modules/stdbool, modules/stdint, modules/sys_select:
112687         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112689 2006-09-06  Jim Meyering  <jim@meyering.net>
112691         Make generated files be read-only.
112692         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
112693         Ensure that each generated file is now read-only.
112694         * modules/argz: Likewise.
112695         * modules/arpa_inet: Likewise.
112696         * modules/byteswap: Likewise.
112697         * modules/configmake: Likewise.
112698         * modules/fcntl: Likewise.
112699         * modules/fnmatch: Likewise.
112700         * modules/getopt: Likewise.
112701         * modules/glob: Likewise.
112702         * modules/inttypes: Likewise.
112703         * modules/netinet_in: Likewise.
112704         * modules/poll: Likewise.
112705         * modules/stdbool: Likewise.
112706         * modules/stdint: Likewise.
112707         * modules/sys_select: Likewise.
112708         * modules/sys_socket: Likewise.
112709         * modules/sys_stat: Likewise.
112710         * modules/sysexits: Likewise.
112711         * modules/localcharset: Same as above, but continue using temporary
112712         file named "t-$@" (why different?) rather than the "$@-t" used
112713         everywhere else.
112715         * modules/sysexits (Makefile.am): Replace literal occurrences
112716         of "sysexit.h" more readable, and more consistent, "$@".
112718 2006-09-06  Bruno Haible  <bruno@clisp.org>
112720         * modules/striconv: New file.
112721         * modules/xstriconv: New file.
112722         * MODULES.html.sh (Internationalization functions): Add striconv,
112723         xstriconv.
112725 2006-09-06  Bruno Haible  <bruno@clisp.org>
112727         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
112728         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
112729         not using libtool correctly.
112731 2006-09-06  Bruno Haible  <bruno@clisp.org>
112733         * lib/striconv.h: New file.
112734         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
112735         iconvstring.c.
112736         * lib/xstriconv.h: New file.
112737         * lib/xstriconv.c: New file.
112739 2006-09-06  Bruno Haible  <bruno@clisp.org>
112741         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
112742         lib_..._LDFLAGS.
112744 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112746         * lib/argz_.h: Sync from Libtool.
112748         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
112749                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
112751         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
112753 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112755         * modules/trim: New file.
112757 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112759         * lib/trim.h: New file.
112760         * lib/trim.c: New file.
112762 2006-09-05  Bruno Haible  <bruno@clisp.org>
112764         * MODULES.html.sh (String handling): Add trim.
112766 2006-09-04  Karl Berry  <karl@gnu.org>
112768         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
112769         until next release.
112771 2006-09-03  Bruno Haible  <bruno@clisp.org>
112773         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
112774         correctly.
112776 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112778         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
112779         not gl_GETLOADAVG.  Omit unneeded semicolons.
112780         Problems reported by Ralf Wildenhues in
112781         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112782         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
112783         at the end, which is the usual gnulib style.
112785         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
112786         of doing all the work ourselves.
112787         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
112788         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
112790 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112792         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
112793         Problem reported by Ralf Wildenhues in
112794         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112796         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
112797         HAVE_STRUCT_STATFS_F_FSTYPENAME.
112799 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112801         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
112802         yesterday's patch by changing test -n to test -z.
112804 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112806         * modules/getloadavg (Files): Add m4/getloadavg.m4.
112807         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
112808         the former is now obsolescent.
112810         * modules/chdir-long (Depends-on): Add fcntl.
112812 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112814         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
112815         obsolescent, and programs should use gnulib instead.
112816         * m4/getloadavg.m4: New file, with contents taken from Autoconf
112817         but with prefixes changed.
112819 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112821         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
112822         or stdbool.h, because they might not exist while configuring.
112824         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
112825         Don't include unistd.h or limits.h; not needed, since chdir-long.h
112826         does that for us.
112827         (O_DIRECTORY): Remove.
112829 2006-08-31  Eric Blake  <ebb9@byu.net>
112831         * gnulib-tool: Don't let emacs change spaces to TAB.
112833 2006-08-31  Bruno Haible  <bruno@clisp.org>
112835         * gnulib-tool: When calling func_import more than once, do it in a
112836         subshell.
112837         Reported by Eric Blake <ebb9@byu.net>.
112839 2006-08-31  Bruno Haible  <bruno@clisp.org>
112841         * gnulib-tool (nl): Remove variable.
112842         (sed_transform_lib_file): Use more robust test for config-h module.
112843         (func_import): Fix typo in 2006-08-25 patch.
112845 2006-08-31  Bruno Haible  <bruno@clisp.org>
112847         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
112848         specified, augment Makefile.am variables instead of assigning them.
112850 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112852         Work around a bug in both the Linux and SunOS 64-bit kernels:
112853         nanosleep mishandles sleeps for longer than 2**31 seconds.
112854         Problem reported by Frank v Waveren in
112855         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
112856         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
112857         Check for nanosleep bug.
112858         (LIB_NANOSLEEP): Append clock_gettime library if needed.
112860 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112862         Work around a bug in both the Linux and SunOS 64-bit kernels:
112863         nanosleep mishandles sleeps for longer than 2**31 seconds.
112864         Problem reported by Frank v Waveren in
112865         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
112866         * lib/nanosleep.c (BILLION): New constant.
112867         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
112868         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
112869         implementation.
112871 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112873         * modules/nanosleep (Depends-on): Add gettime.
112875 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112876         and Simon Josefsson  <jas@extundo.com>
112877         and Oskar Liljeblad  <oskar@osk.mine.nu>
112879         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
112880         * gnulib-tool (func_import): New license type 'unmodifiable license
112881         text'.
112882         * modules/fdl: Use it.  Longer description.
112883         * module/gpl, module/lgpl: New files.
112885 2006-08-30  Jim Meyering  <jim@meyering.net>
112887         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
112888         shadowing the parameter.
112890 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112892         Sync from Libtool:
112894         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112896         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
112897         sharing with gnulib.  Report by Eric Blake.
112899 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112901         * modules/isapipe: New file.
112902         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
112904 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112906         * modules/configmake (Makefile.am): Add a comment, and omit
112907         the CONFIGMAKE_ prefix from generated macro names.  Suggested
112908         by Bruno Haible.
112910 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112912         * m4/isapipe.m4: New file.
112914 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112916         * lib/isapipe.c, lib/isapipe.h: New files.
112918 2006-08-29  Jim Meyering  <jim@meyering.net>
112920         * modules/configmake (Makefile.am): Make configmake.h depend on
112921         Makefile.  Otherwise, a stale configmake.h could hang around.
112923 2006-08-29  Eric Blake  <ebb9@byu.net>
112925         * lib/error.c (error_at_line, print_errno_message): Match libc, after
112926         resolution of upstream bug 3044.
112928 2006-08-29  Bruno Haible  <bruno@clisp.org>
112930         * modules/localcharset (Depends-on): Add configmake.
112931         (Makefile.am): Remove setting of LIBDIR through DEFS.
112933 2006-08-29  Bruno Haible  <bruno@clisp.org>
112935         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
112936         defined.
112938 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112940         * modules/fcntl: New file.
112941         * modules/chdir-safer (Depends-on): Add fcntl.
112942         * modules/fts: Likewise.
112943         * modules/mkdir-p: Likewise.
112945         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
112946         This undoes the most recent change, since we're now addressing the
112947         problem in a different way.
112949         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
112950         into output, since the output might be called Makefile.am even
112951         if $makefile_name is something different.
112952         (func_import): Use $makefile_am rather than
112953         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
112954         empty.
112956         * modules/inttypes (Files): Add m4/inttypes-h.m4.
112958 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112960         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
112961         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
112962         recent change to stdint.m4, since we're now addressing the problem in a
112963         different way.
112965 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112967         * m4/fcntl_h.m4: New file.
112969 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112971         * lib/fcntl_.h: New file.
112972         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
112973         the fcntl module.
112974         * lib/dirchownmod.c: Likewise.
112975         * lib/fts.c: Likewise.
112977         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
112978         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
112979         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
112980         just before including <inttypes.h>, to avoid circular inclusion.
112982 2006-08-28  Jim Meyering  <jim@meyering.net>
112984         * doc/visibility.texi: Actually read and correct the grammar of the
112985         sentence affected by yesterday's change.
112987 2006-08-28  Eric Blake  <ebb9@byu.net>
112989         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
112990         needs wrapper.
112992 2006-08-28  Eric Blake  <ebb9@byu.net>
112994         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
112996 2006-08-28  Eric Blake  <ebb9@byu.net>
112998         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
113000 2006-08-28  Bruno Haible  <bruno@clisp.org>
113002         * modules/c-strstr: New file, from GNU gettext.
113003         * MODULES.html.sh (String handling): Add c-strstr.
113005 2006-08-28  Bruno Haible  <bruno@clisp.org>
113007         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
113008         macros.
113009         Reported by Eric Blake.
113011 2006-08-28  Bruno Haible  <bruno@clisp.org>
113013         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
113014         (VASNPRINTF): Return a string of length > INT_MAX without failing.
113015         * lib/vasprintf.c: Include errno.h, limits.h.
113016         (EOVERFLOW): New fallback definition.
113017         (vasprintf): Test here whether the string length is > INT_MAX.
113018         * lib/vsnprintf.c: Include errno.h, limits.h.
113019         (EOVERFLOW): New fallback definition.
113020         (vsnprintf): Fix bug when generated string was too long for the buffer.
113021         Test here whether the string length is > INT_MAX.
113023 2006-08-28  Bruno Haible  <bruno@clisp.org>
113025         * lib/inttypes_.h (SCNX*): Remove definitions.
113026         Reported by Eric Blake.
113028 2006-08-28  Bruno Haible  <bruno@clisp.org>
113030         * lib/c-strstr.h: New file, from GNU gettext.
113031         * lib/c-strstr.c: New file, from GNU gettext.
113033 2006-08-28  Bruno Haible  <bruno@clisp.org>
113035         * gnulib-tool: Reorder some statements.
113037 2006-08-28  Bruno Haible  <bruno@clisp.org>
113039         * gnulib-tool: New option --makefile-name.
113040         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
113041         $makefile_name.
113042         (func_import): Write $makefile_name to the cache file, and read it from
113043         there unless explicitly specified. Use $makefile_name as file name
113044         instead of Makefile.am. Adjust the recommendations accordingly.
113046 2006-08-28  Bruno Haible  <bruno@clisp.org>
113048         * gnulib-tool (func_verify_module): Check against misapplying patch.
113050 2006-08-28  Bruno Haible  <bruno@clisp.org>
113052         * gnulib-tool (func_relativize, func_relconcat): New functions.
113053         Give an error if --local-dir is given with --update.
113054         Remove trailing slashes from $local_gnulib_dir.
113055         (func_import): Store the relativized $local_gnulib_dir in
113056         gnulib-cache.m4, and read it from there if not specified explicitly.
113058 2006-08-28  Bruno Haible  <bruno@clisp.org>
113060         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
113061         is the current directory. Respect also $local_gnulib_dir.
113063 2006-08-28  Bruno Haible  <bruno@clisp.org>
113064             Simon Josefsson  <jas@extundo.com>
113066         BeOS portability.
113067         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
113069 2006-08-27  Jim Meyering  <jim@meyering.net>
113071         * doc/visibility.texi: Remove duplicate word: "pointer".
113073 2006-08-26  Bruno Haible  <bruno@clisp.org>
113075         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
113076         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
113077         (Makefile.am): Create inttypes.h from inttypes_.h.
113078         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
113080         * modules/imaxabs: New file.
113082         * modules/imaxdiv: New file.
113084 2006-08-26  Bruno Haible  <bruno@clisp.org>
113086         * m4/inttypes.m4: New file.
113087         * m4/_inttypes_h.m4: Remove file.
113088         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
113089         PRI_MACROS_BROKEN.
113090         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
113092         * m4/imaxabs.m4: New file.
113094         * m4/imaxdiv.m4: New file.
113096 2006-08-26  Bruno Haible  <bruno@clisp.org>
113098         * lib/inttypes_.h: New file.
113099         * lib/inttypes.h: Remove file.
113100         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
113102         * lib/imaxabs.c: New file.
113104         * lib/imaxdiv.c: New file.
113106 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
113108         New config-h module, so that "make" output needn't be cluttered
113109         by -DHAVE_CONFIG_H.
113110         * MODULES.html.sh (Support for building libraries and executables):
113111         Add config-h.
113112         * modules/config-h: New file.
113113         * gnulib-tool (nl, sed_transform_lib_file): New vars.
113114         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
113115         the config-h module is used.
113117         New configmake module, so that "make" output needn't be cluttered
113118         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
113119         * MODULES.html.sh (Support for building libraries and executables):
113120         Add configmake.
113121         * modules/configmake: New file.
113123 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
113125         * m4/config-h.m4: New file.
113127 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
113129         * config/srclist.txt: Add elisp-comp.
113131 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
113133         * MODULES.html.sh (Support for building libraries and executables):
113134         Add elisp-comp.
113135         * build-aux/elisp-comp: New file.
113136         * modules/elisp-comp: New file.
113138 2006-08-24  Bruno Haible  <bruno@clisp.org>
113140         * gnulib-tool (func_create_testdir): Use non-default values of
113141         sourcebase and m4base.
113143 2006-08-24  Bruno Haible  <bruno@clisp.org>
113145         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
113146         HTML structure.
113148 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
113150         * modules/openat (Depends-on): Add lchown.
113152 2006-08-23  Bruno Haible  <bruno@clisp.org>
113154         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
113155         of gl_LOCK_EARLY instead of gl_LOCK.
113157 2006-08-23  Bruno Haible  <bruno@clisp.org>
113159         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
113160         on OSF/1 to no.
113161         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
113163 2006-08-23  Bruno Haible  <bruno@clisp.org>
113165         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
113166         as unusable.
113168         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
113169         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
113170         (gl_LOCK): New macro.
113172 2006-08-22  Simon Josefsson  <jas@extundo.com>
113174         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
113175         to md5 module.
113177 2006-08-22  Simon Josefsson  <jas@extundo.com>
113179         * MODULES.html.sh: Add "Support for maintaining and release
113180         projects".
113182         * build-aux/gnupload: New file, from coreutils.
113184 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113186         Avoid the need for AC_LIBSOURCES in m4 macros.
113187         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
113188         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
113189         * modules/check-version (EXTRA_DIST): Add check-version.h.
113190         * modules/crc (EXTRA_DIST): Add crc.h.
113191         * modules/des (EXTRA_DIST): Add des.h.
113192         * modules/gc (EXTRA_DIST): Add gc.h.
113193         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
113194         * modules/getline (EXTRA_DIST): Add getline.h.
113195         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
113196         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
113197         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
113198         * modules/md2 (EXTRA_DIST): Add md2.h.
113199         * modules/md4 (EXTRA_DIST): Add md4.h.
113200         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
113201         * modules/read-file (EXTRA_DIST): Add read-file.h.
113202         * modules/readline (EXTRA_DIST): Add readline.h.
113203         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
113204         rijndael-api-fst.h.
113206 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113208         * m4/rijndael.m4 (gl_ARCFOUR):
113209         * m4/arctwo.m4 (gl_ARCTWO):
113210         * m4/check-version.m4 (gl_CHECK_VERSION):
113211         * m4/crc.m4 (gl_CRC):
113212         * m4/des.m4 (gl_DES):
113213         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
113214         * m4/gc.m4 (gl_GC):
113215         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
113216         * m4/getline.m4 (gl_FUNC_GETLINE):
113217         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
113218         * m4/hmac-md5.m4 (gl_HMAC_MD5):
113219         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
113220         * m4/md2.m4 (gl_MD2):
113221         * m4/md4.m4 (gl_MD4):
113222         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
113223         * m4/read-file.m4 (gl_FUNC_READ_FILE):
113224         * m4/readline.m4 (gl_FUNC_READLINE):
113225         * m4/rijndael.m4 (gl_RIJNDAEL):
113226         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113227         to get the necessary .h files and whatnot.
113229 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113231         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
113232         gnulib rather than the other way around.
113233         * config/srclistvars.sh (COREUTILS): Remove.
113235 2006-08-22  Jim Meyering  <jim@meyering.net>
113237         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
113239         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
113241 2006-08-22  Eric Blake  <ebb9@byu.net>
113243         * modules/regexprops-generic: New file.
113244         * MODULES.html.sh (Support for building documentation): List it.
113246 2006-08-22  Eric Blake  <ebb9@byu.net>
113248         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
113249         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
113250         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
113251         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
113253 2006-08-22  Bruno Haible  <bruno@clisp.org>
113255         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
113256         and lib_LTLIBRARIES like the other lib_* variables.
113258 2006-08-22  Bruno Haible  <bruno@clisp.org>
113260         * build-aux/x-to-1.in: New file, from GNU gettext.
113262 2006-08-22  Bruno Haible  <bruno@clisp.org>
113264         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
113265         <utmpx.h> exists.
113267 2006-08-22  Bruno Haible  <bruno@clisp.org>
113269         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
113270         <utmpx.h> exists.
113272 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113274         BeOS portability.
113275         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
113276         exist.
113277         Problem reported by Bruno Haible.
113279 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113281         Avoid the need for AC_LIBSOURCES in m4 macros.
113282         * modules/acl (EXTRA_DIST): Add acl.h.
113283         * modules/argmatch (Files): Add m4/argmatch.m4.
113284         (configure.ac): Add gl_ARGMATCH.
113285         (EXTRA_DIST): Renamed from lib_SOURCES, for
113286         consistency with the other modules.  Remove argmatch.c.
113287         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
113288         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
113289         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
113290         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
113291         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
113292         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
113293         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
113294         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
113295         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
113296         * modules/closeout (EXTRA_DIST): Add closeout.h.
113297         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
113298         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
113299         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
113300         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
113301         dirname.h; remove basename.c and stripslash.c.
113302         * modules/exclude (EXTRA_DIST): Add exclude.h.
113303         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
113304         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
113305         * modules/file-type (EXTRA_DIST): Add file-type.h.
113306         * modules/filemode (EXTRA_DIST): Add filemode.h.
113307         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
113308         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113309         * modules/fpending (EXTRA_DIST): Add __fpending.h.
113310         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
113311         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
113312         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
113313         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
113314         * modules/getdate (EXTRA_DIST): Add getdate.c.
113315         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
113316         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
113317         * modules/getpass (EXTRA_DIST): Add getpass.h.
113318         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
113319         * modules/group-member (EXTRA_DIST): Add group-member.h.
113320         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
113321         * modules/hash (EXTRA_DIST): Add hash.h.
113322         * modules/human (EXTRA_DIST): Add human.h.
113323         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
113324         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
113325         * modules/lchown (EXTRA_DIST): Add lchown.h.
113326         * modules/long-options (EXTRA_DIST): Add long-options.h.
113327         * modules/lstat (EXTRA_DIST): Add lstat.h.
113328         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
113329         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
113330         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
113331         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
113332         * modules/memxor (EXTRA_DIST): Add memxor.h.
113333         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
113334         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
113335         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
113336         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
113337         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
113338         * modules/physmem (EXTRA_DIST): Add physmem.h.
113339         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
113340         * modules/posixver (EXTRA_DIST): Add posixver.h.
113341         * modules/quote (EXTRA_DIST): Add quote.h.
113342         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
113343         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
113344         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
113345         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
113346         regex_internal.h regexec.c.
113347         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
113348         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
113349         * modules/same (EXTRA_DIST): Add same.h.
113350         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
113351         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
113352         * modules/savedir (EXTRA_DIST): Add savedir.h.
113353         * modules/sha1 (EXTRA_DIST): Add sha1.h.
113354         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
113355         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
113356         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
113357         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
113358         * modules/strdup (EXTRA_DIST): Add strdup.h.
113359         * modules/strftime (EXTRA_DIST): Add strftime.h.
113360         * modules/strndup (EXTRA_DIST): Add strndup.h.
113361         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
113362         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
113363         * modules/time_r (EXTRA_DIST): Add time_r.h.
113364         * modules/timespec (EXTRA_DIST): Add timespec.h.
113365         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113366         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
113367         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
113368         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
113369         * modules/userspec (EXTRA_DIST): Add userspec.h.
113370         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
113371         * modules/utimens (EXTRA_DIST): Add utimens.h.
113372         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
113373         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
113374         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
113375         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
113376         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
113377         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
113378         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
113379         * modules/yesno (EXTRA_DIST): Add yesno.h.
113381 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113383         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
113385         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
113386         * m4/dev-ino.m4, same-inode.m4: Remove.
113388         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
113389         * m4/acl.m4 (AC_FUNC_ACL):
113390         * m4/backupfile.m4 (gl_BACKUPFILE):
113391         * m4/c-strtod.m4 (gl_C99_STRTOLD):
113392         * m4/canon-host.m4 (gl_CANON_HOST):
113393         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
113394         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
113395         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
113396         * m4/cloexec.m4 (gl_CLOEXEC):
113397         * m4/close-stream.m4 (gl_CLOSE_STREAM):
113398         * m4/closeout.m4 (gl_CLOSEOUT):
113399         * m4/dirfd.m4 (gl_FUNC_DIRFD):
113400         * m4/dirname.m4 (gl_DIRNAME):
113401         * m4/exclude.m4 (gl_EXCLUDE):
113402         * m4/exitfail.m4 (gl_EXITFAIL):
113403         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
113404         * m4/file-type.m4 (gl_FILE_TYPE):
113405         * m4/filemode.m4 (gl_FILEMODE):
113406         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
113407         * m4/fpending.m4 (gl_FUNC_FPENDING):
113408         * m4/fprintftime.m4 (gl_FPRINTFTIME):
113409         * m4/fts.m4 (gl_FUNC_FTS):
113410         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
113411         * m4/getdate.m4 (gl_GETDATE):
113412         * m4/gethrxtime.m4 (gl_GETHRXTIME):
113413         * m4/getpagesize.m4 (gl_GETPAGESIZE):
113414         * m4/getpass.m4 (gl_FUNC_GETPASS):
113415         * m4/gettime.m4 (gl_GETTIME):
113416         * m4/getugroups.m4 (gl_GETUGROUPS):
113417         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
113418         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
113419         * m4/hard-locale.m4 (gl_HARD_LOCALE):
113420         * m4/hash.m4 (gl_HASH):
113421         * m4/idcache.m4 (gl_IDCACHE):
113422         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
113423         * m4/lchown.m4 (gl_FUNC_LCHOWN):
113424         * m4/long-options.m4 (gl_LONG_OPTIONS):
113425         * m4/lstat.m4 (gl_FUNC_LSTAT):
113426         * m4/md5.m4 (gl_MD5):
113427         * m4/memcasecmp.m4 (gl_MEMCASECMP):
113428         * m4/memcoll.m4 (gl_MEMCOLL):
113429         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
113430         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
113431         * m4/memxor.m4 (gl_MEMXOR):
113432         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
113433         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
113434         * m4/modechange.m4 (gl_MODECHANGE):
113435         * m4/mountlist.m4 (gl_MOUNTLIST):
113436         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
113437         * m4/openat.m4 (gl_FUNC_OPENAT):
113438         * m4/pathmax.m4 (gl_PATHMAX):
113439         * m4/physmem.m4 (gl_PHYSMEM):
113440         * m4/posixtm.m4 (gl_POSIXTM):
113441         * m4/posixver.m4 (gl_POSIXVER):
113442         * m4/quote.m4 (gl_QUOTE):
113443         * m4/quotearg.m4 (gl_QUOTEARG):
113444         * m4/readtokens.m4 (gl_READTOKENS):
113445         * m4/readutmp.m4 (gl_READUTMP):
113446         * m4/regex.m4 (gl_REGEX):
113447         * m4/safe-read.m4 (gl_SAFE_READ):
113448         * m4/safe-write.m4 (gl_SAFE_WRITE):
113449         * m4/same.m4 (gl_SAME):
113450         * m4/save-cwd.m4 (gl_SAVE_CWD):
113451         * m4/savedir.m4 (gl_SAVEDIR):
113452         * m4/settime.m4 (gl_SETTIME):
113453         * m4/sha1.m4 (gl_SHA1):
113454         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
113455         * m4/stat-macros.m4 (gl_STAT_MACROS):
113456         * m4/stat-time.m4 (gl_STAT_TIME):
113457         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
113458         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
113459         * m4/strdup.m4 (gl_FUNC_STRDUP):
113460         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
113461         * m4/strndup.m4 (gl_FUNC_STRNDUP):
113462         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
113463         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
113464         * m4/time_r.m4 (gl_TIME_R):
113465         * m4/timespec.m4 (gl_TIMESPEC):
113466         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
113467         * m4/unlinkdir.m4 (gl_UNLINKDIR):
113468         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
113469         * m4/userspec.m4 (gl_USERSPEC):
113470         * m4/utimecmp.m4 (gl_UTIMECMP):
113471         * m4/utimens.m4 (gl_UTIMENS):
113472         * m4/xalloc.m4 (gl_XALLOC):
113473         * m4/xgetcwd.m4 (gl_XGETCWD):
113474         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
113475         * m4/xreadlink.m4 (gl_XREADLINK):
113476         * m4/xstrtod.m4 (gl_XSTRTOD):
113477         * m4/yesno.m4 (gl_YESNO):
113478         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113479         to get the necessary .h files and whatnot.
113481 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
113482             Bruno Haible  <bruno@clisp.org>
113484         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
113485         /bin/sh understanding of '!' conditional negation.
113487 2006-08-21  Jim Meyering  <jim@meyering.net>
113489         * modules/openat (Depends-on): Really alphabetize.
113491         * modules/acl (Depends-on): Add error and quote.
113493         * check-module (find_included_lib_files): Add at-func.c to the
113494         ok-to-include-more-than-once white list.
113496         * modules/openat (Depends-on): Add lstat.  Alphabetize.
113498 2006-08-21  Bruno Haible  <bruno@clisp.org>
113500         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113501         Emit a pkgdata_DATA variable only if some snippets add contents to it.
113502         Reported by Martin Lambers <marlam@marlam.de>.
113504 2006-08-21  Bruno Haible  <bruno@clisp.org>
113506         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
113507         specify an installation location, don't emit a noinst_LIBRARIES or
113508         noinst_LTLIBRARIES assignment.
113510 2006-08-21  Bruno Haible  <bruno@clisp.org>
113512         BeOS portability.
113513         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
113514         BeOS has mbrtowc() but no <wctype.h>.
113516 2006-08-21  Bruno Haible  <bruno@clisp.org>
113518         BeOS portability.
113519         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
113520         exist.
113522 2006-08-21  Bruno Haible  <bruno@clisp.org>
113524         BeOS portability.
113525         * lib/mbchar.h: Include <wctype.h> only if it exists.
113527 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113529         Remove files that are no longer needed by their respective modules.
113530         * m4/obstack.m4: Remove.
113531         * m4/strerror_r.m4: Remove.
113532         * m4/uint32_t.m4: Remove.
113533         * m4/uintptr_t.m4: Remove.
113534         * m4/ullong_max.m4: Remove.
113535         * m4/xstrtoimax.m4: Remove.
113536         * m4/xstrtoumax.m4: Remove.
113538         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
113539         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
113540         dependencies now capture this.
113542         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
113543         Do not use AC_LIBSOURCES, since gnulib modules now do this.
113544         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
113545         * m4/human.m4 (gl_HUMAN): Likewise.
113546         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
113547         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
113549         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
113551         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
113552         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
113553         stdint.
113554         * m4/human.m4 (gl_HUMAN): Likewise.
113555         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
113556         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
113557         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113558         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113559         * m4/xstrtol (gl_XSTRTOL): Likewise.
113561         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
113562         AC_TYPE_LONG_LONG_INT.
113563         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113564         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
113565         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
113566         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113568         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
113569         on stdbool.
113571         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
113572         (gl_PREREQ_XSTRTOUL): Remove.
113574         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
113576         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
113577         mode.
113579 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113581         Add and change modules to make it easier for coreutils to use
113582         gnulib-tool.
113583         * modules/backupfile (Files): Remove m4/d-ino.m4.
113584         (Depends-on): Add d-ino.
113585         * modules/cycle-check (Depends-on): Add stdint.
113586         (lib_SOURCES): Add cycle-check.h.
113587         * modules/d-ino: New module.
113588         * modules/d-type: New module.
113589         * modules/error (Files): Remove m4/strerror_r.m4.
113590         * modules/filemode (Files): Add m4/st_dm_mode.m4.
113591         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
113592         m4/inttypes_h.m4, m4/uintmax_t.m4.
113593         (Depends-on): Add stdint.
113594         (lib_SOURCES): Add fsusage.h.
113595         * modules/getcwd (Files): Remove d-ino.m4.
113596         (Depends-on): Add d-ino.
113597         * modules/getndelim2 (Depends-on): Add stdint.
113598         * modules/glob (Files): Remove m4/d-type.m4.
113599         (Depends-on): Add d-type.
113600         * modules/host-os: New module.
113601         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
113602         m4/inttypes_h.m4, m4/uintmax_t.m4.
113603         * Depends-on: Add stdint.
113604         (lib_SOURCES): Add human.h.
113605         * modules/inttostr (Files): Remove m4/intmax_t.m4,
113606         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
113607         m4/uintmax_t.m4, m4/ulonglong.m4.
113608         (Depends-on): Add stdint.
113609         (EXTRA_DIST): Add inttostr.h.
113610         * modules/lchmod: New module.
113611         * modules/link-follow: New module.
113612         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
113613         (Depends-on): Add lchmod.
113614         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
113615         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
113616         (Depends-on): Add stdint.
113617         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
113618         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
113619         (Depends-on): Add stdint.
113620         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
113621         * modules/perl: New module.
113622         * modules/regex (Depends-on): Add stdint.
113623         * modules/rmdir-errno: New module.
113624         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
113625         m4/intmax_t.m4.
113626         (Depends-on): Add stdint.
113627         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
113628         m4/uintmax_t.m4.
113629         (Depends-on): Add stdint.
113630         * modules/unlink-busy: New module.
113631         * modules/utimecmp (Depends-on): Add stdint.
113632         * modules/uptime: New module.
113633         * modules/winsz-ioctl: New module.
113634         * modules/winsz-termios: New module.
113635         * modules/xnanosleep (Depends-on): Add nanosleep.
113636         * modules/ullong_max: Remove.
113637         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
113638         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
113639         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
113640         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
113641         (Depends-on): Add inttypes.
113642         (lib_SOURCES): Add xstrtol.h.
113643         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
113644         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
113645         * MODULES.html.sh: Move 'assert' into the assert section.
113646         Move 'dummy' into the linking section.
113647         Remove ullong_max.
113648         Add section for compatibility checks for POSIX:2001 functions,
113649         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
113650         winsz-ioctl, and winsz-termios into it.
113651         Add lchmod.
113652         Add top-level Misc section and put host-os, perl, and uptime
113653         into it.
113655 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113657         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
113658         now assume the stdint module.  Do not include inttypes.h.
113659         * lib/fsusage.h: Likewise.
113660         * lib/getndelim2.c: Likewise.
113661         * lib/human.h: Likewise.
113662         * lib/inttostr.h: Likewise.
113663         * lib/obstack.c: Likewise.
113664         * lib/regex_internal.h: Likewise.
113665         * lib/tempname.c: Likewise.
113666         * lib/utimecmp.c: Likewise.
113667         * lib/xstrtol.h: Likewise.
113669         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
113671         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
113672         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
113673         * lib/xtime.h: Likewise.
113675 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113677         * modules/openat (Files): Add lib/fchmodat.c.
113678         Fixes problem reported by Jay Youngman.
113680 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113682         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
113683         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
113685 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
113686             Bruno Haible  <bruno@clisp.org>
113688         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
113689         and is a script that invokes bison. Tighten the code. Add comments.
113691 2006-08-18  Jim Meyering  <jim@meyering.net>
113693         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
113694         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
113695         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
113696         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
113698 2006-08-18  Bruno Haible  <bruno@clisp.org>
113700         * modules/bison-i18n: New file.
113701         * MODULES.html.sh (Internationalization functions): Add it.
113703 2006-08-18  Bruno Haible  <bruno@clisp.org>
113705         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
113706         sys/statvfs.h. When getmntinfo was found, check its declaration and
113707         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
113709 2006-08-18  Bruno Haible  <bruno@clisp.org>
113711         * m4/bison-i18n.m4: New file, from bison.
113713 2006-08-18  Bruno Haible  <bruno@clisp.org>
113715         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
113716         (ME_DUMMY): Treat "kernfs" as a dummy.
113717         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
113719 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113721         Update from coreutils.
113723         2006-08-15  Jim Meyering  <jim@meyering.net>
113725         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
113727         2006-01-17  Jim Meyering  <jim@meyering.net>
113729         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
113731         2006-01-11  Jim Meyering  <jim@meyering.net>
113733         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
113734         Check for the lchmod function.
113736 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113738         Update from coreutils.
113740         * lib/__fpending.h: Add copyright notice.
113741         * lib/fprintftime.h: Likewise.
113742         * lib/savedir.c: Use (C) in copyright notice.
113743         * lib/savedir.h: Likewise.
113745         2006-08-15  Jim Meyering  <jim@meyering.net>
113747         * lib/at-func.c: New file, with the logic of all emulated at-functions.
113748         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
113749         in support of the EXPECTED_ERRNO macro.
113750         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
113751         definitions.  Instead, define the appropriate symbols and include
113752         "at-func.c".
113753         * lib/mkdirat.c (mkdirat): Likewise.
113754         * lib/fchmodat.c (fchmodat): Likewise.
113755         (ENOSYS): Remove definition.
113756         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
113757         it.  Don't include "unistd--.h" -- it wasn't ever used.
113759         2006-01-17  Jim Meyering  <jim@meyering.net>
113761         Rewrite fts.c not to change the current working directory,
113762         by using openat, fstatat, fdopendir, etc..
113764         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
113765         (HAVE_OPENAT_SUPPORT): Define.
113766         [_LIBC] (fchdir): Don't undef or define; no longer used.
113767         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
113768         Now, this `function' always succeeds, and consumes its file descriptor
113769         parameter -- so callers must not close such FDs.  Update callers.
113770         (diropen_fd, opendirat, cwd_advance_fd): New functions.
113771         (diropen): Add parameter, SP.  Adjust all callers.
113772         Implement using diropen_fd, rather than open.
113773         (fts_open): Initialize new member, fts_cwd_fd.
113774         Remove fts_rft-setting code.
113775         (fts_close): Close fts_cwd_fd, if necessary.
113776         (__opendir2): Define in terms of opendir or opendirat,
113777         depending on whether the FST_NOCHDIR flag is set.
113778         (fts_build): Since fts_safe_changedir consumes its FD, and since
113779         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
113780         and close the dup'd file descriptor upon failure.
113781         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
113782         (fts_safe_changedir): Tweak semantics to reflect that this function
113783         now calls cwd_advance_fd and hence consumes its FD argument.
113784         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
113785         [struct FTS] (fts_rft): Remove now-unused member.
113786         [struct FTS] (fts_cycle.state): Improve comment.
113788         * lib/openat.c (openat_needs_fchdir): New function.
113789         * lib/openat.h (openat_needs_fchdir): Declare it.
113791 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
113793         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
113794         Problem and fix reported by Pádraig Brady in
113795         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
113797 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113799         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
113801 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113803         * lib/memcoll.c (memcoll): Optimize for the common case where the
113804         arguments are bytewise equal.
113806 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113808         * doc/regexprops-generic.texi: Add a copyright notice.
113810 2006-08-15  Bruno Haible  <bruno@clisp.org>
113812         * modules/tmpdir (License): Change to LGPL.
113814 2006-08-15  Bruno Haible  <bruno@clisp.org>
113816         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
113817         module.
113819 2006-08-14  Simon Josefsson  <jas@extundo.com>
113821         * config/srclist.txt: Add gnupload.
113823 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113825         Change copyright notice from LGPL 2 to GPL 2, since that's the
113826         standard form used in the gnulib repository.
113827         * tests/test-lock.c: Likewise.
113828         * tests/test-stdint.c: Likewise.
113829         * tests/test-tls.c: Likewise.
113831         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
113832         prelude-manager.  User shorter URLs for GNU projects, without '?'.
113833         Add copyright notice.
113835         * check-module: Add copyright notice.  Output a copyright
113836         notice if "--version" is specified.
113837         * modules/COPYING: New file.
113838         * tests/test-getaddrinfo.c: Add copyright notice.
113839         * tests/test-verify.c: Likewise.
113841 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113843         Change copyright notice from LGPL 2 to GPL 2, since that's the
113844         standard form used in the gnulib repository.
113845         * lib/lock.c: LGPL -> GPL.
113846         * lib/lock.h: Likewise.
113847         * lib/strnlen1.c: Likewise.
113848         * lib/strnlen1.h: Likewise.
113849         * lib/tls.c: Likewise.
113850         * lib/tls.h: Likewise.
113851         * lib/tmpdir.c: Likewise.
113853         * lib/TODO: Remove; this belongs only in coreutils.
113855 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113857         Add copyright notices to long-enough files that lack them, since
113858         otherwise the files aren't clearly free.  Use the same notice that
113859         getdate.texi already uses.
113860         * doc/alloca-opt.texi: Add copyright notice.
113861         * doc/alloca.texi: Likewise.
113862         * doc/ctime.texi: Likewise.
113863         * doc/functions.texi: Likewise.
113864         * doc/gcd.texi: Likewise.
113865         * doc/gnulib-tool.texi: Likewise.
113866         * doc/inet_ntoa.texi: Likewise.
113867         * doc/visibility.texi: Likewise.
113869         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
113870         * doc/quote.texi: Add copyright notice.
113872         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
113873         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
113874         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
113875         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
113876         is now obsolete, and give a pointer to the Sun list.
113877         Add copyright notice.
113879 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113881         * config/srclistvars.sh: Add copyright notice.
113883 2006-08-14  Eric Blake  <ebb9@byu.net>
113885         Import the following change from libc:
113887         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
113889         Upstream bug 2997.
113890         * lib/misc/error.c: Add space between program name and message if file
113891         name is missing.
113893 2006-08-12  Karl Berry  <karl@gnu.org>
113895         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
113896         remove, these originate in gnulib now.
113898 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113900         * doc/Makefile (standards.info standards.html standards.dvi):
113901         Also depend on make-stds.texi.
113903 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
113905         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
113906         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
113908         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
113909         in wchar_t.  Problem reported by Eric Blake.
113911         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
113912         LEN is smaller than SIZE.  Suggested by Bruno Haible.
113913         Also, help the compiler to keep LEN in a register.
113915 2006-08-11  Eric Blake  <ebb9@byu.net>
113917         * users.txt: Sort.  Add tar.
113919 2006-08-11  Bruno Haible  <bruno@clisp.org>
113921         * users.txt: New file.
113923 2006-08-11  Bruno Haible  <bruno@clisp.org>
113925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
113926         before <wchar.h>. Needed for OSF/1 and BSD/OS.
113928 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
113930         * modules/snprintf (Depends-on): Remove minmax.
113931         (Maintainer): Add self and Bruno.
113933 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
113935         * lib/.cppi-disable: Add snprintf.h, socket_.h.
113936         * lib/snprintf.c: Include <errno.h> and <limits.h>.
113937         (EOVERFLOW): Define if the system does not.
113938         Do not include "minmax.h"; it wasn't used.
113939         (snprintf): Don't assume size_t promotes to an unsigned type.
113940         Fix bug when generated string was too long for the buffer: the
113941         buffer's contents are supposed to be the initial prefix of the
113942         output.  Don't assume vasnprintf returns EOVERFLOW if the size
113943         exceeds INT_MAX; do the check ourselves.
113945         Import the following changes from libc:
113947         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
113949         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
113950         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
113951         set wc to the byte which couldn't be converted.
113952         (re_string_reconstruct): Don't clear valid_raw_len before calling
113953         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
113954         tip_context using re_string_context_at.
113956         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
113958         * lib/posix/regex.h: g++ still cannot handled [restrict].
113960         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
113962         * lib/posix/regex.h: Remove special handling for VMS.
113964 2006-08-10  Jim Meyering  <jim@meyering.net>
113966         * modules/same-inode: New module.
113967         * modules/dev-ino: New module.
113968         * modules/cycle-check: Depend on these modules, rather than simply
113969         including their .h files.
113970         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
113971         required via m4/cycle-check.m4.
113972         * modules/same: Depend on new same-inode module, rather than
113973         including same-inode.h.
113974         * modules/chdir-safer: New file.
113976         * modules/chown (Depends-on): Add stat-macros.
113978 2006-08-10  Jim Meyering  <jim@meyering.net>
113980         * m4/cycle-check.m4: New file.
113981         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
113982         * m4/dev-ino.m4, m4/same-inode.m4: New files.
113984 2006-08-10  Eric Blake  <ebb9@byu.net>
113986         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
113987         in from original proposal.
113989 2006-08-10  Eric Blake  <ebb9@byu.net>
113990         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
113992         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
113993         namespace.
113995 2006-08-10  Bruno Haible  <bruno@clisp.org>
113997         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
113998         as well.
114000 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114002         Sync from coreutils.
114004         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
114006         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
114007         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
114009 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114011         * modules/restrict: Remove; no longer needed now that we assume
114012         Autoconf 2.59 or later.
114013         * MODULES.html.sh: Remove 'restrict'.
114014         * modules/argp (Depends-on): Remove 'restrict'.
114015         * modules/base64 (Depends-on): Likewise.
114016         * modules/gc (Depends-on): Likewise.
114017         * modules/getaddrinfo (Depends-on): Likewise.
114018         * modules/glob (Depends-on): Likewise.
114019         * modules/inet_ntop (Depends-on): Likewise.
114020         * modules/inet_pton (Depends-on): Likewise.
114021         * modules/memxor (Depends-on): Likewise.
114022         * modules/regex (Depends-on): Likewise.
114023         * modules/strtok_r (Depends-on): Likewise.
114024         * modules/time_r (Depends-on): Likewise.
114026 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114028         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
114029         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
114030         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
114031         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
114032         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
114033         * m4/memxor.m4 (gl_MEMXOR): Likewise.
114034         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
114035         gl_C_RESTRICT replaced by AC_C_RESTRICT.
114037         Merge from coreutils.
114038         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
114039         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
114040         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
114041         * m4/time_r.m4 (gl_TIME_R): Likewise.
114043 2006-08-09  Karl Berry  <karl@gnu.org>
114045         * config/srclist.txt: no more gettext-tools, per Bruno.
114047 2006-08-08  Eric Blake  <ebb9@byu.net>
114049         * modules/verror: New module.
114050         * MODULES.html.sh: Document it.
114052 2006-08-08  Eric Blake  <ebb9@byu.net>
114054         * lib/verror.h, lib/verror.c: New files.
114056 2006-08-08  Eric Blake  <ebb9@byu.net>
114058         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
114059         verror_at_line output complies with GNU Coding Standards even when
114060         file is NULL.
114062 2006-08-07  Bruno Haible  <bruno@clisp.org>
114064         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
114065         versions of AIX.
114066         Reported by Ralf Wildenhues.
114068 2006-08-07  Bruno Haible  <bruno@clisp.org>
114070         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
114071         in an AC_DEFUN. Needed so that the autoconf snippets can use
114072         AC_REQUIRE.
114074 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114076         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114077         Initialize pkgdata_DATA.
114078         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
114079         overriding it.
114081 2006-08-06  Eric Blake  <ebb9@byu.net>
114083         * lib/error.h: Fold in some upstream changes from glibc.
114084         * lib/error.c: Likewise.
114086 2006-08-04  Bruno Haible  <bruno@clisp.org>
114088         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114089         Make the mostlyclean-local rule depend on mostlyclean-generic.
114090         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
114092 2006-07-31  Bruno Haible  <bruno@clisp.org>
114094         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
114095         <stdlib.h>, <string.h>.
114097 2006-07-30  Bruno Haible  <bruno@clisp.org>
114099         * modules/readlink (License): Change to LGPL.
114101 2006-07-30  Bruno Haible  <bruno@clisp.org>
114103         * modules/javaversion (Makefile.am): Distribute javaversion.java and
114104         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
114105         set PKGDATADIR to point to it.
114107 2006-07-30  Bruno Haible  <bruno@clisp.org>
114109         * modules/csharpexec (configure.ac): Comment out macro invocation.
114110         * modules/javaexec (configure.ac): Likewise.
114111         * modules/javacomp-script (configure.ac): Likewise.
114113         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
114115 2006-07-30  Bruno Haible  <bruno@clisp.org>
114117         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
114118         linked-list.
114120 2006-07-30  Bruno Haible  <bruno@clisp.org>
114122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
114124 2006-07-30  Bruno Haible  <bruno@clisp.org>
114126         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114127         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
114128         get removed.
114130 2006-07-29  Bruno Haible  <bruno@clisp.org>
114132         Make it possible for gnulib-tool to work with locally modified or
114133         augmented gnulib repositories.
114134         * gnulib-tool (func_usage): Document --local-dir option.
114135         (local_gnulib_dir): New variable.
114136         Handle --local-dir option.
114137         (func_lookup_file): New function.
114138         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
114139         (func_get_description, func_get_filelist, func_get_description,
114140         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
114141         func_get_automake_snippet, func_get_include_directive,
114142         func_get_license, func_get_maintainer): Use func_lookup_file.
114143         (func_import, func_create_testdir): Use func_lookup_file.
114145 2006-07-29  Bruno Haible  <bruno@clisp.org>
114147         * modules/setenv (Depends-on): Add unistd.
114149 2006-07-29  Bruno Haible  <bruno@clisp.org>
114151         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
114153 2006-07-29  Bruno Haible  <bruno@clisp.org>
114155         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
114157 2006-07-29  Bruno Haible  <bruno@clisp.org>
114159         * gnulib-tool (import, update): If there is no Makefile.am, look at
114160         aclocal.m4, instead of bailing out.
114162 2006-07-29  Bruno Haible  <bruno@clisp.org>
114164         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
114165         Categorize the options by when they are useful.
114167 2006-07-29  Bruno Haible  <bruno@clisp.org>
114169         * gnulib-tool (func_usage): Document option --no-libtool.
114170         Handle option --no-libtool.
114171         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
114172         for changed semantics of $libtool variable.
114173         (func_import): Likewise. If libtool is not used, show this through
114174         an option --no-libtool.
114175         (func_create_testdir): Update.
114177 2006-07-29  Bruno Haible  <bruno@clisp.org>
114179         * gnulib-tool (func_import): Extend error message about missing
114180         --doc-base.
114182 2006-07-29  Bruno Haible  <bruno@clisp.org>
114184         * gnulib-tool (func_import): Don't create the $docbase directory if
114185         there is no file to store there.
114187 2006-07-29  Bruno Haible  <bruno@clisp.org>
114189         * gnulib-tool (autoconf_minversion): If a --dir option is given and
114190         relevant, look for configure.ac there, not in the current directory.
114191         Also use a simple search for AC_PREREQ, not "autoconf --trace".
114193 2006-07-29  Bruno Haible  <bruno@clisp.org>
114195         * gnulib-tool (SORT): New variable.
114196         (func_usage): Undocument --assume-autoconf option.
114197         Remove --assume-autoconf option handling.
114198         (autoconf_minversion): Determine from the contents of configure.ac.
114199         (func_import): Remove autoconf_minversion handling.
114200         Suggested by Eric Blake.
114202 2006-07-29  Bruno Haible  <bruno@clisp.org>
114204         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
114206 2006-07-29  Bruno Haible  <bruno@clisp.org>
114208         * config/srclist.txt (*setenv.[ch]): Remove rules.
114210 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114212         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
114214 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114216         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
114217         arpa/inet.h.
114219 2006-07-28  Simon Josefsson  <jas@extundo.com>
114221         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
114222         * modules/inet_pton (Depends-on): Likewise.
114224 2006-07-28  Simon Josefsson  <jas@extundo.com>
114226         * m4/netinet_in_h.m4: New file.
114228 2006-07-28  Simon Josefsson  <jas@extundo.com>
114230         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
114231         #include's.
114233 2006-07-28  Simon Josefsson  <jas@extundo.com>
114235         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
114236         #include's.
114238 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
114240         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
114241         setgid on directories only if they set these bits.
114242         * lib/modechange.h: Remove obsolete comment about masks.
114244 2006-07-28  Eric Blake  <ebb9@byu.net>
114246         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
114247         macro expansion.
114249 2006-07-28  Bruno Haible  <bruno@clisp.org>
114251         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
114253 2006-07-28  Bruno Haible  <bruno@clisp.org>
114255         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
114257 2006-07-28  Bruno Haible  <bruno@clisp.org>
114259         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
114260         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
114261         Define fallbacks.
114262         Avoids link error on FreeBSD 4.x.
114263         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
114265         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
114266         encoding.
114267         * lib/mbswidth.c (iswcntrl): Likewise.
114269 2006-07-27  Bruno Haible  <bruno@clisp.org>
114271         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
114272         test.
114274 2006-07-27  Bruno Haible  <bruno@clisp.org>
114276         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
114277         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
114278         defined.
114280 2006-07-26  Eric Blake  <ebb9@byu.net>
114282         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
114284 2006-07-26  Eric Blake  <ebb9@byu.net>
114286         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
114287         like mingw that lack mkstemp.
114288         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
114289         avoid compilation warning on mingw.
114291 2006-07-26  Bruno Haible  <bruno@clisp.org>
114293         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
114294         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
114295         INT_FAST*_MIN, INTPTR_MIN.
114297 2006-07-25  Bruno Haible  <bruno@clisp.org>
114299         * modules/version-etc (Depends-on): Add stdarg.
114301 2006-07-25  Bruno Haible  <bruno@clisp.org>
114303         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
114304         complex commands.
114306 2006-07-25  Bruno Haible  <bruno@clisp.org>
114308         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
114309         defined in <stdarg.h> or config.h.
114311 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114313         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
114314         (gl_STDIO_SAFER): Remove.
114316 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114318         * MODULES.html.sh (File stream based Input/Output):
114319         Add fopen-safer, tmpfile-safer; remove stdio-safer.
114320         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
114321         * modules/fopen-safer, modules/tmpfile-safer: New files.
114322         * modules/stdio-safer: Remove.
114324 2006-07-24  Bruno Haible  <bruno@clisp.org>
114326         * modules/tmpdir: New file.
114327         * MODULES.html.sh (File system functions): Add it.
114329 2006-07-24  Bruno Haible  <bruno@clisp.org>
114331         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
114332         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
114334 2006-07-24  Bruno Haible  <bruno@clisp.org>
114336         * modules/clean-temp: New file.
114338 2006-07-24  Bruno Haible  <bruno@clisp.org>
114340         * m4/tmpdir.m4: New file, from GNU gettext.
114342 2006-07-24  Bruno Haible  <bruno@clisp.org>
114344         * lib/tmpdir.h: New file, from GNU gettext.
114345         * lib/tmpdir.c: New file, from GNU gettext.
114347 2006-07-24  Bruno Haible  <bruno@clisp.org>
114349         * lib/clean-temp.h: New file, from GNU gettext.
114350         * lib/clean-temp.c: New file, from GNU gettext.
114352 2006-07-23  Eric Blake  <ebb9@byu.net>
114354         * modules/stdio-safer (Files): Add tmpfile-safer.c.
114355         (Depends-on): Add binary-io.
114357 2006-07-23  Eric Blake  <ebb9@byu.net>
114359         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
114361 2006-07-23  Eric Blake  <ebb9@byu.net>
114363         * lib/tmpfile-safer.c: New file.
114364         * lib/stdio-safer.h (fopen_safer): Add prototype.
114365         * lib/stdio--.h (tmpfile): Make safer.
114367 2006-07-23  Bruno Haible  <bruno@clisp.org>
114369         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
114370         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
114371         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
114372         gl_linked_remove_at): Use it.
114374 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114375         and Simon Josefsson <jas@extundo.com>
114377         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
114379         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
114381 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114383         * modules/close-stream: New file.
114384         * modules/closeout (Description): Make it clear that it exits
114385         with a diagnostic on error.
114386         (Depends-on): Add close-stream.  Remove fpending, stdbool.
114387         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
114389 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114391         * m4/close-stream.m4: New file.
114393 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114395         * lib/close-stream.c, lib/close-stream.h: New files.
114397 2006-07-22  Bruno Haible  <bruno@clisp.org>
114399         Merge from GNU gettext 0.15.
114401         2006-05-01  Bruno Haible  <bruno@clisp.org>
114403                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
114405         2006-07-22  Bruno Haible  <bruno@clisp.org>
114407                 * modules/javaversion: New file.
114408                 * MODULES.html.sh (Java): Add javaversion.
114410         2006-03-12  Bruno Haible  <bruno@clisp.org>
114412                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
114414         2005-12-04  Bruno Haible  <bruno@clisp.org>
114416                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
114417                 (untested).
114419         2006-06-21  Bruno Haible  <bruno@clisp.org>
114421                 Avoid warnings from recent versions of mcs.
114422                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
114423                 -o, -L, -r any more. Use options documented since mcs-1.0
114424                 instead. Similarly for -g.
114426         2005-12-04  Bruno Haible  <bruno@clisp.org>
114428                 * build-aux/csharpcomp.sh.in: Suffix for resources is
114429                 .resources, not .resource.
114431         2005-07-09  Bruno Haible  <bruno@clisp.org>
114433                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
114434                 add a .dll suffix.
114435                 Reported by Mark Junker <mjscod@gmx.de>.
114437         2006-07-22  Bruno Haible  <bruno@clisp.org>
114439                 * modules/gettext: Upgrade to gettext-0.15.
114440                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
114441                 m4/visibility.m4.
114442                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
114444 2006-07-22  Bruno Haible  <bruno@clisp.org>
114446         Merge from GNU gettext 0.15.
114448         2006-03-25  Bruno Haible  <bruno@clisp.org>
114450                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
114452         2006-07-21  Bruno Haible  <bruno@clisp.org>
114454                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
114455                 "1.1".
114457         2006-05-09  Bruno Haible  <bruno@clisp.org>
114459                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
114460                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
114461                 for the conftestver execution.
114463         2006-05-01  Bruno Haible  <bruno@clisp.org>
114465                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
114466                 optional target-version argument. Verify that the compiler
114467                 groks source of the specified source-version, or add -source
114468                 option as necessary. Verify that the compiler produces
114469                 bytecode in the specified target-version, or add -target and
114470                 -source options as necessary. Make the result of the test
114471                 available as variable CONF_JAVAC. Also log error output in
114472                 config.log.
114474         2006-03-11  Bruno Haible  <bruno@clisp.org>
114476                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
114478         2006-05-09  Bruno Haible  <bruno@clisp.org>
114480                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
114481                 CLASSPATH_SEPARATOR to a semicolon.
114483         2006-03-12  Bruno Haible  <bruno@clisp.org>
114485                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
114486                 available as variable CONF_JAVA, for subsequent autoconf
114487                 tests. Also log error output in config.log.
114489         2006-07-19  Bruno Haible  <bruno@clisp.org>
114491                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
114492                 that getline works on glibc2 systems. Needed to avoid trouble
114493                 in relocatable.c.
114494                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
114496         2005-12-04  Bruno Haible  <bruno@clisp.org>
114498                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
114499                 launcher (untested).
114501         2005-12-04  Bruno Haible  <bruno@clisp.org>
114503                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
114505         2006-07-22  Bruno Haible  <bruno@clisp.org>
114507                 * gettext.m4: Update from GNU gettext-0.15.
114508                 * nls.m4: Likewise.
114509                 * po.m4: Likewise.
114510                 * inttypes-pri.m4: Likewise.
114511                 * inttypes-h.m4: Renamed from inttypes.m4.
114512                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
114514 2006-07-22  Bruno Haible  <bruno@clisp.org>
114516         Merge from GNU gettext 0.15.
114518         2005-07-05  Bruno Haible  <bruno@clisp.org>
114520                 * printf-args.c (printf_fetchargs): Work around broken
114521                 definition of wint_t on mingw.
114523         2005-02-12  Bruno Haible  <bruno@clisp.org>
114525                 * xallocsa.h: Add extern "C" for C++.
114527         2006-05-17  Bruno Haible  <bruno@clisp.org>
114529                 Cygwin portability.
114530                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
114532         2006-04-30  Bruno Haible  <bruno@clisp.org>
114534                 * progreloc.c: Include <mach-o/dyld.h> if available.
114535                 (find_executable): Use _NSGetExecutablePath when possible.
114537         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
114539                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
114540                 function.
114542         2005-12-29  Bruno Haible  <bruno@clisp.org>
114544                 * progreloc.c (set_program_name_and_installdir): Fix
114545                 compilation error.
114547         2005-12-04  Bruno Haible  <bruno@clisp.org>
114549                 Cygwin portability.
114550                 * progreloc.c: Include <windows.h> also on Cygwin.
114551                 (find_executable): Add support for Cygwin.
114552                 (set_program_name_and_installdir): Handle also platforms with
114553                 nonempty EXEEXT.
114555         2006-07-11  Bruno Haible  <bruno@clisp.org>
114557                 * javacomp.c: Fix a comment.
114558                 Reported by Jim Meyering.
114560         2006-04-30  Bruno Haible  <bruno@clisp.org>
114562                 * javacomp.h (compile_java_class): Add source_version,
114563                 target_version arguments.
114564                 * javacomp.c: Rewritten to choose only a compiler that
114565                 respects the specified source_version and target_version.
114567         2006-06-27  Bruno Haible  <bruno@clisp.org>
114569                 Assume correct S_ISDIR macro.
114570                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
114572         2006-07-22  Bruno Haible  <bruno@clisp.org>
114574                 * javaversion.h: New file, from GNU gettext.
114575                 * javaversion.c: New file, from GNU gettext.
114576                 * javaversion.java: New file, from GNU gettext.
114577                 * javaversion.class: New file, from GNU gettext.
114579         2006-05-17  Bruno Haible  <bruno@clisp.org>
114581                 Cygwin portability.
114582                 * javaexec.c (execute_java_class): Test for jview program
114583                 also on Cygwin.
114585         2006-04-09  Bruno Haible  <bruno@clisp.org>
114587                 * fatal-signal.c: Don't include string.h.
114588                 (at_fatal_signal): Use a copying loop instead of memcpy.
114590         2005-12-04  Bruno Haible  <bruno@clisp.org>
114592                 * csharpexec.c: Add support for 'clix' launcher (untested).
114593                 (execute_csharp_using_sscli): New function.
114594                 (execute_csharp_program): Call it.
114596         2006-06-21  Bruno Haible  <bruno@clisp.org>
114598                 Avoid warnings from recent versions of mcs.
114599                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
114600                 -o, -L, -r any more. Use options documented since mcs-1.0
114601                 instead. Similarly for -g.
114603         2005-07-09  Bruno Haible  <bruno@clisp.org>
114605                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
114606                 add a .dll suffix.
114607                 Reported by Mark Junker <mjscod@gmx.de>.
114609         2006-06-17  Bruno Haible  <bruno@clisp.org>
114611                 * config.charset: Update for NetBSD 3.0.
114613         2006-05-17  Bruno Haible  <bruno@clisp.org>
114615                 Cygwin portability.
114616                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
114618         2006-05-16  Bruno Haible  <bruno@clisp.org>
114620                 * localcharset.c [CYGWIN]: Include <windows.h>.
114621                 (get_charset_aliases): For Cygwin, return the same CPxxx
114622                 aliases list as under WIN32.
114623                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
114624                 the environment variables. Fall back to GetACP().
114626         2006-04-05  Bruno Haible  <bruno@clisp.org>
114628                 * config.charset: Update Juan Manuel Guerrero's address.
114630         2005-02-12  Bruno Haible  <bruno@clisp.org>
114632                 * allocsa.h: Add extern "C" for C++.
114634         2005-02-10  Bruno Haible  <bruno@clisp.org>
114636                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
114637                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
114639         2006-07-22  Bruno Haible  <bruno@clisp.org>
114641                 * gettext.h: Update to GNU gettext-0.15.
114643 2006-07-22  Bruno Haible  <bruno@clisp.org>
114645         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
114646         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
114647         lib-prefix.m4, longdouble.m4, ssize_t.m4.
114649 2006-07-21  Eric Blake  <ebb9@byu.net>
114651         * modules/stdlib-safer: New file.
114652         * MODULES.html.sh (File stream based Input/Output): Add
114653         stdlib-safer.
114655 2006-07-21  Eric Blake  <ebb9@byu.net>
114657         * lib/stdlib-safer.h: New file from coreutils, required by
114658         stdlib--.h.
114660 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
114662         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
114664 2006-07-20  Bruno Haible  <bruno@clisp.org>
114666         * gnulib-tool: Recognize new option --assume-autoconf.
114667         (autoconf_minversion): New variable.
114668         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
114670 2006-07-20  Bruno Haible  <bruno@clisp.org>
114672         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
114674 2006-07-19  Derek R. Price  <derek@ximbiot.com>
114676         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
114677         Reindent and repaginate.
114679 2006-07-19  Derek Price  <derek@ximbiot.com>
114681         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
114682         Correct grammar.
114684 2006-07-17  Bruno Haible  <bruno@clisp.org>
114686         * modules/list: New file.
114687         * modules/array-list: New file.
114688         * modules/carray-list, modules/carray-list-tests: New files.
114689         * modules/linked-list, modules/linked-list-tests: New files.
114690         * modules/avltree-list, modules/avltree-list-tests: New files.
114691         * modules/rbtree-list, modules/rbtree-list-tests: New files.
114692         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
114693         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
114694         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
114695         * modules/oset: New file.
114696         * modules/array-oset: New file.
114697         * modules/avltree-oset, modules/avltree-oset-tests: New files.
114698         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
114699         * tests/test-carray_list.c: New file.
114700         * tests/test-linked_list.c: New file.
114701         * tests/test-avltree_list.c: New file.
114702         * tests/test-rbtree_list.c: New file.
114703         * tests/test-linkedhash_list.c: New file.
114704         * tests/test-avltreehash_list.c: New file.
114705         * tests/test-rbtreehash_list.c: New file.
114706         * tests/test-avltree_oset.c: New file.
114707         * tests/test-rbtree_oset.c: New file.
114708         * MODULES.html.sh (Container data structures): New section.
114710 2006-07-17  Bruno Haible  <bruno@clisp.org>
114712         * m4/gl_list.m4: New file.
114714 2006-07-17  Bruno Haible  <bruno@clisp.org>
114716         * lib/gl_list.h: New file.
114717         * lib/gl_list.c: New file.
114718         * lib/gl_array_list.h: New file.
114719         * lib/gl_array_list.c: New file.
114720         * lib/gl_carray_list.h: New file.
114721         * lib/gl_carray_list.c: New file.
114722         * lib/gl_linked_list.h: New file.
114723         * lib/gl_linked_list.c: New file.
114724         * lib/gl_anylinked_list1.h: New file.
114725         * lib/gl_anylinked_list2.h: New file.
114726         * lib/gl_avltree_list.h: New file.
114727         * lib/gl_avltree_list.c: New file.
114728         * lib/gl_anyavltree_list1.h: New file.
114729         * lib/gl_anyavltree_list2.h: New file.
114730         * lib/gl_rbtree_list.h: New file.
114731         * lib/gl_rbtree_list.c: New file.
114732         * lib/gl_anyrbtree_list1.h: New file.
114733         * lib/gl_anyrbtree_list2.h: New file.
114734         * lib/gl_anytree_list1.h: New file.
114735         * lib/gl_anytree_list2.h: New file.
114736         * lib/gl_linkedhash_list.h: New file.
114737         * lib/gl_linkedhash_list.c: New file.
114738         * lib/gl_anyhash_list1.h: New file.
114739         * lib/gl_anyhash_list2.h: New file.
114740         * lib/gl_avltreehash_list.h: New file.
114741         * lib/gl_avltreehash_list.c: New file.
114742         * lib/gl_rbtreehash_list.h: New file.
114743         * lib/gl_rbtreehash_list.c: New file.
114744         * lib/gl_anytreehash_list1.h: New file.
114745         * lib/gl_anytreehash_list2.h: New file.
114747         * lib/gl_oset.h: New file.
114748         * lib/gl_oset.c: New file.
114749         * lib/gl_array_oset.h: New file.
114750         * lib/gl_array_oset.c: New file.
114751         * lib/gl_avltree_oset.h: New file.
114752         * lib/gl_avltree_oset.c: New file.
114753         * lib/gl_rbtree_oset.h: New file.
114754         * lib/gl_rbtree_oset.c: New file.
114755         * lib/gl_anytree_oset.h: New file.
114757 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114759         * m4/mkancesdirs.m4: New file.
114760         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
114761         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
114762         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
114763         it.
114765 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114767         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
114768         * lib/mkancesdirs.h: New files.
114769         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
114770         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
114771         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
114772         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
114773         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
114774         callers changed.  Revamp internals significantly, by not
114775         attempting to create directories that are temporarily more
114776         permissive than the final results.  Do not attempt to use
114777         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
114778         This removes some race conditions, fixes some bugs, and simplifies
114779         things.  Use new dirchownmod function to do owner and mode changes.
114780         * lib/mkdir-p.h: Likewise.
114781         * lib/modechange.c (octal_to_mode): New function.
114782         (struct mode_change): New member mentioned.
114783         (make_node_op_equals): New arg mentioned.  All callers changed.
114784         (mode_compile): Keep track of which mode bits the user has explicitly
114785         mentioned.
114786         (mode_adjust): New arg DIR, so that we implement the X op correctly.
114787         New arg PMODE_BITS, to keep track of which mode bits the user
114788         mentioned; it treats S_ISUID and S_ISGID speciall.
114789         All callers changed.
114790         * lib/modechange.h: Likewise.
114792 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114794         * MODULES.html.sh: Add mkancestors.
114795         * modules/mkancesdirs: New module.
114796         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
114797         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
114798         The chdir-safer and afs files are now orphans; I'll remove them
114799         unless someone speaks up.
114800         Add lib/dirchownmod.c, lib/dirchownmod.h.
114801         (Depends-on): Remove alloca, chown, save-cwd, dirname.
114802         Add lchown, mkancesdirs.
114803         (Maintainer): Add self.
114805 2006-07-15  Karl Berry  <karl@gnu.org>
114807         * gnulib-tool: help message wording/arrangement.
114809 2006-07-14  Simon Josefsson  <jas@extundo.com>
114811         * doc/gnulib.texi (Libtool and Windows): New section.
114813 2006-07-12  Simon Josefsson  <jas@extundo.com>
114815         * modules/gendocs (License): Fix license, approved by Karl.
114817 2006-07-12  Eric Blake  <ebb9@byu.net>
114819         * MODULES.html.sh: Add gendocs.
114821 2006-07-11  Eric Blake  <ebb9@byu.net>
114823         * modules/fdl: New module, to install doc/fdl.texi.
114824         * MODULES.html.sh: Add new section for documentation modules.
114825         * gnulib-tool: Avoid space-tab.
114826         (--doc-base): New option, to manage files from doc.
114828 2006-07-11  Eric Blake  <ebb9@byu.net>
114830         * m4/absolute-header.m4: Fix comments to match recent change.
114832 2006-07-11  Eric Blake  <ebb9@byu.net>
114834         * gnulib-tool: List --doc-base before --tests-base.
114836 2006-07-11  Derek R. Price  <derek@ximbiot.com>
114838         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
114840 2006-07-11  Bruno Haible  <bruno@clisp.org>
114842         * README: Mention where to put documentation.
114844 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114846         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
114848 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
114850         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
114851         to stdint.m4.
114853 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
114855         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
114856         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
114857         "no/such/file/stdint.h" when there is no such file, so that
114858         the resulting C code can be parsed by dodgy compilers.
114859         Problems reported by Bob Proulx.
114861 2006-07-10  Derek R. Price  <derek@ximbiot.com>
114863         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
114864         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
114865         macros into the GNU _D_EXACT_NAMLEN.
114866         * lib/savedir.c:  Likewise.
114867         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
114869 2006-07-10  Derek R. Price  <derek@ximbiot.com>
114870         and Paul Eggert  <eggert@cs.ucla.edu>
114872         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
114873         * m4/savedir.m4:
114874         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
114875         macros into the GNU _D_EXACT_NAMLEN.
114877 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114879         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
114880         around the absolute name, to work around a problem with the HP-UX
114881         11.23 native C compiler, reported by Bob Proulx.
114883 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114885         * doc/maintain.texi, make-stds.texi: Sync from
114886         <http://savannah.gnu.org/projects/gnustandards>.
114888 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114890         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
114892 2006-07-09  Jim Meyering  <jim@meyering.net>
114894         * m4/glob.m4: Remove a doubled word in a comment.
114896 2006-07-09  Jim Meyering  <jim@meyering.net>
114898         * lib/argp-pv.c: Remove a doubled word in a comment.
114899         * lib/check-version.c (check_version): Likewise.
114900         * lib/javacomp.c (compile_java_class): Likewise.
114902 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
114904         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
114905         for the benefit of people using Autoconf 2.60.  If you want to
114906         support older Autoconf versions you can copy m4/onceonly_2_57.m4
114907         (or m4/onceonly.m4, if pre-2.57) manually.
114909 2006-07-08  Jim Meyering  <jim@meyering.net>
114911         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
114912         comment.
114913         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
114914         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
114915         comment.
114917 2006-07-08  Jim Meyering  <jim@meyering.net>
114919         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
114921 2006-07-07  Simon Josefsson  <jas@extundo.com>
114923         * tests/test-crc.c: Change expected crc value, the test vector
114924         were probably computed using the old broken crc.c?
114926 2006-07-06  Simon Josefsson  <jas@extundo.com>
114928         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
114929         now the canonical place for the M4 file).
114931         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
114932         from the sys_socket dependency now.
114934         * modules/inet_pton (Files): Ditto.
114936         * modules/inet_ntop (Files): Ditto.
114938 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
114940         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
114941         not gl_PREREQ_GETUSERSHELL.
114943 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114945         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
114946         with only one argument, for Autoconf 2.60.
114947         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
114948         expand to nothing, so add a shell command to avoid syntax error.
114949         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
114951 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114953         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
114955 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114957         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
114958         no longer needed.  Check for isblank decl.
114959         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
114960         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
114961         of existence.
114963 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114965         * lib/getloadavg.c: Use __VMS, not VMS.
114966         * lib/getopt.c: Likewise.
114967         * lib/getpagesize.h: Likewise.
114968         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
114969         and probably does not work.
114971 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114973         * lib/.cppi-disable: Add wcwidth.
114974         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
114975         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
114976         (ISGRAPH): Remove.  All uses changed to isgraph.
114977         (FOLD) [!defined _LIBC]: Remove special case.
114978         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
114979         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
114980         HAVE_ISBLANK.
114981         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
114982         case.
114984 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
114986         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
114987         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
114988         brackets.  Other minor changes to suppress some compiler
114989         warnings.
114991 2006-07-06  Derek R. Price  <derek@ximbiot.com>
114992         and Paul Eggert  <eggert@cs.ucla.edu>
114994         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
114995         of invoking obsolescent AC_HEADER_DIRENT macro.
114996         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
114997         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
114998         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
114999         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
115000         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
115001         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115002         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
115003         * m4/readdir.m4: Remove; no longer needed.
115005 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115006         and Paul Eggert  <eggert@cs.ucla.edu>
115008         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
115009         Don't worry about this obsolete case any more.
115010         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
115011         directories.
115012         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
115013         worry about this obsolete case any more.
115014         * lib/fts.c: Likewise.
115015         * lib/getcwd.c: Likewise.
115016         * lib/glob.h: Likewise.
115017         * lib/savedir.c: Likewise.
115019 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115021         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
115022         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
115023         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
115024         needed.
115025         All uses removed.
115026         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115027         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115028         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
115029         needed.
115030         * m4/getdate.m4 (gl_GETDATE): Likewise.
115031         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115032         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115033         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115034         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115035         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115036         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115037         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
115038         needed.
115040 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115042         * lib/memcasecmp.c: Include <limits.h>.
115043         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
115044         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
115045         Don't assume isdigit succeeds only on '0' through '9'.
115047 2006-07-05  Eric Blake  <ebb9@byu.net>
115049         * modules/getaddrinfo (Depends-on): Add snprintf.
115051 2006-07-05  Eric Blake  <ebb9@byu.net>
115053         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
115054         to avoid 'header present but could not be compiled' on cygwin.
115056 2006-07-05  Eric Blake  <ebb9@byu.net>
115058         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
115059         missing from netdb.h.
115060         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
115062 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115064         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
115065         no longer needed.
115066         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
115067         * m4/getdate.m4 (gl_GETDATE): Likewise.
115068         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115069         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115070         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115071         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115072         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115074 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115076         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
115077         All uses of is_space replaced by isspace.
115078         * lib/exit.h: Don't talk about STDC_HEADERS.
115079         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
115080         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
115081         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
115082         replaced by isprint etc.
115083         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
115084         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
115085         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
115086         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
115087         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
115088         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
115090 2006-07-05  Bruno Haible  <bruno@clisp.org>
115092         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
115093         the function exists, before testing against AIX.
115094         Reported by Martin Lambers <marlam@marlam.de>.
115096 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
115098         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
115099         From Mark D. Baushke.
115101 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
115103         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
115104         to the absolute name, not just one, to bypass Sun C 5.8's
115105         "warning: #include of /usr/include/... may be non-portable".
115107 2006-07-04  Eric Blake  <ebb9@byu.net>
115109         * modules/dirname-tests: New test module.
115110         * tests/test-dirname.c: New file, replacing dirname.c
115111         TEST_DIRNAME section that was recently deleted.
115113 2006-07-04  Bruno Haible  <bruno@clisp.org>
115115         Assume ANSI C header files and <ctype.h> functions.
115116         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
115117         (mbsnwidth): Use isprint, iscntrl instead.
115119 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115121         Merge from coreutils.
115122         * MODULES.html.sh: Add xstrtold.
115123         * modules/xstrtold: New file.
115124         * modules/cycle-check (Files): Add lib/same-inode.h.
115125         * modules/dirname (Files): Add m4/double-slash-root.m4.
115126         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
115127         * modules/mkdir-p (Files): Add lib/same-inode.h.
115128         * modules/same (Files): Add lib/same-inode.h.
115130 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115132         * m4/absolute-header.m4: Renamed from full-header-path.m4.
115133         This is to keep the terminology clean; POSIX talks about
115134         "absolute pathnames", not "full pathnames", but the GNU
115135         Coding Standards say to use "path" for something else;
115136         so use "absolute" to keep both sides happy.
115137         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
115138         Set gl_absolute_header, not gl_full_header_path.
115139         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
115140         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
115141         All uses changed.
115143         Merge from coreutils.
115145         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
115147         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
115148         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
115149         want to require the building of c-strtod.o.
115150         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
115151         needs -lm directly.
115152         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
115154         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
115156         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
115157         --as-needed option if available.  Problem reported by Albert Chin in
115158         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
115159         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
115160         cc merely issues a bunch of annoying warnings for --as-needed
115161         (this problem was reported by Bob Proulx).  Also, try linking with
115162         -lm to detect a bug in binutils 2.16 (this problem was reported
115163         by Ralf Wildenhues).
115165         2006-06-18  Jim Meyering  <jim@meyering.net>
115167         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
115168         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
115169         macro.
115170         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
115171         also check for glibc-2.4's abort-inducing bug.
115173         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
115174         Low-probability clean-up should be to use rmdir to get rid of
115175         the just-created directory, not unlink.
115177         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
115178         configure fail, and request a bug report to inform us about it.
115179         Add a comment that, barring reports to the contrary, in 2007 we'll
115180         assume ftruncate is universally available.
115182         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
115184         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
115186         2006-03-12  Jim Meyering  <jim@meyering.net>
115188         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
115189         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
115190         * m4/same.m4 (gl_SAME): Likewise.
115191         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
115193         2006-03-11  Eric Blake  <ebb9@byu.net>
115195         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
115196         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
115197         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
115198         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
115200 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115202         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
115203         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
115204         reported by Mark D. Baushke, one in
115205         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
115207         Merge from coreutils.
115209         * lib/.cppi-disable: Add stdint_.h.
115210         * lib/.cvsignore: Add stdint.h.
115212         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
115214         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
115215         both double and long double versions.
115216         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
115217         * lib/xstrtold.c: New file.
115218         * lib/xstrtod.h (xstrtold): New decl.
115220         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
115222         * lib/filemode.c (setst): Remove.
115223         (strmode): Rewrite to avoid setst.  This makes the code shorter,
115224         (arguably) clearer, and the generated code is a bit smaller on my
115225         Debian GNU/Linux stable x86 host.
115227         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
115229         * lib/filemode.c: Include "filemode.h" first, to test the interface.
115230         Assume that filemode.h includes sys/types.h and sys/stat.h.
115231         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
115232         (ftypelet): Reorder to put common cases first, for efficiency.
115233         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
115234         to do 'M'.
115235         (strmode): Renamed from mode_string, and now stores 12 bytes instead
115236         of 10, for compatibility with FreeBSD.  All callers changed.
115237         (filemodestring): Now stores 12 bytes instead of 10, and sets file
115238         types that can't be deduced solely from st_mode.  First arg is now a
115239         const pointer.
115240         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
115241         (strmode): Renamed from mode_string.
115242         (filemodestring): New decl.
115243         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
115244         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
115245         needed.
115246         (S_ISPORT, S_ISWHT): New macros, if not already defined.
115248         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
115250         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
115251         fsusage.h now does that.  Include fsusage.h first, to test interface.
115252         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
115253         at most one method (the old code could have generated decls that
115254         didn't conform to C89, not that this was ever exercised).
115255         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
115257         2006-03-19  Jim Meyering  <jim@meyering.net>
115259         Work even in a chroot where d_ino values for entries in "/"
115260         don't match the stat.st_ino values for the same names.
115261         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
115262         number, iterate through all entries again, using lstat instead.
115263         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
115264         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
115266         * lib/getcwd.c (__getcwd): Clarify a comment.
115267         Use memcpy in place of a call to strcpy.
115269         2006-03-12  Jim Meyering  <jim@meyering.net>
115271         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
115272         matches that of the current directory (which we're about to chdir ".."
115273         out of), then save the dev-ino of the parent, instead.
115275         * lib/same-inode.h (SAME_INODE): New file/macro.
115276         * lib/chdir-safer.c (SAME_INODE): Remove definition.
115277         Include "same-inode.h", instead.
115278         * lib/same.c: Likewise.
115279         * lib/cycle-check.h: Include "same-inode.h".
115280         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
115281         * lib/cycle-check.c (SAME_INODE): Remove definition.
115282         * lib/root-dev-ino.h: Include "same-inode.h".
115284         2006-03-11  Eric Blake  <ebb9@byu.net>
115286         * lib/same.c (same_name): s/base_name/last_component/
115287         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
115288         * lib/filenamecat.c (file_name_concat): Likewise.
115290         2006-03-11  Eric Blake  <ebb9@byu.net>,
115291                     Paul Eggert  <eggert@cs.ucla.edu>
115293         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
115294         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
115295         drive prefix.
115296         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
115297         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
115298         (last_component): New method.
115299         * lib/dirname.c (dir_len): Determine when drive letters need a
115300         subsequent slash.  Preserve // when it is special.
115301         (dir_name): Don't append dot when drive letter is absolute.
115302         [TEST_DIRNAME]: Move into a full-blown gnulib test.
115303         * lib/basename.c (base_name): New semantics - malloc the result.
115304         Preserve // when it is special.  Preserve relative files that look
115305         like drive letters.
115306         (base_len): Preserve // when it is special.
115307         (last_component): New method, similar to old base_name semantics.
115308         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
115309         base_name.  Strip redundant slashes from ///.
115311 2006-07-03  Jim Meyering  <jim@meyering.net>
115313         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
115314         macro is used before the first cycle_check call.
115316 2006-07-03  Eric Blake  <ebb9@byu.net>
115318         * modules/dirname (Depends-on): Add xstrndup.
115320 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115322         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
115323         test cases, so that config.log is a bit easier to follow.
115325 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115327         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
115328         both are 64 bits, since this seems to be the tradition, and this
115329         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
115330         we ever run into a host that prefers long long to long in this
115331         case, we'll need another configure-time test.  Problem reported by
115332         Jim Meyering.
115334 2006-07-02  Eric Blake  <ebb9@byu.net>
115336         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
115338 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115340         * modules/inttypes (Depends-on): No longer depends on stdint.
115341         * modules/stdint (Description): Say more about assumptions.
115342         Say that the fast types might differ.  Say macros are used.
115343         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
115344         (Makefile.am): Revise list of substituted symbols to match
115345         new stdint.m4.
115346         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
115347         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
115348         * tests/test-stdint.c (verify_same_types)
115349         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
115350         the code conforms to C99/C89.
115351         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
115352         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
115354 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115356         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
115357         but fix a bug, by requiring at least 64 bits.
115358         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
115359         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
115360         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
115361         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
115363         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
115364         changes.  Make 2.59 a prerequisite.  Check and substitute for
115365         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
115366         inttypes.h.  Do not use special include files; just use the
115367         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
115368         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
115369         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
115370         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
115371         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
115372         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
115373         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
115374         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
115375         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
115376         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
115377         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
115378         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
115379         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
115380         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
115381         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
115382         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
115383         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
115384         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
115385         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
115386         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
115387         WINT_MAX.  Check for C99 conformance more strictly, by detecting
115388         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
115389         not check for things that C99 does not require, e.g., int8_t.  If
115390         a test isn't needed unless <stdint.h> isn't working, and is
115391         unlikely to be needed for any other reason, then don't do it
115392         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
115393         size_t, since we assume C89 freestanding at least.  Do not check
115394         for sig_atomic_t, wchar_t, or wint_t, since the code now does
115395         the right thing even if the types are not defined.  Instead use:
115396         (gl_STDINT_TYPE_PROPERTIES): New macro.
115397         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
115398         testing whether <sys/types.h> clashes, as Autoconf does this for
115399         us now.  All uses removed.
115400         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
115401         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
115402         (gl_CHECK_TYPE_SAME):
115403         Remove; no longer needed.
115404         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
115405         exists, since we'll return 0 anyway in that case.
115406         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
115408 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115410         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
115411         possible collision with system files.
115412         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
115413         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
115414         WCHAR_MIN and WCHAR_MAX in this case.
115415         (<stddef.h>): Do not include; no longer needed.
115416         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
115417         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
115418         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
115419         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
115420         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
115421         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
115422         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
115423         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
115424         !defined(__c99))]: Include in this case too, since it's harmless
115425         now.
115426         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
115427         dangerous to do so.
115428         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
115429         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
115430         (_STDINT_MIN, _STDINT_MAX): New macros.
115431         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
115432         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
115433         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
115434         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
115435         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
115436         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
115437         macros, not typedefs; this simplifies things quite a bit.
115438         Use long int for all types narrower than int64_t.
115439         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
115440         Define in terms of long long int or int64_t or long int,
115441         not int64_t or int32_t.  This saves some compile-time testing.
115442         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
115443         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
115444         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
115445         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
115446         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
115447         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
115448         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
115449         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
115450         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
115451         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
115452         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115453         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115454         undef any previous version and define our own version, for
115455         simplicity and consistency with the new macros for types.
115456         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115457         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115458         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
115459         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
115460         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
115461         @WINT_T_SUFFIX@ to keep things simple here.
115462         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
115463         Simplify by assuming typical 8/16/32/64 host, since we're
115464         already doing that elsewhere anyway.
115465         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
115466         and assume long long int is 64 bits if available.  This
115467         speeds up 'configure'.
115469 2006-07-01  Eric Blake  <ebb9@byu.net>
115471         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
115472         Reported by Andreas Buening.
115474 2006-07-01  Eric Blake  <ebb9@byu.net>
115476         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
115478 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115480         * lib/getaddrinfo.c: fixed typo
115482 2006-06-29  Jim Meyering  <jim@meyering.net>
115484         * modules/strftime (Maintainer): Add my name, since with the
115485         FPRINTFTIME changes strftime.c has forked from glibc.
115487 2006-06-29  Eric Blake  <ebb9@byu.net>
115489         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
115491 2006-06-29  Eric Blake  <ebb9@byu.net>
115493         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
115495 2006-06-29  Eric Blake  <ebb9@byu.net>
115497         * lib/stat_.h: New file.
115499 2006-06-29  Eric Blake  <ebb9@byu.net>
115501         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
115502         unused static function.
115504 2006-06-29  Eric Blake  <ebb9@byu.net>
115506         * doc/functions.texi (Function Portability): Document missing lstat
115507         on mingw.
115509 2006-06-29  Eric Blake  <ebb9@byu.net>
115511         * MODULES.html.sh: Add sys_stat.
115512         * modules/sys_stat: New module.
115513         * modules/mkstemp (Depends-on): Add sys_stat.
115515 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115517         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
115519 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115521         * m4/c-bs-a.m4: Removed.
115523 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115525         * lib/strftime.c: Assume strftime() exists.
115527 2006-06-29  Derek Price  <derek@ximbiot.com>
115529         * modules/c-bs-a: Removed - \a is C89.
115530         * MODULES.html.sh: Remove c-bs-a.
115532 2006-06-29  Bruno Haible  <bruno@clisp.org>
115534         * modules/wcwidth (License): Change to LGPL.
115536 2006-06-28  Simon Josefsson  <jas@extundo.com>
115538         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
115539         on _WIN32.
115541         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
115542         getnameinfo.
115544 2006-06-28  Simon Josefsson  <jas@extundo.com>
115546         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
115548 2006-06-28  Simon Josefsson  <jas@extundo.com>
115550         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
115551         functions there.  It will succeed on Windows XP, but on Windows
115552         2000 and (presumably) earlier, it will fail, and use the internal
115553         re-implementation.
115554         (use_win32_p): New function.
115555         (getaddrinfo): Use strtoul on servname, to support numeric ports.
115556         Support AI_NUMERICSERV to disable getservbyname.
115557         (getnameinfo): New function, only supports
115558         NI_NUMERICHOST|NI_NUMERICSERV for now.
115560         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
115561         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
115562         getnameinfo.
115564 2006-06-28  Eric Blake  <ebb9@byu.net>
115566         * modules/wcwidth: New file.
115567         * modules/mbchar (Depends-on): Add wcwidth.
115568         * modules/mbswidth (Depends-on): Add wcwidth.
115569         * MODULES.html.sh: Add wcwidth.
115571 2006-06-28  Eric Blake  <ebb9@byu.net>
115573         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
115574         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
115576 2006-06-28  Eric Blake  <ebb9@byu.net>
115578         * lib/xvasprintf.h: Fix comments.
115580 2006-06-28  Eric Blake  <ebb9@byu.net>
115582         * lib/mbchar.h (wcwidth): Include wcwidth.h.
115583         * lib/mbswidth.c (wcwidth): Move from here...
115584         * lib/wcwidth.h: ...to this new file.
115586 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115588         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
115590         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
115591         it's obsolete.
115592         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
115594 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115596         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
115597         Autoconf 2.60 says this stuff was obsolete.
115599 2006-06-28  Bruno Haible  <bruno@clisp.org>
115601         * modules/wcwidth (Files): Add m4/wchar_t.m4.
115603 2006-06-28  Bruno Haible  <bruno@clisp.org>
115605         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
115606         gt_TYPE_WCHAR_T.
115608 2006-06-28  Bruno Haible  <bruno@clisp.org>
115610         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
115611         declaration for wcwidth.
115612         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
115614 2006-06-28  Bruno Haible  <bruno@clisp.org>
115616         * lib/mkdtemp.c [MINGW]: Include <io.h>.
115617         (mkdir): Define using _mkdir.
115619 2006-06-28  Bruno Haible  <bruno@clisp.org>
115621         * lib/getaddrinfo.h: Fix POSIX URL.
115622         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
115623         _WIN32.
115624         (use_win32_p): Make static.
115625         (getaddrinfo): Reject service name if it is empty or does not consist
115626         solely of decimal digits, or if its value is > 65535.
115627         (getnameinfo): Remove useless casts.
115629 2006-06-27  Simon Josefsson  <jas@extundo.com>
115631         * modules/sys_select: New file, suggested by Bruno Haible, Paul
115632         Eggert and Martin Lambers.
115634 2006-06-27  Simon Josefsson  <jas@extundo.com>
115636         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
115637         Eggert and Martin Lambers.
115639 2006-06-27  Bruno Haible  <bruno@clisp.org>
115641         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
115642         result to 0, not to empty.
115643         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
115645 2006-06-27  Bruno Haible  <bruno@clisp.org>
115647         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
115649 2006-06-26  Simon Josefsson  <jas@extundo.com>
115651         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
115652         present.
115654 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
115656         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
115657         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
115658         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
115660 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
115662         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
115664 2006-06-26  Bruno Haible  <bruno@clisp.org>
115666         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
115668 2006-06-26  Bruno Haible  <bruno@clisp.org>
115670         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
115672 2006-06-26  Bruno Haible  <bruno@clisp.org>
115674         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
115675         SGI C compiler in pre-C99 mode.
115676         Suggested by Mark D. Baushke and Larry Jones.
115678 2006-06-26  Bruno Haible  <bruno@clisp.org>
115680         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
115681         WCHAR_MAX.
115682         Reported by Mark D. Baushke and Larry Jones.
115684 2006-06-26  Bruno Haible  <bruno@clisp.org>
115686         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
115687         in pre-C99 mode.
115688         Suggested by Mark D. Baushke and Larry Jones.
115690 2006-06-23  Simon Josefsson  <jas@extundo.com>
115691             Bruno Haible  <bruno@clisp.org>
115693         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
115694         Emit mostlyclean-local rule.
115695         (func_emit_tests_Makefile_am): Likewise.
115696         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
115698 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
115700         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
115702 2006-06-23  Bruno Haible  <bruno@clisp.org>
115704         * tests/test-stdint.c: Update to match ISO C 99 Technical
115705         Corrigendum 1.
115707 2006-06-23  Bruno Haible  <bruno@clisp.org>
115709         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
115711 2006-06-23  Bruno Haible  <bruno@clisp.org>
115713         * lib/stdint_.h: Treat IRIX like OpenBSD.
115715 2006-06-23  Bruno Haible  <bruno@clisp.org>
115717         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
115718         ISO C 99 Technical Corrigendum 1.
115720 2006-06-22  Simon Josefsson  <jas@extundo.com>
115722         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
115723         MinGW.
115725 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
115727         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
115728         needed.  Some compiler complained about some of them.  Problem reported
115729         by Larry Jones in
115730         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
115732 2006-06-21  Simon Josefsson  <jas@extundo.com>
115734         * tests/test-getaddrinfo.c: New file.
115736         * modules/getaddrinfo-tests: New file.
115738         * MODULES.html.sh: Add inet_pton.
115740         * modules/inet_pton: New file.
115742 2006-06-21  Simon Josefsson  <jas@extundo.com>
115744         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
115745         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
115746         of using the (limited) gnulib implementation on Windows XP.
115748         * m4/inet_pton.m4: New file.
115750 2006-06-21  Simon Josefsson  <jas@extundo.com>
115752         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
115753         variable.
115755         * lib/socket_.h: Don't define WINVER.
115757         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
115758         slightly modified to work in gnulib.
115760 2006-06-21  Simon Josefsson  <jas@extundo.com>
115762         * doc/gnulib.texi (Windows sockets): Add.
115764 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
115766         * lib/read-file.c (fread_file): Start with buffer allocation of
115767         0 bytes rather than 1 byte; this simplifies the code.
115768         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
115769         code to free buffer and save/restore errno.
115770         (internal_read_file): Remove unused local.
115772 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
115774         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
115775         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
115776         Problem reported by Denis Excoffier in
115777         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
115779 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115781         * modules/sys_socket, modules/socklen: Include sys/types since
115782         FreeBSD 4.x's sys/socket.h needs it.
115784 2006-06-19  Simon Josefsson  <jas@extundo.com>
115786         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
115788 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
115790         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
115792 2006-06-19  Bruno Haible  <bruno@clisp.org>
115794         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
115795         and FULL_PATH_INTTYPES_H in angle brackets.
115796         Reported by Mark D. Baushke <mdb@gnu.org>.
115798 2006-06-17  Eric Blake  <ebb9@byu.net>
115800         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
115801         errno.
115803 2006-06-17  Bruno Haible  <bruno@clisp.org>
115805         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
115806         <sys/inttypes.h>.
115808 2006-06-17  Bruno Haible  <bruno@clisp.org>
115810         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
115811         whether errno is declared. Assume <errno.h> declares errno.
115813 2006-06-17  Bruno Haible  <bruno@clisp.org>
115815         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
115817 2006-06-17  Bruno Haible  <bruno@clisp.org>
115819         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
115820         problem on Solaris 2.5.1.
115822 2006-06-16  Eric Blake  <ebb9@byu.net>
115824         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
115825         * lib/unicodeio.c [!defined errno]: Likewise.
115826         * lib/strtol.c [!defined errno]: Likewise.
115827         * lib/strtod.c [!defined errno]: Likewise.
115829 2006-06-15  Eric Blake  <ebb9@byu.net>
115831         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
115833 2006-06-15  Eric Blake  <ebb9@byu.net>
115835         * config/srclist.txt (ssize_t.m4): Lose sync.
115837 2006-06-15  Bruno Haible  <bruno@clisp.org>
115839         * modules/stdint (Files): Include m4/full-header-path.m4,
115840         m4/size_max.m4, m4/wchar_t.m4.
115841         (Makefile.am): Many more substitutions.
115842         * modules/stdint-tests: New file.
115843         * tests/test-stdint.c: New file.
115845 2006-06-15  Bruno Haible  <bruno@clisp.org>
115847         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
115848         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
115849         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
115850         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
115851         gl_CHECK_TYPE_SAME): New macros.
115853 2006-06-15  Bruno Haible  <bruno@clisp.org>
115855         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
115857 2006-06-15  Bruno Haible  <bruno@clisp.org>
115859         * lib/stdint_.h: Rewritten to be fully auto-configured.
115860         Fixes bug on HP-UX/IA64.
115862 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
115864         * lib/getdate.y (__attribute__): Don't define if already defined.
115865         Problem reported by Larry Jones.
115866         * lib/utimens.c (__attribute__): Likewise.
115868 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
115870         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
115871         reported by Andreas Schwab.
115873 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115874             Bruno Haible  <bruno@clisp.org>
115876         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
115877         check for the declaration of strnlen and a run test that exposes the
115878         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
115879         rpl_strndup.
115881 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115882             Bruno Haible  <bruno@clisp.org>
115884         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
115886 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115888         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
115889         compile test, for Tru64 4.0D.
115891 2006-05-28  Karl Berry  <karl@gnu.org>
115893         * config/srclist.txt (printf-args.c): lose sync.
115895 2006-05-26  Martin Lambers  <marlam@marlam.de>
115897         * lib/getpass.c: Updates the test for the native W32 API, and adds
115898         missing includes, thus fixing compilation warnings.
115900 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
115902         * lib/exclude.c (exclude_fnmatch): New function.
115903         (excluded_file_name): Call exclude_fnmatch.
115904         * lib/exclude.h (excluded_file_name): New prototype
115906 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
115908         * lib/tempname.c (small_open, large_open): New macros.
115909         (__open, __open64) [!_LIBC]: Remove.
115910         (__gen_tempname): Use small_open and large_open instead of __open
115911         and __open64.  This fixes a portability bug on HP-UX 11.11i
115912         reported by Simon Wing-Tang in
115913         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
115915 2006-05-24  Bruno Haible  <bruno@clisp.org>
115917         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
115918         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
115919         Reported by Thorsten Maerz <torte@netztorte.de> via
115920         Aaron Stone <aaron@serendipity.cx>.
115922 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
115924         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
115925         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
115926         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
115927         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
115928         not really conditional on the cache.
115929         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
115931 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
115933         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
115934         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
115935         (my_usleep): Don't mishandle maximum value.
115937 2006-05-19  Jim Meyering  <jim@meyering.net>
115939         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
115941 2006-05-17  Bruno Haible  <bruno@clisp.org>
115943         Cygwin portability.
115944         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
115946 2006-05-17  Bruno Haible  <bruno@clisp.org>
115948         * lib/stdint_.h: Fix recognition of Cygwin.
115950 2006-05-15  Bruno Haible  <bruno@clisp.org>
115952         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
115953         on libtool patch by Ralf Wildenhues.
115955 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
115957         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
115958         test for C99 conformance; (bool) 0.5 is an integer constant
115959         expression, but (bool) -0.5 is not.  Problem reported by Fedor
115960         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
115962 2006-05-11  Simon Josefsson  <jas@extundo.com>
115964         * m4/xvasprintf.m4: Fix obvious typo.
115966 2006-05-11  Jim Meyering  <jim@meyering.net>
115968         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
115969         James Lemley.
115971 2006-05-10  Simon Josefsson  <jas@extundo.com>
115973         * lib/md4.c: Typo fix, update copyright years.
115974         (K1, K2): Don't use L because it turn computations into 64-bit on
115975         64-bit platforms.
115977 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
115979         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
115980         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
115981         unwanted sign propagation, e.g., on hosts with 64-bit int.
115982         There still are some problems with reeelly weird theoretical hosts
115983         (e.g., 33-bit int) but it's not worth worrying about now.
115984         * lib/sha1.c (rol): Likewise.
115985         (K1, K2, K3, K4): Remove unnecessary L suffix.
115987 2006-05-10  Bruno Haible  <bruno@clisp.org>
115989         * lib/des.c: Cast to avoid warnings.
115991 2006-05-09  Bruno Haible  <bruno@clisp.org>
115993         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
115994         (Depends-on): Depend also on xsize, stdarg.
115995         (configure.ac): Add gl_XVASPRINTF.
115997 2006-05-09  Bruno Haible  <bruno@clisp.org>
115999         * m4/xvasprintf.m4: New file.
116001 2006-05-09  Bruno Haible  <bruno@clisp.org>
116003         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
116004         (EOVERFLOW): Define fallback value.
116005         (xstrcat): New function.
116006         (xvasprintf): Recognize the special case of a string concatenation.
116008 2006-05-08  Eric Blake  <ebb9@byu.net>
116010         * gnulib-tool (func_version): Base copyright year on CVS date.
116011         (func_emit_copyright_notice): New function.
116012         (func_emit_lib_Makefile_am): Use it.
116013         (func_emit_tests_Makefile_am): Likewise.
116014         (func_import): Likewise.
116016 2006-05-08  Bruno Haible  <bruno@clisp.org>
116018         * modules/stdarg: New file.
116019         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
116021 2006-05-08  Bruno Haible  <bruno@clisp.org>
116023         * m4/stdarg.m4: New file, from GNU gettext.
116025 2006-05-08  Bruno Haible  <bruno@clisp.org>
116027         * config/srclist.txt (build-aux/config.rpath): different from latest
116028         release.
116030 2006-05-08  Bruno Haible  <bruno@clisp.org>
116032         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
116034 2006-05-05  Jim Meyering  <jim@meyering.net>
116036         * m4/warning.m4: New file, derived from bison's file by the same name.
116038 2006-05-03  Bruno Haible  <bruno@clisp.org>
116040         * lib/stdint_.h: Shorter URL.
116041         * lib/inttypes.h: Likewise.
116043 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116045         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
116047 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116049         * lib/verify.h: Document the internals better.  Most of this change
116050         was written by Bruno Haible.
116052 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116054         * doc/verify.texi: New file, partly based on a proposal by
116055         Bruno Haible.
116057 2006-05-02  Bruno Haible  <bruno@clisp.org>
116059         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
116060         test from here...
116061         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
116063 2006-04-29  Bruno Haible  <bruno@clisp.org>
116065         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
116066         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
116068 2006-04-29  Bruno Haible  <bruno@clisp.org>
116070         * gnulib-tool: Make --update option actually work.
116072 2006-04-29  Bruno Haible  <bruno@clisp.org>
116074         * doc/gcd.texi: New file.
116075         * doc/gnulib.texi: Include it.
116077 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
116079         * lib/getdate.y (get_date): When adding relative date, start with the
116080         initial time, not with the result of the first mktime call.
116082 2006-04-25  Bruno Haible  <bruno@clisp.org>
116084         * gnulib-tool (func_import): Output the include directives in three
116085         blocks, sorted separately.
116086         Reported by Ben Pfaff <blp@cs.stanford.edu>.
116088 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
116090         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
116091         to define main with arguments, for C++.  Reported by Eric Blake.
116092         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
116093         Prefer 'int main ()' to 'int main (void)', for C++.
116094         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
116095         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
116096         for 'main', for C99 and C++.
116098 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
116100         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
116101         Don't assume that exit status -1 is valid.
116102         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
116103         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
116104         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
116105         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
116106         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
116107         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
116108         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
116109         functions can be used without declaring them, or that you can
116110         exit with status -1.
116111         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
116113 2006-04-24  Karl Berry  <karl@gnu.org>
116115         * config/srclist.txt (longdouble.m4): sync lost.
116117 2006-04-24  Eric Blake  <ebb9@byu.net>
116119         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
116121 2006-04-24  Bruno Haible  <bruno@clisp.org>
116123         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
116124         poll() implementation in AIX.
116125         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116127 2006-04-24  Bruno Haible  <bruno@clisp.org>
116129         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
116130         assigned exactly once.
116132 2006-04-23  Claudio Fontana  <claudio@gnu.org>
116133             Bruno Haible  <bruno@clisp.org>
116135         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
116136         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
116137         for AM_CPPFLAGS.
116139 2006-04-23  Bruno Haible  <bruno@clisp.org>
116141         * modules/copy-file: Depend on unistd.
116142         * modules/execute: Likewise.
116143         * modules/fatal-signal: Likewise.
116144         * modules/findprog: Likewise.
116145         * modules/mkdtemp : Likewise.
116146         * modules/pipe: Likewise.
116147         * modules/wait-process: Likewise.
116149 2006-04-23  Bruno Haible  <bruno@clisp.org>
116151         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
116152         condition was already detected.
116153         Reported by Ben Pfaff <blp@cs.stanford.edu>.
116155 2006-04-23  Bruno Haible  <bruno@clisp.org>
116157         * lib/copy-file.c: Include <unistd.h> unconditionally.
116158         * lib/execute.c: Likewise.
116159         * lib/fatal-signal.c: Likewise.
116160         * lib/findprog.c: Likewise.
116161         * lib/mkdtemp.c: Likewise.
116162         * lib/pipe.h: Likewise.
116163         * lib/pipe.c: Likewise.
116164         * lib/wait-process.h: Likewise.
116166 2006-04-23  Bruno Haible  <bruno@clisp.org>
116168         * gnulib-tool (func_usage): Fix --import description. Document
116169         --update.
116170         (func_import): Create temporary file in a temporary directory, if
116171         --dry-run is specified. Silence errors from 'grep' when there are no
116172         m4 files in $m4dir.
116173         (func_create_testdir): Silence errors from 'grep' when there are no
116174         m4 files in $m4dir.
116175         Reported by Karl Berry <karl@freefriends.org>.
116177 2006-04-20  Bruno Haible  <bruno@clisp.org>
116179         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
116180         one argument, so that the code will be portable to Autoconf 2.60.
116181         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
116182         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
116183         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
116185 2006-04-19  Derek Price  <derek@ximbiot.com>
116186             Eric Blake  <ebb9@byu.net>
116188         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
116189         rather than "/full/path.h".  Update comment to match.  Shorten &
116190         generalize m4_translit call via AS_TR_CPP.
116192 2006-04-19  Derek Price  <derek@ximbiot.com>
116193             Eric Blake  <ebb9@byu.net>
116195         * lib/inttypes.h: Correct grammar in comment.
116197 2006-04-18  Derek Price  <derek@ximbiot.com>
116198             Paul Eggert  <eggert@cs.ucla.edu>
116200         * modules/inttypes: New file.
116201         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
116203 2006-04-18  Derek Price  <derek@ximbiot.com>
116204             Paul Eggert  <eggert@cs.ucla.edu>
116206         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
116207         New files.
116209 2006-04-18  Derek Price  <derek@ximbiot.com>
116210             Paul Eggert  <eggert@cs.ucla.edu>
116212         * lib/inttypes.h: New file.
116213         * lib/strtoimax.c: Assume <inttypes.h>.
116215 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
116217         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
116218         isn't mounted.  Problem reported by Kir Kolyshkin.
116220 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
116222         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
116223         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
116224         Derek R. Price.
116225         * lib/regex.h (RE_DUP_MAX): Update comment to match current
116226         implementation.
116228 2006-04-12  Eric Blake  <ebb9@byu.net>
116230         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
116231         is now done automatically by the corresponding Autoconf macro.
116233 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
116235         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
116236         time_r.h.
116238 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116240         Merge regex changes from libc, removing some of our
116241         POSIX-conformance changes that were rejected and redoing them in a
116242         less-intrusive way.
116244         * lib/regcomp.c (re_compile_internal, init_dfa):
116245         Length arg is now size_t, not Idx.  All uses changed.
116246         (peek_token): Forward decl now says internal_function.
116247         (__re_error_msgid, __re_error_msgid_idx):
116248         Now static rather than extern with attribute_hidden.
116249         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
116250         For some reason libc prefers K&R style defns for external functions.
116251         (regerror) [!defined _LIBC]: Likewise.
116252         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
116253         (seek_collating_symbol_entry, lookup_collation_sequence_value):
116254         (build_range_exp, build_collating_symbol):
116255         Use K&R-style defn.
116256         (re_compile_fastmap): Use '\0' to memset, not 0.
116257         (utf8_sb_map): Make the calculations more obvious.
116258         (init_dfa, parse_bracket_exp, build_charclass_op):
116259         Call calloc and cast result, as glibc does.
116260         (init_word_char, fetch_token, peek_token, peek_token_bracket):
116261         (build_range_exp, build_collating_symbol):
116262         Now internal functions.
116264         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
116266         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
116267         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
116268         Don't depend on VMS; depend on __VMS instead, for POSIX
116269         namespace cleanness.
116270         (regoff_t): Define to ssize_t, not long int.
116272         Remove the REG_ macros named below.  Instead, make the old names
116273         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
116274         __USE_GNU_REGEX.
116275         (REG_BACKSLASH_ESCAPE_IN_LISTS):
116276         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
116277         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
116278         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
116279         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
116280         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
116281         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
116282         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
116283         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
116284         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
116285         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
116286         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
116287         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
116288         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
116289         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
116290         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
116291         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
116292         (REG_NREGS):
116293         Remove.  All uses replaced by the old RE_* names.
116294         (RE_BACKSLASH_ESCAPE_IN_LISTS):
116295         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
116296         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
116297         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
116298         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
116299         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
116300         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
116301         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
116302         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
116303         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
116304         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
116305         Don't bother having these macros be independent of each others'
116306         values, since they no longer exist in the POSIX name space.
116308         Rename the following member names back to their old names,
116309         unless !__USE_GNU_REGEX.  All uses changed back.
116310         (buffer): Renamed from re_buffer.
116311         (allocated): Renamed from re_allocated.
116312         (used): Renamed from re_used.
116313         (syntax): Renamed from re_syntax.
116314         (fastmap): Renamed from re_fastmap.
116315         (translate): Renamed from re_translate.
116316         (can_be_null): Renamed from re_can_be_null.
116317         (regs_allocated): Renamed from re_regs_allocated.
116318         (fastmap_accurate): Renamed from re_fastmap_accurate.
116319         (no_sub): Renamed from re_no_sub.
116320         (not_bol): Renamed from re_not_bol.
116321         (not_eol): Renamed from re_not_eol.
116322         (newline_anchor): Renamed from re_newline_anchor.
116323         (num_regs): Renamed from rm_num_regs.
116324         (start): Renamed from rm_start.
116325         (end): Renamed from rm_end.
116327         (free_state): Move up a bit.
116329         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
116330         #define to be empty.
116331         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
116332         when that is what is intended.
116333         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
116334         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
116335         (MAX): New macro.
116336         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
116337         All uses changed back to re_malloc, etc.  It's now the caller's
116338         responsibility to check for overflow; all callers changed.
116339         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
116340         (re_x2nrealloc): Remove.
116341         (free_state): Remove decl.
116343         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
116344         (re_set_registers, re_exec):
116345         Use K&R-style defn.
116347         2006-01-31  Roland McGrath  <roland@redhat.com>
116349         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
116350         Reported by Mike Frysinger <vapier@gentoo.org>.
116352         2006-01-15  Andreas Jaeger  <aj@suse.de>
116354         [BZ #1950]
116355         * lib/regex_internal.c (re_string_reconstruct): Adjust for
116356         build_wcs_upper_buffer change.
116357         (build_wcs_upper_buffer): Change return type.
116359         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
116361         * lib/regex_internal.h: Include <stdint.h> if available.
116363         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
116365         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
116367         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
116369         * lib/regcomp.c: Adjust for changed secondary hash function.
116371         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
116373         * lib/regex.h: Pretty printing.
116374         Clean up namespace a bit.
116376         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
116378         * lib/regexec.c (update_cur_sifted_state, check_arrival,
116379         check_arrival_add_next_nodes): Avoid using uninitialized variable.
116381         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116382                     Ulrich Drepper  <drepper@redhat.com>
116384         [BZ #1302]
116385         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
116386         changed.
116387         (bitset_word_t): Renamed from bitset_word.  All uses changed.
116389         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
116391         [BZ #281]
116392         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
116393         * lib/regcomp.c: Remove unnecessary uses of
116394         unsigned RE_TRANSLATE_TYPE.
116395         * lib/regex_internal.h: Likewise.
116396         * lib/regex_internal.c: Likewise.
116397         * lib/regexec.c: Likewise.
116398         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
116400         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
116402         * lib/regexec.c (find_recover_state): Remove unnecessary
116403         initialization.
116404         (transit_state_bkref): Make DFA a const pointer.
116405         (get_subexp): Likewise.
116406         (check_arrival): Likewise.
116407         (update_cur_sifted_state): Likewise.
116408         (re_search_internal): Likewise.
116409         (prune_impossible_nodes): Likewise.
116410         (acquire_init_state_context): Likewise.
116411         (proceed_next_node): Likewise.
116412         (set_regs): Likewise.
116413         (free_fail_stack_return): Likewise.
116414         (check_arrival_expand_ecl): Mark DFA parameter as const.
116415         (check_arrival_expand_ecl_sub): Likewise.
116416         (check_subexp_limits): Likewise.
116417         (sub_epsilon_src_nodes):  Likewise.
116418         (add_epsilon_src_nodes):  Likewise.
116419         (merge_state_array): Likewise.
116420         (update_regs): Likewise.
116421         (build_trtable): Likewise.
116422         (sift_states_backward): Mark MCTX parameter as const.
116423         (build_sifted_states): Likewise.
116424         (update_cur_sifted_state): Likewise.
116425         (sift_states_mkref): Likewise.
116426         (check_arrival_expand_ecl): Mark eclosure as const.
116427         (check_dst_limits_calc_pos_1): Likewise.
116428         * lib/regex_internal.h (re_match_context_t): Make dfa a const
116429         pointer.
116431         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
116433         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
116434         (transit_state_sb): Likewise.
116435         (transit_state_mb): Likewise.
116436         (sift_states_iter_mb): Likewise.
116437         (check_arrival_add_next_nodes): Likewise.
116438         (check_node_accept_bytes): Change first parameter to pointer-to-const.
116439         [_LIBC] (re_search_2_stub): Use mempcpy.
116441         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
116442         mbrtowc for very simple UTF-8 case.
116444         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
116445         a pointer-to-const.
116446         (re_acquire_state_context): Likewise.
116447         * lib/regex_internal.h: Adjust prototypes.
116449         * lib/regex.c: Prevent using C++ compilers.
116451         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
116452         (re_acquire_state_context): Likewise.
116454 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116456         * modules/regex (Depends-on): Add ssize_t.
116458 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116460         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
116461         translation table.
116463 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116465         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
116467 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
116468             Bruno Haible  <bruno@clisp.org>
116470         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
116471         <sys/types.h> and <inttypes.h>.
116473 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116475         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
116476         `__error_t_defined', so argp.h will not typedef the former.
116478 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
116480         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
116481         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
116482         glibc names.  Even if glibc is changed to conform to POSIX, the
116483         traditional names will be available anyway, since regex depends on
116484         the extensions module.  Also, fix a longstanding typo in the
116485         implementation of Spencer ERE test #75 from grep 2.3.  Problems
116486         reported by Emanuele Giaquinta.  Also, change sense of cached
116487         variable, so that the message makes sense.
116489 2006-03-24  Simon Josefsson  <jas@extundo.com>
116491         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
116492         including some doc fixes.
116493         (base64_encode_alloc): Fix +1 bug on allocation failures.
116495 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116497         * lib/base64.c (base64_encode): Do not read past end of array with
116498         unsanitized input on systems with CHAR_BIT > 8.
116500 2006-03-24  Eric Blake  <ebb9@byu.net>
116502         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
116504 2006-03-22  Karl Berry  <karl@gnu.org>
116506         * config/srclist.txt (*setenv.[ch]): get from coreutils.
116507         * config/srclistvars.sh (COREUTILS): new var.
116509 2006-03-17  Jim Meyering  <jim@meyering.net>
116511         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
116512         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
116514 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116516         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
116517         no longer needs it.  Instead, check that regoff_t is as least
116518         as wide as ptrdiff_t.
116520         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
116521         so that our regex.h stays compatible with the installed regex.
116522         This is helpful for installers who configure --without-included-regex.
116523         Problem reported by Emanuele Giaquinta.
116525 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116527         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
116528         Typedef to long int, not to off_, as POSIX will likely change
116529         in that direction.
116531 2006-03-15  Eric Blake  <ebb9@byu.net>
116533         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
116535 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116537         * lib/argp-help.c (validate_uparams): Fix typo
116538         * lib/argp-parse.c (argp_default_options): Consistently begin help
116539         messages with a lowercase letter.
116541 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
116543         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
116544         overrun buffers and shouldn't be used (much as gets shouldn't be
116545         used).
116546         * lib/time_r.c (asctime_r, ctime_r): Likewise.
116548 2006-03-08  Simon Josefsson  <jas@extundo.com>
116550         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
116551         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116553 2006-03-08  Simon Josefsson  <jas@extundo.com>
116555         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
116556         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116558 2006-03-08  Simon Josefsson  <jas@extundo.com>
116560         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
116561         signal that configure disabled the device.
116563 2006-03-08  Simon Josefsson  <jas@extundo.com>
116565         * build-aux/maint.mk: Fix refresh-po, to handle no translated
116566         languages.
116568 2006-03-07  Simon Josefsson  <jas@extundo.com>
116570         * modules/getopt (Depends-on): Add unistd.
116572         * modules/unistd: New file.
116574 2006-03-07  Simon Josefsson  <jas@extundo.com>
116576         * modules/gc-random: New file.
116578 2006-03-07  Simon Josefsson  <jas@extundo.com>
116580         * m4/unistd_h.m4: New file.
116582 2006-03-07  Simon Josefsson  <jas@extundo.com>
116584         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
116585         test to be side-effect free by storing the result in the cache
116586         variable gl_cv_lib_readline, and moving the assignment of
116587         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
116588         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116590 2006-03-07  Simon Josefsson  <jas@extundo.com>
116592         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
116593         error on missing devices (the functions will return an error).
116595         * m4/gc.m4: Move random stuff to gc-random.m4
116597 2006-03-07  Simon Josefsson  <jas@extundo.com>
116599         * lib/unistd_.h: New file.
116601 2006-03-07  Simon Josefsson  <jas@extundo.com>
116603         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
116605 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116607         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
116608         Problem reported by Juan Manuel Guerrero.
116610 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116612         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
116613         the unistd module.
116614         * lib/getlogin_r.c: Likewise.
116615         * lib/getlogin_r.h: Likewise.
116616         * lib/glob.c: Likewise.
116617         * lib/pagealign_alloc.c: Likewise.
116618         * lib/unistd_.h: Remove; no longer needed.
116620 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116622         * MODULES.html.sh (Support for systems lacking POSIX:2001):
116623         Add unistd.
116624         * modules/c-stack (Depends-on): Add unistd.
116625         * modules/getlogin_r: Likewise.
116626         * modules/glob: Likewise.
116627         * modules/pagealign_alloc: Likewise.
116628         * modules/unistd (Files): Remove lib/unistd_.h.
116629         (EXTRA_DIST): Remove.
116630         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
116631         need unistd_.h.
116632         (MOSTLYCLEANFILES): Remove unistd.h-t.
116634 2006-03-03  Simon Josefsson  <jas@extundo.com>
116636         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
116638 2006-03-03  Simon Josefsson  <jas@extundo.com>
116640         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
116641         libidn and bison.
116643 2006-03-03  Simon Josefsson  <jas@extundo.com>
116645         * build-aux/maint.mk: Add indent target.
116647 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
116649         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
116650         our replacement poll.h in any case, to avoid a differing
116651         declaration from a system header.  Seen on AIX.
116653 2006-03-01  Simon Josefsson  <jas@extundo.com>
116655         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
116656         <kasal@ucw.cz>.
116658 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116660         * modules/gettime (Depends-on): Add extensions module.
116661         * modules/nanosleep (Depends-on): Likewise.
116662         * modules/settime (Depends-on): Likewise.
116664 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116666         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
116667         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
116668         pedantically.
116669         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
116670         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
116672         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
116673         not "==".  Reported by Ralf Wildenhues.
116675 2006-03-01  Karl Berry  <karl@gnu.org>
116677         * doc/Copyright/request-*: new files, synced from gnuorg.
116679 2006-03-01  Karl Berry  <karl@gnu.org>
116681         * config/srclist.txt (Copyright/*): new entries.
116683 2006-02-28  Simon Josefsson  <jas@extundo.com>
116685         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
116687 2006-02-27  Simon Josefsson  <jas@extundo.com>
116689         * lib/base64.h: Indent #define's.  From Jim Meyering
116690         <jim@meyering.net>.
116692 2006-02-27  Jim Meyering  <jim@meyering.net>
116694         Revert the change of 2006-02-24, so these files can continue
116695         to be sync'd from gettext.
116696         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
116697         of `config.h'.
116699 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
116701         * modules/intprops: New file.
116702         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
116703         Add intprops.
116704         * modules/getloadavg (Files): Remove lib/intprops.h.
116705         (Depends-on): Add intprops.
116706         * modules/human: Likewise.
116707         * modules/inttostr: Likewise.
116708         * modules/openat: Likewise.
116709         * modules/sig2str: Likewise.
116710         * modules/userspec: Likewise.
116711         * modules/utimecmp: Likewise.
116712         * modules/xnanosleep: Likewise.
116713         * modules/xstrtol: Likewise.
116715 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
116717         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
116718         * modules/lock-tests (TESTS): Use $(EXEEXT).
116719         * modules/tls-tests: Likewise.
116720         * modules/argp-tests: Likewise.
116721         (check_PROGRAMS): New var, replacing...
116722         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
116724 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116726         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
116727         `config.h'.
116729 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
116731         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
116733 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116735         Sync from coreutils.
116736         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
116737         gl_CHDIR_SAFER.
116739 2006-02-22  Jim Meyering  <jim@meyering.net>
116741         Sync from coreutils.
116742         * m4/chdir-safer.m4: New file.
116744 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
116746         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
116747         AT_FDCWD exceeds INT_MAX.
116748         * lib/openat.h (AT_FDCWD): Likewise.
116750 2006-02-17  Eric Blake  <address@hidden>
116752         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
116754 2006-02-16  Simon Josefsson  <jas@extundo.com>
116756         * modules/getaddrinfo (Depends-on): Add sys_socket.
116758 2006-02-15  Simon Josefsson  <jas@extundo.com>
116760         * build-aux/maint.mk: Add dsyntax-check rule.
116762 2006-02-15  Eric Blake  <ebb9@byu.net>
116764         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
116765         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
116766         'present but cannot compile' warnings on cygwin.
116767         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
116768         use ws2tcpip.h if sys/socket.h works.
116769         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
116770         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
116772 2006-02-14  Simon Josefsson  <jas@extundo.com>
116774         * modules/maintainer-makefile (Files): Rename.
116776         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
116777         and (the local) Makefile.cfg to maint-cfg.mk.
116779         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
116780         to the latter.
116782         * modules/maintainer-makefile: New module.
116784         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
116785         severaly stripped to make it possible to build it up from scratch
116786         with reliable tests.
116788         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
116789         fixes to permit overriding the default actions when configure and
116790         makefile are not available.
116792 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
116794         Sync from coreutils.
116795         * modules/lstat (Depends-on): Don't depend on xalloc.
116796         (License): Change from GPL to LGPL, since this is now simply a
116797         replacement for a libc function.
116799 2006-02-14  Jim Meyering  <jim@meyering.net>
116801         Sync from coreutils.
116803         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
116804         failure on deficient systems, and simplify gnulib lgpl dependencies.
116805         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
116806         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
116808         * lib/xalloc-die.c: Remove unused definition of N_.
116810 2006-02-14  Jim Meyering  <jim@meyering.net>
116812         Sync from coreutils.
116813         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
116814         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
116815         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
116816         double-quote uses of that variable, to accommodate the rare case in
116817         which getmntent is available in none of the libraries checked.  This
116818         happens at least on FreeBSD 5.0.
116820 2006-02-13  Simon Josefsson  <jas@extundo.com>
116822         * gnulib-tool (Usage): Fix --import, from
116823         karl@freefriends.org (Karl Berry).
116825 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116827         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
116829 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
116831         * lib/argp-namefrob.h: Restore changes accidentally lost during the
116832         "autoupdate" on 2005-12-12.
116834 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
116836         * modules/closeout (Depends-on): Remove atexit.
116838 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
116840         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
116841         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
116843 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
116845         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
116846         __EXTENSIONS__ if this causes compilation to fail.  Problem
116847         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
116848         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
116850 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
116852         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
116853         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
116854         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
116855         All uses changed.
116857 2006-01-26  Simon Josefsson  <jas@extundo.com>
116859         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
116860         prototype is visible on mingw32.
116862         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
116863         for mingw32.
116865         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
116866         mingw32).
116868 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
116870         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
116871         attempt to open for write; this always fails, at least on POSIX
116872         hosts.  This reinstates the 2006-01-09 change, which was
116873         inadvertently removed.
116875 2006-01-26  Bruno Haible  <bruno@clisp.org>
116877         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
116878         Reported by Paul Eggert.
116880 2006-01-26  Bruno Haible  <bruno@clisp.org>
116881             Paul Eggert  <eggert@cs.ucla.edu>
116883         * lib/stdbool_.h (_Bool)
116884         [(! (defined __cplusplus || defined __BEOS__)
116885           && !defined __GNUC__
116886           && !(defined __HP_cc || defined __xlc__
116887                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
116888                || defined __sgi))]:
116889         #define to signed char in these cases too; this simplifies
116890         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
116891         etc., separately) and makes it more conservative.
116893 2006-01-25  Simon Josefsson  <jas@extundo.com>
116895         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
116896         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
116897         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
116899 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
116901         * lib/argp-namefrob.h: Bugfix. Remove stray #
116903 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
116905         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
116906         so that we test the test.
116907         Check for yet another HP-UX cc bug involving *bool |= bool.
116909 2006-01-25  Karl Berry  <karl@gnu.org>
116911         * config/srclist.txt (vasnprintf.c): sync lost.
116913 2006-01-25  Jim Meyering  <jim@meyering.net>
116915         Sync from the stable (b5) branch of coreutils:
116917         * lib/fts.c (fts_children): Don't let close() clobber errno from
116918         failed fchdir().
116920         * lib/fts.c (fts_stat): When following a symlink-to-directory,
116921         don't necessarily interpret stat-fails+lstat-succeeds as indicating
116922         a dangling symlink.  That can also happen at least for ELOOP.
116923         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
116924         FYI, this bug predates the inclusion of fts.c in coreutils.
116926         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
116927         in their own block, so pre-c99 compilers don't object.
116929         Avoid the double-free (first in fts_read, second in fts_close) that
116930         would occur when an `active' directory is made inaccessible (e.g.,
116931         via chmod a-x) during a traversal.
116932         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
116933         before returning.  Reproduce this failure by
116934         mkdir -p a/b; cd a; chmod a-x . b
116935         Reported by Stavros Passas.
116937 2006-01-25  Jim Meyering  <jim@meyering.net>
116939         * lib/fileblocks.c: Remove more useless parentheses.
116940         * lib/readutmp.h: Likewise.
116942 2006-01-25  Bruno Haible  <bruno@clisp.org>
116944         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
116945         warnings.
116946         Reported by Paul Eggert.
116948 2006-01-25  Bruno Haible  <bruno@clisp.org>
116950         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
116951         rid of a trap command. For Solaris sh.
116952         Reported by Mark D. Baushke <mdb@gnu.org>.
116954 2006-01-24  Simon Josefsson  <jas@extundo.com>
116956         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
116957         Bruno.
116959 2006-01-24  Karl Berry  <karl@gnu.org>
116961         * config/srclist.txt (argp-namefrob.h): sync lost.
116963 2006-01-24  Jim Meyering  <jim@meyering.net>
116965         * modules/openat (Files): Add lib/intprops.h.
116966         From Mark D. Baushke.
116968 2006-01-24  Jim Meyering  <jim@meyering.net>
116970         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
116971         Reported by Mark D. Baushke.
116973 2006-01-24  Jim Meyering  <jim@meyering.net>
116975         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
116977 2006-01-24  Bruno Haible  <bruno@clisp.org>
116979         * modules/strnlen (Maintainer): Change from glibc to all.
116981 2006-01-24  Bruno Haible  <bruno@clisp.org>
116983         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
116984         Patch by Paul Eggert.
116986 2006-01-24  Bruno Haible  <bruno@clisp.org>
116988         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
116989         already has it.
116990         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
116991         2005-11-26.
116993         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
116994         'signed char' to avoid problems with the built-in _Bool type.
116995         Reported by Paul Eggert on 2005-11-26.
116997 2006-01-24  Bruno Haible  <bruno@clisp.org>
116999         * gnulib-tool (func_import): Avoid constructing complicated sed
117000         expressions inside backquote.
117001         Report and solution by Mark D. Baushke <mdb@gnu.org>.
117003 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
117005         These changes imported from libc.
117006         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
117007         test and two separate function calls.
117008         * lib/strndup.c (__strndup): Add libc_hidden_def.
117010 2006-01-23  Simon Josefsson  <jas@extundo.com>
117012         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
117013         Remove the test_*_SOURCES variable: automake infers it by default.
117014         * modules/tls-tests: Likewise.
117016 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117018         Work around porting bugs reported by Dieter in
117019         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
117020         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
117021         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
117022         Include "getopt.h" first, to check interface.
117023         (getenv): Declare only if defined HAVE_DECL_GETENV &&
117024         !HAVE_DECL_GETENV.
117025         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
117026         (__strndup): Revert to K&R-style function dfns, the glibc style.
117027         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
117028         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
117029         Include strnlen.h first, to get prototype properly.
117030         (strnlen): Renamed from __strnlen.
117031         Remove weak alias.
117033 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117035         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
117037 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117039         * config/srclist.txt: Adjust to reflect glibc reorganization.
117040         This affects only comments.
117042 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117044          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
117045          Reported by Bruce Korb <bkorb@gnu.org>.
117047 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
117049         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
117050         to pacify gcc -Wswitch-default.
117052 2006-01-22  Bruno Haible  <bruno@clisp.org>
117054         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
117055         temporary buffer for sprintf, take into account the precision also
117056         for 'd', 'i', 'u', 'o', 'x', 'X'.
117058 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117060         * modules/argp-tests: New module
117061         * tests/test-argp.c: New file
117062         * tests/test-argp-2.sh: New file
117064 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117066         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
117067         (__argp_base_name): Removed
117068         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
117069         typo.
117070         (__argp_base_name): Provide macro definition or extern declaration
117071         depending on the configuration
117073 2006-01-20  Simon Josefsson  <jas@extundo.com>
117075         * modules/inet_ntop (Depends-on): Depend on sys_socket.
117077 2006-01-20  Simon Josefsson  <jas@extundo.com>
117079         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
117081 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
117083         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
117084         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
117085         Suggested by Bruno Haible.
117087 2006-01-20  Karl Berry  <karl@gnu.org>
117089         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
117090         until changes propagate, I guess.
117092 2006-01-19  Simon Josefsson  <jas@extundo.com>
117094         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
117096 2006-01-19  Simon Josefsson  <jas@extundo.com>
117098         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
117100 2006-01-19  Simon Josefsson  <jas@extundo.com>
117102         * gnulib-tool: Set check_PROGRAMS.
117104         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
117105         modules/des-tests, modules/gc-arcfour-tests,
117106         modules/gc-arctwo-tests, modules/gc-des-tests,
117107         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
117108         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
117109         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
117110         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
117111         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
117112         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
117113         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
117114         test_*_SOURCES.
117116 2006-01-18  Simon Josefsson  <jas@extundo.com>
117118         * modules/socklen (Depends-on): Depend on sys_socket.
117120 2006-01-18  Simon Josefsson  <jas@extundo.com>
117122         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
117123         modules/des-tests, modules/gc-arcfour-tests,
117124         modules/gc-arctwo-tests, modules/gc-des-tests,
117125         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
117126         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
117127         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
117128         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
117129         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
117130         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
117131         $(EXEEXT) to automake TESTS variable, for mingw32.
117133 2006-01-17  Simon Josefsson  <jas@extundo.com>
117135         * modules/socklen (Include): Need sys/socket.h.
117137 2006-01-17  Bruno Haible  <bruno@clisp.org>
117139         * modules/ssize_t (Include): Add <sys/types.h>.
117141 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
117143         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
117144         it's not portable and it doesn't work with cross-compiles.
117145         Problem reported by Bruno Haible.  Fix missing-$ typo in
117146         'test "gl_cv_ignore_unused_libraries" ...' that prevented
117147         -zignore from being used with Sun's C compiler.
117149 2006-01-12  Simon Josefsson  <jas@extundo.com>
117151         * lib/base64.c: Fix warning, reported by Bruno Haible
117152         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
117154 2006-01-12  Bruno Haible  <bruno@clisp.org>
117156         * modules/ldd: New file.
117157         * build-aux/ldd.sh.in: New file.
117158         * MODULES.html.sh (Support for building libraries and executables): Add
117159         ldd.
117161 2006-01-12  Bruno Haible  <bruno@clisp.org>
117163         * m4/ldd.m4: New file.
117165 2006-01-12  Bruno Haible  <bruno@clisp.org>
117167         * gnulib-tool (func_import, func_create_testdir): Don't go into an
117168         endless loop while replacing $auxdir with build-aux.
117170 2006-01-11  Simon Josefsson  <jas@extundo.com>
117172         * lib/stdint_.h (SIZE_MAX): Add missing (.
117174 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
117176         Sync from coreutils.
117177         * lib/md5.c: Fix commentary typos.
117178         (alignof, UNALIGNED_P): No need for a GCC-specific version.
117179         * lib/md5.h (__attribute__): Remove; unused.
117180         * lib/sha1.c: Fix commentary to match md5 better.
117181         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
117182         so that we don't need to worry about alignment.  All uses changed.
117183         This merges the 2005-10-28 md5 change into sha1.
117185 2006-01-11  Jim Meyering  <jim@meyering.net>
117187         Sync from coreutils.
117188         * lib/md5.c (OP): Fix spacing.
117190 2006-01-11  Bruno Haible  <bruno@clisp.org>
117192         Ensure automatic ordering between gl_LOCK and gl_ARGP.
117193         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
117194         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
117196 2006-01-11  Bruno Haible  <bruno@clisp.org>
117198         Ensure automatic ordering between gl_LOCK and gl_ARGP.
117199         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
117200         the "early" section as well.
117202 2006-01-11  Bruno Haible  <bruno@clisp.org>
117204         Avoid "ar: no archive members specified" error on MacOS X.
117205         * gnulib-tool (func_modules_add_dummy): New function.
117206         (func_import, func_create_testdir): Invoke it.
117208 2006-01-11  Bruno Haible  <bruno@clisp.org>
117210         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
117211         with $auxdir in AC_CONFIG_FILES statements.
117213 2006-01-11  Bruno Haible  <bruno@clisp.org>
117215         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
117216         Initialize also noinst_HEADERS to empty.
117218 2006-01-11  Bruno Haible  <bruno@clisp.org>
117220         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
117221         variables.
117222         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
117223         autoreconf.
117225 2006-01-11  Bruno Haible  <bruno@clisp.org>
117227         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
117228         overridable by the user.
117229         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117231 2006-01-10  Simon Josefsson  <jas@extundo.com>
117233         * modules/sys_socket: New file.
117235 2006-01-10  Simon Josefsson  <jas@extundo.com>
117237         * m4/sys_socket_h.m4: New file.
117239 2006-01-10  Simon Josefsson  <jas@extundo.com>
117241         * lib/socket_.h: New file.
117243 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117245         * modules/readutmp (Maintainer): Add myself.
117247 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117249         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
117250         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
117251         People who are still concerned with buggy memcmp implementations
117252         can invoke gl_FUNC_MEMCMP themselves.
117254 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117256         * lib/regex_internal.h (BITSET_WORD_BITS):
117257         Work around a bug in 64-bit PGC (before version 6.1-2), where the
117258         preprocessor mishandles large unsigned values as if they were signed.
117259         Problem reported by Claudio Fontana in
117260         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
117262 2006-01-10  Jim Meyering  <jim@meyering.net>
117264         Avoid the double-free (first in fts_read, second in fts_close) that
117265         would occur when an `active' directory is made inaccessible (e.g.,
117266         via chmod a-x) during a traversal.
117267         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
117268         before returning.  Reproduce this failure by
117269         mkdir -p a/b; cd a; chmod a-x . b
117270         Reported by Stavros Passas.
117272         Sync from coreutils.
117273         * lib/sha1.c: Tweak grammar in a comment.
117275 2006-01-10  Jim Meyering  <jim@meyering.net>
117277         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
117278         Patch by Joerg Sonnenberger.
117280 2006-01-10  Bruno Haible  <bruno@clisp.org>
117282         * modules/readutmp: Depend on module free.
117283         * modules/strtok_r: Depend on module restrict.
117285 2006-01-10  Bruno Haible  <bruno@clisp.org>
117287         * modules/gettext (configure.ac): Add an invocation of
117288         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
117290 2006-01-10  Bruno Haible  <bruno@clisp.org>
117292         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
117293         Reported by Werner Lemberg <wl@gnu.org>.
117295 2006-01-10  Bruno Haible  <bruno@clisp.org>
117297         * lib/localcharset.c: Update from GNU gettext.
117299 2006-01-10  Bruno Haible  <bruno@clisp.org>
117301         * lib/argp.h (__const): Remove macro. Use const instead.
117302         * lib/argp-fmtstream.h (__const): Likewise.
117303         * lib/glob_.h (__const): Remove macro.
117304         * lib/glob-libc.h: Use const instead of __const.
117306 2006-01-10  Bruno Haible  <bruno@clisp.org>
117308         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
117309         variable.
117310         Needed to avoid an automake error regarding the 'gettext' module.
117312 2006-01-09  Simon Josefsson  <jas@extundo.com>
117314         * modules/inet_ntop (Depends-on): Add restrict.
117316 2006-01-09  Simon Josefsson  <jas@extundo.com>
117318         * modules/gc-rijndael-tests (License): Put under LGPL.
117320         * modules/gc-des-tests (License): Likewise.
117322         * modules/gc-arcfour-tests (License): Likewise.
117324         * modules/gc-arctwo-tests (License): Likewise.
117326         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
117328         * modules/gc-hmac-sha1-tests (Files): Likewise.
117330         * modules/gc-hmac-md5-tests (License): Likewise.
117332         * modules/gc-sha1-tests (License): Likewise.
117334         * modules/gc-md5-tests (License): Likewise.
117336         * modules/gc-md4-tests (License): Likewise.
117338         * modules/gc-md2-tests (License): Likewise.
117340         * modules/gc-tests (License): Likewise.
117342         * modules/des-tests (License): Likewise.
117344         * modules/md4-tests (License): Likewise.
117346         * modules/md2-tests (License): Likewise.
117348 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117350         Sync from coreutils:
117352         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
117353         * modules/lib-ignore: New file.
117354         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
117355         chdir-safer.m4, lchmod.m4.
117356         * modules/openat: Add mkdirat.c, openat-priv.h.
117358 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117360         Sync from coreutils.
117361         * m4/lib-ignore.m4: New file.
117362         * m4/lchmod.m4: New file.
117364 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117366         Sync from coreutils.
117367         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
117368         for write access: POSIX says that must fail.
117369         * lib/fts.c (diropen): Likewise.
117370         * lib/save-cwd.c (save_cwd): Likewise.
117371         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
117372         well, for minor improvements on hosts that lack O_DIRECTORY.
117373         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
117374         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
117375         Fall back on chown if open failed with EACCES.
117377         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
117378         Report an error at compile-time if only a 1-second nominal clock
117379         resolution is found.
117381         * lib/lchmod.h: New file.
117382         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
117383         (make_dir_parents): Use lchown rather than chown, and
117384         lchmod rather than chmod.
117386         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
117387         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
117388         "proc" reported by n0dalus.
117390         * lib/mountlist.c: Include <limits.h>.
117391         (dev_from_mount_options)
117392         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
117393         New function.  It no longer assumes "dev=" has the System V meaning
117394         on Linux (since it doesn't).  It also parses "dev=" more carefully.
117395         (read_file_system_list)
117396         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
117397         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
117398         dev= in that case.
117400         * lib/posixtm.h (PDS_PRE_2000): New macro.
117401         * lib/posixtm.c (year): Arg is now syntax_bits rather than
117402         allow_century.  All usages changed.  Reject dates outside the range
117403         1969-1999 if PDS_PRE_2000 is used.
117405 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117407         Sync from coreutils.
117408         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
117409         (Time of day items): Mention the possibility of leap seconds.
117410         Problem reported by Dr. David Alan Gilbert.
117412 2006-01-09  Jim Meyering  <jim@meyering.net>
117414         Sync from coreutils.
117416         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
117418         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
117420         * lib/modechange.c (mode_compile): Reject an invalid mode string
117421         that starts with an octal digit.  From Andreas Gruenbacher.
117423         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
117424         and dup to open_safer and dup_safer, respectively.
117425         (openat_permissive): Fix typo in comment.
117427         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
117428         "gettext.h"; either no longer needed or are guaranteed by openat.h.
117429         (_): Remove; no longer needed.
117430         (openat): Renamed from rpl_openat; no need for rpl_openat
117431         since openat.h renames openat for us.
117432         Replace most of the body with a call to openat_permissive,
117433         to avoid duplicate code.
117434         Port to (probably hypothetical) environments were mode_t is
117435         wider than int.
117436         (openat_permissive): Require mode arg, so that we can check
117437         types better.  Put it just after flags.  Change cwd failure
117438         indicator from pointer-to-bool to pointer-to-errno-value.
117439         All callers changed.
117440         Invoke openat_save_fail and/or openat_restore_fail if
117441         cwd_errno is null, so that openat can call us.
117442         (openat_permissive, fdopendir, fstatat, unlinkat):
117443         Simplify errno handling to avoid some duplicate code,
117444         as it's OK to set errno on success.
117445         * lib/openat.h: Revamp code so that function macros depend on
117446         __OPENAT_PREFIX only, not also on AT_FDCWD.
117447         (openat_ro): Remove.  Caller changed to use openat_permissive.
117448         (openat_permissive): Now a macro, if not a function.
117449         (openat_restore_fail, openat_save_fail): Now always functions,
117450         since mkdirat needs them even if __OPENAT_PREFIX is defined.
117452         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
117453         and openat.c.
117454         * lib/mkdirat.c: Include openat-priv.h.
117455         Remove definitions of macros defined therein.
117456         * lib/openat.c: Likewise.
117458         * lib/mkdirat.c (mkdirat): New file and function.
117459         * lib/openat.h (mkdirat): Declare.
117461         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
117463         * lib/openat.h (openat_permissive): Declare.
117464         (openat_ro): Define.
117466         * lib/openat.c (EXPECTED_ERRNO): New macro.
117467         (openat_permissive): New function -- used in remove.c rewrite.
117468         (all functions): Set errno just before returning, only if there
117469         was an actual failure.
117470         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
117472         Emulate openat-family functions using Linux's procfs, if possible.
117473         Idea and some code based on Ulrich Drepper's glibc changes.
117475         * lib/openat.c: (BUILD_PROC_NAME): New macro.
117476         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
117477         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
117478         before falling back on save_cwd and restore_cwd.
117479         (fdopendir, fstatat, unlinkat): Likewise.
117481         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
117482         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
117484         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
117485         as second argument to va_arg.  Otherwise, some versions of gcc
117486         warn that `if this code is reached, the program will abort'.
117488 2006-01-09  Jim Meyering  <jim@meyering.net>
117490         Sync from coreutils.
117491         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
117492         Require openat-priv.h.
117494 2006-01-09  Bruno Haible  <bruno@clisp.org>
117496         * modules/strnlen (Include): Use strnlen.h.
117498 2006-01-09  Bruno Haible  <bruno@clisp.org>
117500         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
117502 2006-01-09  Bruno Haible  <bruno@clisp.org>
117504         * lib/sysexit_.h (EX_OK): New macro.
117505         Suggested by Martin Lambers <marlam@marlam.de>.
117507 2006-01-09  Bruno Haible  <bruno@clisp.org>
117509         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
117510         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
117512 2006-01-09  Bruno Haible  <bruno@clisp.org>
117514         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
117515         numbers.
117517 2006-01-09  Bruno Haible  <bruno@clisp.org>
117519         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
117520         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
117521         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
117522         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
117524 2006-01-09  Bruno Haible  <bruno@clisp.org>
117526         * build-aux/javacomp.sh.in: New file, moved from lib/.
117527         * modules/javacomp-script (Files): Update.
117528         (configure.ac): Add AC_CONFIG_FILES invocation.
117529         (EXTRA_DIST): Remove variable.
117531         * build-aux/javaexec.sh.in: New file, moved from lib/.
117532         * modules/javaexec (Files): Update.
117533         (configure.ac): Add AC_CONFIG_FILES invocation.
117534         (EXTRA_DIST): Remove javaexec.sh.in.
117536         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
117537         * modules/csharpcomp-script (Files): Update.
117538         (configure.ac): Add AC_CONFIG_FILES invocation.
117539         (EXTRA_DIST): Remove variable.
117541         * build-aux/csharpexec.sh.in: New file, moved from lib/.
117542         * modules/csharpexec (Files): Update.
117543         (configure.ac): Add AC_CONFIG_FILES invocation.
117544         (EXTRA_DIST): Remove csharpexec.sh.in.
117546 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117548         Sync from coreutils.
117550         Add POSIX ACL support
117551         * lib/acl.h (copy_acl, set_acl): Add declarations.
117552         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
117553         systems other than Linux.
117554         (chmod_or_fchmod): New function: use fchmod when possible,
117555         and chmod otherwise.
117556         (file_has_acl): Add a POSIX ACL implementation, with a
117557         Linux-specific subcase.
117558         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
117559         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
117560         acls are unsupported.
117561         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
117562         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
117563         are unsupported.
117565 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117567         Sync from coreutils.
117568         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
117570 2006-01-07  Bruno Haible  <bruno@clisp.org>
117572         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
117573         gl_EARLY.
117575 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117577         * lib/strftime.c (tzname): Don't declare if it is already #defined.
117578         Problem reported for Mingw by Mark Junker.
117580 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117582         * README: Gnulib normally doesn't generate a tarball.
117584 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
117586         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
117587         long int, not int, for nanosecond counts, so that people who are
117588         used to POSIX struct timespec won't be surprised.  Reported by Jim
117589         Meyering.
117591 2005-12-28  Bruno Haible  <bruno@clisp.org>
117593         * build-aux/config.rpath: Update from GNU gettext.
117595 2005-12-16  Jim Meyering  <jim@meyering.net>
117597         * modules/fprintftime: New module.
117598         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
117600 2005-12-16  Jim Meyering  <jim@meyering.net>
117602         * m4/fprintftime.m4: New file.
117604 2005-12-16  Jim Meyering  <jim@meyering.net>
117606         * lib/fprintftime.c, lib/fprintftime.h: New files.
117608 2005-12-15  Simon Josefsson  <jas@extundo.com>
117610         * modules/socklen (configure.ac): Fix M4 macro name, to align with
117611         new m4/socklen.m4.
117613 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117615         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
117616         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
117618 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117620         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
117621         * lib/argp-help.c (fill_in_uparams): Check if the constructed
117622         struct uparams is valid. Fall back to the default values if it is
117623         not.
117625 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117627         * modules/argp (Files): Add argp-pin.c
117628         (Depends-on): dirname
117629         (lib_SOURCES): Add argp-pin.c
117631 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117633         * m4/argp.m4:  Check if program_invocation_name and
117634         program_invocation_short_name are declared and define appropriate
117635         macros if they are not.
117637 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117639         * lib/argp-help.c (__argp_base_name): New function
117640         (__argp_short_program_name): Rewrite using __argp_base_name
117641         * lib/argp-namefrob.h: Define program_invocation_name and
117642         program_invocation_short_name if requested
117643         (__argp_base_name): Add prototype
117644         * lib/argp-parse.c (argp_def): Use gettext wrappers
117645         (argp_default_parser): Use __argp_base_name
117646         * lib/argp-pin.c: New file. Defines program_invocation_name and
117647         program_invocation_short_name on systems that lack them.
117649 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
117651         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
117652         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
117653         porting problem reported by Georg Schwarz in
117654         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
117656 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
117658         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
117659         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
117660         porting problem reported by Georg Schwarz in
117661         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
117663 2005-12-05  Bruno Haible  <bruno@clisp.org>
117665         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
117666         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
117667         Reported by Mark Junker <mjscod@gmx.de>.
117669 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
117671         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
117672         Use implementation from Albert Chin, with some
117673         comments/corrections by Stepan Kasal and myself.
117675 2005-12-02  Bruno Haible  <bruno@clisp.org>
117677         * gnulib-tool (func_import): Accept GPLed build tool modules when
117678         --lgpl is given.
117679         * modules/csharpcomp-script: New file.
117680         * modules/csharpcomp: Depend on it.
117681         * modules/javacomp-script: New file.
117682         * modules/javacomp: Depend on it.
117683         Suggested by Simon Josefsson.
117685 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
117687         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
117688         statement, to work around an HP-UX 10.20 compiler bug reported by
117689         Peter O'Gorman.
117691 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117693         * modules/savedir (Depends-on): Add openat.
117695 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117697         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
117698         (uintmax_t) [defined uintmax_t]: Do not declare.
117699         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
117700         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
117701         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
117702         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
117703         sake of portability to weird hosts that C allows (though we don't
117704         know of any practical examples).
117706         * lib/savedir.h (fdsavedir): New decl.
117707         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
117708         contains most of the former guts of savedir.
117709         (savedir): Use savedirstream.
117710         Include "openat.h".
117712 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
117714         * modules/obstack (Files): Add m4/ulonglong.m4.
117715         Problem reported by Davide Angelocola.
117717 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
117719         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
117720         coreutils no longer futzes with rounding modes.
117722 2005-11-14  Jim Meyering  <jim@meyering.net>
117724         * lib/mkstemp-safer.c: Include <config.h>, required for possible
117725         replacement of mkstemp.
117727 2005-11-10  Simon Josefsson  <jas@extundo.com>
117729         * lib/readline.c: Remove EOL.
117731 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117733         * modules/gethrxtime (Depends-on): Add gettime.
117735 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117737         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
117738         or gettimeofday; no longer needed.
117740 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117742         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
117743         time business.
117744         (gethrxtime) [! (HAVE_NANOUPTIME
117745         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
117746         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
117747         our own approximation.
117749 2005-11-08  Eric Blake  <ebb9@byu.net>
117751         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117753 2005-11-08  Eric Blake  <ebb9@byu.net>
117755         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117757 2005-11-04  Bruno Haible  <bruno@clisp.org>
117759         * gnulib-tool: Implement --update mode.
117761 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117763         Fix porting problem reported by Theodoros V. Kalamatianos.
117764         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
117765         Don't assume that futimes failing means we must fail.
117767 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117769         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
117770         variables to suggest the intended function of the PATH_MAX check.
117772 2005-10-30  Kean Johnston  <jkj@sco.com>
117774         Trivial changes to support SCO systems.
117775         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
117776         as PATH_MAX.
117777         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
117778         where __ptr is null when no I/O is pending.
117780 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
117782         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
117783         leave errno alone.  Problem reported by Dmitry V. Levin.
117785 2005-10-28  Simon Josefsson  <jas@extundo.com>
117787         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
117788         Test more.
117790         * tests/test-gc-md2.c, tests/test-md2.c: New files.
117792         * modules/md2, modules/md2-tests: New files.
117794 2005-10-28  Simon Josefsson  <jas@extundo.com>
117796         * m4/inet_ntop.m4: More tests.
117798         * m4/gc-md2.m4, md2.m4: New file.
117800 2005-10-28  Simon Josefsson  <jas@extundo.com>
117802         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
117803         "restrict" keywords, as per POSIX.  Protect the function
117804         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
117805         Don't use K&R prototypes.  Check the sprintf return values.
117806         Re-define EAFNOSUPPORT if not present.  Indent.
117808         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
117809         suggested by Bruno Haible <bruno@clisp.org>.
117811         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
117813         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
117815         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
117816         libgcrypt).
117818         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
117820         * lib/md2.h, lib/md2.c: New files.
117822 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
117824         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
117825         errno alone.  Problem reported by Frederic Jolliton.
117827 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
117829         * modules/verify (License): Change from GPL to LGPL.  This is a
117830         tiny module and there are apparently near-equivalents that are
117831         under the BSD license.
117833 2005-10-24  Simon Josefsson  <jas@extundo.com>
117835         * modules/sha1: Relicense to LGPL.
117837 2005-10-24  Simon Josefsson  <jas@extundo.com>
117839         * lib/md4.h: Shrink buffer size, now that we changed the type.
117841 2005-10-23  Simon Josefsson  <jas@extundo.com>
117843         * gnulib-tool (func_import): Fix --tests-base.
117845 2005-10-22  Simon Josefsson  <jas@extundo.com>
117847         * modules/arcfour (Depends-on): Need stdint.
117849 2005-10-22  Simon Josefsson  <jas@extundo.com>
117851         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
117852         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
117854 2005-10-22  Simon Josefsson  <jas@extundo.com>
117856         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
117857         suggested by Bruno Haible <bruno@clisp.org>.
117859 2005-10-22  Simon Josefsson  <jas@extundo.com>
117861         * lib/crc.h: Include stddef.h, for size_t.
117863 2005-10-22  Simon Josefsson  <jas@extundo.com>
117865         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
117866         arcfour_context struct (simplify test vector testing in GNU
117867         Shishi).
117869 2005-10-21  Simon Josefsson  <jas@extundo.com>
117871         * modules/des, modules/des-tests: New files.
117873         * modules/gc-des, modules/gc-des-tests: New files.
117875         * tests/test-des.c, tests/test-gc-des.c: New file.
117877 2005-10-21  Simon Josefsson  <jas@extundo.com>
117879         * modules/arctwo, modules/arctwo-tests: New files.
117881         * tests/test-arctwo.c: New file.
117883         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
117885         * tests/test-gc-arctwo.c: New file.
117887 2005-10-21  Simon Josefsson  <jas@extundo.com>
117889         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
117890         Bruno Haible <bruno@clisp.org>.
117892         * m4/gc-des.m4: New file.
117894 2005-10-21  Simon Josefsson  <jas@extundo.com>
117896         * m4/arctwo.m4: New file.
117898         * m4/gc-arctwo.m4: New file.
117900 2005-10-21  Simon Josefsson  <jas@extundo.com>
117902         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
117903         block.
117905 2005-10-21  Simon Josefsson  <jas@extundo.com>
117907         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
117908         <bruno@clisp.org>.
117910         * lib/hmac-sha1.c (hmac_sha1): Likewise.
117912         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
117913         Bruno Haible <bruno@clisp.org>.
117915         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
117916         <bruno@clisp.org>.
117918 2005-10-21  Simon Josefsson  <jas@extundo.com>
117920         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
117922 2005-10-21  Simon Josefsson  <jas@extundo.com>
117924         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
117926 2005-10-21  Simon Josefsson  <jas@extundo.com>
117928         * lib/des.h, lib/des.c: New files.
117930         * lib/gc-gnulib.c: Support DES.c
117932 2005-10-21  Simon Josefsson  <jas@extundo.com>
117934         * lib/arctwo.h, lib/arctwo.c: New files.
117936         * lib/gc-gnulib.c: Support ARCTWO.
117938 2005-10-21  Simon Josefsson  <jas@extundo.com>
117940         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
117941         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117943 2005-10-21  Simon Josefsson  <jas@extundo.com>
117945         * gnulib-tool (func_import, func_create_testdir): Define automake
117946         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
117947         Makefile.am snippet),
117948         suggested by Bruno Haible <bruno@clisp.org>.
117950         * modules/gc (Makefile.am): Use it.
117952 2005-10-21  Bruno Haible  <bruno@clisp.org>
117954         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
117955         patch.
117957 2005-10-19  Simon Josefsson  <jas@extundo.com>
117959         * tests/test-gc-rijndael.c: New file.
117961         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
117963 2005-10-19  Simon Josefsson  <jas@extundo.com>
117965         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
117966         interface too.
117968 2005-10-19  Simon Josefsson  <jas@extundo.com>
117970         * tests/test-gc-arcfour.c: New file.
117972         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
117974 2005-10-19  Simon Josefsson  <jas@extundo.com>
117976         * modules/gc-md4, modules/gc-md4-tests: New file.
117978         * tests/test-gc-md4.c: New file.
117980 2005-10-19  Simon Josefsson  <jas@extundo.com>
117982         * m4/gc-md4.m4: New file.
117984 2005-10-19  Simon Josefsson  <jas@extundo.com>
117986         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
117987         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
117988         <kasal@ucw.cz>.
117990 2005-10-19  Simon Josefsson  <jas@extundo.com>
117992         * m4/gc-arcfour.m4: New file.
117994         * m4/gc-rijndael.m4: New file.
117996 2005-10-19  Simon Josefsson  <jas@extundo.com>
117998         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
118000 2005-10-19  Simon Josefsson  <jas@extundo.com>
118002         * lib/gc-gnulib.c: Support ARCFOUR.
118004 2005-10-19  Simon Josefsson  <jas@extundo.com>
118006         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
118007         support.
118009         * lib/gc.h: Add ECB enum type.
118011         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
118013 2005-10-18  Simon Josefsson  <jas@extundo.com>
118015         * tests/test-md5.c: New file.
118017         * modules/md5-tests: New file.
118019 2005-10-18  Simon Josefsson  <jas@extundo.com>
118021         * tests/test-md4.c: New file.
118023         * modules/md4, modules/md4-tests: New files.
118025 2005-10-18  Simon Josefsson  <jas@extundo.com>
118027         * m4/md4.m4: New file.
118029 2005-10-18  Simon Josefsson  <jas@extundo.com>
118031         * lib/md4.h, lib/md4.c: New files, based on md5.?.
118033 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
118035         * gnulib-tool (func_create_testdir): Omit the second check whether
118036         BUILT_SOURCES in nonempty.
118038 2005-10-17  Simon Josefsson  <jas@extundo.com>
118040         * tests/test-rijndael.c: New file.
118042 2005-10-17  Simon Josefsson  <jas@extundo.com>
118044         * modules/sha1: Depend on stdint instead of md5.
118046         * modules/md5: Depend on stdint, remove uint32_t.
118048 2005-10-17  Simon Josefsson  <jas@extundo.com>
118050         * modules/gc-sha1-tests: New file.
118052         * tests/test-gc-sha1.c: New file.
118054 2005-10-17  Simon Josefsson  <jas@extundo.com>
118056         * m4/md5.m4: Remove call to uint32_t.m4.
118058 2005-10-17  Simon Josefsson  <jas@extundo.com>
118060         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
118062         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
118063         md5.h.
118065         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
118067         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
118069 2005-10-17  Simon Josefsson  <jas@extundo.com>
118071         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
118073 2005-10-17  Simon Josefsson  <jas@extundo.com>
118075         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
118077 2005-10-17  Simon Josefsson  <jas@extundo.com>
118079         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
118081         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
118083 2005-10-17  Bruno Haible  <bruno@clisp.org>
118085         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
118086         that it can also be used in a test.
118088 2005-10-16  Bruno Haible  <bruno@clisp.org>
118090         * gnulib-tool (func_emit_tests_Makefile_am): Also define
118091         TESTS_ENVIRONMENT, so that individual tests can augment it.
118093         * gnulib-tool (func_create_testdir): Use an intermediate target for
118094         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
118095         macros, like $(ALLOCA_H), which cannot be passed through the command
118096         line.
118098 2005-10-15  Simon Josefsson  <jas@extundo.com>
118100         * modules/rijndael-tests: New file.
118102         * modules/rijndael: New file.
118104 2005-10-15  Simon Josefsson  <jas@extundo.com>
118106         * m4/rijndael.m4: New file.
118108 2005-10-15  Simon Josefsson  <jas@extundo.com>
118110         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
118112         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
118114 2005-10-14  Simon Josefsson  <jas@extundo.com>
118116         * tests/test-arcfour.c: New file.
118118         * modules/arcfour, modules/arcfour-tests: New files.
118120 2005-10-14  Simon Josefsson  <jas@extundo.com>
118122         * m4/arcfour.m4: New file.
118124 2005-10-14  Simon Josefsson  <jas@extundo.com>
118126         * lib/arcfour.h, lib/arcfour.c: New files.
118128 2005-10-14  Roland McGrath  <roland@redhat.com>
118130         Import from libc.  [BZ #1331]
118131         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
118132         macro argument.
118133         Reported by Matej Vela <vela@debian.org>.
118135 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
118137         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
118138         include <wchar.h>; no longer needed.
118140 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
118142         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
118144 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
118145         and  Ulrich Drepper  <drepper@redhat.com>
118147         Import from libc.
118148         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
118149         instead of inline stream orientation test and two separate
118150         function calls.  Pay no attention to USE_IN_LIBIO.
118152 2005-10-13  Simon Josefsson  <jas@extundo.com>
118154         * modules/gc-hmac-md5-tests: New file.
118156         * tests/test-gc-hmac-sha1.c: New file.
118158         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
118160         * modules/gc-hmac-md5-tests: New file.
118162         * tests/test-gc-md5.c: New file.
118164         * modules/gc-md5-tests: New file.
118166 2005-10-13  Simon Josefsson  <jas@extundo.com>
118168         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
118169         Move memory allocation outside of loop.
118171 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
118173         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
118174         intermediate directory is in a read-only file system.  Problem
118175         reported by Eric Blake.
118177 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
118179         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
118181 2005-10-12  Simon Josefsson  <jas@extundo.com>
118183         * tests/test-hmac-sha1.c: New file.
118185         * modules/hmac-sha1-tests: New file.
118187         * modules/hmac-sha1: New file.
118189 2005-10-12  Simon Josefsson  <jas@extundo.com>
118191         * modules/gc-sha1: New file.
118193 2005-10-12  Simon Josefsson  <jas@extundo.com>
118195         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
118197         * tests/test-gc-pbkdf2-sha1.c: New file.
118199 2005-10-12  Simon Josefsson  <jas@extundo.com>
118201         * modules/gc-md5, modules/gc-hmac-md5: New files.
118203         * modules/gc (Files): Remove md5, memxor and hmac files.
118205 2005-10-12  Simon Josefsson  <jas@extundo.com>
118207         * m4/gc-pbkdf2-sha1.m4: New file.
118209         * m4/gc-hmac-sha1.m4: New file.
118211         * m4/gc-sha1: New file.
118213         * m4/hmac-sha1.m4: New file.
118215 2005-10-12  Simon Josefsson  <jas@extundo.com>
118217         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
118219         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
118221 2005-10-12  Simon Josefsson  <jas@extundo.com>
118223         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
118224         suggested by Bruno Haible <bruno@clisp.org>.
118226 2005-10-12  Simon Josefsson  <jas@extundo.com>
118228         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
118230 2005-10-12  Simon Josefsson  <jas@extundo.com>
118232         * lib/gc-pbkdf2-sha1.c: New file.
118234         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
118236 2005-10-12  Simon Josefsson  <jas@extundo.com>
118238         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
118240         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
118242 2005-10-12  Simon Josefsson  <jas@extundo.com>
118244         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
118245         GC_USE_HMAC_MD5, respectively.
118247         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
118248         (gc_md5): Fix typo.
118250         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
118252         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
118254         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
118256 2005-10-12  Bruno Haible  <bruno@clisp.org>
118258         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
118259         Reported by Stepan Kasal <kasal@ucw.cz>.
118261 2005-10-11  Simon Josefsson  <jas@extundo.com>
118263         * tests/test-crc.c: New file.
118265         * modules/crc, modules/crc-tests: New files.
118267 2005-10-11  Simon Josefsson  <jas@extundo.com>
118269         * m4/crc.m4: New file.
118271 2005-10-11  Simon Josefsson  <jas@extundo.com>
118273         * lib/gc.h: Add gc_hash and gc_hash_buffer.
118275         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
118277         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
118279 2005-10-11  Simon Josefsson  <jas@extundo.com>
118281         * lib/crc.h, lib/crc.c: New files.
118283         * lib/gc.h (gc_hash_buffer): Add doc.
118285 2005-10-11  Bruno Haible  <bruno@clisp.org>
118287         * modules/c-strcasestr: New file.
118288         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
118290 2005-10-11  Bruno Haible  <bruno@clisp.org>
118292         * modules/c-strcase: New file.
118293         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
118295 2005-10-11  Bruno Haible  <bruno@clisp.org>
118297         * lib/strcasecmp.c: Include limits.h.
118298         (strcasecmp): Avoid integer overflow on exotic platforms.
118299         * lib/strncasecmp.c: Include limits.h.
118300         (strncasecmp): Avoid integer overflow on exotic platforms.
118301         Reported by Paul Eggert.
118303 2005-10-11  Bruno Haible  <bruno@clisp.org>
118305         * lib/c-strcasestr.h: New file, from GNU gettext.
118306         * lib/c-strcasestr.c: New file, from GNU gettext.
118308 2005-10-11  Bruno Haible  <bruno@clisp.org>
118310         * lib/c-strcase.h: New file, from GNU gettext.
118311         * lib/c-strcasecmp.c: New file, from GNU gettext.
118312         * lib/c-strncasecmp.c: New file, from GNU gettext.
118314 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
118316         * modules/mempcpy (License): GPL -> LGPL.
118317         * modules/strchrnul (License): Likewise.
118318         * modules/sysexits (License): Likewise.
118320 2005-10-08  Simon Josefsson  <jas@extundo.com>
118322         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
118324 2005-10-07  Simon Josefsson  <jas@extundo.com>
118326         * m4/memxor.m4: Remove gl_C_RESTRICT call.
118328 2005-10-06  Simon Josefsson  <jas@extundo.com>
118330         * tests/test-hmac-md5.c: New file.
118332         * modules/hmac-md5-tests: New file.
118334         * modules/hmac-md5: New file.
118336 2005-10-06  Simon Josefsson  <jas@extundo.com>
118338         * m4/hmac-md5.m4: New file.
118340         * m4/memxor.m4: Require gl_C_RESTRICT.
118342 2005-10-06  Simon Josefsson  <jas@extundo.com>
118344         * lib/memxor.c (memxor): Avoid casts and warnings.
118346 2005-10-06  Simon Josefsson  <jas@extundo.com>
118348         * lib/hmac-md5.c: New file.
118350         * lib/hmac.h: New file.
118352 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
118354         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
118355         promotes to int, not unsigned int, to catch the AIX 5.3
118356         compiler bug.
118358 2005-10-05  Simon Josefsson  <jas@extundo.com>
118360         * modules/memxor: New file.
118362         * modules/iconv (Files): Move config.rpath to havelib, it is used
118363         there.
118365         * modules/havelib (Files): Add config.rpath.
118367 2005-10-05  Simon Josefsson  <jas@extundo.com>
118369         * m4/memxor.m4: New file.
118371 2005-10-05  Simon Josefsson  <jas@extundo.com>
118373         * lib/memxor.c (memxor): Fix compiler error.
118375         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
118376         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
118378         * lib/memxor.h, lib/memxor.c: New files.
118380         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
118381         we assume all systems have it, suggested by Jim Meyering
118382         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
118383         any systems lack sys/socket.h; mingw32 is known to lack it, but we
118384         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
118385         same reasons.
118387 2005-10-05  Simon Josefsson  <jas@extundo.com>
118389         * config/srclist.txt: Add glibc bug 1423 for md5.h.
118391 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
118393         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
118394         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
118395         needed, since the source code now assumes these .h files.
118397 2005-10-05  Derek Price  <derek@ximbiot.com>
118399         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
118401 2005-10-05  Bruno Haible  <bruno@clisp.org>
118403         * modules/stdint (License): Change to LGPL.
118405 2005-10-04  Simon Josefsson  <jas@extundo.com>
118407         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
118408         D. Baushke" <mdb@gnu.org>.
118410 2005-10-04  Bruno Haible  <bruno@clisp.org>
118412         * lib/verify.h (verify_true): Provide alternative definition for C++.
118414 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
118416         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
118417         (SSIZE_MAX): New macro, if not already defined.
118418         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
118419         than 2 GiB.
118421 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118423         Sync from coreutils.
118424         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
118425         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
118426         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
118427         ULLONG_MAX doesn't work with 2.7.2.1.
118429 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118431         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
118432         From Ben Pfaff.
118434         * modules/exclude (Depends-on): Depend on verify.
118435         * modules/strtoimax (Depends-on): Likewise.
118436         * modules/utimecmp (Depends-on): Likewise.
118438 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118440         * lib/exclude.c: Include verify.h.
118441         (verify): Remove.  All callers changed to use verify.h's version.
118442         * lib/strtoimax.c: Likewise.
118443         * lib/utimecmp.c: Likewis.e
118445         Sync from coreutils.
118446         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
118447         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
118448         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
118449         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
118450         bother returning ENOSYS if settimeofday or stime fails; just let
118451         them return whatever errno they want to return.
118452         * lib/utimens.c: Include unistd.h, for dup2.
118453         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
118454         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
118456 2005-10-02  Jim Meyering  <jim@meyering.net>
118458         Sync from coreutils.
118459         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
118460         from glibc-2.2.5 that fails for read-only files.
118462 2005-10-02  Jim Meyering  <jim@meyering.net>
118464         Sync from coreutils.
118465         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
118466         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
118467         `#if HAVE_CONFIG_H'.
118468         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
118469         Remove AT_FDCWD test.
118470         Do not consume the fd unless successful.
118471         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
118472         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
118473         block, so that we don't even try to compile it if settimeofday is
118474         available.  This works around a compilation failure on OSF1 V5.1,
118475         due to stime requiring a `long int*' while tv_sec is `int'.
118477 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
118479         Sync from coreutils.
118480         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
118481         against `yes', rather than just testing for nonempty.
118483 2005-10-01  Simon Josefsson  <jas@extundo.com>
118485         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
118486         and Darwin.
118488         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
118489         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
118490         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
118491         freeaddrinfo and gai_strerror are declared by the POSIX headers.
118492         Check if struct addrinfo is declared.
118494 2005-10-01  Simon Josefsson  <jas@extundo.com>
118496         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
118497         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
118498         AI_* and EAI_* definitions.  Protect function declarations.
118500 2005-10-01  Jim Meyering  <jim@meyering.net>
118502         Sync from coreutils.
118504         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
118505         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
118506         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
118507         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118508         in the inet and nsl libraries.  Required on Solaris 5.7.
118510 2005-10-01  Jim Meyering  <jim@meyering.net>
118512         Sync from coreutils.
118513         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118514         in the inet and nsl libraries.  Required on Solaris 5.7.
118516 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
118518         * lib/getdelim.c (getdelim): Remove unused variables.
118520 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
118522         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
118523         so that the code works even with ancient cpp.  Portability problem
118524         with GCC 2.7.2.1 reported by Thomas M.Ott.
118526 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
118528         * modules/regex (Depends-on): Add strcase.
118530         * modules/gethostname (Licence): Change from GPL to LGPL, since
118531         gethostname.c is a trivial implementation of a standard library
118532         function.
118533         * modules/poll (License): Change from GPL to LGPL, since it's
118534         derived from LGPL code.
118536 2005-09-27  Jim Meyering  <jim@meyering.net>
118538         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
118539         HAVE_CONFIG_H.
118541         * lib/intprops.h (signed_type_or_expr__): Define.
118542         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
118543         for unsigned types.
118545 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
118547         * lib/verify.h (verify_expr): Remove, replacing with:
118548         (verify_true): New macro that returns true instead of void.
118549         (verify_type__): Remove.
118550         (verify): Use verify_true rather than verify_type__.
118552 2005-09-26  Bruno Haible  <bruno@clisp.org>
118554         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
118555         is necessary.
118556         (lib_SOURCES): Remove mbchar.c.
118557         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
118558         (Files): Add m4/mbrtowc.m4.
118559         * modules/mbiter: Likewise.
118560         * modules/mbuiter: Likewise.
118562 2005-09-26  Bruno Haible  <bruno@clisp.org>
118564         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
118565         compile mbchar.c if they are not both present.
118566         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
118567         * m4/mbiter.m4 (gl_MBITER): Likewise.
118568         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
118569         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
118570         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
118572 2005-09-25  Jim Meyering  <jim@meyering.net>
118574         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
118575         also uses socklen_t.
118577 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
118579         * lib/utimens.c (ENOSYS): Define if not already defined.
118580         (futimens): Support having a null PATH if the file descriptor
118581         is nonnegative.
118583         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
118584         Remove.
118585         (__attribute): Define to empty unless GCC 3.1 or later.
118586         This works around a core dump on OpenBSD 3.4, which has GCC
118587         2.95.3, which dumps core when given __attribute__(()).  It also
118588         simplifies other tests, since we really don't want to bother with
118589         worrying about which ancient version of GCC supported what.
118590         Original problem reported by Yoann Vandoorselaere, with part of
118591         the fix suggested by Derek Price.
118593 2005-09-24  Jim Meyering  <jim@meyering.net>
118595         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
118596         so we can once again use a positive bitfield width of 1 -- now we
118597         don't have to explain why we were using a bitfield width of 2.
118599 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118601         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
118602         and similarly for the other external symbols.  Problem reported
118603         by James Gallager.
118605         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
118606         bug reported by Jim Meyering.
118608         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
118609         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
118610         not needed, since socklen is a prerequisite module.
118612 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118614         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
118615         Problem reported by Eric Blake.
118616         (getaddrinfo): Initialize se so that it's not garbage.
118617         Redo internal storage allocation so that it doesn't make unportable
118618         assumptions about alignment.
118619         Fix a memory leak.
118621         * lib/utimens.c (futimens): Use futimesat if available.
118622         Prefer it to futimes since it doesn't have the futimes bug.
118624         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
118625         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
118626         Instead, declare a function that returns a pointer to an array,
118627         and use verify_type__ to declare the size of the array.
118628         Problem and germ of a solution reported by Bruno Haible.
118629         (verify_type__): Use 2, not 1, for bitfield size, to avoid
118630         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
118632 2005-09-23  Jim Meyering  <jim@meyering.net>
118634         Sync from coreutils.
118635         Correct build failure (socklen_t not defined) on at least
118636         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
118637         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
118639 2005-09-23  Jim Meyering  <jim@meyering.net>
118641         * modules/getaddrinfo (Depends-on): Add socklen.
118643 2005-09-23  Bruno Haible  <bruno@clisp.org>
118645         * tests/test-verify.c: New file.
118647 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118649         Sync from coreutils.
118651         * modules/argmatch (Depends-on): Add verify.
118652         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
118653         unistd-safer.
118654         * modules/save-cwd (Depends-on): Likewise.
118656         * modules/openat (Files): Add lib/openat-die.c.
118657         (Depends-on): Remove error, exitfail.
118658         Add dirname.
118660         * modules/verify: New file.
118661         * MODULES.html.sh (Diagnostics <assert.h>): New section,
118662         with "verify" module.
118664 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118666         Sync from coreutils.
118668         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
118669         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
118670         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
118671         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
118672         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
118673         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
118674         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
118675         Don't bother checking for string.h, stdlib.h, unistd.h.
118676         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
118677         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
118678         module's job.
118679         * m4/jm-macros.m4 (gl_MACROS): Likewise.
118680         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
118682         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
118683         (gl_GETDATE): Use it.
118685         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
118687 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118689         Sync from coreutils.
118691         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
118692         stat-time.h.
118693         * lib/argmatch.h: Include verify.h
118694         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
118695         (ARGMATCH_ASSERT): Remove; unused.
118696         * lib/canonicalize.c: Assume STDC_HEADERS.
118697         * lib/exclude.c: Include "strcase.h".
118698         * lib/regex_internal.h [!defined _LIBC]: Likewise.
118699         * lib/getusershell.c: Include stdio--.h rather than stdio.h
118700         and stdio-safer.h.
118701         (getusershell): Call fopen, not fopen_safer.
118702         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
118703         Do not include unistd-safer.h.
118704         (save_cwd): Don't call fd_safer; no longer needed
118705         now that we include fcntl--.h.
118707         * lib/getdate.y (relative_time): New type.
118708         (RELATIVE_TIME_0): New constant.
118709         (parser_control): Use relative_time instead of doing it ourselves.
118710         (%union): Add new relative_time rel member.
118711         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
118712         Now typeless.
118713         (relunit, relunit_snumber): Now of type rel.
118714         (zone, rel, relunit, get_date): Adjust to above changes.
118716         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
118717         Do not include unistd-safer.h.
118718         (getloadavg): Don't call fd_safer; no longer needed
118719         now that we include fcntl--.h.
118721         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
118722         (make_dir_parents): Treat ENOSYS like EEXIST.
118724         Improve quality of diagnostics on restore_cwd failure.
118725         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
118726         (make_dir_parents): Last arg is now int * (for errno), not bool *.
118727         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
118728         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
118729         each time through the loop.  Do not diagnose restore_cwd failure;
118730         that is the caller's job (and perhaps the caller does not care).
118732         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
118733         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
118734         If the file already exists but is not a directory, don't bother
118735         to try to make its parents.
118736         Close potential file descriptor leak if we can't chdir("/") (!).
118737         Don't always return true if chdir($PWD) fails; return true only
118738         if the requested action was done successfully (except for the
118739         chdir($PWD)).
118740         Don't log final directory unless we actually made it.
118741         Refactor to avoid duplicate code to fix up permissions.
118742         Don't attempt to fix up parent permissions if chdir($PWD) fails.
118744         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
118745         to make it a bit faster and (I hope) clearer.
118746         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
118747         Fix bug in formats like %2N.
118749         * lib/verify.h: New file.
118751 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118753         Sync from coreutils.
118754         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
118756 2005-09-22  Jim Meyering  <jim@meyering.net>
118758         Sync from coreutils.
118760         * m4/lstat.m4 (gl_FUNC_LSTAT):
118761         Use AC_LIBSOURCES to require lstat.c and lstat.h.
118762         Remove obsolete comment.
118763         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
118764         * m4/xstrtod.m4: Likewise.
118766         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
118768 2005-09-22  Jim Meyering  <jim@meyering.net>
118770         Sync from coreutils.
118772         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
118774         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
118775         the .tm_year member, since otherwise gcc-4.0 would now warn about
118776         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
118778         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
118779         order to avoid an unsuppressible warning from gcc on 64-bit systems.
118781         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
118782         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
118783         when run in a time zone for which daylight savings time is in effect
118784         for the starting date.
118786         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
118787         stop us from restricting permissions of just-created absolute-named
118788         directories.
118789         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
118790         to restore initial working directory.
118791         * lib/mkdir-p.c (make_dir_parents): New parameter:
118792         different_working_dir, to tell caller if/when we change the working
118793         directory and are unable to return to the initial one.
118794         * lib/mkdir-p.h (make_dir_parents): Update prototype.
118795         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
118796         `return false'.  This fixes a bug introduced on 2004-07-30.
118798         * lib/openat.c (fdopendir): Be sure to close the supplied
118799         file descriptor before returning.  This makes our replacement
118800         implementation a little closer to Solaris's, where fdopendir
118801         ties the file descriptor to the returned DIR* pointer.
118802         * lib/openat.c (unlinkat): New function.
118803         * lib/openat.h (unlinkat): Add prototype.
118804         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
118805         (openat_restore_fail): Rename from openat_restore_die.
118806         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
118808         Provide an alternative to exiting immediately upon save_cwd or
118809         restore_cwd failure.  Now, an application can arrange e.g.,
118810         to perform a longjump in that case.
118811         * lib/openat.c: Include dirname.h.
118812         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
118813         (rpl_openat, fdopendir, fstatat): Call openat_save_die
118814         and openat_restore_die rather than calling error directly.
118815         Don't include "error.h" or "exitfail.h"; they're no longer needed.
118817         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
118818         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
118819         define.
118821         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
118822         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
118823                             int utc, int nanoseconds);
118824         Background:
118825         date should not have to allocate a megabyte of virtual memory to
118826         handle a format argument like +%1048575T.  When implemented with
118827         strftime, it must allocate such a buffer, use strftime to fill it
118828         in, print it, then free it.
118829         With fprintftime, it simply prints everything and exits.
118830         With no need for memory allocation, that's one fewer way to fail.
118831         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
118832         optional field width, not before, so we accept %9:z, not %:9z.
118833         (my_strftime): Be sure to use L_('x') for literals.
118835         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
118836         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
118837         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
118838         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
118839         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
118840         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
118841         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
118842         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
118843         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
118844         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
118845         * lib/xgethostname.c, lib/xreadlink.c:
118846         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
118848         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
118849         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
118850         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
118851         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
118852         and don't include <sys/file.h>).
118854 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
118856         Sync from coreutils.
118858         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
118859         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
118860         [!LDAV_DONE]: Avoid unused variable warning.
118862 2005-09-21  Bruno Haible  <bruno@clisp.org>
118864         * lib/unicodeio.h (unicode_to_mb): New declaration.
118866 2005-09-20  Derek Price  <derek@ximbiot.com>
118868         * lib/getaddrinfo.c: Don't include <netdb.h> included from
118869         getaddrinfo.h.
118871 2005-09-20  Bruno Haible  <bruno@clisp.org>
118873         * gnulib-tool: Remove trailing slashes from the values specified for
118874         --source-base, --m4-base, --tests-base, --aux-dir.
118875         Suggested by Simon Josefsson <jas@extundo.com>.
118877 2005-09-20  Bruno Haible  <bruno@clisp.org>
118879         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
118880         func_modules_to_filelist, func_import, func_create_testdir): Make all
118881         sorting results locale-independent, so that gnulib-cache.m4 doesn't
118882         change when gnulib-tool is invoked in a different locale.
118884 2005-09-19  Simon Josefsson  <jas@extundo.com>
118886         * m4/socklen.m4: Fix typo.
118888 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118890         Use a consistent style for including <config.h>.
118891         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
118892         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
118893         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
118894         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
118895         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
118896         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
118897         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
118898         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
118899         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
118900         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
118901         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
118902         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
118903         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
118904         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
118905         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
118906         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
118907         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
118908         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
118909         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
118910         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
118911         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
118912         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
118913         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
118914         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
118915         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
118916         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
118917         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
118918         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
118919         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
118920         lib/xstrtoumax.c, lib/yesno.c:
118921         Standardize inclusion of config.h.
118922         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
118923         lib/inttostr.h:  Removed inclusion of config.h from header files.
118924         * lib/inttostr.c:  Adjusted in-tree users.
118925         * lib/timespec.h: Remove superfluous warning to include config.h.
118926         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
118927         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
118928         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
118929         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
118930         config.h with HAVE_CONFIG_H.
118932 2005-09-19  Jim Meyering  <jim@meyering.net>
118934         * modules/pathmax (License): Change to LGPL.
118936 2005-09-19  Derek Price  <derek@ximbiot.com>
118938         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
118940 2005-09-19  Bruno Haible  <bruno@clisp.org>
118942         * gnulib-tool (import): Provide default for --tests-base.
118944 2005-09-19  Bruno Haible  <bruno@clisp.org>
118946         * doc/quote.texi: New file, extracted from gnulib.texi.
118947         * doc/ctime.texi: New file, extracted from gnulib.texi.
118948         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
118949         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
118950         * doc/gnulib.texi: Include them.
118952 2005-09-18  Bruno Haible  <bruno@clisp.org>
118954         Portability fix.
118955         * gnulib-tool (func_readlink): New function.
118956         (func_ln_if_changed): Use it.
118958 2005-09-18  Bruno Haible  <bruno@clisp.org>
118960         * gnulib-tool: Support --with-tests also with --import.
118961         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
118962         (func_import): Use variables $testsbase and $inctests. Emit a
118963         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
118964         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
118965         SUBDIRS += $testsdir.
118966         (func_create_testdir): Update.
118968 2005-09-18  Bruno Haible  <bruno@clisp.org>
118970         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
118971         instead of $dry_run.
118972         (func_cp_if_changed, func_mv_if_changed): Remove functions.
118973         (func_ln_if_changed): Don't handle dry-run here.
118974         (func_import): In dry-run mode, detect more precisely which actions
118975         would be performed, and don't use "...ing" verbs.
118977 2005-09-18  Bruno Haible  <bruno@clisp.org>
118979         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
118980         (func_import): Use join on two temporary files instead of three nested
118981         loops, in order to determine which files are new or old.
118983 2005-09-18  Bruno Haible  <bruno@clisp.org>
118985         * gnulib-tool (func_import): Comment out code that spits out the
118986         new files with --dry-run.
118988 2005-09-18  Bruno Haible  <bruno@clisp.org>
118990         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
118992 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
118994         * lib/stat-time.h: New file.
118995         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
118996         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
118997         in a different way.
118998         (timespec_cmp): New function.
118999         * lib/utimecmp.c: Include stat-time.h.
119000         (SYSCALL_RESOLUTION): Depend on whether various struct stat
119001         members exist, not on the obsolescent ST_MTIM_NSEC.
119002         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
119004 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119006         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
119008 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119010         * MODULES.html.sh (File system functions): Add stat-time.
119011         * modules/stat-time: New file.
119012         * modules/timespec (Files): Remove m4/st_mtim.m4; this
119013         is now done in a different way, by the stat-time module.
119014         * modules/utimecmp (Depends-on): Add stat-time.
119016 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
119018         * m4/st_mtim.m4: Remove.  Superseded by...
119019         * m4/stat-time.m4: New file.
119020         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
119021         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
119023 2005-09-15  Derek Price  <derek@ximbiot.com>
119025         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
119027 2005-09-15  Derek Price  <derek@ximbiot.com>
119029         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
119030         * lib/regex_internal.c: Ditto, using this...
119031         (__GNUC_PREREQ): ...new macro.
119032         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
119033         using...
119034         (__GNUC_PREREQ): ...this new macro.
119036         * lib/strstr.h: Include string.h. Define strstr as a macro here.
119038 2005-09-15  Derek Price  <derek@ximbiot.com>
119039             Paul Eggert  <eggert@cs.ucla.edu>
119041         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
119042         changes, consolidating in...
119043         * lib/regex_internal.h: ...this file.
119045 2005-09-13  Jim Meyering  <jim@meyering.net>
119047         * lib/canon-host.c: Filter through gnu indent and reword comments
119048         slightly.
119049         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
119051 2005-09-13  Derek Price  <derek@ximbiot.com>
119053         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
119054         failure.
119055         Reported by Jim Meyering  <jim@meyering.net>.
119057 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
119059         * lib/base64.c: Typo.
119060         (base64_encode): Put b64str in initialized data section.
119062 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
119064         Merge glibc and coreutils changes into gnulib, plus a few
119065         extra fixes.
119066         * lib/md5.c: Use #error rather than a string.
119067         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
119068         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
119069         (__attribute__): Define to empty for non recent-GCC.
119070         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
119071         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
119072         Renamed from their non-__ counterparts, with new macros replacing
119073         them if not _LIBC.  Add __THROW attribute.
119074         (rol): Remove.
119075         (struct md5_ctx): Align buffer if using GCC.
119076         * lib/sha1.h (struct sha1_ctx): Likewise.
119077         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
119078         The old name was backwards.
119079         (NOTSWAP): Remove; not used.
119080         (rol): New macro, moved here from md5.h.
119081         (sha1_process_block): Remove a FIXME that doesn't make sense.
119083 2005-09-12  Derek Price  <derek@ximbiot.com>
119085         Return usable errors from canon-host.
119086         * lib/canon-host.h: New file.
119087         * lib/canon-host.c (canon_host): Wrap...
119088         (canon_host_r): ...this new function, which now relies exclusively on
119089         getaddrinfo.
119090         (ch_strerror): New function.
119091         (last_cherror): New global.
119092         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
119093         interface.
119094         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
119095         void *.
119096         (freeaddrinfo): Free ai->ai_canonname when set.
119098 2005-09-12  Derek Price  <derek@ximbiot.com>
119100         Make canon-host require getaddrinfo.
119101         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
119102         AC_LIBSOURCE canon-host.h.  Call...
119103         (gl_PREREQ_CANON_HOST): ...this new function, which requires
119104         gl_GETADDRINFO.
119105         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
119107 2005-09-12  Derek Price  <derek@ximbiot.com>
119109         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
119110         LGPL.
119111         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
119113 2005-09-12  Derek Price  <derek@ximbiot.com>
119115         * lib/gai_strerror.c: Include config.h when available.  Include
119116         getaddrinfo.h before other headers to test interface.
119117         Reported by Larry Jones <lawrence.jones@ugs.com>.
119119 2005-09-12  Derek Price  <derek@ximbiot.com>
119120             Paul Eggert  <eggert@cs.ucla.edu>
119122         * modules/glob (Files): Add glob-libc.h.
119124 2005-09-12  Derek Price  <derek@ximbiot.com>
119125             Paul Eggert  <eggert@cs.ucla.edu>
119127         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
119128         glob_.h, glob-libc.h.
119129         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
119131 2005-09-12  Derek Price  <derek@ximbiot.com>
119132             Paul Eggert  <eggert@cs.ucla.edu>
119134         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
119135         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
119136         protecting things that should be done only in gnulib contexts.
119137         * lib/glob_.h: New file, containing only the glob things needed for
119138         gnulib.
119139         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
119140         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
119141         (glob, globfree, glob_pattern_p): Now defined simply in terms of
119142         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
119143         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
119144         and to respect the namespace rules better.
119146 2005-09-08  Simon Josefsson  <jas@extundo.com>
119148         * modules/socklen: New file.
119150 2005-09-08  Simon Josefsson  <jas@extundo.com>
119152         * m4/socklen.m4: New file.
119154 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119156         * modules/utimens (Files): Add m4/utimbuf.m4, since
119157         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
119158         Reported by Sergey Poznyakoff.
119160 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119162         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
119163         definitions, since that's the preferred style in glibc.
119164         Fix a minor spacing issue, and update copyright notice to match
119165         glibc's.
119167 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119169         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
119171 2005-09-06  Simon Josefsson  <jas@extundo.com>
119173         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
119174         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
119176 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
119178         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
119179         warning.
119181 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
119183         * config/srclist.txt: Add glibc bug 1302.
119185 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
119187         Change bitset word type from unsigned int to unsigned long int,
119188         as this has better performance on typical 64-bit hosts.
119189         Port bitset code to hosts with unusual word sizes.
119190         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
119191         (build_collating_symbol):
119192         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
119193         argument is a bitset.  This is merely a style issue, but it makes
119194         it clearer that an entire array is expected.
119195         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
119196         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
119197         Port to the case where bitset_word is not the same as unsigned int.
119198         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119199         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
119200         Likewise.
119201         * lib/regexec.c (check_dst_limits_calc_pos_1,
119202         check_subexp_matching_top):
119203         (build_trtable, group_nodes_into_DFAstates):
119204         Likewise.
119205         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
119206         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
119207         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
119208         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
119209         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
119210         * lib/regcomp.c (optimize_subexps, lower_subexp):
119211         Work even if bitset_word has holes in its bitwise representation.
119212         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
119213         * lib/regexec.c (check_dst_limits_calc_pos_1,
119214         check_subexp_matching_top):
119215         Likewise.
119216         * lib/regex_internal.c (re_string_reconstruct):
119217         Don't assume UCHAR_MAX == 255.
119218         * lib/regex_internal.h (bitset_set_all): Likewise.
119219         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
119220         All uses changed.
119221         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
119222         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
119223         All uses changed.
119224         (BITSET_WORD_MAX): New macro.
119225         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
119226         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
119227         (bitset_empty, bitset_copy):
119228         Prefer sizeof (bitset) to multiplying it out ourselves.
119229         (bitset_not_merge): Remove; unused.
119230         (bitset_contain): Return bool, not unsigned int with one bit on.
119231         All callers changed.
119232         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
119233         alignment than re_node_set; do this by defining a new internal
119234         type struct dests_alloc and using it to allocate memory.
119236 2005-09-05  Bruno Haible  <bruno@clisp.org>
119238         * gnulib-tool (func_import): Fix comparison in handling of symbolic
119239         links.
119241 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
119243         * modules/size_max (Makefile.am): Add size_max.h
119245 2005-09-04  Derek Price  <derek@ximbiot.com>
119247         * gnulib-tool (func_import): Fix reversed $symbolic logic.
119249 2005-09-03  Simon Josefsson  <jas@extundo.com>
119251         * gnulib-tool: Fix typo.
119253 2005-09-03  Simon Josefsson  <jas@extundo.com>
119255         * config/srclist.txt: Add glibc bug 1293.
119257 2005-09-03  Derek Price  <derek@ximbiot.com>
119259         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
119260         From Larry Jones <lawrence.jones@ugs.com>.
119262 2005-09-02  Simon Josefsson  <jas@extundo.com>
119264         * modules/socklen: New file.
119266 2005-09-02  Simon Josefsson  <jas@extundo.com>
119268         * modules/havelib: New module.
119270         * modules/gettext, modules/iconv, modules/lock, modules/readline:
119271         Use havelib.
119273 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
119275         Check for arithmetic overflow when calculating sizes, to prevent
119276         some buffer-overflow issues.  These patches are conservative, in the
119277         sense that when I couldn't determine whether an overflow was possible,
119278         I inserted a run-time check.
119279         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
119280         macros.
119281         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
119282         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
119283         (re_xnrealloc, re_x2nrealloc): New inline functions.
119284         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
119285         parse_bracket_exp):
119286         (build_equiv_class, build_charclass): Check for arithmetic overflow
119287         in size expression calculations.
119288         * lib/regex_internal.c (re_string_realloc_buffers):
119289         (build_wcs_upper_buffer, re_node_set_add_intersect):
119290         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
119291         (re_dfa_add_node, register_state): Likewise.
119292         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
119293         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
119294         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
119295         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
119297 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
119299         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
119300         m4/ulonglong.m4.  Problem reported by Martin Lambers.
119302 2005-09-02  Bruno Haible  <bruno@clisp.org>
119304         Support for lib vs. lib64 distinction on biarch platforms.
119305         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
119306         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
119307         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
119309 2005-09-02  Bruno Haible  <bruno@clisp.org>
119311         * gnulib-tool (import): In the other first-use case, provide defaults
119312         as well.
119314 2005-09-02  Bruno Haible  <bruno@clisp.org>
119316         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
119317         patches not yet found in the latest gettext release.
119319 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119321         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
119322         to avoid a collision with bits/local_lim.h in glibc.
119323         All uses changed.  Problem reported by Dmitry V. Levin in
119324         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
119326         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
119327         bugs in int versus size_t comparisons.
119328         (re_string_context_at): Fix bug where the code assumed that
119329         Idx is signed.
119331         Use bool where appropriate.
119332         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
119333         All callers changed.
119334         (calc_eclosure_iter): Likewise, for ROOT arg.
119335         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
119336         (build_charclass_op): Likewise, for NON_MATCH arg.
119337         * lib/regex_internal.c (re_string_allocate, re_string_construct):
119338         (re_string_construct_common): Likewise, for ICASE arg.
119339         * lib/regexec.c (re_search_2_stub, re_search_stub):
119340         Likewise, for RET_LEN arg.
119341         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
119342         (set_regs): Likewise, for FL_BACKTRACK arg.
119343         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
119344         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
119345         (calc_eclosure_iter, parse_bracket_exp):
119346         Use bool for internal variables that are booleans.
119347         * lib/regexec.c (re_search_internal, check_matching,
119348         proceed_next_node):
119349         (set_regs, build_sifted_states, sift_states_bkref):
119350         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
119351         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
119352         (find_collation_sequence_value):
119353         Likewise.
119354         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
119355         (re_node_set_compare):
119356         Return bool, not int. All callers changed.
119357         * lib/regexec.c (check_halt_node_context, check_dst_limits):
119358         (build_trtable, check_node_accept): Likewise.
119359         * lib/regex_internal.h: Include stdbool.h.
119361         Fix bugs uncovered when converting to bool.
119362         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
119363         failure instead of charging ahead blindly.
119364         * lib/regex_internal.c (register_state): Likewise.
119365         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
119366         for freeing internal storage.
119367         (group_nodes_into_DFA_states): Use unsigned int, not int, for
119368         bitset pieces used as boolean, to avoid undefined behavior
119369         on hosts that do int overflow checking.
119371 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119373         * config/srclist.txt: Add glibc bugs 1285-1287.
119375 2005-09-01  Jim Meyering  <jim@meyering.net>
119377         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
119378         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
119379         Require gl_STAT_MACROS, too.
119381 2005-09-01  Bruno Haible  <bruno@clisp.org>
119383         * gnulib-tool (import): In the first-use case, provide defaults.
119385 2005-09-01  Bruno Haible  <bruno@clisp.org>
119387         * gnulib-tool (func_import): Remove the .tmp files.
119389 2005-09-01  Bruno Haible  <bruno@clisp.org>
119391         * gnulib-tool (func_import): Fix handling of symbolic links.
119393 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119395         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
119396         old glibc regex code mishandles strings longer than 2**31 bytes.
119397         This patch fixes this when the regex code is used in gnulib
119398         (i.e., outside glibc).
119400         This patch should not affect the use of the regex code inside
119401         glibc.  No doubt this problem also needs to be handled for glibc
119402         as well, but the result will be an incompatible change to the
119403         glibc ABI, and the old ABI will have to be supported too.  That
119404         can be the subject for another patch.
119406         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
119407         governing whether the rest of this patch is active.  By default,
119408         the macro is disabled and the patch has no effect.
119409         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
119410         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
119411         (struct re_pattern_buffer, re_search, re_search_2, re_match):
119412         (re_match_2, re_set_registers): Use the new types.
119413         * lib/regex_internal.h (Idx, re_hashval_t): New types.
119414         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
119415         New macros.
119416         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
119417         (re_string_context_at, bin_tree_t, re_dfastate_t):
119418         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
119419         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
119420         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
119421         (re_string_char_size_at, re_string_wchar_at):
119422         (re_string_elem_size_at):
119423         Use the new types and macros to port to 64-bit hosts.
119424         Use unsigned types for internal values, so that the code
119425         mostly works even for arrays larger than SSIZE_MAX.
119426         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
119427         (search_duplicated_node, calc_eclosure_iter, fetch_number):
119428         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
119429         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
119430         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
119431         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
119432         (calc_inveclosure, parse_dup_op, build_range_exp):
119433         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
119434         (fetch_number, create_token_tree, mark_opt_subexp):
119435         Likewise.
119436         * lib/regex_internal.c (re_string_construct_common,
119437         create_ci_newstate):
119438         (create_cd_newstate, re_string_allocate, re_string_construct):
119439         (re_string_realloc_buffers, build_wcs_upper_buffer):
119440         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
119441         (re_string_reconstruct, re_string_peek_byte_case):
119442         (re_string_fetch_byte_case, re_string_context_at):
119443         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
119444         (re_node_set_init_copy, re_node_set_add_intersect):
119445         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119446         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119447         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
119448         (re_acquire_state, re_acquire_state_context, register_state):
119449         Likewise.
119450         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
119451         search_cur_bkref_entry):
119452         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
119453         (re_search_internal, re_search_2_stub, re_search_stub)
119454         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
119455         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
119456         (update_cur_sifted_state, check_dst_limits):
119457         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119458         (check_subexp_limits, sift_states_bkref, merge_state_array):
119459         (check_subexp_matching_top, get_subexp, get_subexp_sub):
119460         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
119461         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
119462         (expand_bkref_cache, check_node_accept_bytes):
119463         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
119464         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
119465         (acquire_init_state_context, check_halt_node_context):
119466         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
119467         (sift_states_backward, clean_state_log_if_needed):
119468         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
119469         (find_recover_state, transit_state_sb, transit_state_mb):
119470         (transit_state_bkref, build_trtable, match_ctx_clean):
119471         Likewise.
119472         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
119473         to work around an assumption that REG_MISSING is negative.
119475         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
119476         (seek_collating_symbol_entry) [defined _LIBC]:
119477         (lookup_collation_sequence_value) [defined _LIBC]:
119478         (build_range_exp, build_collating_symbol) [defined _LIBC]:
119479         Use prototypes rather than old-style function definitions.
119480         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
119481         (transit_state_sb) [0]:
119482         (find_collation_sequence_value) [defined _LIBC]: Likewise.
119484         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
119485         rm_eo.
119487         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
119488         (optimize_subexps, lower_subexp):
119489         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
119490         since the signed shift might overflow.  Use 1u<<31 instead.
119491         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119492         Likewise.
119493         * lib/regexec.c (check_dst_limits_calc_pos_1,
119494         check_subexp_matching_top): Likewise.
119496         * lib/regcomp.c (optimize_subexps, lower_subexp):
119497         Use CHAR_BIT rather than 8, for clarity.
119498         * lib/regexec.c (check_dst_limits_calc_pos_1):
119499         (check_subexp_matching_top): Likewise.
119500         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
119501         have to worry about portability issues when shifting it left.
119502         Remove no-longer-needed test for table_size > 0.
119503         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
119504         in a word, as the resulting behavior is undefined.
119505         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
119506         in one case, a <= should have been an <, and in another case the
119507         whole test was missing.
119508         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
119509         the standard name CHAR_BIT.
119510         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
119511         this is not true on one's complement and signed-magnitude hosts.
119513         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
119514         next_last_offset.
119515         (struct re_dfa_t): Remove unused member states_alloc.
119516         * lib/regcomp.c (init_dfa): Don't initialize unused members.
119518 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119520         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
119521         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
119522         and large-file glibc and in 32-bit large-file Solaris.
119524 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119526         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
119527         lengths fit in regoff_t; this isn't true if regoff_t is the same
119528         width as size_t.
119529         * lib/regex.c (re_search_internal): 5th arg is LAST_START
119530         (= START + RANGE) instead of RANGE.  This avoids overflow
119531         problems when regoff_t is the same width as size_t.
119532         All callers changed.
119533         (re_search_2_stub): Check for overflow when adding the
119534         sizes of the two strings.
119535         (re_search_stub): Check for overflow when adding START
119536         to RANGE; if it occurs, substitute the extreme value.
119538 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119540         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
119542 2005-08-31  Jim Meyering  <jim@meyering.net>
119544         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
119545         a pointer-to-const.
119546         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
119547         (register_state): Likewise.
119548         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
119549         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119550         (group_nodes_into_DFAstates): Likewise.
119552 2005-08-31  Jim Meyering  <jim@meyering.net>
119554         * check-module: Add a FIXME comment.
119556 2005-08-31  Eric Blake  <ebb9@byu.net>
119558         * modules/unistd-safer (Files): Add unistd--.h.
119559         * modules/stdio-safer (Files): Add stdio--.h.
119561 2005-08-31  Derek Price  <derek@ximbiot.com>
119563         * lib/getdelim.c (getdelim): Return EOF on EOF.
119564         Reported by Larry Jones <lawrence.jones@ugs.com>.
119566 2005-08-31  Bruno Haible  <bruno@clisp.org>
119568         Avoid unnecessary diffs in the generated lib/Makefile.am.
119569         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
119570         the generated files.
119571         (func_import): Don't set cmd.
119573 2005-08-31  Bruno Haible  <bruno@clisp.org>
119575         * lib/strstr.c: Include <stddef.h>, for NULL.
119576         * lib/strcasestr.c: Likewise.
119577         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
119579 2005-08-31  Bruno Haible  <bruno@clisp.org>
119581         * gnulib-tool: New option --macro-prefix.
119582         (func_import): Use macro_prefix.
119583         (import): Handle option --macro-prefix.
119585 2005-08-31  Bruno Haible  <bruno@clisp.org>
119587         * gnulib-tool (import): Rename most ac_* variables to cached_*.
119588         Also use new variables cached_lgpl, cached_libtool.
119590 2005-08-31  Bruno Haible  <bruno@clisp.org>
119592         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
119593         always instantiating them.
119595 2005-08-31  Bruno Haible  <bruno@clisp.org>
119597         * gnulib-tool (func_import): Read the previous cached settings
119598         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
119599         earlier added by gnulib but are now dropped. Warn when a gnulib file
119600         overwrites a non-gnulib file.
119602 2005-08-31  Bruno Haible  <bruno@clisp.org>
119604         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
119605         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
119606         projects that don't keep autogenerated files in CVS. Put into
119607         actioncmd only the specified modules, not the transitive closure.
119609 2005-08-31  Bruno Haible  <bruno@clisp.org>
119611         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
119612         Create directories that shall be filled.
119613         (import): Don't look for gl_* macros in configure.ac. Recurse across
119614         all directories containing a gnulib-cache.m4 files, if meaningful.
119616 2005-08-31  Bruno Haible  <bruno@clisp.org>
119618         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
119619         (import): Set seen_libtool when we see gl_LIBTOOL.
119621 2005-08-31  Bruno Haible  <bruno@clisp.org>
119623         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
119624         declaration macro definitions from generated gnulib.m4.
119626 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
119628         * lib/iconvme.h: Add prototype for iconv_alloc.
119630 2005-08-29  Simon Josefsson  <jas@extundo.com>
119632         * lib/iconvme.c: Fix errno.
119634 2005-08-29  Bruno Haible  <bruno@clisp.org>
119636         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
119637         that it works when the directory contains spaces.
119639 2005-08-29  Bruno Haible  <bruno@clisp.org>
119641         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
119643 2005-08-29  Bruno Haible  <bruno@clisp.org>
119645         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
119646         Emit more advice.
119648 2005-08-29  Bruno Haible  <bruno@clisp.org>
119649         and Stepan Kasal  <kasal@ucw.cz>
119651         * check-module: If more parameters are given, check each of them
119652         separately; add more exceptions, as noted by Jim Meyering.
119653         (check_module): New procedure.
119654         (%exempt_header): Now contains all exceptions.
119656 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
119658         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
119660 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
119662         * lib/iconvme.c: Split iconv_string into iconv_alloc.
119664 2005-08-28  Bruno Haible  <bruno@clisp.org>
119666         * m4/gnulib-tool.m4: New file.
119668 2005-08-27  Jim Meyering  <jim@meyering.net>
119670         * modules/unistd-safer (Files): Add pipe-safer.c.
119671         * modules/fcntl-safer (Files): Add creat-safer.c.
119673 2005-08-27  Jim Meyering  <jim@meyering.net>
119675         * m4/stdlib-safer.m4: New file.  From coreutils.
119676         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
119677         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
119678         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
119679         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
119680         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
119682 2005-08-27  Jim Meyering  <jim@meyering.net>
119684         * lib/fopen-safer.c: Merge minor changes from coreutils.
119685         * lib/dup-safer.c: Likewise.
119686         * lib/fd-safer.c: Likewise.
119688         Merge from coreutils.
119689         * lib/stdio--.h: New file.
119690         * lib/stdlib--.h: New file.
119691         * lib/mkstemp-safer.c: New file.
119693         GNU tar needs these.
119694         * lib/pipe-safer.c: New file.
119695         * lib/creat-safer.c: New file.
119696         * lib/fcntl--.h (creat): Define to creat_safer.
119697         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
119698         * lib/unistd--.h (pipe): Define to pipe_safer.
119699         * lib/unistd-safer.h: Declare pipe_safer.
119701 2005-08-26  Simon Josefsson  <jas@extundo.com>
119703         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
119704         Haible <bruno@clisp.org>.
119706 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
119708         * lib/regex_internal.h: Remove all references to
119709         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
119710         or better.
119711         (bitset_not, bitset_merge, bitset_not_merge):
119712         (bitset_mask, re_string_allocate, re_string_construct):
119713         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
119714         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
119715         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
119716         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
119717         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119718         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119719         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
119720         (re_acquire_state_context):
119721         Remove unnecessary forward decls.
119722         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
119723         Put __attribute at function definition,
119724         now that the function decl has been removed.
119725         * lib/regex_internal.c (re_string_peek_byte_case):
119726         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
119727         Likewise.
119729 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
119731         * m4/regex.m4: Add AC_PREREQ(2.50).
119732         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
119734 2005-08-25  Simon Josefsson  <jas@extundo.com>
119736         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
119737         __fsetlocking.
119739 2005-08-25  Simon Josefsson  <jas@extundo.com>
119741         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
119742         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
119743         GLIBC specific code.
119745 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119747         Make regex safe for g++.  This fixes one real bug (an "err"
119748         that should have been "*err").  g++ problem reported by
119749         Sam Steingold.
119750         * lib/regex_internal.h (re_calloc): New macro, consistent with
119751         re_malloc etc.  All callers of calloc changed to use re_calloc.
119752         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
119753         not int.  All callers changed.
119754         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
119755         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
119756         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
119757         (find_recover_state): Change "err" to "*err"; this fixes what
119758         appears to be a real bug.
119759         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
119760         versus int.
119762 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119764         * modules/regex (Depends-on): Add malloc, since the code
119765         assumes that !malloc(0) means failure.
119767 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119769         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
119771         alloca modernization/simplification for regex.
119772         * lib/regex.c: Remove portability cruft for alloca.  This no longer
119773         needs to be at the start of the file, and can be moved into
119774         regex_internal.h and simplified.
119775         * lib/regex_internal.h: Include <alloca.h>.
119776         (__libc_use_alloca) [!defined _LIBC]: New macro.
119777         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
119778         now works outside glibc.
119780 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119782         * config/srclist.txt: Add glibc bugs 1241, 1245.
119784 2005-08-25  Jim Meyering  <jim@meyering.net>
119786         * lib/open-safer.c: Include <config.h>.
119787         Otherwise, we'd lose LARGEFILE support in any file using
119788         e.g. "fcntl--.h"
119790 2005-08-25  Bruno Haible  <bruno@clisp.org>
119792         * m4/minmax.m4: Require autoconf 2.52.
119793         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
119794         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
119795         alternatives of translit over the alphabet.
119796         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
119798 2005-08-24  Simon Josefsson  <jas@extundo.com>
119800         * tests/test-getpass.c: New file.
119802 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119804         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
119805         for GNU regex features.
119807 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119809         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
119810         * lib/regex.h (regerror): Likewise.
119812         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
119813         requires this.  (The code never needed it.)
119815         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
119816         All uses of recently-renamed identifiers changed to use the new,
119817         POSIX-compliant names.  The code will build and run just fine
119818         without these changes, but it's better to eat our own dog food
119819         and use the standard-conforming names.
119821         * lib/regex.h: Fix a multitude of POSIX name space violations.
119822         These changes have an effect only for programs that define
119823         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
119824         do not change anything for programs compiled in the normal way.
119825         Also, there is no effect on the ABI.
119827         (_REGEX_SOURCE): New macro.
119828         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
119829         defined and _GNU_SOURCE is not; this fixes a name space violation.
119831         Rename the following macros to obey POSIX requirements.
119832         The old names are still visible as macros if _REGEX_SOURCE is defined.
119833         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
119834         RE_BACKSLASH_ESCAPE_IN_LISTS.
119835         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
119836         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
119837         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
119838         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
119839         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
119840         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
119841         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
119842         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
119843         (REG_INTERVALS): renamed from RE_INTERVALS.
119844         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
119845         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
119846         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
119847         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
119848         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
119849         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
119850         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
119851         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
119852         RE_UNMATCHED_RIGHT_PAREN_ORD.
119853         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
119854         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
119855         (REG_DEBUG): renamed from RE_DEBUG.
119856         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
119857         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
119858         unusual, since we can't clash with the POSIX REG_ICASE.
119859         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
119860         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
119861         (REG_NO_SUB): renamed from RE_NO_SUB.
119862         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
119863         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
119864         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
119865         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
119866         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
119867         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
119868         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
119869         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
119870         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
119871         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
119872         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
119873         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
119874         RE_SYNTAX_POSIX_MINIMAL_BASIC.
119875         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
119876         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
119877         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
119878         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
119879         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
119880         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
119881         (REG_FIXED): Renamed from REGS_FIXED.
119882         (REG_NREGS): Renamed from RE_NREGS.
119884         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
119885         of other REG_* macros, since POSIX says the user is allowed to
119886         #undef these macros selectively.
119888         (reg_errcode_t): Update comment stating what other tables need
119889         to be consistent.
119891         Rename the following enum values to obey POSIX requirements.
119892         The old names are still visible as macros.
119893         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
119894         is not defined, since GNU is supposed to be a superset of POSIX as
119895         much as possible, and since we want reg_errcode_t to be a signed
119896         type for implementation consistency.
119897         (_REG_NOERROR): Renamed from REG_NOERROR.
119898         (_REG_NOMATCH): Renamed from REG_NOMATCH.
119899         (_REG_BADPAT): Renamed from REG_BADPAT.
119900         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
119901         (_REG_ECTYPE): Renamed from REG_ECTYPE.
119902         (_REG_EESCAPE): Renamed from REG_EESCAPE.
119903         (_REG_ESUBREG): Renamed from REG_ESUBREG.
119904         (_REG_EBRACK): Renamed from REG_EBRACK.
119905         (_REG_EPAREN): Renamed from REG_EPAREN.
119906         (_REG_EBRACE): Renamed from REG_EBRACE.
119907         (_REG_BADBR): Renamed from REG_BADBR.
119908         (_REG_ERANGE): Renamed from REG_ERANGE.
119909         (_REG_ESPACE): Renamed from REG_ESPACE.
119910         (_REG_BADRPT): Renamed from REG_BADRPT.
119911         (_REG_EEND): Renamed from REG_EEND.
119912         (_REG_ESIZE): Renamed from REG_ESIZE.
119913         (_REG_ERPAREN): Renamed from REG_ERPAREN.
119914         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
119915         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
119916         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
119917         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
119919         (_REG_RE_NAME, _REG_RM_NAME): New macros.
119920         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
119921         changed.  But support the old name if the new one is not defined
119922         and if _REGEX_SOURCE.
119924         Change the following member names in struct re_pattern_buffer.
119925         The old names are still supported if !_REGEX_SOURCE.
119926         The new names are always supported, regardless of _REGEX_SOURCE.
119927         (re_buffer): Renamed from buffer.
119928         (re_allocated): Renamed from allocated.
119929         (re_used): Renamed from used.
119930         (re_syntax): Renamed from syntax.
119931         (re_fastmap): Renamed from fastmap.
119932         (re_translate): Renamed from translate.
119933         (re_can_be_null): Renamed from can_be_null.
119934         (re_regs_allocated): Renamed from regs_allocated.
119935         (re_fastmap_accurate): Renamed from fastmap_accurate.
119936         (re_no_sub): Renamed from no_sub.
119937         (re_not_bol): Renamed from not_bol.
119938         (re_not_eol): Renamed from not_eol.
119939         (re_newline_anchor): Renamed from newline_anchor.
119941         Change the following member names in struct re_registers.
119942         The old names are still supported if !_REGEX_SOURCE.
119943         The new names are always supported, regardless of _REGEX_SOURCE.
119944         (rm_num_regs): Renamed from num_regs.
119945         (rm_start): Renamed from start.
119946         (rm_end): Renamed from end.
119948         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
119949         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
119950         Prepend __ to parameter names.
119952         Undo yesterday's changes.
119954 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119956         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
119957         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
119958         lib/regex.c.
119960 2005-08-24  Jim Meyering  <jim@meyering.net>
119962         Sync from coreutils.
119963         * m4/fcntl-safer.m4: New file.
119965         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
119966         and object files for this module.
119968 2005-08-24  Jim Meyering  <jim@meyering.net>
119970         Sync from coreutils.
119971         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
119973 2005-08-24  Jim Meyering  <jim@meyering.net>
119975         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
119976         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
119978 2005-08-24  Jim Meyering  <jim@meyering.net>
119980         * modules/fcntl-safer: New module.
119981         * modules/fts (Depends-on): Add fcntl-safer.
119982         * MODULES.html.sh (File descriptor based Input/Output):
119983         Add fcntl-safer.
119985 2005-08-24  Bruno Haible  <bruno@clisp.org>
119987         Support for unit test modules.
119988         * modules/README: Mention tests modules.
119989         * modules/TEMPLATE-TESTS: New file.
119990         * gnulib-tool: New options --extract-tests-module, --with-tests and
119991         --tests-base (unused for the moment).
119992         (testsbase, inctests): New variables.
119993         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
119994         (func_verify_module): Exclude TEMPLATE-TESTS.
119995         (func_verify_nontests_module, func_verify_tests_module): New functions.
119996         (func_get_dependencies): Add implicit dependency for tests modules.
119997         (func_get_tests_module): New function.
119998         (func_modules_transitive_closure): When --with-tests was specified,
119999         include the unit tests as well, unless explicitly avoided.
120000         (func_emit_lib_Makefile_am): Ignore the tests modules here.
120001         (func_emit_tests_Makefile_am): New function.
120002         (func_create_testdir): When --with-tests was specified, emit a
120003         tests/ directory.
120004         * MODULES.html.sh (Future developments): Update.
120006 2005-08-24  Bruno Haible  <bruno@clisp.org>
120008         * modules/tls-tests: New file.
120009         * tests/test-tls.c: New file, from GNU gettext.
120011 2005-08-24  Bruno Haible  <bruno@clisp.org>
120013         * modules/lock-tests: New file.
120014         * tests/test-lock.c: New file, from GNU gettext.
120016 2005-08-24  Bruno Haible  <bruno@clisp.org>
120018         * lib/lock.h: Add multiple inclusion guard.
120019         * lib/tls.h: Add multiple inclusion guard.
120021 2005-08-24  Bruno Haible  <bruno@clisp.org>
120023         * gnulib-tool: Add support for the --aux-dir option to
120024         --create-testdir, --create-megatestdir, --test, --megatest.
120025         (func_create_testdir, func_create_megatestdir): Optionally emit a
120026         AC_CONFIG_AUX_DIR directive.
120027         (create-testdir, create-megatestdir, test, megatest): Provide a
120028         default value for $auxdir.
120030 2005-08-24  Bruno Haible  <bruno@clisp.org>
120032         * gnulib-tool (import): Use compound statement instead of subshell
120033         where possible.
120035 2005-08-24  Bruno Haible  <bruno@clisp.org>
120037         * gnulib-tool (import): Change --aux-dir default to "build-aux".
120039 2005-08-24  Bruno Haible  <bruno@clisp.org>
120041         * gnulib-tool (func_version): Update.
120043 2005-08-24  Bruno Haible  <bruno@clisp.org>
120045         * gnulib-tool (func_import, func_create_testdir,
120046         func_create_megatestdir): Quote all autoconf macro arguments.
120048 2005-08-24  Bruno Haible  <bruno@clisp.org>
120050         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
120051         option --force, because --force causes the aclocal.m4 of each
120052         subdirectory to be newer than the corresponding config.h.in.
120054 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120056         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
120057         All contents moved to gl_REGEX.
120058         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
120059         assume that it does.
120061 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120063         * lib/regex.h (REG_NOSYS)
120064         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
120065         Define, since POSIX requires it as of 2001.
120066         (_REG_ENOSYS)
120067         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
120068         New private symbol, used to keep the enum signed in all cases.
120069         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
120070         Youngman in
120071         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
120073         * lib/regex_internal.c (re_string_skip_chars, register_state):
120074         (calc_state_hash):
120075         Remove forward decls; no longer needed now that we use prototypes.
120076         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
120077         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
120078         (clean_state_log_if_needed): Likewise.
120080 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120082         * config/srclist.txt: Add glibc bugs 1231-1233.
120084 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120086         Fix problems reported by Sam Steingold in
120087         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
120088         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
120089         assumed that reg_errcode_t is a signed type, which is not
120090         necessarily true if _XOPEN_SOURCE is not defined.
120091         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
120092         since some compilers warn about it otherwise.
120094 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120096         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
120097         (init_word_char, create_initial_state, duplicate_node_closure):
120098         (fetch_token, peek_token_bracket, build_range_exp):
120099         (build_collating_symbol): Remove forward decls; no longer needed
120100         now that we use prototypes.
120102         * lib/regcomp.c:
120103         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
120104         (re_compile_fastmap_iter, regcomp, regerror, regfree):
120105         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
120106         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
120107         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
120108         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
120109         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
120110         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
120111         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
120112         (build_range_exp, build_collating_symbol, parse_bracket_exp):
120113         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
120114         (build_charclass, build_charclass_op, fetch_number, create_tree):
120115         (create_token_tree, mark_opt_subexp, duplicate_tree):
120116         Use prototypes rather than old-style definitions.
120118         * lib/regex_internal.c:
120119         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
120120         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
120121         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
120122         (re_string_reconstruct, re_string_peek_byte_case):
120123         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
120124         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
120125         (re_node_set_init_copy, re_node_set_add_intersect):
120126         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120127         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120128         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
120129         (re_acquire_state, re_acquire_state_context, register_state):
120130         (create_ci_newstate, create_cd_newstate, free_state):
120131         Likewise.
120132         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
120133         re_search_2):
120134         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
120135         (re_search_internal, prune_impossible_nodes):
120136         (acquire_init_state_context, check_matching, static):
120137         (check_halt_node_context, check_halt_state_context, proceed_next_node):
120138         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
120139         (update_regs, sift_states_backward, build_sifted_states):
120140         (clean_state_log_if_needed, merge_state_array):
120141         (update_cur_sifted_state, add_epsilon_src_nodes):
120142         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
120143         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
120144         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
120145         (find_recover_state, check_subexp_matching_top, transit_state_mb):
120146         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
120147         (check_arrival, check_arrival_add_next_nodes):
120148         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
120149         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
120150         (check_node_accept_bytes, check_node_accept, extend_buffers):
120151         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
120152         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
120153         (sift_ctx_init):
120154         Likewise.
120156         * lib/regex_internal.h:
120157         (re_string_allocate, re_string_construct, re_string_reconstruct):
120158         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
120159         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
120160         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
120161         (re_string_context_at, re_string_peek_byte_case):
120162         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
120163         is defined, since we now use prototypes always.
120165         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
120166         C89 or better.  All uses removed.
120168 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120170         * config/srclist.txt: Add glibc bugs 1220-1227.
120172 2005-08-20  Jim Meyering  <jim@meyering.net>
120174         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
120175         of unused local, dfa.
120177 2005-08-20  Bruno Haible  <bruno@clisp.org>
120179         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
120181 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120183         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
120184         (re_node_set_insert_last, re_dfa_add_node):
120185         Rename local variables to avoid GCC shadowing warnings.
120187 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120189         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
120190         [defined lint]: Suppress bogus uninitialized-variable warnings.
120192         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
120193         and let the caller return REG_ESPACE if out of space.  This
120194         removes an uninitialied-variable warning with GCC 4.0.1, and also
120195         avoids taking the address of a local variable.  All callers
120196         changed.
120198 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120200         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
120201         $LIBCSRC/posix/regexec.c.
120202         Add glibc bug 1217 for regcomp.c.
120204 2005-08-19  Jim Meyering  <jim@meyering.net>
120206         * lib/regexec.c (proceed_next_node): Redo local variables to
120207         avoid GCC shadowing warnings.
120209 2005-08-18  Bruno Haible  <bruno@clisp.org>
120211         * lib/strstr.c (strstr): Fix return value in multibyte case.
120212         * lib/strcasestr.c (strcasestr): Likewise.
120214 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
120216         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
120218 2005-08-17  Jim Meyering  <jim@meyering.net>
120220         Make the %s format (seconds since the epoch) work for a negative
120221         number and when used with a zero-padded field width, e.g. %015s.
120223         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
120224         label so that it precedes the code to set `digits'.  Otherwise,
120225         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
120226         print `00-22'.  Now, it prints `-0022', as it should.
120228 2005-08-17  Bruno Haible  <bruno@clisp.org>
120230         * modules/strstr (Files): Add m4/mbrtowc.m4.
120231         (Depends-on): Add mbuiter.
120233 2005-08-17  Bruno Haible  <bruno@clisp.org>
120235         * modules/strcasestr: New file.
120236         * MODULES.html.sh (String handling, based on ANSI C 89): Add
120237         strcasestr.
120239 2005-08-17  Bruno Haible  <bruno@clisp.org>
120241         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
120243 2005-08-17  Bruno Haible  <bruno@clisp.org>
120245         * modules/mbuiter: New file.
120246         * MODULES.html.sh (Extended multibyte and wide character utilities):
120247         Add mbuiter.
120249 2005-08-17  Bruno Haible  <bruno@clisp.org>
120251         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
120252         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
120254 2005-08-17  Bruno Haible  <bruno@clisp.org>
120256         * m4/strcasestr.m4: New file.
120258 2005-08-17  Bruno Haible  <bruno@clisp.org>
120260         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
120261         * lib/strstr.c: Completely rewritten, with multibyte locale support.
120263 2005-08-17  Bruno Haible  <bruno@clisp.org>
120265         * lib/strcasestr.h: New file.
120266         * lib/strcasestr.c: New file.
120268 2005-08-17  Bruno Haible  <bruno@clisp.org>
120270         * lib/strcasecmp.c: Use mbuiter.h.
120272 2005-08-17  Bruno Haible  <bruno@clisp.org>
120274         * lib/mbuiter.h: New file.
120276 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
120278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
120279         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
120280         and gl_GETOPT are both invoked via different paths (as happens
120281         with GNU tar CVS because it uses both argp and getopt), the former
120282         wins.
120284 2005-08-16  Bruno Haible  <bruno@clisp.org>
120286         * modules/tls: New file.
120287         * MODULES.html.sh (Multithreading): Add tls.
120289 2005-08-16  Bruno Haible  <bruno@clisp.org>
120291         * modules/strnlen1: New file.
120292         * MODULES.html.sh (String handling): Add strnlen1.
120294 2005-08-16  Bruno Haible  <bruno@clisp.org>
120296         * modules/strcase (Files): Add m4/mbrtowc.m4.
120297         (Depends-on): Add strnlen1, mbchar.
120299 2005-08-16  Bruno Haible  <bruno@clisp.org>
120301         * modules/mbiter: New file.
120302         * MODULES.html.sh (Extended multibyte and wide character utilities):
120303         Add mbiter.
120305 2005-08-16  Bruno Haible  <bruno@clisp.org>
120307         * modules/mbfile: New file.
120308         * MODULES.html.sh (Extended multibyte and wide character utilities):
120309         Add mbfile.
120311 2005-08-16  Bruno Haible  <bruno@clisp.org>
120313         * modules/mbchar: New file.
120314         * MODULES.html.sh (Extended multibyte and wide character utilities):
120315         New section.
120317 2005-08-16  Bruno Haible  <bruno@clisp.org>
120319         * m4/tls.m4: New file, from GNU gettext.
120321 2005-08-16  Bruno Haible  <bruno@clisp.org>
120323         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
120324         always.
120325         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
120327 2005-08-16  Bruno Haible  <bruno@clisp.org>
120329         * m4/mbiter.m4: New file.
120331 2005-08-16  Bruno Haible  <bruno@clisp.org>
120333         * m4/mbfile.m4: New file.
120335 2005-08-16  Bruno Haible  <bruno@clisp.org>
120337         * m4/mbchar.m4: New file.
120339 2005-08-16  Bruno Haible  <bruno@clisp.org>
120341         * lib/tls.h: New file, from GNU gettext.
120342         * lib/tls.c: New file, from GNU gettext.
120344 2005-08-16  Bruno Haible  <bruno@clisp.org>
120346         * lib/strnlen1.h: New file.
120347         * lib/strnlen1.c: New file.
120349 2005-08-16  Bruno Haible  <bruno@clisp.org>
120351         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
120352         (mbi_init): Update.
120353         (mbi_avail, mbi_advance): Let the iteration end before the terminating
120354         NUL byte, not after it.
120356 2005-08-16  Bruno Haible  <bruno@clisp.org>
120358         * lib/strcase.h (strcasecmp): Add note in comments.
120359         * lib/strncasecmp.c: Use code from strcasecmp.c.
120360         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
120361         (strcasecmp): Work correctly in multibyte locales.
120363 2005-08-16  Bruno Haible  <bruno@clisp.org>
120365         * lib/mbiter.h: New file.
120367 2005-08-16  Bruno Haible  <bruno@clisp.org>
120369         * lib/mbfile.h: New file.
120371 2005-08-16  Bruno Haible  <bruno@clisp.org>
120373         * lib/mbchar.h: New file.
120374         * lib/mbchar.c: New file.
120376 2005-08-16  Bruno Haible  <bruno@clisp.org>
120378         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
120379         the valid ones. Makes the comparison operations transitive:
120380         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
120381         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
120383 2005-08-15  Simon Josefsson  <jas@extundo.com>
120385         * modules/ssize_t (License): Change to 'unlimited'.
120387         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
120389 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
120391         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
120392         Add comments for each pending glibc patch.
120394 2005-08-15  Bruno Haible  <bruno@clisp.org>
120396         * lib/regex.h (__restrict_arr): Don't define to __restrict if
120397         __cplusplus is defined.
120399 2005-08-14  Jim Meyering  <jim@meyering.net>
120401         Sync from coreutils.
120403         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
120404         Use the hash-table-based cycle-detection code not just when
120405         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
120406         Reported by James Youngman in
120407         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
120408         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
120409         FTS_TIGHT_CYCLE_CHECK.
120410         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
120411         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
120412         once again.
120413         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
120414         * lib/fts.c (fd_safer): Remove decl.
120415         Include fcntl--.h rather than unistd-safer.h
120416         (fts_safe_changedir): Don't call fd_safer; no longer needed
120417         now that we include fcntl--.h.
120419 2005-08-12  Simon Josefsson  <jas@extundo.com>
120421         * modules/getndelim2: Use ssize_t module.
120422         * modules/getnline: Likewise.
120423         * modules/safe-read: Likewise.
120424         * modules/xreadlink: Likewise.
120426         * modules/ssize_t: New file.
120428 2005-08-12  Simon Josefsson  <jas@extundo.com>
120430         * m4/readline.m4: Look for termcap, curses or ncurses if required.
120432 2005-08-12  Simon Josefsson  <jas@extundo.com>
120434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120435         ssize_t.
120437 2005-08-12  Simon Josefsson  <jas@extundo.com>
120439         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
120440         readline, getdelim and check_version.
120441         (Support for systems lacking ISO C 99: Sizes of integer types):
120442         Add size_max.
120444 2005-08-12  Bruno Haible  <bruno@clisp.org>
120446         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
120448 2005-08-11  Simon Josefsson  <jas@extundo.com>
120450         * modules/readline: New file.
120452         * modules/strnlen (Files): Add strnlen.h.
120454 2005-08-11  Simon Josefsson  <jas@extundo.com>
120456         * m4/readline.m4: New file.
120458 2005-08-11  Simon Josefsson  <jas@extundo.com>
120460         * lib/readline.h, readline.c: New file.
120462 2005-08-11  Simon Josefsson  <jas@extundo.com>
120464         * doc/gnulib.texi (Initial import, Finishing touches): Mention
120465         gl_AVOID.
120467 2005-08-11  Bruno Haible  <bruno@clisp.org>
120469         * lib/strnlen.h (strnlen): Change parameter name to match comment.
120471 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
120473         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
120475 2005-08-10  Simon Josefsson  <jas@extundo.com>
120477         * tests/test-iconvme.c: New file.
120479 2005-08-10  Simon Josefsson  <jas@extundo.com>
120481         * m4/strnlen.m4: New file.
120483         * m4/strndup.m4: Don't check for strnlen declaration, done in
120484         strnlen.m4.
120486 2005-08-10  Simon Josefsson  <jas@extundo.com>
120488         * lib/strndup.c: Use strnlen.h.
120490         * lib/strnlen.h: New file.
120492 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120494         * README: Typos.
120496 2005-08-02  Simon Josefsson  <jas@extundo.com>
120498         * modules/readline: New file.
120500 2005-08-02  Simon Josefsson  <jas@extundo.com>
120502         * modules/getdelim: New file.
120504         * modules/getline: Rewrite, don't use getndelim2.
120506 2005-08-02  Simon Josefsson  <jas@extundo.com>
120508         * m4/getline.m4: Separate out getdelim stuff into separate module.
120510         * m4/getdelim.m4: New file.
120512 2005-08-02  Simon Josefsson  <jas@extundo.com>
120514         * lib/getline.h, getline.c: Rewrite.
120516         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
120518 2005-07-31  Bruno Haible  <bruno@clisp.org>
120520         * lib/lock.h (gl_lock_initializer): New macro.
120521         (gl_lock_define_initialized): Use it.
120522         (gl_rwlock_initializer): New macro.
120523         (gl_rwlock_define_initialized): Use it.
120524         (gl_recursive_lock_initializer): New macro.
120525         (gl_recursive_lock_define_initialized): Use it.
120527 2005-07-30  Karl Berry  <karl@gnu.org>
120529         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
120530         Report from Ben Pfaff, regarding getopt.
120532 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
120534         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
120535         normal way.
120536         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
120537         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
120538         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
120539         (gl_GETOPT): Use the new macros.  Most of the implementation
120540         is moved to the new macros.  This is for programs like Emacs
120541         that don't want all the functionality of gl_GETOPT.
120543 2005-07-26  Bruno Haible  <bruno@clisp.org>
120545         * m4/lock.m4: Update from GNU gettext.
120547 2005-07-26  Bruno Haible  <bruno@clisp.org>
120549         * lib/lock.h: Update from GNU gettext.
120550         * lib/lock.c: Update from GNU gettext.
120552 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
120554         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
120555         obsolescent AC_TRY_RUN.  Include the default includes files, for
120556         'exit'.
120558 2005-07-24  Bruno Haible  <bruno@clisp.org>
120560         * modules/visibility: New file.
120561         * MODULES.html.sh (Misc): Add visibility.
120563 2005-07-24  Bruno Haible  <bruno@clisp.org>
120565         * m4/visibility.m4: New file.
120567 2005-07-24  Bruno Haible  <bruno@clisp.org>
120569         * doc/visibility.texi: New file.
120571 2005-07-22  Bruno Haible  <bruno@clisp.org>
120573         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
120574         $(ALLOCA_H), redundant through BUILT_SOURCES.
120575         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
120576         redundant through BUILT_SOURCES.
120577         * modules/byteswap (Makefile.am): Remove explicit dependency on
120578         $(BYTESWAP_H), redundant through BUILT_SOURCES.
120579         * modules/fnmatch (Makefile.am): Remove explicit dependency on
120580         $(FNMATCH_H), redundant through BUILT_SOURCES.
120581         * modules/getopt (Makefile.am): Remove explicit dependency on
120582         $(GETOPT_H), redundant through BUILT_SOURCES.
120583         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
120584         redundant through BUILT_SOURCES.
120585         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
120586         redundant through BUILT_SOURCES.
120587         * modules/stdbool (Makefile.am): Remove explicit dependency on
120588         $(STDBOOL_H), redundant through BUILT_SOURCES.
120589         * modules/stdint (Makefile.am): Remove explicit dependency on
120590         $(STDINT_H), redundant through BUILT_SOURCES.
120591         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
120592         Remove explicit dependency on $(SYSEXITS_H).
120593         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
120595 2005-07-18  Simon Josefsson  <jas@extundo.com>
120597         * lib/check-version.c (check_version): Accept identical versions too.
120599 2005-07-18  Bruno Haible  <bruno@clisp.org>
120601         * modules/lock: New file.
120602         * MODULES.html.sh (Multithreading): New section.
120604 2005-07-18  Bruno Haible  <bruno@clisp.org>
120606         * m4/lock.m4: New file, from GNU gettext.
120608 2005-07-18  Bruno Haible  <bruno@clisp.org>
120610         * lib/lock.h: New file, from GNU gettext.
120611         * lib/lock.c: New file, from GNU gettext.
120613 2005-07-18  Bruno Haible  <bruno@clisp.org>
120615         * lib/lock.h (gl_once_t): New type.
120616         (gl_once_define, gl_once): New macros.
120617         * lib/lock.c (fresh_once): New variable.
120618         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
120619         functions.
120621 2005-07-16  Simon Josefsson  <jas@extundo.com>
120623         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
120624         workaround, suggested by Bruno.
120626 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
120628         * modules/xalloc (Depends-on): Add xalloc-die.
120629         * modules/xvasprintf (Depends-on): Add xalloc-die.
120631 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
120633         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
120634         with a minor change.
120636 2005-07-15  Bruno Haible  <bruno@clisp.org>
120638         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
120639         When using lib/poll.c, define poll as rpl_poll.
120641 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
120643         * modules/argp (Depends-on): Remove unlocked-io.
120645 2005-07-14  Derek Price  <derek@ximbiot.com>
120647         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
120648         for glob symlink bug.
120650 2005-07-14  Bruno Haible  <bruno@clisp.org>
120652         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
120653         Instead, test for *_unlocked function declarations directly.
120655 2005-07-11  Simon Josefsson  <jas@extundo.com>
120657         * modules/size_max: New file.
120659         * modules/xsize: Depend on size_max module for size_max.m4.
120661 2005-07-11  Simon Josefsson  <jas@extundo.com>
120663         * lib/size_max.h: New file.
120665 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
120667         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
120668         copyright symbol and the year.
120669         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
120670         (version_etc_va): Use parameterized copyright notice.
120671         Reword to conform to the current GNU coding standards.
120673 2005-07-11  Karl Berry  <karl@gnu.org>
120675         * doc/gnulib.texi (Quoting): new node.
120676         (Initial import): more info, from Patrice.
120678 2005-07-11  Bruno Haible  <bruno@clisp.org>
120680         * gnulib-tool (func_usage): Document option --avoid.
120681         (Command line options): Handle --avoid.
120682         (func_acceptable): New function.
120683         (func_modules_transitive_closure): Use it.
120685 2005-07-11  Bruno Haible  <bruno@clisp.org>
120687         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
120688         Reported by Jim Meyering.
120690 2005-07-10  Bruno Haible  <bruno@clisp.org>
120692         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
120693         Needed when size_t is smaller than 'unsigned int'.
120694         Reported by Paul Eggert.
120696 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120698         * modules/argp (Depends-on): Add unlocked-io
120700 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120702         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
120703         block of defines.
120705 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
120707         * config/srclist.txt: Comment out regcomp.c, since we have a porting
120708         fix now.
120710 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
120711         and Paul Eggert  <eggert@cs.ucla.edu>
120713         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
120714         in wint_t, not wchar_t.  Remove now-unnecessary cast.
120716 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120718         * modules/regex (Files): Add lib/regex_internal.c,
120719         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
120720         (Depends-on): Add extensions.
120721         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
120723 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120725         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
120726         pathconf.
120727         * m4/same.m4 (gl_SAME): Likewise.
120728         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
120730         * m4/regex.m4: Adjust to new libc regex implementation.
120731         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
120732         all the .c and .h parts of (the new) regex.
120733         Quote the m4 stuff better.
120734         Check for RE_ICASE bug of old gnulib.
120735         Check for REG_STARTEND of recent libc.
120736         Rename local variables from jm_* to gl_*.
120737         Quote operand of "test -f".
120738         Say "recent enough" version of libc, not "version 2".
120739         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
120740         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
120741         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
120742         Remove check for btowc, isascii.
120743         Require AM_LANGINFO_CODESET.
120745 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120747         * lib/regex.c, regex.h: Sync from libc.
120748         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
120749         * lib/regexec.c:
120750         New files, synced from libc, except that regex_internal.h
120751         currently has a small porting fix.
120753 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120755         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
120756         regex_internal.c, regexec.c.
120757         Add regex_internal.h too, but as a comment, since the libc version
120758         is currently broken in gnulib mode.
120760 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
120762         Support programs like Emacs that use gnulib but not gettext.
120763         * MODULES.html.sh (Internationalization functions): Add gettext-h.
120764         * modules/gettext-h: New file.
120765         * modules/gettext (Files): Remove lib/gettext.h.
120766         (Depends-on): Add gettext-h.
120767         (Makefile.am): Remove lib_SOURCES.
120768         * modules/argmatch, modules/c-stack, modules/closeout:
120769         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
120770         * modules/execute, modules/file-type, modules/getaddrinfo:
120771         * modules/getopt, modules/human, modules/javacomp:
120772         * modules/javaexec, modules/mkdir-p, modules/obstack:
120773         * modules/openat, modules/pagealign_alloc, modules/pipe:
120774         * modules/quotearg, modules/regex, modules/rpmatch:
120775         * modules/unicodeio, modules/userspec, modules/version-etc:
120776         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
120777         * modules/xsetenv:
120778         Depend on gettext-h, not gettext.
120780 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
120782         * gnulib-tool (func_import): Add support for 'public domain' license.
120783         * modules/alloca, modules/atexit, modules/memmove:
120784         Now public domain, not GPL.
120785         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
120786         * modules/realloc, modules/strerror, modules/strtod:
120787         Now LGPL, not GPL.
120789 2005-07-05  Bruno Haible  <bruno@clisp.org>
120791         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
120792         autoconf CVS. Needed for mingw.
120794 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120796         Remove the dependency of the strftime module on the tzset module.
120797         * modules/strftime (Depends-on): Remove dependency on tzset.
120799 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120801         Remove the dependency of the strftime module on the tzset module.
120802         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
120803         gl_FUNC_TZSET_CLOBBER.
120805 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120807         Remove the dependency of the strftime module on the tzset module.
120808         * lib/strftime.c (my_strftime)
120809         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
120810         Copy the input structure, to work around some of the bug with
120811         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
120812         Solaris releases, you should also use the tzset module, but we won't
120813         require it as a dependency any more since we don't want LGPLed code
120814         to depend on GPLed code.
120816 2005-07-02  Jim Meyering  <jim@meyering.net>
120818         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
120819         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
120820         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
120821         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
120823 2005-07-02  Jim Meyering  <jim@meyering.net>
120825         * lib/backupfile.c (backup_args): Change a `0' to NULL.
120827 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
120829         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
120830         declares only 'struct timespec;' (!).
120832 2005-07-01  Jim Meyering  <jim@meyering.net>
120834         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
120835         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
120836         * lib/save-cwd.c, tempname.c:
120837         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
120838         and don't include <sys/file.h>).
120840 2005-06-29  Jim Meyering  <jim@meyering.net>
120842         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
120843         type name.  Use the variable name instead.
120844         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
120845         Likewise.
120847 2005-06-28  Simon Josefsson  <jas@extundo.com>
120849         * modules/check-version (Files): Add check-version.m4.
120851 2005-06-28  Simon Josefsson  <jas@extundo.com>
120853         * m4/check-version.m4: New file, suggested by Jim Meyering
120854         <jim@meyering.net>.
120856 2005-06-28  Simon Josefsson  <jas@extundo.com>
120858         * lib/check-version.h, lib/check-version.c: New files.
120860 2005-06-28  Simon Josefsson  <jas@extundo.com>
120862         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
120863         collision with global variable.  Better indentation.  Don't
120864         increment buffer pointer beyond buffer end.  Based on comments
120865         from Paul Eggert <eggert@cs.ucla.edu>.
120867         * lib/base64.h: Indent.
120869 2005-06-28  Simon Josefsson  <jas@extundo.com>
120871         * doc/gnulib.texi (Library version handling): New section.
120873 2005-06-28  Jim Meyering  <jim@meyering.net>
120875         * check-module (find_included_lib_files): Hard-code another
120876         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
120877         but modules/fts-lgpl (correctly) does not list those files.
120879         * modules/canonicalize (Files): Add lib/pathmax.h.
120881 2005-06-25  Simon Josefsson  <jas@extundo.com>
120883         * modules/check-version: New file.
120885 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
120887         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
120888         initializer of struct addrinfo, as an indication that we don't
120889         care how many members the structure has.
120891 2005-06-24  Derek Price  <derek@ximbiot.com>
120892         and Bruno Haible  <bruno@clisp.org>
120894         Remove stat module & update lstat.
120895         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
120896         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
120897         * m4/stat.m4: Remove this file.
120899 2005-06-24  Derek Price  <derek@ximbiot.com>
120900         and Bruno Haible  <bruno@clisp.org>
120902         Remove stat module & update lstat.
120903         * lib/stat.c: Remove this file...
120904         (slash_aware_lstat): ...moving this content and its support...
120905         * lib/lstat.c (rpl_lstat): ...into here.
120906         * lib/lstat.h: New file.
120908 2005-06-24  Derek Price  <derek@ximbiot.com>
120909         and Bruno Haible  <bruno@clisp.org>
120911         Remove stat module & update lstat.
120912         * config/srclist.txt (libc sources): Remove stat.
120914 2005-06-24  Derek Price  <derek@ximbiot.com>
120915         and Bruno Haible  <bruno@clisp.org>
120917         Remove stat module & update lstat.
120918         * MODULES.html.sh (stat): Remove.
120919         * MODULES.html: Regenerated.
120920         * modules/lstat (Description): Correct function name.
120921         (Files): Add "lstat.h".
120922         (Depends-on): Remove stat, add xalloc, stat-macros.
120923         * modules/stat: Remove this file.
120924         (Include): Add "lstat.h", remove <sys/stat.h>.
120926 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
120928         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
120929         (ranged_convert): Don't save conversion in a temporary struct.
120930         This causes a warning with GCC 4.0.0, and anyway in the typical
120931         case it's not worth the extra 100 bytes or so of code.
120932         (ranged_convert, __mktime_internal): When calling a function via a
120933         pointer P, use P () rather than (*P) (), as we now assume C89 or
120934         better.
120936 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120938         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
120939         "who -r" failed to give output.  Problem reported by Tim Waugh.
120941         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
120942         (xcalloc): Use it to avoid needless tests.
120943         Problem reported by Jim Meyering.
120945 2005-06-20  Derek Price  <derek@ximbiot.com>
120947         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
120948         unnecessary for Autoconfs > 2.59c.
120950 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120952         * lib/argp.h (__option_is_short): Check upper limit of
120953         __key. Isprint() requires its argument to have the value
120954         of an unsigned char or EOF.
120956 2005-06-16  Jim Meyering  <jim@meyering.net>
120958         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
120959         when either N or S is zero.
120961 2005-06-16  Derek Price  <derek@ximbiot.com>
120963         * m4/bison.m4: Declare YACC & YFLAGS precious.
120965 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
120967         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
120968         multibyte string or pattern, fall back on unibyte matching.
120969         Problem reported by James Youngman.
120971 2005-06-08  Bruno Haible  <bruno@clisp.org>
120973         * modules/csharpcomp: New file.
120974         * MODULES.html.sh (C#): Add csharpcomp.
120976 2005-06-08  Bruno Haible  <bruno@clisp.org>
120978         * m4/csharpcomp.m4: New file, from GNU gettext.
120980 2005-06-08  Bruno Haible  <bruno@clisp.org>
120982         * lib/csharpcomp.h: New file, from GNU gettext.
120983         * lib/csharpcomp.c: New file, from GNU gettext.
120984         * lib/csharpcomp.sh.in: New file, from GNU gettext.
120986 2005-06-08  Bruno Haible  <bruno@clisp.org>
120988         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
120989         warning on mingw.
120991 2005-06-07  Derek Price  <derek@ximbiot.com>
120993         Sync from CVS.
120994         * lib/glob_.h: Indent nested #ifdef.
120996 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
120998         Sync from coreutils.
120999         Use "file name" when talking about file names, instead of "filename"
121000         or "path", as per the GNU coding standards.
121001         * lib/mkdir-p.c: Renamed from makepath.c.
121002         (make_dir_parents): Renamed from make_path.  All callers changed.
121003         * lib/mkdir-p.h: Likewise.  All includers changed.
121004         * lib/filenamecat.c: Renamed from path-concat.c.
121005         (file_name_concat): Renamed from path_concat.  All callers changed.
121006         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
121007         * lib/filenamecat.h: Likewise.  All includers changed.
121008         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
121009         in comments or local variable names.
121010         * lib/basename.c: Likewise.
121011         * lib/canonicalize.c, canonicalize.h: Likewise.
121012         * lib/dirname.c, dirname.h: Likewise.
121013         * lib/euidaccess.c: Likewise.
121014         * lib/exclude.c: Likewise
121015         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
121016         * lib/fsusage.c, fsuage.h: Likewise.
121017         * lib/fts.c, fts_.h: Likewise.
121018         * lib/getcwd.c: Likewise.
121019         * lib/getloadavg.c: Likewise.
121020         * lib/mkstemp.c: Likewise.
121021         * lib/mountlist.c, mountlist.h: Likewise.
121022         * lib/openat.c, openat.h: Likewise.
121023         * lib/readlink-stub.c: Likewise.
121024         * lib/readutmp.c, readutmp.h: Likewise.
121025         * lib/rename.c: Likewise.
121026         * lib/rmdir.c: Likewise.
121027         * lib/same.c: Likewise.
121028         * lib/savedir.c: Likewise.
121029         * lib/stripslash.c: Likewise.
121030         * lib/tempname.c: Likewise.
121031         * lib/xreadlink.c: Likewise.
121032         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
121033         All uses changed.
121034         * lib/exclude.h: Likewise.
121036         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
121037         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121038         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
121039         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121040         * lib/pathmax.h: Include <limits.h> unconditionally, since other
121041         files have been getting away with it for years (MORE/BSD 4.3
121042         is extinct now).
121043         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
121044         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121046         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
121047         Define to 256, not 255, as per modern POSIX.
121049 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121051         Sync from coreutils.
121052         Use "file name" when talking about file names, instead of "filename"
121053         or "path", as per the GNU coding standards.
121054         * MODULES.html.sh: mkdir-p renamed from makepath.
121055         filenamecat renamed from path-concat.
121056         * modules/filenamecat: Renamed from modules/path-concat.
121057         (Files): filenamecat.h and filenamecat.c renamed from
121058         path-concat.h and path-concat.c.
121059         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
121060         (Include): filenamecat.h, not path-concat.h.
121061         * modules/mkdir-p: Renamed from modules/makepath.
121062         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
121063         makepath.c.
121064         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
121065         (Include): mkdir-p.h, not makepath.h.
121067 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121069         Sync from coreutils.
121070         * m4/mkdir-p.m4: Renamed from makepath.m4.
121071         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
121072         Rename files from makepath.c to mkdir-p.c, and from
121073         makepath.h to mkdir-p.h.
121074         * m4/filenamecat.m4: Renamed from path-concat.m4.
121075         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
121076         Rename files from path-concat.c to filenamecat.c,
121077         and from path-concat.h to filenamecat.h.
121078         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
121079         "file name" in local variables or comments.
121080         * m4/rename.m4: Likewise.
121082 2005-06-01  Bruno Haible  <bruno@clisp.org>
121084         * modules/csharpexec: New file.
121085         * MODULES.html.sh (C#): New section.
121087 2005-06-01  Bruno Haible  <bruno@clisp.org>
121089         * m4/csharp.m4: New file, from GNU gettext.
121090         * m4/csharpexec.m4: New file, from GNU gettext.
121092 2005-06-01  Bruno Haible  <bruno@clisp.org>
121094         * lib/csharpexec.h: New file, from GNU gettext.
121095         * lib/csharpexec.c: New file, from GNU gettext.
121096         * lib/csharpexec.sh.in: New file, from GNU gettext.
121098 2005-05-31  Derek Price  <derek@ximbiot.com>
121099             Paul Eggert  <eggert@cs.ucla.edu>
121101         Sync from cvs.
121102         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
121104 2005-05-31  Derek Price  <derek@ximbiot.com>
121105             Paul Eggert  <eggert@cs.ucla.edu>
121107         Sync from cvs.
121108         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
121110 2005-05-29  Derek Price  <derek@ximbiot.com>
121112         * config/srclist.txt (glob_.h, glob.c): Add these files.
121114 2005-05-29  Derek Price  <derek@ximbiot.com>
121116         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
121117         * modules/glob: New file.
121118         * modules/getlogin_r: Add link to POSIX spec in description.
121120 2005-05-29  Derek Price  <derek@ximbiot.com>
121121             Paul Eggert  <eggert@cs.ucla.edu>
121123         * m4/glob.m4: New file.
121125 2005-05-29  Derek Price  <derek@ximbiot.com>
121126             Paul Eggert  <eggert@cs.ucla.edu>
121128         * lib/glob_.h, lib/glob.c: New files.
121130 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121132         * modules/fts (Files): Remove m4/inttypes-pri.m4.
121133         * modules/fts-lgpl (Depends-on): Remove gettext.
121135 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121137         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
121138         and don't require gt_INTTYPES_PRI.
121140 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121142         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
121144         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
121145         the configuration hassle isn't worth it.
121146         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
121147         (LONGEST_MODIFIER, PRIuMAX): Remove.
121149 2005-05-27  Bruno Haible  <bruno@clisp.org>
121151         * lib/getlogin_r.h: Remove second include of <stddef.h>.
121153 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
121155         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
121156         _POSIX_PTHREAD_SEMANTICS for Solaris.
121158 2005-05-25  Derek Price  <derek@ximbiot.com>
121160         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
121162 2005-05-25  Derek Price  <derek@ximbiot.com>
121163             Paul Eggert  <eggert@cs.ucla.edu>
121165         * modules/getlogin_r, m4/getlogin_r.m4: New files.
121166         * lib/getlogin_r.c, getlogin_r.h: New files.
121168 2005-05-25  Bruno Haible  <bruno@clisp.org>
121169             Derek Price  <derek@ximbiot.com>
121171         * lib/getlogin_r.h: Simplify API documentation.
121173 2005-05-23  Derek Price  <derek@ximbiot.com>
121175         * modules/minmax (Files): Add m4/minmax.m4.
121176         (configure.ac): Add gl_MINMAX.
121178 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
121180         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
121181         so that unistd-safer.h (GPL'ed code) need not be included.
121183 2005-05-22  Bruno Haible  <bruno@clisp.org>
121185         * m4/minmax.m4: New file.
121186         Based on a patch by Derek Price <derek@ximbiot.com>.
121188 2005-05-22  Bruno Haible  <bruno@clisp.org>
121190         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
121191         (INT64_MIN): Fix definition.
121192         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
121194         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
121195         NEED_SIGNED_INT_TYPES.
121197         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
121198         HAVE_SYSTEM_INTTYPES.
121200 2005-05-22  Bruno Haible  <bruno@clisp.org>
121202         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
121203         Also include <sys/param.h> if it defines MIN, MAX.
121204         Based on a patch by Derek Price <derek@ximbiot.com>.
121206 2005-05-21  Jim Meyering  <jim@meyering.net>
121208         * modules/fts (Files): Add m4/inttypes-pri.m4.
121209         (Depends-on): Add lstat and remove gettext.  Alphabetize.
121211 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121213         New fts module.
121214         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
121215         (setup_dir, free_dir): New functions.
121216         (enter_dir, leave_dir): Define trivial
121217         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
121218         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
121219         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
121220         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
121221         Move to fts-cycle.c.
121222         (fts_open): Use setup_dir.
121223         (fts_close): Use free_dir.
121224         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
121225         This adds a label and some gotos, but the alternatives were messier.
121226         Check for memory allocation failure when entering a dir.
121227         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
121228         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
121229         (FTS): New member fts_cycle, that is a union that contains the
121230         old active_dir_ht and cycle_state.  All uses changed to mention
121231         fts_cycle.ht and fts_cycle.state.
121232         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
121233         fts.c, with the following changes:
121234         (setup_dir, free_dir): New functions.
121235         (enter_dir): Now returns bool.  Return true if successful, false
121236         if memory exhausted.  All callers changed.
121237         Do not bother partly cleaning up on
121238         memory allocation failure; that is free_dir's job.
121239         However, free ad if hash_insert fails, to avoid memory leak.
121240         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
121241         fts->fts_options to see which union member to use.
121243 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121245         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
121246         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
121248 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121250         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
121252 2005-05-20  Jim Meyering  <jim@meyering.net>
121254         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
121255         Now a macro, to pacify GCC.
121257 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
121259         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
121260         of -1.
121262 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
121264         * lib/chown.c (rpl_chown): Return -1 on failure.
121266 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
121268         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
121269         Don't check for stddef.h.
121270         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
121271         don't use its results.
121272         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
121273         since we include them unconditionally.  Don't require
121274         AM_STDBOOL_H, since stdbool is a prerequisite.
121275         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
121276         since we assume C89 or better.
121277         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
121278         as we don't use their results.
121279         Don't check for fchdir, memmove, memset, strrchr, as we use
121280         them unconditionally.
121281         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
121282         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
121284 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
121286         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
121287         Include <stddef.h> unconditionally, since we assume C89 now.
121288         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
121289         * lib/fts.c: Include fts_.h first, to check interface.
121290         Do not include intprops.h; no longer needed.
121291         Include cycle-check.h and hash.h, since fts_.h no longer does.
121292         Remove unnecessary casts of closedir to void.
121293         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
121294         decide whether to decrement nlinks.
121295         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
121296         (FTS): Use struct hash_table * instead of Hash_table, so that
121297         we no longer need to include hash.h here.
121299 2005-05-18  Jim Meyering  <jim@meyering.net>
121301         * modules/dirfd (License): Change to LGPL.  Most of the code
121302         is already in the public domain.
121304 2005-05-18  Jim Meyering  <jim@meyering.net>
121306         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
121307         Reported by Yoann Vandoorselaere.
121309 2005-05-17  Jim Meyering  <jim@meyering.net>
121311         * m4/fts.m4: New file, from coreutils.
121313 2005-05-17  Jim Meyering  <jim@meyering.net>
121315         * lib/fts.c, lib/fts_.h: New files, from coreutils.
121317 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121319         Sync from coreutils.
121320         * m4/unlinkdir.m4: New file.
121322 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121324         Sync from coreutils.
121325         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
121326         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
121327         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
121328         White space changes only.
121329         * lib/makepath.c (make_path): Port to hosts where leading "//" is
121330         special.
121331         * lib/yesno.c: Include getline.h, not ctype.h.
121332         (yesno): Don't remove leading white space; POSIX doesn't allow it.
121333         Use getline to remove arbitrary restriction on response length.
121335 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121337         * config/srclist-update: Spell out "Street" in FSF postal
121338         mail address; this is the style the FSF seems to prefer.
121340         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
121341         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
121342         this updates FSF postal mail address.
121344         Sync from coreutils.
121345         * modules/unlinkdir: New file.
121346         * modules/yesno (Depends-on): Add getline.
121347         * MODULES.html.sh (File system functions): Add unlinkdir.
121349 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121351         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
121352         lib/strsep.h:
121353         Change the initial comment to refer to GPL, not LGPL.
121354         gnulib-tool will change it to LGPL as needed.
121356         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
121357         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
121358         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
121359         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
121360         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
121361         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
121362         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
121363         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
121364         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
121365         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
121366         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
121367         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
121368         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
121369         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
121370         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
121371         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
121372         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
121373         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
121374         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
121375         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
121376         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
121377         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
121378         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
121379         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
121380         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
121381         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
121382         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
121383         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
121384         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
121385         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
121386         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
121387         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
121388         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
121389         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
121390         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
121391         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
121392         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
121393         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
121394         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
121395         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
121396         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
121397         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
121398         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
121399         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
121400         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
121401         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
121402         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
121403         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
121404         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
121405         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
121406         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
121407         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
121408         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
121409         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
121410         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
121411         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
121412         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
121413         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
121414         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
121415         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
121416         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
121417         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
121418         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
121419         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
121420         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
121421         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
121422         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
121423         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
121424         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
121425         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
121426         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
121427         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
121428         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
121429         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
121430         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
121431         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
121432         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
121433         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
121434         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
121435         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
121436         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
121437         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
121438         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
121439         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
121440         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
121441         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
121442         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
121443         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
121444         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
121445         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
121446         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
121447         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
121448         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
121449         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
121450         lib/yesno.c, lib/yesno.h:
121451         Update FSF postal mail address.
121453 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121455         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
121456         tests/test-memmem.c, tests/test-stpncpy.c:
121457         Update FSF postal mail address.
121459 2005-05-13  Bruno Haible  <bruno@clisp.org>
121461         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
121462         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
121463         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
121464         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
121465         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
121466         Add support for 64-bit integers in the MSVC compiler.
121468 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121470         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
121472 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
121474         * gnulib-tool (func_import): Sort and uniquify recommended includes.
121476 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
121478         * doc/getdate.texi (General date syntax): Don't say that date
121479         date --iso-8601=ns generates acceptable dates; it doesn't yet.
121480         Problem reported by Nic Ferrier.
121482 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121484         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
121485         specified in ai_socktype. Fix invalid ai_protocol
121486         check. ai_protocol is usually set to 0 or depending on
121487         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
121488         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
121489         ai_socktype / ai_protocol in the returned addrinfo structure.
121491 2005-05-10  Simon Josefsson  <jas@extundo.com>
121493         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
121494         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
121496 2005-05-10  Karl Berry  <karl@gnu.org>
121498         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
121499         (from http://www.gnu.org/licenses).
121500         * doc/COPYING.LIB: also rename to COPYING.LESSER.
121501         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
121502         fdl.texi suffices.
121504 2005-05-10  Karl Berry  <karl@gnu.org>
121506         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
121507         (COPYING.DOC): remove.
121509         * config/srclist-update: new FSF address.
121511 2005-05-10  Derek Price  <derek@ximbiot.com>
121513         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
121514         possible.
121516 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121517             Bruno Haible  <bruno@clisp.org>
121519         * modules/inet_ntop: New file.
121520         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121521         inet_ntop.
121523 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121524             Bruno Haible  <bruno@clisp.org>
121526         * m4/inet_ntop.m4: New file.
121528 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121529             Bruno Haible  <bruno@clisp.org>
121531         * lib/inet_ntop.h: New file.
121532         * lib/inet_ntop.c: New file, from glibc with modifications.
121534 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
121536         * modules/time_r (License): Change to LGPL.
121537         * modules/extensions (License): Change to LGPL.  Actually,
121538         the license is more permissive than that, but currently gnulib-tool
121539         doesn't know how to handle more-permissive licenses.
121541         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
121542         Problem reported by Dave Love.
121544 2005-05-08  Jim Meyering  <jim@meyering.net>
121546         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
121547         blank.
121549 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121551         * modules/argmatch (Depends-on): Add stdbool.
121552         * modules/backupfile (Depends-on): Likewise.
121553         * modules/chdir-long (Depends-on): Likewise.
121554         * modules/closeout (Depends-on): Likewise.
121555         * modules/cycle-check (Depends-on): Likewise.
121556         * modules/dirname (Depends-on): Likewise.
121557         * modules/fnmatch (Depends-on): Likewise.
121558         * modules/fsusage (Depends-on): Likewise.
121559         * modules/fwriteerror (Depends-on): Likewise.
121560         * modules/getcwd (Depends-on): Likewise.
121561         * modules/getloadavg (Depends-on): Likewise.
121562         * modules/hard-locale (Depends-on): Likewise.
121563         * modules/makepath (Depends-on): Likewise.
121564         * modules/mountlist (Depends-on): Likewise.
121565         * modules/nanosleep (Depends-on): Likewise.
121566         * modules/posixtm (Depends-on): Likewise.
121567         * modules/quotearg (Depends-on): Likewise.
121568         * modules/readtokens (Depends-on): Likewise.
121569         * modules/readtokens0 (Depends-on): Likewise.
121570         * modules/readutmp (Depends-on): Likewise.
121571         * modules/save-cwd (Depends-on): Likewise.
121572         * modules/strftime (Depends-on): Likewise.
121573         * modules/userspec (Depends-on): Likewise.
121574         * modules/utimecmp (Depends-on): Likewise.
121575         * modules/xgetcwd (Depends-on): Likewise.
121576         * modules/xnanosleep (Depends-on): Likewise.
121577         * modules/xstrtod (Depends-on): Likewise.
121578         * modules/yesno (Depends-on): Likewise.
121580 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
121582         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
121583         needless checks.
121585 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121587         Merge from coreutils.  Among other things,
121588         add bulletproofing for cases where stdin, stdout, or stderr are closed.
121589         * lib/fd-safer.c: New file.
121590         * lib/fcntl-safer.h, open-safer.c: Remove.
121591         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
121592         * lib/dup-safer.c: Include unistd-safer.h first.
121593         Don't include errno.h.
121594         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
121595         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
121596         * lib/file-type.c: Rely on file-type.h change.
121597         * lib/getloadavg.c: Include unistd-safer.h.
121598         (getloadavg): Use safer open.
121599         * lib/getusershell.c: Include "stdio-safer.h".
121600         (getusershell): Use safer fopen.
121601         * lib/long-options.c (long_options): Use NULL rather than 0.
121602         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
121603         'free'.
121604         * lib/modechange.c: Likewise.
121605         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
121606         (MODE_DONE): New constant.
121607         (struct mode_change): Remove 'next' member.
121608         (make_node_op_equals): New function; like the old one of the
121609         same name, except it allocates an array.
121610         (mode_compile, mode_create_from_ref): Use it.
121611         (mode_compile): Allocate result as an array, not a linked list.
121612         Parse octal string ourself, so that we catch mistakes like "+0".
121613         (mode_adjust): Arg is an array, not a linked list.
121614         * lib/modechange.c: Include stat-macros.h, xalloc.h.
121615         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
121616         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
121617         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
121618         Remove.  This is now stat-macros.h's job.
121619         (talloc): Remove.  All callers replaced by xalloc, so that
121620         our invokers don't have to worry about reporting memory failures.
121621         (make_node_op_equals): Remove.
121622         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
121623         New constants.
121624         (struct mode_change): Moved here from modechange.h.
121625         (mode_append_entry): Remove.
121626         (mode_compile): Remove MASKED_OPS arg, since it encouraged
121627         apps to have incorrect behavior.  Use simpler algorithm for head
121628         and tail.  Don't futz with umask; that's now the job of mode_adjust.
121629         Detect more invalid usages rather than having somewhat-random behavior.
121630         Don't insert an "a=" action, as that leads to incorrect behavior.
121631         (mode_compile, mode_create_from_ref): Return NULL on error instead
121632         of an enum, since now there's only one way to have an error.  All
121633         callers changed.
121634         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
121635         at the correct time.  Simplify calculation of "+u" and its ilk.
121636         Don't mishandle "+X".
121637         (mode_free): Remove "register" and localize decls.
121638         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
121639         (struct mode_change): Move to modechange.c; callers don't
121640         need to see this stuff.
121641         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
121642         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
121643         (mode_change, mode_adjust): Reflect the new signatures noted above.
121644         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
121645         that might redefine system include files.
121646         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
121647         (my_usleep): Use NULL rather than (void *) 0.
121648         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
121649         Use siginterrupt to specify that system calls should be interrupted.
121650         (rpl_nanosleep): Move initialization of suspended closer to call of
121651         my_usleep.
121652         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
121653         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
121654         (desirable_utmp_entry): New function.
121655         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
121656         using x2nrealloc, to simplify logic.
121657         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
121658         size calculation.  Do not assume utmp file is a regular file.
121659         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
121660         (READ_UTMP_CHECK_PIDS): New constant.
121661         * lib/save-cwd.c: Include unistd-safer.h.
121662         (save_cwd): Use fd_safer.
121663         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
121664         [!_LIBC] Include "stat-macros.h" instead.
121665         * lib/unistd-safer.h (fd_safer): New decl.
121667 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121669         * modules/getloadavg (Depends-on): Add unistd-safer.
121670         * modules/getusershell (Depends-on): Add stdio-safer.
121671         * modules/lstat (Depends-on): Remove xalloc.
121672         * modules/mkstemp (Depends-on): Add stat-macros.
121673         * modules/modechange (Depends-on): Remove xstrtol.
121674         Add stat-macros, xalloc.
121675         * modules/save-cwd (Depends-on): Add unistd-safer.
121676         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
121677         * modules/unistd-safer (Files): Add lib/fd-safer.c
121678         (Makefile.am): Remove lib_SOURCES.
121680         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
121681         Remove fcntl-safer; unistd-safer supersedes it.
121683 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121685         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
121686         AC_HEADER_STAT.
121687         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
121688         (gl_PREREQ_CHOWN): Remove.
121689         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
121690         it.  Don't require AC_HEADER_STAT.
121691         (gl_PREREQ_LSTAT): Remove.
121692         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
121693         Don't require AC_HEADER_STAT.
121694         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
121695         (gl_PREREQ_RMDIR): Remove.
121696         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
121697         mention stat-macros.h or AC_HEADER_STAT, since we'll make
121698         the stat-macros module a prerequisite.
121699         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
121700         * m4/filemode.m4 (gl_FILEMODE): Likewise.
121701         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
121702         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
121703         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
121704         variable names.
121705         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
121706         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
121707         variable prefixes.
121708         * m4/fcntl-safer.m4: Remove.
121709         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
121710         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
121711         Invoke gl_PREREQ_FD_SAFER.
121712         (gl_PREREQ_FD_SAFER): New macro.
121713         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
121714         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
121715         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
121716         Remove duplicate call to AC_LIBOBJ(readutmp).
121717         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
121719         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
121720         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
121722 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121724         * MODULES.html.sh (Misc): Add byteswap.
121726 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121728         * modules/getcwd (Depends-on): Add extensions.
121729         * modules/openat (Depends-on): Likewise.
121731 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121733         * modules/byteswap: New file.
121735 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121737         * m4/byteswap.m4: New file.
121739 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121741         * lib/byteswap_.h: New file.
121743 2005-04-25  Karl Berry  <karl@gnu.org>
121745         * m4/gettext.m4: Update from GNU gettext 0.14.4.
121747 2005-04-25  Albert Chin  <china@thewrittenword.com>
121749         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
121750         Toolkit C bug.
121752 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
121754         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
121755         (func_ln_if_changed): Remove forcibly for no error message
121756         in case file does not exist.
121758 2005-04-19  Simon Josefsson  <jas@extundo.com>
121760         * gnulib-tool (Options): Make --symlink mean --symbolic.
121762 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
121764         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
121766 2005-04-16  Simon Josefsson  <jas@extundo.com>
121768         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
121770 2005-04-15  Simon Josefsson  <jas@extundo.com>
121772         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
121774 2005-04-15  Simon Josefsson  <jas@extundo.com>
121776         * gnulib-tool: Rename --symlink to --symbolic.
121778 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
121780         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
121781         symbolic links to files instead of copying/moving.  Add --aux-dir,
121782         specifying directory relative --dir where auxiliary build tools
121783         are placed.
121785 2005-04-14  Bruno Haible  <bruno@clisp.org>
121787         * modules/allocsa (License): Change to LGPL.
121788         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
121790 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
121792         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
121793         that "UTC +1 second" continues to work.  Problem reported
121794         by Dmitry V. Levin.
121795         (relunit_snumber): New rule.
121796         (relunit): Use it.
121798 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
121800         * lib/getdate.y (universal_time_zone_table): New constant.
121801         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
121802         universal_time_zone_table.
121803         (lookup_zone): Prefer universal_time_zone_table to
121804         local_time_zone_table, so that "GMT" time stamps are allowed in
121805         London during the summer.  Problem reported by Ian Abbott.
121807 2005-04-12  Jim Meyering  <jim@meyering.net>
121809         * lib/human.c (humblock): Set *options even when returning due to
121810         xstrtoumax conversion failure.  Thanks to a used-uninitialized
121811         warning from gcc-4.
121813 2005-04-09  Jim Meyering  <jim@meyering.net>
121815         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
121816         -Wuninitialized: initialize tm0.tm_year.
121818 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
121820         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
121821         count, since there's no maximum.  All uses changed.
121822         Add member dsts_seen.
121823         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
121824         not being INT_MAX.
121825         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
121826         Use pc_rels_seen to decide whether a date is absolute.
121828         * lib/getdate.y (number): Don't overwrite year.
121829         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
121830         check.
121832 2005-04-02  Simon Josefsson  <jas@extundo.com>
121834         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
121835         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
121837 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
121839         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
121840         where no absolute path name can be longer than PATH_MAX.
121842 2005-03-27  Jim Meyering  <jim@meyering.net>
121844         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
121846 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
121848         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
121849         "one's complement" -> "ones' complement" in comment, as per Knuth.
121850         "value of type" -> "type or expression" in comment.
121851         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
121853 2005-03-26  Jim Meyering  <jim@meyering.net>
121855         Comment nits.
121856         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
121857         Correct typos: s/or/of/.
121859 2005-03-26  Jim Meyering  <jim@meyering.net>
121861         * modules/check-include-files: Move to ../ and rename to...
121862         * check-module: ...this.
121864 2005-03-25  Jim Meyering  <jim@meyering.net>
121866         * modules/xvasprintf (Files): Add xalloc.h.
121868 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
121870         * modules/gettext (Files): config/config.rpath ->
121871         build-aux/config.rpath
121872         * modules/iconv (Files): Likewise.
121873         Problem reported by Oskar Liljeblad.
121875 2005-03-23  Jim Meyering  <jim@meyering.net>
121877         * modules/check-include-files: New script to check for
121878         missing dependencies, multiple includes, etc.
121880         * modules/c-strtold (Depends-on): Add xalloc.
121881         * modules/c-strtod (Depends-on): Add xalloc.
121882         * modules/hash (Depends-on): Add xalloc.
121883         (Files): Remove lib/xalloc.h.
121885         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
121886         * modules/userspec (Files): Add lib/inttostr.h.
121888 2005-03-23  Jim Meyering  <jim@meyering.net>
121890         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
121892 2005-03-22  Jim Meyering  <jim@meyering.net>
121894         * modules/stat-macros: New module.
121895         * modules/canonicalize, modules/euidaccess, modules/file-type,
121896         * modules/filemode, modules/lchown, modules/makepath,
121897         * modules/rmdir, modules/stat: Depend on new stat-macros module
121898         rather than listing lib/stat-macros.h manually.
121899         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
121901 2005-03-22  Jim Meyering  <jim@meyering.net>
121903         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
121905 2005-03-22  Bruno Haible  <bruno@clisp.org>
121907         * config/srclist.txt: Replace target directory 'config' with
121908         'build-aux'.
121909         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
121910         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
121911         ../build-aux/.
121913 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
121915         * modules/chdir-long (Depends-on): Add mempcpy.
121917         * modules/acl, modules/backupfile, modules/c-strtod,
121918         modules/c-strtold, modules/canon-host, modules/canonicalize,
121919         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
121920         modules/exclude, modules/exitfail, modules/file-type,
121921         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
121922         modules/getdate, modules/getline, modules/getpagesize,
121923         modules/getpass, modules/getugroups, modules/group-member,
121924         modules/hard-locale, modules/hash, modules/human, modules/idcache,
121925         modules/inttostr, modules/long-options, modules/makepath,
121926         modules/md5, modules/memcasecmp, modules/memcoll,
121927         modules/modechange, modules/mountlist, modules/path-concat,
121928         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
121929         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
121930         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
121931         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
121932         modules/strftime, modules/strndup, modules/strverscmp,
121933         modules/timespec, modules/unlocked-io, modules/userspec,
121934         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
121935         modules/yesno:
121936         Remove lib_SOURCES line from Makefile.am section, as this is now
121937         done automatically by the corresponding Autoconf macro.
121939 2005-03-21  Jim Meyering  <jim@meyering.net>
121941         Changes imported from coreutils.
121943         * lib/cycle-check.c: Don't include xalloc.h.
121945         * lib/path-concat.c: Don't include assert.h.
121946         (path_concat): Remove assertion that would have triggered
121947         for ABASE starting with more than one slash.
121948         Reported by Andreas Schwab.
121950         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
121951         properly when ABASE is an absolute file name.
121952         Correct the description of this function.
121953         Include <assert.h>.
121954         Add an assertion and a test driver.
121955         This fixes a bug introduced on 2004-07-02.
121956         Andreas Schwab reported the resulting failure of cp --parents:
121957         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
121959 2005-03-21  Jim Meyering  <jim@meyering.net>
121961         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
121962         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
121964 2005-03-21  Jim Meyering  <jim@meyering.net>
121965         and  Paul Eggert  <eggert@cs.ucla.edu>
121967         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
121968         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
121969         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
121970         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
121971         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
121972         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
121973         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
121974         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
121975         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
121976         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
121977         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
121978         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
121979         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
121980         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
121981         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
121982         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
121983         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
121984         for these modules.
121986 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
121988         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
121989         (which shouldn't happen), generate nothing instead of returning 0
121990         immediately, so that nstrftime (NULL, ...) doesn't return 0.
121992 2005-03-16  Bruno Haible  <bruno@clisp.org>
121994         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
121995         HAVE_LONGLONG_64BIT.
121997 2005-03-16  Bruno Haible  <bruno@clisp.org>
121999         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
122000         HAVE_LONGLONG_64BIT.
122002 2005-03-16  Bruno Haible  <bruno@clisp.org>
122004         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
122005         HAVE_LONGLONG_64BIT.
122007 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122009         * lib/strftime.c (my_strftime): Prepend space to format so that we can
122010         reliably distinguish strftime failure from empty output on POSIX
122011         hosts.
122013 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122015         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
122016         (iconv_string): Don't guess a size-zero buffer, as that might cause
122017         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
122018         result would be 'too large', where 'too large' is (heuristically)
122019         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
122020         overflow concerns.  This will prevent some unwanted malloc failures
122021         when the inputs are very large.
122023 2005-03-15  Karl Berry  <karl@gnu.org>
122025         * config/srclist.txt (config.rpath): from gettext.
122026         * config/config.rpath: update.
122028 2005-03-15  Bruno Haible  <bruno@clisp.org>
122030         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
122031         to 'negate'.
122033         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
122034         variable.
122036         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
122037         results.
122039 2005-03-14  Simon Josefsson  <jas@extundo.com>
122041         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
122042         <fx@gnu.org>.
122044 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
122046         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
122047         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
122048         intprops.h.
122049         * lib/strtol.c: Likewise.
122051 2005-03-14  Jim Meyering  <jim@meyering.net>
122053         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
122054         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
122055         to be nonzero so that we (and caller) can detect the difference
122056         between a valid zero-length expansion and an error return, even
122057         when the underlying strftime fails before writing anything into
122058         that location.
122060 2005-03-14  Bruno Haible  <bruno@clisp.org>
122062         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
122063         Update from GNU gettext 0.14.3.
122065 2005-03-10  Jim Meyering  <jim@meyering.net>
122067         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
122069 2005-03-10  Jim Meyering  <jim@meyering.net>
122071         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
122072         so that this module works on systems without fchdir.
122074 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
122076         Factor int-properties macros into a single file, except for
122077         glibc-related files.
122078         * lib/intprops.h: New file.
122079         * lib/getloadavg.c: Include it instead of limits.h.
122080         (INT_STRLEN_BOUND): Remove.
122081         * lib/human.c: Include intprops.h.
122082         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
122083         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
122084         302/1000.
122085         * lib/inttostr.h: Include intprops.h instead of limits.h.
122086         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
122087         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
122088         for consistency with intprops.h.
122089         (time_t_is_integer, twos_complement_arithmetic): Use them.
122090         * lib/sig2str.h: Include <signal.h>, intprops.h.
122091         (INT_STRLEN_BOUND): Remove.
122092         * lib/strftime.c (TYPE_SIGNED): Remove.
122093         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
122094         * lib/strtol.c: Adjust comments to match intprops.h.
122095         * lib/userspec.c: Include intprops.h.
122096         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
122097         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
122098         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
122099         instead of rolling our own expressions.
122100         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
122102         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
122103         instead of int.
122104         (my_strftime): Do not mishandle years close to INT_MAX, by doing
122105         the right thing even if adding 1900 would overflow.  Similarly
122106         for tm_mon + 1 and tm_yday + 1.
122107         Make %Y always equivalent to %C%y, and similarly for %G and %g.
122108         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
122109         (DO_SIGNED_NUMBER): New macro.
122110         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
122112 2005-03-07  Bruno Haible  <bruno@clisp.org>
122114         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
122116 2005-03-07  Bruno Haible  <bruno@clisp.org>
122118         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
122120 2005-03-04  Derek R. Price  <derek@ximbiot.com>
122122         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
122123         (func_import): Only replace files via --import when they have actually
122124         changed.
122126 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122128         * m4/mmap-anon.m4: New file.
122129         * m4/pagealign_alloc.m4: New file.
122131 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122132             Bruno Haible  <bruno@clisp.org>
122134         * modules/pagealign_alloc: New file.
122135         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
122137 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122138             Bruno Haible  <bruno@clisp.org>
122140         * lib/pagealign_alloc.h: New file.
122141         * lib/pagealign_alloc.c: New file.
122143 2005-03-03  Bruno Haible  <bruno@clisp.org>
122145         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
122146         Use an all-permissive copyright notice, recommended by RMS.
122148 2005-03-02  Bruno Haible  <bruno@clisp.org>
122150         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
122151         of AIX, the replacement has to be done only after <string.h> is
122152         included, therefore not in config.h. stpncpy.h does the replacement,
122153         and stpncpy.c uses it.
122155 2005-03-02  Bruno Haible  <bruno@clisp.org>
122157         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
122158         stpncpy.c uses it.
122160 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122162         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
122163         The workaround isn't strictly needed for POSIX conformance, and
122164         it's too much of a pain to configure and maintain.  We'll ask
122165         people to fix their kernels instead.
122166         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
122167         (NANOSLEEP_BUG_WORKAROUND): Remove.
122168         (xnanosleep): Remove the workaround.
122170 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122172         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
122173         Reported by Derek Price.
122174         (Include): Add "timespec.h".
122176         * modules/xnanosleep (Depends-on): Remove gethrxtime.
122178 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122180         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
122181         to detect nanosleep bug.
122183 2005-03-01  Bruno Haible  <bruno@clisp.org>
122185         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
122187 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
122189         * modules/gethrxtime: New file.
122190         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
122191         (Depends-on): Add gethrxtime.
122192         (configure.ac): Add gl_XNANOSLEEP.
122193         (Makefile.am): Remove lib_SOURCES line.
122195 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
122197         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
122198         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
122200 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
122202         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
122203         * lib/timespec.h (gettime): Return void, since it always
122204         succeeds now.  All uses changed.
122205         * lib/gettime.c (gettime): Likewise.
122206         [HAVE_NANOTIME]: Prefer nanotime.
122207         Assume gettimeofday succeeds, as POSIX requires.
122208         Assime time () succeeds, since other code already does.
122209         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
122210         (timespec_subtract): Remove.
122211         (NANOSLEEP_BUG_WORKAROUND): New constant.
122212         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
122213         things considerably.  Use it only on GNU/Linux hosts, since the
122214         workaround shouldn't be needed elsewhere.
122216 2005-02-24  Bruno Haible  <bruno@clisp.org>
122218         * modules/gettext (Files): Add m4/glibc2.m4.
122220 2005-02-24  Bruno Haible  <bruno@clisp.org>
122222         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
122223         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
122224         * m4/progtest.m4:
122225         Update from GNU gettext 0.14.2.
122226         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
122228 2005-02-24  Bruno Haible  <bruno@clisp.org>
122230         * lib/localcharset.c: Update from GNU gettext 0.14.2.
122231         * lib/config.charset: Update from GNU gettext 0.14.2.
122233 2005-02-24  Bruno Haible  <bruno@clisp.org>
122235         * lib/gettext.h: Update from GNU gettext 0.14.2.
122237 2005-02-23  Simon Josefsson  <jas@extundo.com>
122239         * m4/iconvme.m4: New file.
122241 2005-02-23  Jim Meyering  <jim@meyering.net>
122243         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
122244         change.
122245         Thanks to Bruno Haible for catching it.
122247 2005-02-22  Simon Josefsson  <jas@extundo.com>
122249         * modules/iconvme: New file.
122251         * MODULES.html.sh: Add iconvme.
122253 2005-02-22  Simon Josefsson  <jas@extundo.com>
122255         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
122257 2005-02-22  Simon Josefsson  <jas@extundo.com>
122259         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
122261 2005-02-22  Jim Meyering  <jim@meyering.net>
122263         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
122264         s/ifndef/ifdef/.
122266 2005-02-20  Neil Conway  <neilc@samurai.com>
122268         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
122269         returned by OSX/Darwin if the specified buffer is not large
122270         enough for the hostname.
122272 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122274         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
122275         pass it to _help, otherwise the latter coredumps trying to
122276         dereference state.root_argp.
122278 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122280         * modules/chdir-long (Depends-on): Add memrchr.
122281         * modules/memrchr (Files): Add lib/memrchr.h.
122282         (Include): "memrchr.h".
122284 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122286         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
122288 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122290         * lib/memrchr.h: New file.
122291         * lib/chdir-long.c: Include it.
122292         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
122293         Don't bother including stddef.h.
122295 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
122297         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
122298         inclusion.
122299         Include <sys/types.h>, for dev_t.
122300         (ME_DUMMY, ME_REMOTE): Move from here....
122301         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
122302         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
122303         Dmitry V. Levin.
122304         Include mountlist.h first, to test the interface.
122306 2005-01-29  Bruno Haible  <bruno@clisp.org>
122308         * lib/progname.c (program_name): Initialize.
122309         Needed when linking statically on MacOS X.
122311 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122313         Sync from coreutils.
122314         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
122315         (Depends-on): Add c-strtod.
122316         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
122318 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122320         Sync from coreutils.
122321         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
122323         Remove files that are specific to coreutils.
122324         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
122326 2005-01-28  Bruno Haible  <bruno@clisp.org>
122328         * modules/javacomp: New file.
122329         * MODULES.html.sh (Java): Add javacomp.
122331 2005-01-28  Bruno Haible  <bruno@clisp.org>
122333         * m4/javacomp.m4: New file, from GNU gettext.
122335 2005-01-28  Bruno Haible  <bruno@clisp.org>
122337         * lib/javacomp.sh.in: New file, from GNU gettext.
122338         * lib/javacomp.h: New file, from GNU gettext.
122339         * lib/javacomp.c: New file, from GNU gettext.
122341 2005-01-26  Simon Josefsson  <jas@extundo.com>
122343         * lib/gai_strerror.c: Use GPL in header.
122345 2005-01-26  Bruno Haible  <bruno@clisp.org>
122347         * modules/javaexec: New file.
122348         * MODULES.html.sh (Java): Add javaexec.
122350 2005-01-26  Bruno Haible  <bruno@clisp.org>
122352         * m4/javaexec.m4: New file, from GNU gettext.
122354 2005-01-26  Bruno Haible  <bruno@clisp.org>
122356         * lib/javaexec.sh.in: New file, from GNU gettext.
122357         * lib/javaexec.h: New file, from GNU gettext.
122358         * lib/javaexec.c: New file, from GNU gettext.
122360 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122362         * modules/lchown (Depends-on): Remove lchown.h
122364 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122366         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
122367         must be defined if the header file was not found, in order
122368         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
122370 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122372         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
122373         initializers for struct pentry_state.
122374         (__argp_error): Check return value of __asprintf
122375         (__argp_failure): Translate error message
122377         * lib/argp-parse.c: Removed braces around the expansion of N_()
122379 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
122381         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
122382         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
122383         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
122384         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
122385         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
122386         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
122387         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
122388         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
122389         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
122390         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
122391         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
122392         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
122393         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
122394         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
122395         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
122396         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
122397         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
122398         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
122399         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
122400         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
122401         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
122402         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
122403         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
122404         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
122405         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
122406         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
122407         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
122408         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
122409         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
122410         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
122411         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
122412         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
122413         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
122414         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
122415         xstrtol.m4, xstrtoumax.m4, yesno.m4:
122416         Use an all-permissive copyright notice, recommended by RMS.
122418 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
122420         * modules/chdir-long (Depends-on): Remove mempcpy.
122422 2005-01-21  Jim Meyering  <jim@meyering.net>
122424         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
122425         same value as for Solaris 9.
122427         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
122428         component length.  This included changing the parameter to be
122429         of type `char *' rather than `char const *'.
122430         * lib/chdir-long.h (chdir_long): Update prototype.
122432         * lib/openat.c (fdopendir, fstatat): New functions.
122433         * lib/openat.h: Include headers required for use of DIR and struct
122434         stat.
122435         [AT_SYMLINK_NOFOLLOW]: Define.
122436         (fdopendir, fstatat): Add prototypes.
122438 2005-01-21  Bruno Haible  <bruno@clisp.org>
122440         * modules/classpath: New file.
122441         * MODULES.html.sh (Java): Add classpath.
122443 2005-01-21  Bruno Haible  <bruno@clisp.org>
122445         * lib/classpath.h: New file, from GNU gettext.
122446         * lib/classpath.c: New file, from GNU gettext.
122448 2005-01-20  Simon Josefsson  <jas@extundo.com>
122450         * modules/version-etc-fsf: New file.
122452 2005-01-20  Simon Josefsson  <jas@extundo.com>
122454         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
122455         * lib/version-etc.c: Remove version_etc_copyright.
122456         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
122457         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
122459 2005-01-20  Simon Josefsson  <jas@extundo.com>
122461         * lib/base64.h (isbase64): Add.
122463         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
122464         using a unsigned prototype, don't inline.
122465         (base64_decode): Use it.
122467 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122469         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
122470         it.
122472 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122474         * lib/save-cwd.c (save_cwd): Remove code to support the case
122475         where fchdir is missing or flaky.
122477 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122479         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
122481 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
122483         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
122484         AC_LIBSOURCES now does this.
122485         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
122486         with new ullong_max module.
122488 2005-01-19  Bruno Haible  <bruno@clisp.org>
122490         * modules/sh-quote: New file.
122491         * MODULES.html.sh (Executing programs): Add sh-quote.
122493 2005-01-19  Bruno Haible  <bruno@clisp.org>
122495         * lib/sh-quote.h: New file, from GNU gettext.
122496         * lib/sh-quote.c: New file, from GNU gettext.
122498 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122500         Merge from coreutils.
122501         * m4/ullong_max.m4: New file.
122502         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
122503         (gl_MACROS): Assume localeconv exists.
122505 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122507         Merge changes from coreutils, as described below in several
122508         changelogs dated today.
122510         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
122511         (O_DIRECTORY): Remove; not needed here, since "." must be
122512         a directory.  All uses removed.
122513         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
122514         universal on Suns, and we also need to test for IRIX.
122515         Revamp code to use 'if' rather than '#if'.
122516         Avoid unnecessary comparison of cwd->desc to 0.
122518         * lib/utimens.c (futimens): Robustify the previous patch, by checking
122519         for known valid error numbers rather than observed invalid ones.
122521 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122523         * modules/ullong_max: New file.
122525         * modules/chdir-long, modules/openat: New files.
122526         * modules/save-cwd (Depends-on): Depend on chdir-long.
122527         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
122529 2005-01-18  Jim Meyering  <jim@meyering.net>
122531         Merge from coreutils.
122532         * m4/chdir-long.m4, m4/openat.m4: New files.
122533         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
122534         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
122535         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
122536         is sane and DOES follow symlinks.  Besides, testing 20 different
122537         systems found no broken chown implementations.
122538         Prompted by a change in rsync's copy of this macro.
122539         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
122541         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
122543         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
122544         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
122545         NULL-means-set-to-current-time semantics.
122546         Remove temporary file immediately, rather than waiting
122547         for configure's at-exit trap code to do it.
122549 2005-01-18  Jim Meyering  <jim@meyering.net>
122551         * lib/version-etc.c (version_etc_copyright): Update copyright date.
122553         * lib/utimens.c (futimens): Account for the fact that futimes
122554         can also fail with errno == ENOSYS or errno == ENOENT.
122555         Patch from Dmitry V. Levin.
122557         Change the name of the robust chdir function from chdir to chdir_long.
122558         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
122559         (restore_cwd): Use chdir_long, not chdir.
122560         * lib/chdir-long.c: Renamed from chdir.c.
122561         * lib/chdir-long.h: Renamed from chdir.h.
122562         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
122563         Hurd.
122565 2005-01-18  Bruno Haible  <bruno@clisp.org>
122567         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
122568         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
122569         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
122570         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
122571         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
122572         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
122573         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
122574         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
122575         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
122576         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
122577         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
122578         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
122579         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
122580         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
122581         Use an all-permissive copyright notice, recommended by RMS.
122583 2005-01-18  Bob Proulx  <bob@proulx.com>
122585         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
122586         simplify offsetof() macro construct to avoid compile failure with
122587         native HP-UX 11.0 ANSI C compiler.
122589 2005-01-17  Bruno Haible  <bruno@clisp.org>
122591         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
122592         redundant because stpncpy.m4 takes care of it.
122594 2005-01-17  Bruno Haible  <bruno@clisp.org>
122596         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
122598 2005-01-17  Bruno Haible  <bruno@clisp.org>
122600         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
122601         used.
122603 2005-01-17  Bruno Haible  <bruno@clisp.org>
122605         * lib/fwriteerror.h (fwriteerror): Change specification to include
122606         fclose.
122607         * lib/fwriteerror.c: Include <stdbool.h>.
122608         (fwriteerror): At the end, close the file stream. Record whether
122609         stdout was already closed.
122611 2005-01-17  Bruno Haible  <bruno@clisp.org>
122613         * lib/execute.c (environ): Declare if needed.
122614         * lib/pipe.c (environ): Likewise.
122615         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
122617 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122619         * modules/argp: Depend on vsnprintf
122621 2005-01-10  Jim Meyering  <jim@meyering.net>
122623         * modules/closeout (Depends-on): Add atexit.
122625 2005-01-06  Bruno Haible  <bruno@clisp.org>
122627         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
122629 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
122631         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
122632         definitions to be after all include files, to avoid collisions.
122633         Problem reported by Bob Proulx.
122635 2005-01-04  Jim Meyering  <jim@meyering.net>
122637         Changes imported from coreutils.
122638         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
122639         as the mkstemp template, use a temporary directory and an
122640         8.3-friendly template to avoid trouble on systems like DJGPP.
122641         Reported by Juan M. Guerrero via Stepan Kasal.
122642         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
122643         close. Remove the temporary directory right away, rather than waiting
122644         for configure's at-exit trap code to do it.
122645         Suggestion from Stepan Kasal.
122647 2005-01-01  Simon Josefsson  <jas@extundo.com>
122649         * gnulib-tool: Print #include directives when --import'ing.
122651 2004-12-28  Simon Josefsson  <jas@extundo.com>
122653         * tests/test-base64.c: Include required header files.  Remove
122654         unused variables.
122656 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
122658         * modules/error (Depends-on): Remove gettext.
122660 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
122662         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
122663         not needed.  This removes a dependency on the gettext module.
122664         [defined _LIBC]: Do not include <libintl.h>; not needed.
122666 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122668         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
122669         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
122671 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122673         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
122674         HAVE_DECL_STRTOLD.
122676 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122678         * modules/getdate (Depends-on): Remove alloca-opt.
122680 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122682         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
122684 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122686         * lib/argp-parse.c: Include <stddef.h>.
122687         (alignof, alignto): New macros.
122688         (parser_init): Don't assume that void * is aligned sufficiently
122689         for struct option.
122691         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
122692         need to extend the stack.
122693         (YYINITDEPTH): New macro, so that the initial stack isn't overly
122694         large.
122696 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122698         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
122700 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122702         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
122703         (2004-10-24) change.  Apparently this was a false alarm.
122705         * modules/getdate: Depend on alloca-opt, not alloca.
122707 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122709         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
122710         Remove now-obsolete comment about AIX.
122711         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
122712         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
122713         (YYMAXDEPTH): New macro.
122715 2004-12-18  Simon Josefsson  <jas@extundo.com>
122717         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
122719 2004-12-18  Bruno Haible  <bruno@clisp.org>
122721         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
122723 2004-12-18  Bruno Haible  <bruno@clisp.org>
122725         * lib/fatal-signal.c (fatal_signals): Make non-const.
122726         (init_fatal_signals): New function.
122727         (uninstall_handlers, install_handlers): Ignore signals that were set to
122728         SIG_IGN.
122729         (at_fatal_signal): Call init_fatal_signals.
122730         (init_fatal_signal_set): Likewise. Ignore signals that were set to
122731         SIG_IGN.
122732         Reported by Paul Eggert.
122734 2004-12-18  Bruno Haible  <bruno@clisp.org>
122736         * doc/alloca.texi: New file.
122737         * doc/alloca-opt.texi: New file.
122739 2004-12-17  Jim Meyering  <jim@meyering.net>
122741         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
122742         Otherwise, install-sh could exit with improper exit status when
122743         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
122745 2004-12-16  Simon Josefsson  <jas@extundo.com>
122747         * tests/test-base64.c: Add license.
122749 2004-12-15  Stepan Kasal  <address@hidden>
122751         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
122753 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
122755         * modules/getcwd (Files): Add m4/d-ino.m4.
122756         Suggested by Mark D. Baushke.
122758 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122760         * lib/getdate.y (textint): New member "negative".
122761         (time_zone_hhmm): New function.
122762         Expect 14 shift-reduce conflicts, not 13.
122763         (o_colon_minutes): New rule.
122764         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
122765         (yylex): Set the "negative" member of signed numbers.
122767 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122769         * doc/getdate.texi (Time of day items, Time zone items):
122770         Describe new formats +00:00, UTC+00:00.
122772 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
122774         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
122775         spurious "-l"s.  Problem reported by Stepan Kasal.
122777 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
122779         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
122780         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
122782 2004-12-04  Simon Josefsson  <jas@extundo.com>
122784         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
122785         Vandoorselaere <yoann@prelude-ids.org>.
122787 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122789         Changes imported from coreutils.
122790         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
122791         exist.
122792         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
122794 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122796         Changes imported from coreutils.
122797         * lib/hard-locale.c: Assume <locale.h> exists.
122798         Include "strdup.h".
122799         (GLIBC_VERSION): New macro.
122800         (hard_locale): Assume setlocale exists.
122801         Rewrite to avoid #ifdef.
122802         Use strdup rather than malloc + strcpy.
122803         * lib/human.c: Assume <locale.h> exists.
122804         (human_readable): Assume localeconv exists.
122806 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122808         * modules/hard-locale (Depends-on): Add strdup.
122810 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
122812         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
122813         convert T2, not T.  (Imported from libc.)
122815 2004-11-30  Simon Josefsson  <jas@extundo.com>
122817         * modules/restrict (License): Change to LGPL.
122819 2004-11-30  Simon Josefsson  <jas@extundo.com>
122821         * m4/restrict.m4: Add copyright and copying conditions.
122823 2004-11-30  Simon Josefsson  <jas@extundo.com>
122825         * m4/base64.m4: New file.
122827 2004-11-30  Simon Josefsson  <jas@extundo.com>
122829         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
122830         base64.
122832         * tests/test-base64.c: New file.
122834         * modules/base64: New file.
122836 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
122838         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
122839         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
122841         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
122843 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
122845         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
122846         (__getcwd.c): Don't restore errno; glibc doesn't.
122847         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
122848         first, falling back to our code only if its results look suspicious.
122849         Ensure that the resulting buffer is only as large as necessary.
122851         * lib/readutmp.c: Include readutmp.h first.
122852         Include <errno.h>, since readutmp.h no longer does that.
122853         * lib/readutmp.h: Don't include <errno.h>,
122854         <sys/param.h>, <time.h>; not needed to establish interface.
122855         (errno): Remove decl.
122856         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
122857         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
122858         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
122860 2004-11-28  Simon Josefsson  <jas@extundo.com>
122862         * lib/base64.h, base64.c: New file.
122864 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
122866         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
122868 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
122870         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
122871         (Depends-on): Remove pathmax, same.  Add mempcpy.
122872         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
122873         (Makefile.am): Append getcwd.h to lib_SOURCES.
122874         (Include): Add getcwd.h.
122875         (Maintainer): Change from Jim Meyering to "all, glibc",
122876         since getdate now uses intended-for-glibc code.
122877         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
122878         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
122880 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
122882         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
122883         HP's ANSI C compiler.
122884         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
122885         Declaring int functions causes warnings on some modern systems and
122886         shouldn't be needed to compile on ancient ones.
122887         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
122888         defined.
122890         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
122891         with the following changes.
122892         (__set_errno): Parenthesize properly.
122893         Include <stdbool.h>.
122894         (MIN, MAX, MATCHING_INO): New macros.
122895         (__getcwd): Define with prototype, not K&R form.
122896         Use heuristics to allocate default buffer on stack if possible.
122897         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
122898         behavior, and to avoid the PATH_MAX limit when computing
122899         ../../../../...
122900         Use MATCHING_INO to compare inode number to file.
122901         Check for arithmetic overflow in size calculations.
122902         Fix bug in reallocation of dot array that caused getcwd to fail
122903         on directories nested deeper than 75.
122904         Be more careful about saving errno on error.
122905         Do not use realloc; use only free+malloc, as this is a bit
122906         more flexible and avoids a needless copy operation.
122907         Do not inspect st_dev and st_ino for symbolic links; POSIX
122908         doesn't specify the latter.
122909         Check for closedir errors.
122910         Avoid needless casts.
122911         Use "#ifdef weak_alias" around weak_alias, to be like other
122912         glibc code.
122913         The following changes to getcwd.c have effect only when used in
122914         gnulib; they have no effect inside glibc proper.
122915         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
122916         as alloca isn't used.
122917         (alloca, __alloca): Likewise.
122918         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
122919         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
122920         unconditionally, as gnulib assumes C89 or better.
122921         Do not include <sys/param.h>.
122922         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
122923         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
122924         better.
122925         (NULL) [!defined NULL]: Remove; we assume C89 or better.
122926         Include <dirent.h> in a way that is compatible with modern Autoconf.
122927         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
122928         New macros, if not already defined.
122929         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
122930         Use "_LIBC", not "defined _LIBC", for consistency.
122931         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
122932         a mempcpy module.
122933         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
122934         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
122935         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
122936         credit only to Jim Meyering and adjust the copyright dates.
122937         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
122938         <stdlib.h>, <unistd.h>, "pathmax.h".
122939         Instead, include "xgetcwd.h" (first) and "getcwd.h".
122940         (INITIAL_BUFFER_SIZE): Remove.
122941         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
122943 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
122945         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
122946         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
122947         Use the _ONCE methods, for efficiency.
122948         Check for fcntl.h.  In test program, include <errno.h>
122949         and <fcntl.h> if available.  Remove old K&R cruft from
122950         test program.  Check for common errors in GNU/Linux,
122951         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
122952         don't do AC_LIBOBJ, as that's getcwd.m4's job.
122953         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
122954         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
122955         name accordingly.
122956         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
122957         accommodate new getcwd.c.
122958         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
122959         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
122960         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
122961         that's all we need now.
122963 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122965         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
122966         argp-parse.c depends on getopt internals, that means we should
122967         always use our getopt, to be on the safe side.
122968         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
122969         order not to spoil the result of an eventual previous invocation
122970         of gl_GETOPT_SUBSTITUTE.
122972 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122974         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
122975         redefinition warnings. To avoid them, include the defines
122976         in `#if !defined __need_getopt ... #endif'. The only place
122977         where __getopt_argv_const is used is in definitions
122978         of getopt_long and getopt_long_only below, which are as well
122979         protected by `#ifndef __need_getopt'.
122980         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
122981         __need_getopt after including <stdio.h> and <unistd.h> These
122982         headers might have defined it.
122984 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
122986         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
122988 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
122990         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
122991         (futimens): New function, which uses futimes if available.
122992         (futimens, utimens): Support timespec==NULL, with same semantics
122993         as utime and utimens.
122994         * lib/utimens.h (futimens): New decl.
122996 2004-11-23  Jim Meyering  <jim@meyering.net>
122998         * lib/getopt_.h: Remove trailing blanks.
123000 2004-11-23  Jim Meyering  <jim@meyering.net>
123002         * lib/__fpending.c: Add comment.
123004 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
123006         * modules/canonicalize (Depends-on): Add xreadlink.
123007         Problem reported by James Youngman.
123009 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
123011         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
123012         New macros.
123013         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
123014         optopt): Use them instead of invoking ## directly; otherwise, the
123015         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
123017 2004-11-19  Bruno Haible  <bruno@clisp.org>
123019         * lib/strtok_r.c: Move comments from here...
123020         * lib/strtok_r.h: ... to here.
123022 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123024         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
123025         implementations that mishandle size_t overflow.
123027 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123029         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
123030         might fail.  Problem reported by Yoann Vandoorselaere.
123031         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
123032         implementations that mishandle size_t overflow.
123034 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123036         * modules/canon-host (Depends-on): Add strdup.
123038 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123040         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
123042 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123044         * lib/canon-host.c: Include "strdup.h".
123045         (canon_host): Use getaddrinfo if available, so that IPv6 works.
123046         Use strdup instead of malloc/strcpy to duplicate strings.
123048         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
123049         (human_space_before_unit): New constant.
123050         * lib/human.c (human_readable): Support it.
123052         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
123053         (xgetcwd): Set errno correctly when failing.
123054         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
123055         the failure is actually due to a PATH_MAX problem.
123057         Further getopt changes to make it more likely that glibc will
123058         buy the changes back.
123059         * lib/getopt.c (POSIXLY_CORRECT): New constant.
123060         (getopt): Use it, so to preserve glibc semantic
123061         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
123062         when compiling for libc.
123063         * lib/getopt_.h (__getopt_argv_const): Bring it back.
123064         (getopt_long, getopt_long_only): Use it.
123066         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
123067         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
123068         (getopt): Argv is now char * const *, as per standard.
123069         (_getopt_internal_r, _getopt_internal): Argv is now char **,
123070         not char *__getopt_argv_const *.
123071         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
123072         _getopt_long_only_r): Likewise.
123073         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
123074         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
123075         _getopt_long_r, _getopt_long_only_r): Likewise.
123076         * lib/getopt_.h (__getopt_argv_const): Remove.
123077         (getopt): Argv is now char * const *, as per standard.
123079         * lib/getdate.y (tORDINAL): New token.
123080         (day, relunit): Allow it for relative times.
123081         (relative_time_table): Use tORDINAL for ordinals.
123083 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123085         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
123086         Document that "second" isn't allowed as an ordinal number.
123088 2004-11-16  Jim Meyering  <jim@meyering.net>
123090         * modules/closeout (Depends-on): Add fpending.
123092 2004-11-15  Jim Meyering  <jim@meyering.net>
123094         * lib/closeout.c: Include "__fpending.h" once again.
123095         Include <stdbool.h>.
123096         (close_stdout): Don't fail just because stdout was closed initially,
123097         since some programs don't write to stdout in the normal course of
123098         operation (other than --version and --help), and we don't want this
123099         function to make e.g. `touch file >&-' fail.
123100         But do fail if it was closed and someone has tried to write to it.
123101         E.g., `printf foo >&-' must fail.
123103 2004-11-13  Jim Meyering  <jim@meyering.net>
123105         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
123107 2004-11-12  Simon Josefsson  <jas@extundo.com>
123109         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
123110         small doc fix is still pending.
123112 2004-11-11  Simon Josefsson  <jas@extundo.com>
123114         * modules/strtok_r: New file.
123116         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123117         strtok_r.
123119 2004-11-11  Simon Josefsson  <jas@extundo.com>
123121         * m4/strtok_r.m4: New file.
123123         * m4/getopt.m4: Replace opterr.
123125 2004-11-11  Simon Josefsson  <jas@extundo.com>
123127         * lib/strtok_r.h, strtok_r.c: New file.
123129 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
123131         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
123132         of replacing opterr, getopt, etc.  This should handle the
123133         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
123135 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
123137         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
123138         we can stop lying to compilers about the constness of argv when we
123139         are compiled outside glibc.
123140         (getopt, getopt_long, getopt_long_only): Use it.
123141         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
123142         _getopt_internal, getopt): Likewise.
123143         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
123144         _getopt_long_only_r): Likewise.
123145         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
123146         _getopt_long_r, _getopt_long_only_r): Likewise.
123148         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
123149         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
123150         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
123151         the other external symbols.
123152         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
123153         declaration, since the above renaming now works around collisions.
123155 2004-11-11  Jim Meyering  <jim@meyering.net>
123157         * lib/linebreak.c: Remove trailing blanks.
123158         * lib/alloca_.h: Likewise.
123159         * lib/acosl.c: Likewise.
123160         * lib/euidaccess.c: Likewise.
123161         * lib/allocsa.h: Likewise.
123163 2004-11-10  Simon Josefsson  <jas@extundo.com>
123165         * m4/getaddrinfo.m4: New file.
123167 2004-11-10  Simon Josefsson  <jas@extundo.com>
123169         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
123171 2004-11-10  Simon Josefsson  <jas@extundo.com>
123173         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123174         getaddrinfo.
123176         * modules/getaddrinfo: New file.
123178 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
123180         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
123182 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
123184         * lib/mktime.c (SHR): New macro, which is a portable
123185         substitute for >> that should work even on Crays.
123186         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
123187         Problem reported by Mark D. Baushke in
123188         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
123189         * lib/getdate.y (SHR): Likewise.
123190         (tm_diff): Use it.
123191         * lib/strftime.c (SHR): Likewise.
123192         (tm_diff): Use it.
123193         * lib/quotearg.c (struct quoting_options): Use unsigned int for
123194         quote_these_too, so that right shifts are well defined.  All uses
123195         changed.
123197 2004-11-10  Jim Meyering  <jim@meyering.net>
123199         Ensure that no close failure goes unreported.
123200         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
123201         return early when it seems there's nothing to flush.
123202         Don't include __fpending.h.
123204 2004-11-10  Jim Meyering  <jim@meyering.net>
123206         * modules/closeout (Depends-on): Remove fpending.
123208 2004-11-10  Jim Meyering  <jim@meyering.net>
123210         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
123212 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
123214         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
123215         gl_FUNC_STRFTIME.
123216         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
123217         and AC_REQUIRE when possible, to avoid duplicate checks.
123218         Check for <wchar.h>.
123220 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
123222         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
123224 2004-11-09  Bruno Haible  <bruno@clisp.org>
123226         * m4/sockpfaf.m4: New file.
123228 2004-11-05  Bruno Haible  <bruno@clisp.org>
123230         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
123231         Reported by Mark D. Baushke <mdb@cvshome.org>.
123233 2004-11-04  Bruno Haible  <bruno@clisp.org>
123235         2004-09-11  Bruno Haible  <bruno@clisp.org>
123236                 * allocsa.valgrind: New file.
123237         2004-02-06  Bruno Haible  <bruno@clisp.org>
123238                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
123239                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
123240                 Reported by Christopher Seip <chris.seip@hp.com>.
123242 2004-11-04  Bruno Haible  <bruno@clisp.org>
123244         * modules/allocsa (Files): Add lib/allocsa.valgrind.
123245         (Makefile.am): Distribute it.
123247 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
123249         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
123250         with errno == ERANGE if the buffer is too small.
123251         Problem reported by Mark D. Baushke.
123253 2004-11-03  Albert Chin  <china@thewrittenword.com>
123254             Paul Eggert  <eggert@cs.ucla.edu>
123256         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
123257         equivalent, substitute $ac_type for equivalent type rather than
123258         blindly using uint32_t *always* which won't work if uint32_t is not
123259         available.  Define _UINT32_T to work around typedef of uint32_t if
123260         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
123261         2.5.1.
123263 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123265         * m4/jm-macros.m4: Sync from coreutils.
123266         (gl_MACROS): Check for mbrlen, for pathchk.
123267         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
123269 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123271         * lib/xreadlink.c (MAXSIZE): New macro.
123272         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
123273         size does not exceed MAXSIZE.  Avoid cast.
123274         As suggested by Mark D. Baushke in
123275         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
123276         if readlink fails with buffer size just under MAXSIZE, try again
123277         with MAXSIZE.
123279 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123281         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
123283 2004-11-02  Derek R. Price  <derek@ximbiot.com>
123284         and  Paul Eggert  <eggert@cs.ucla.edu>
123286         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
123287         (get_date): Overparenthesize to avoid GCC warning.
123289 2004-11-02  Bruno Haible  <bruno@clisp.org>
123291         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
123292         returns void.
123294 2004-11-02  Bruno Haible  <bruno@clisp.org>
123296         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
123297         function returns void.
123299 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123301         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
123302         fflush_unlocked, flockfile, funlockfile, funlockfile,
123303         fputs_unlocked, putc_unlocked.
123305 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123307         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123308         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
123309         already declared.
123311 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123313         * modules/getdate (Files): Add doc/getdate.texi.
123314         (Depends-on): Add setenv, xalloc.
123316 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123318         * lib/getdate.y: Add support for TZ="foo" within a date string.
123319         Fix some bugs near time_t boundaries.  Reject dates with
123320         out-of-range components, e.g., "Sept 31".
123321         Include <stdlib.h>, "setenv.h", "xalloc.h".
123322         (ISDIGIT_LOCALE): Remove; unused.
123323         Note that the TZ and time functions used here are not reentrant.
123324         (mktime_ok, get_tz): New functions.
123325         (TZBUFSIZE): New constant.
123326         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
123327         This requires that we sometimes generate our own TZ="XXX..." setting.
123329 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123331         * doc/getdate.texi: New file, from coreutils with modifications for
123332         the new TZ parsing.
123334 2004-10-27  Derek R. Price  <derek@ximbiot.com>
123336         * lib/mktime.c (not_equal_tm): Remove redundant check.
123338 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123340         * modules/regex (lib_SOURCES): Add regex.c.
123341         Reported by James Youngman in
123342         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
123344 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123346         * lib/getdate.y: Use Bison 1.875 features, and some minor
123347         code cleanups.  This change does not affect semantics.
123348         Don't include <stdlib.h>; no longer needed.
123349         Don't include unlocked-io.h; only the "#if TEST" code uses
123350         stdio, and performance isn't crucial there.
123351         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
123352         Bison 1.875 features as described below.
123353         All uses of "PC." replaced by "pc->".
123354         (YYSTYPE): Add a forward declaration.
123355         (yylex, yyerror): Use full prototypes in forward decls.
123356         Use "%pure-parser" rather than obsolescent "%pure_parser".
123357         Use %parse-param and %lex-param instead of obsolescent
123358         YYPARSE_PARAM and YYLEX_PARAM.
123359         (meridian_table, month_and_day_table, time_units_table,
123360         relative_time_table, time_zone_table, military_table,
123361         lookup_zone, lookup_word, get_date):
123362         Use NULL instead of 0 where appropriate.
123363         (to_hour): Avoid abort (), to avoid a dependency on
123364         stdlib.h.
123365         (yyerror, yylex): Now accepts parser_control * arg.
123366         (main) [TEST]: Use '\0' rather than 0 for char.
123368 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123370         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
123372 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123374         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
123375         It's now the caller's responsibility to handle the case where
123376         !HAVE_GETPAGESIZE && !defined getpagesize.
123378         * lib/mktime.c (leapyear): Arg is long int, not int.
123380 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
123382         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
123384 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
123386         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
123387         missing.  Problem reported by James Youngman.
123389 2004-10-16  Simon Josefsson  <jas@extundo.com>
123391         * gnulib-tool: Fix comments.  Fix parse problem.
123392         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
123394 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
123396         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
123397         implementation of getopt_long.  Problem reported by Alexander Taler in:
123398         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
123400 2004-10-15  Bruno Haible  <bruno@clisp.org>
123402         * gnulib-tool: Untabify. Initialize supplied_libname.
123403         (func_usage): More homogenous output.
123404         (func_modules_transitive_closure, func_modules_to_filelist,
123405         func_emit_lib_Makefile_am): New functions.
123406         (func_import): New function, extracted from big case statement. Use
123407         func_get_license, func_modules_transitive_closure,
123408         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
123409         opt_lgpl. Don't use test -a, as it's not portable.
123410         (func_create_testdir): Use func_modules_transitive_closure,
123411         func_modules_to_filelist, func_emit_lib_Makefile_am.
123413 2004-10-15  Bruno Haible  <bruno@clisp.org>
123415         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
123417 2004-10-15  Bruno Haible  <bruno@clisp.org>
123419         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
123420         the portions belonging to each module.
123421         Suggested by Derek Robert Price <derek@ximbiot.com>.
123423 2004-10-12  Simon Josefsson  <jas@extundo.com>
123425         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123426         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
123427         to real functions.
123429 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123431         * modules/vsnprintf: New file.
123433 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123435         * m4/vsnprintf.m4: New file.
123437 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123439         * lib/vsnprintf.h: New file.
123440         * lib/vsnprintf.c: New file.
123442 2004-10-11  Bruno Haible  <bruno@clisp.org>
123444         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
123445         vsnprintf.
123447 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
123449         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
123451 2004-10-07  Bruno Haible  <bruno@clisp.org>
123453         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
123454         fits into the provided buffer.
123456 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
123458         * lib/diacrit.c, diacrit.h: Add GPL notice.
123460         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
123461         notice.
123462         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
123463         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
123464         This avoids a potential constant-folding bug.
123466 2004-10-05  Bruno Haible  <bruno@clisp.org>
123468         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
123469         for the declaration of strsep.
123471 2004-10-05  Bruno Haible  <bruno@clisp.org>
123473         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
123475 2004-10-04  Simon Josefsson  <jas@extundo.com>
123477         * modules/memmem: New file.
123478         * tests/test-memmem.c: New file.
123479         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
123481 2004-10-04  Simon Josefsson  <jas@extundo.com>
123483         * m4/memmem.m4: New file.
123485 2004-10-04  Simon Josefsson  <jas@extundo.com>
123487         * lib/memmem.h: New file.
123488         * lib/memmem.c: New file, taken from glibc.
123490 2004-10-04  Simon Josefsson  <jas@extundo.com>
123492         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
123493         '#ifdef USE_UNLOCKED_IO'.
123495 2004-10-04  Simon Josefsson  <jas@extundo.com>
123497         * config/srclist.txt: Add memmem from glibc.
123499 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123501         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
123503         * modules/argmatch, modules/argp, modules/closeout, modules/error,
123504         modules/exclude, modules/getdate, modules/getline,
123505         modules/getndelim2, modules/getpass, modules/getpass-gnu,
123506         modules/getusershell, modules/linebuffer, modules/md5,
123507         modules/mountlist, modules/posixtm, modules/readtokens,
123508         modules/readutmp, modules/regex, modules/sha1,
123509         modules/version-etc, modules/yesno:
123510         Remove dependency on unlocked-io.
123512 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123514         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
123516         * m4/unlocked-io.m4: Add copyright notice.
123517         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
123519 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123521         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
123522         * lib/xmalloc.c (xmemdup): Likewise.
123523         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
123524         XFREE): Remove these long-obsolescent macros.
123525         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
123526         * lib/xstrdup.c: Remove.
123528         * lib/regex.c (re_comp): Cast gettext return value to char *,
123529         Problem reported by Martin Neitzel via Mark D. Baushke.
123531 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123533         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
123534         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
123535         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
123536         regex.c, sha1.c, version-etc.c, yesno.c:
123537         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
123538         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
123539         the includer's responsibility.
123541         Sync from coreutils.
123543         * lib/modechange.c (mode_compile): Don't decrement a pointer that
123544         points to the start of a string, as the C Standard says the
123545         resulting behavior is undefined.
123547         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
123548         simple -> simple_backups, numbered_existing ->
123549         numbered_existing_backups, numbered -> numbered_backups
123550         to avoid shadowing problems.  All uses changed.
123551         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
123552         * lib/backupfile.c (check_extension, numbered_backup):
123553         Rename locals to avoid shadowing 'basename'.
123554         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
123555         once.
123557         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
123558         * lib/.cvsignore: Add getopt.h.
123560 2004-10-04  Bruno Haible  <bruno@clisp.org>
123562         * modules/README: New file.
123563         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
123564         not a module.
123566 2004-10-02  Jim Meyering  <jim@meyering.net>
123568         * lib/dirfd.h, getpagesize.h: Add copyright notice.
123570 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123572         * modules/strsep: New file.
123574 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123576         * m4/strsep.m4: New file.
123578 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123580         * lib/strsep.h: New file.
123581         * lib/strsep.c: New file.
123583 2004-10-01  Simon Josefsson  <jas@extundo.com>
123585         * lib/snprintf.c (snprintf): Handle size==0.
123587 2004-10-01  Simon Josefsson  <jas@extundo.com>
123588             Bruno Haible  <bruno@clisp.org>
123590         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
123591         (snprintf): Declare 'args'.
123593 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
123595         * lib/snprintf.c: Remove comments as to why each header is needed.
123597 2004-10-01  Bruno Haible  <bruno@clisp.org>
123599         * MODULES.html.sh: Add strsep.
123601 2004-09-30  Simon Josefsson  <jas@extundo.com>
123603         * modules/snprintf: New file.
123605 2004-09-30  Simon Josefsson  <jas@extundo.com>
123607         * m4/snprintf.m4: New file.
123609 2004-09-30  Simon Josefsson  <jas@extundo.com>
123611         * lib/snprintf.h, lib/snprintf.c: New files.
123613 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123615         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
123616         (hol_entry_help): Never translate an empty string.
123617         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
123618         * lib/argp.h (OPTION_NO_TRANS): New option.
123620 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123622         * modules/argp (Maintainer): Replace Simon Josefsson
123623         by Sergey Poznyakoff.
123625 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123627         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
123628         changes merged back into glibc.
123630 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123632         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
123634 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
123636         * lib/xvasprintf.c: Include xalloc.h.
123637         (xvasprintf): Use xalloc_die, not xmalloc_die.
123639 2004-09-29  Bruno Haible  <bruno@clisp.org>
123641         * modules/alloca-opt: New file, derived from modules/alloca.
123642         * modules/allocsa: Depend on alloca-opt instead of alloca.
123643         * modules/setenv: Likewise.
123644         * modules/vasnprintf: Likewise.
123645         * MODULES.html.sh: Add alloca-opt.
123647 2004-09-28  Simon Josefsson  <jas@extundo.com>
123649         * gnulib-tool: New parameter --lgpl, to asseert that modules are
123650         LGPL, and to replace license template from GPL to LGPL.
123652 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
123654         * modules/dummy: Change license to LGPL.
123656 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
123658         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
123660 2004-09-24  Simon Josefsson  <jas@extundo.com>
123662         * modules/minmax (License): Change from GPL to LGPL.
123664 2004-09-23  Simon Josefsson  <jas@extundo.com>
123666         * gnulib-tool (--import): Typo.
123668 2004-09-23  Simon Josefsson  <jas@extundo.com>
123670         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
123672 2004-09-22  Bruno Haible  <bruno@clisp.org>
123674         * modules/*: Add 'License' field.
123675         * gnulib-tool: Accept --extract-license option.
123676         (func_get_license): New function.
123678 2004-09-21  Bruno Haible  <bruno@clisp.org>
123680         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
123681         Reported by Simon Josefsson.
123683 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123685         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
123686         gl_AC_TYPE_LONG_LONG.
123688 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123690         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
123692 2004-09-18  Simon Josefsson  <jas@extundo.com>
123693         and  Paul Eggert  <eggert@cs.ucla.edu>
123695         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
123696         calls with autoreconf.  Define GL_LIB.
123698 2004-09-14  Karl Berry  <karl@gnu.org>
123700         * config/srclist.txt: unsync setenv.c, sigh.
123702 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123704         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
123705         Problem reported by Bruno Haible in:
123706         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
123708 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123710         * config/srclist.txt: Comment out argp-pvh.c.
123712 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
123714         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
123715         in case some system header has #define'd it.  Problem reported by
123716         Soeren D. Schulze in
123717         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
123719 2004-09-09  Karl Berry  <karl@gnu.org>
123721         * regex.[ch]: delete from the root.  These were supposed to be
123722                 synced with emacs cvs, but this has not happened for about
123723                 a year, and anyway nothing else uses emacs regex.[ch].
123724                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
123725                 lib/regex[.ch] is untouched.
123727 2004-09-09  Bruno Haible  <bruno@clisp.org>
123729         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
123731 2004-09-09  Bruno Haible  <bruno@clisp.org>
123733         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
123734         modifications.
123735         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
123737 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123739         * modules/xvasprintf: New file.
123740         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
123742 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123744         * lib/xvasprintf.h: New file.
123745         * lib/xvasprintf.c: New file.
123746         * lib/xasprintf.c: New file.
123748 2004-09-08  Bruno Haible  <bruno@clisp.org>
123750         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
123752 2004-09-08  Bruno Haible  <bruno@clisp.org>
123754         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
123755         length is > INT_MAX.
123756         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
123757         more.
123759 2004-09-08  Bruno Haible  <bruno@clisp.org>
123761         * lib/stdint_.h: New file, taken from GNU clisp.
123763 2004-09-08  Bruno Haible  <bruno@clisp.org>
123764             Oskar Liljeblad  <oskar@osk.mine.nu>
123766         * modules/stdint: New file.
123767         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
123769 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123771         Import from coreutils.
123772         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
123773         strings on unbounded length.  alloca's performance benefits aren't
123774         that important here.
123775         (V_STRDUP): Remove.
123776         (parse_with_separator): New function, with most of the internals
123777         of the old parse_user_spec.  Allow user to omit both user and group,
123778         for compatibility with FreeBSD.
123779         Clone only the user name, not the entire spec.
123780         Do not set *uid, *gid unless entirely successful.
123781         Avoid memory leak in some failing cases.
123782         Fix regression for USER.GROUP reported by Dmitry V. Levin in
123783         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
123784         (parse_user_spec): Rewrite to use parse_with_separator.
123786 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123788         * modules/userspec: Don't depend on alloca.
123790 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123792         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
123794 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
123796         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
123797         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
123798         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
123800 2004-08-16  Simon Josefsson  <jas@extundo.com>
123802         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
123803         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
123804         Add --dry-run for --import.
123805         Let user provided command line parameters override configure.ac
123806         settings.
123808 2004-08-12  Simon Josefsson  <jas@extundo.com>
123810         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
123811         as discussed with Paul Eggert in threads rooted at
123812         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
123813         and
123814         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
123815         Before, the test was empty, and relied on ELIDE_CODE in source
123816         code.)
123817         (gl_PREREQ_GETOPT): New macro.
123818         (gl_GETOPT): Use them.
123820 2004-08-12  Simon Josefsson  <jas@extundo.com>
123822         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
123823         * lib/getopt_.h: Renamed from getopt.h.
123825 2004-08-12  Simon Josefsson  <jas@extundo.com>
123827         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
123828         Change default library name from libfoo to libgnu.
123829         Now, if you have a configure.ac that says:
123830                 gl_SOURCE_BASE(gl)
123831                 gl_M4_BASE(gl/m4)
123832                 gl_MODULES(error getopt etcetera)
123833                 gl_INIT
123834         you can import all you need by running:
123835                 ../gnulib/gnulib-tool --import
123837         * modules/getopt (Files): Rename getopt.h to getopt_.h.
123838         (Makefile.am): Rewrite, use logic from argz.
123839         (Include): Use <getopt.h> instead of "getopt.h".
123841 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123843         * modules/argp (Files): Add m4/unlocked-io.m4.
123844         (Depends-on): Add extensions.
123846 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123848         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
123849         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
123850         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
123851         Check for program_invocation_name, program_invocation_short_name,
123852         flockfile, funlockfile, features.h, _getopt_long_only_r.
123854 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123856         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
123857         its complicated substitute.
123858         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
123859         and program_invocation_name.
123860         (__argp_basename) [!_LIBC]: Remove; the only use was
123861         replaced by its body.
123862         (__argp_short_program_name): Change condition from
123863         !defined __argp_short_program_name to
123864         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
123865         to match argp-namefrob.h.
123866         (__argp_failure): Don't assume strerror_r returns char *.
123867         * lib/argp-parse.c (N_): Define unconditionally.
123868         (argp_default_options): Fill out initializers with 0 to avoid
123869         gcc warnings.
123871 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123873         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
123874         getopt1.c.
123876 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123878         Merge from coreutils.
123880         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
123882         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
123883         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
123885 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123887         Merge from coreutils.
123889         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
123890         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
123891         for Reliant Unix 5.43.
123893         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
123894         (union fooround): Use uintmax_t, not long int.
123895         The rest is a merge from libc:
123896         [defined _LIBC]: Include <shlib-compat.h>.
123897         (_obstack) [defined _LIBC]: Remove after 2.3.4.
123899         * lib/settime.c (settime): Recode to avoid warning with
123900         Sun Forte C 6U2.
123902         * lib/strverscmp.c: Convert to UTF-8.
123904 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123906         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
123907         m4/uintmax_t.m4.
123909 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123911         * modules/xalloc-die: New file.
123912         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
123914         * modules/md5 (Files): Add m4/uint32_t.m4.
123915         * modules/sha1: Renamed from modules/sha.
123916         (Files):
123917         Rename lib/sha.h to lib/sha1.h.
123918         Rename lib/sha.c to lib/sha1.c.
123919         Rename m4/sha.m4 to m4/sha1.m4.
123920         (lib_SOURCES): Likewise.
123921         (configure.ac): Rename gl_SHA to gl_SHA1.
123922         (Include): sha.h -> sha1.h.
123924 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123926         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
123927         * m4/sha1.m4: Renamed from sha.m4.
123928         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
123930 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123932         * lib/obstack.h (obstack_empty_p):
123933         Don't assume that chunk->contents is suitably aligned.
123934         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
123935         Likewise. Problem reported by Benno in
123936         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
123938         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
123939         readable.  This could be improved further but it'd take some work.
123941 2004-08-08  Simon Josefsson  <jas@extundo.com>
123943         * modules/xgethostname (Depends-on): Remove exit and error (not
123944         used).
123946         * modules/getpass-gnu: Add getpass.h.
123947         (Depends-on): Add stdbool.
123948         * modules/getpass: Add getpass.h.
123950 2004-08-08  Simon Josefsson  <jas@extundo.com>
123952         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
123953         Check getpass declaration.
123955 2004-08-08  Simon Josefsson  <jas@extundo.com>
123957         * lib/xgethostname.c: Don't include error.h (not used).
123959         * lib/getpass.h: Add.
123960         * lib/getpass.c: Include getpass.h first.
123962 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
123964         * lib/xalloc-die.c: New file.
123965         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
123966         All uses removed.
123967         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
123968         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
123969         xalloc-die.c.
123970         (_, N_, xalloc_die): Move to xalloc-die.c.
123971         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
123972         so that we needn't mess with xalloc_msg_memory_exhausted.
123974         * lib/sha1.h: Renamed from sha.h.
123975         (SHA1_H): Renamed from _SHA_H.
123976         (sha1_ctx): Renamed from sha_ctx.
123977         (sha1_init_ctx): Renamed from sha_init_ctx.
123978         (sha1_process_block): Renamed from sha_process_block.
123979         (sha1_process_bytes): Renamed from sha_process_bytes.
123980         (sha1_finish_ctx): Renamed from sha_finish_ctx.
123981         (sha1_read_ctx): Renamed from sha_read_ctx.
123982         (sha1_stream): Renamed from sha_stream.
123983         (sha1_buffer): Renamed from sha_buffer.
123984         * lib/sha1.c: Likewise; renamed from sha.c.
123985         Do not include <sys/types.h>.
123986         Include <stddef.h> rather than <stdlib.h>.
123988 2004-08-08  Bruno Haible  <bruno@clisp.org>
123990         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
123991         FILESYSTEM_PREFIX_LEN.
123992         * lib/progreloc.c: Likewise.
123993         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
123995 2004-08-06  Simon Josefsson  <jas@extundo.com>
123997         * modules/progname (Depends-on): Don't depend on stdbool.
123999 2004-08-06  Simon Josefsson  <jas@extundo.com>
124001         * modules/getsubopt: New file.
124002         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124003         getsubopt.
124005 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124007         More merge from coreutils.
124009         * m4/utimens.m4, m4/utimecmp.m4: New files.
124010         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
124011         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
124012         prereq.m4, sha.m4: Import changes from coreutils.
124014 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124016         More merge from coreutils.
124017         * modules/raise, modules/readtokens0, modules/utimens:
124018         * modules/utimecmp, module/xnanosleep: New files.
124019         * modules/strftime: Add lib/strftime.h.
124020         Change include from <time.h> to "strftime.h".
124021         * modules/yesno: Add lib/yesno.h.
124022         * modules/backupfile: Remove lib/addext.c.
124023         * modules/euidaccess: Add stat-macros.h.
124024         * modules/canonicalize, modules/euidaccess,
124025         modules/filemode, modules/lchown, modules/makepath,
124026         modules/rmdir, modules/stat: Likewise.
124028 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124030         Merge from tar.
124031         * lib/argp-help.c (make_hol, hol_append): Don't assume that
124032         SIZE_MAX is a valid preprocessor constant.
124033         (__argp_basename): Change from "#ifndef _LIBC"
124034         to "#ifndef __argp_short_program_name", so that
124035         we don't compile these functions for tar.
124037         More merges from coreutils.
124038         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
124039         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
124040         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
124041         * lib/addext.c: Remove; no longer needed.
124042         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
124043         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
124044         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
124045         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
124046         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
124047         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
124048         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
124049         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
124050         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
124051         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
124052         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
124053         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
124054         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
124055         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
124056         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
124057         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
124058         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
124059         Import changes from coreutils.
124061 2004-08-05  Simon Josefsson  <jas@extundo.com>
124063         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
124065 2004-08-05  Simon Josefsson  <jas@extundo.com>
124067         * m4/getsubopt.m4: New file.
124069 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124071         Merge from coreutils.
124073         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
124074         * m4/getcwd-path-max.m4: New files.
124076         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
124077         FILESYSTEM_PREFIX_LEN ->
124078         FILE_SYSTEM_PREFIX_LEN.
124079         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
124080         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
124081         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
124082         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
124084         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
124085         prerequisite modules now handle the DOS stuff.
124086         Don't check for unistd.h.
124088 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124090         Merge from coreutils.
124092         * lib/.gdb-history: Remove; this doesn't belong here.
124094         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
124095         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
124096         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
124097         * lib/getcwd.c: New files.
124099         * lib/dirname.h: Include <stdbool.h>.
124100         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
124101         for consistency with POSIX terminology.  All uses changed.
124102         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
124103         (strip_trailing_slashes): Use bool for booleans.
124104         * lib/stripslash.c (strip_trailing_slashes): Likewise.
124106         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
124107         sometimes returns a positive errno value even when it succeeds.
124108         (print_errno_message) [!LIBC]: Fall back on strerror if
124109         __strerror_r fails.
124111         * lib/path-concat.c (mempcpy): Don't define if a system header defines
124112         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
124113         (longest_relative_suffix): New function.
124114         (path_concat): Use it.  Assume first argument is not NULL.
124115         Port to DOS.  Omit redundant separators.
124116         Report an error instead of returning NULL.
124117         Use mempcpy instead of memcpy.
124118         (xpath_concat): Remove: not declared or used.
124120         * lib/same.h: Include <stdbool.h>
124121         (same_name): Return bool, not int.
124122         * lib/same.c (same_name): Likewise.
124123         (errno): Don't declare; we assume C89 or better now.
124125         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
124126         if not already defined.
124128         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
124129         * lib/dup-safer.c (errno): Likewise.
124131 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124133         Merge from coreutils.
124134         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
124135         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
124136         * modules/path-concat: Don't depend on strdup.
124138 2004-08-03  Simon Josefsson  <jas@extundo.com>
124140         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
124141         * lib/progname.h: Don't include stdbool.h.
124143 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124145         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
124146         * MODULES.html.sh (func_all_modules): Remove fatal.
124148 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124150         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
124152 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124154         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
124155         working.
124157 2004-08-02  Simon Josefsson  <jas@extundo.com>
124159         * lib/getsubopt.h: New file, with comments from Bruno Haible.
124160         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
124161         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
124163 2004-08-01  Simon Josefsson  <jas@extundo.com>
124165         * lib/xgetdomainname.c: Include stdlib.h, for free().
124167 2004-07-19  Bruno Haible  <bruno@clisp.org>
124169         * MODULES.html.sh (func_all_modules): Add dummy.
124171 2004-07-16  Simon Josefsson  <jas@extundo.com>
124173         * modules/dummy: New file.
124175 2004-07-16  Simon Josefsson  <jas@extundo.com>
124177         * lib/dummy.c: New file.
124179 2004-07-16  Bruno Haible  <bruno@clisp.org>
124181         * lib/backupfile.h: Add extern "C" for C++.
124182         * lib/closeout.h: Likewise.
124183         * lib/copy-file.h: Likewise.
124184         * lib/findprog.h: Likewise.
124185         * lib/full-write.h: Likewise.
124186         * lib/pathname.h: Likewise.
124187         * lib/progname.h: Likewise.
124188         * lib/stpcpy.h: Likewise.
124189         * lib/stpncpy.h: Likewise.
124190         * lib/strcase.h: Likewise.
124191         * lib/strstr.h: Likewise.
124192         * lib/xalloc.h: Likewise.
124194         * lib/mbswidth.h: Add extern "C" for C++.
124195         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
124197 2004-07-13  Robert Millan  <robertmh@gnu.org>
124199         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
124201 2004-07-09  Simon Josefsson  <jas@extundo.com>
124203         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
124204         failed without this.)
124206 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
124208         * modules/chown (Files): Add lib/fchown-stub.c, since
124209         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
124211 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
124213         * lib/fchown-stub.c: New file.
124215 2004-06-24  Jim Meyering  <jim@meyering.net>
124217         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
124219 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124221         * modules/argz: Omit "#include".
124223         * MODULES.html.sh (func_all_modules): Add calloc, to match
124224         2004-06-01 addition of calloc module.
124226 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124228         * m4/argz.m4: New file, which is autoupdated from libtool.
124230 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124232         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
124233         libtool.
124235 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124237         * config/srclist-update: Don't insist on "USA." before the
124238         close-comment, as libtool omits the period and puts the */ on a
124239         separate line.
124240         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
124241         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
124243 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
124245         * modules/argz: New file.
124246         * MODULES.html.sh (func_all_modules): Add argz.
124248 2004-06-12  Jim Meyering  <jim@meyering.net>
124249         and  Paul Eggert  <eggert@cs.ucla.edu>
124251         * modules/hash (Files): Add lib/xalloc.h.
124252         * modules/pipe (Depends-on): Add wait-process.
124253         * modules/stat (Depends-on): Add xalloc.
124254         * modules/userspec (Files): Add lib/userspec.h.
124255         * modules/xstrto
124257         Upgrade from gettext-0.13.
124258         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
124259         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
124260         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
124262 2004-06-10  Jim Meyering  <jim@meyering.net>
124264         * lib/calloc.c: New file.
124266 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
124268         * lib/getdate.y (yylex): Allow space between sign and number.
124269         Problem reported by Dan Jacobson.
124271 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
124273         Merge from coreutils CVS.
124275         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
124276         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
124277         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
124278         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
124279         xstrtol.m4: Fix copyright date and/or serial number.
124281         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
124282         See if we need an fchown replacement.
124283         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
124284         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
124285         and use the replacement function if we detect either defect.
124287         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
124288         gl_UTIMECMP.
124290 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
124291         and  Jim Meyering  <jim@meyering.net>
124293         Merge from coreutils CVS.
124295         * lib/stat-macros.h: New file, with contents from file-type.h
124296         and coreutils' system.h.
124297         * lib/file-type.c: Include "stat-macros.h".
124298         * lib/file-type.h (file_type): Move all macro definitions to new file,
124299         stat-macros.h.
124301         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
124302         Wrap old code with this conditional.
124303         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
124304         function that does not dereference symlinks.
124305         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
124307         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
124308         dependency problems.
124309         (xreadlink): Accept new arg SIZE, for efficiency.
124310         All decls and uses changed.
124311         * lib/xreadlink.h: Include <stddef.h>, for size_t.
124313         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
124314         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
124316         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
124317         sysexits.h.
124319 2004-06-01  Jim Meyering  <jim@meyering.net>
124321         * m4/calloc.m4: New file.
124323 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
124325         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
124326         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
124327         Also, fix a typo in a diagnostic.
124329 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124331         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
124332         or AC_FUNC_REALLOC.
124334 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124336         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
124337         macros to be defined.
124338         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
124339         the allocator returns NULL because the requested size is zero.
124341 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
124343         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
124344         var.  Add comment explaining why libc still defines it.  This
124345         merges the following patch from glibc:
124346         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
124348 2004-05-20  Andreas Schwab  <schwab@suse.de>
124350         * m4/free.m4: Replace free if it not known to work, not the other
124351         way round.
124353 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
124355         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
124356         present in glibc since revision 1.1 of this file.
124357         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
124358         obstack_alignment_mask, obstack_alloc, obstack_base,
124359         obstack_blank, obstack_blank_fast, obstack_chunk_size,
124360         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
124361         obstack_grow0, obstack_init, obstack_int_grow,
124362         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
124363         obstack_next_free, obstack_object_size, obstack_ptr_grow,
124364         obstack_ptr_grow_fast, obstack_room): Remove declarations of
124365         nonexistent functions.
124367 2004-05-18  Karl Berry  <karl@gnu.org>
124369         * config/srclist.txt: break link for vasnprintf.c.
124371 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124373         Port obstack to the AS/400, where pointers are 16 bytes wide and
124374         you cannot cast an integer to a valid pointer.  This patch is
124375         currently waiting to be integrated into glibc; see
124376         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
124378         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
124379         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
124380         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
124381         (struct obstack): temp member is now a union of a pointer and
124382         an integer, instead of an integer.  All integer uses changed.
124383         This does not affect the physical layout of struct obstack,
124384         except on hosts (like the AS/400) where the size or alignment of
124385         void * is greater than that of ptrdiff_t.
124386         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
124387         __STDC__)]: Store temporary in pointer member of union, not
124388         integer member.
124389         * lib/obstack.c: Include <stddef.h>, for offsetof.
124390         (struct fooalign): Remove; it doesn't need a name.
124391         (union fooround): Change double to long double, and add void *.
124392         (DEFAULT_ALIGNMENT): Use offsetof to compute.
124393         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
124394         not a macro.  Hence the values are always int; so remove all
124395         casts-to-int in uses.
124397 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124399         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
124400         we can get this patch merged into glibc.
124402 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124403             Paul Eggert  <eggert@cs.ucla.edu>
124405         * m4/argp: Depend on alloca.
124407 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124408             Paul Eggert  <eggert@cs.ucla.edu>
124410         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
124411         freecoding.
124413 2004-05-17  Bruno Haible  <bruno@clisp.org>
124415         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
124416         precision that consists of a '.' followed by an empty digit string.
124417         Patch by Tor Lillqvist <tml@iki.fi>.
124419 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124421         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
124422         for backward compatibility with older code.  We need our own
124423         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
124424         it under some other name, and our alloca.h will define it.
124426 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124427             Derek Price  <derek@ximbiot.com>
124429         * lib/alloca.c: Include <alloca.h>, to get our interface.
124430         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
124431         include <alloca.h> first.  Use C89 prototype for alloca; this
124432         requires including <stddef.h> for size_t.  Use extern "C" if C++.
124433         Use #elif for simplicity, since we can assume C89 now.
124434         Don't try to source the system alloca.h since it will not be found
124435         and to prevent recursively including its replacement.
124436         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
124437         * lib/regex.c: Likewise.
124439 2004-05-16  Derek Price  <derek@ximbiot.com>
124440             Paul Eggert  <eggert@cs.ucla.edu>
124442         getline cleanup.  This changes the getndelim2 API: both order of
124443         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
124444         no delimiter).
124446         * lib/getline.c: Don't include stddef.h or stdio.h, since our
124447         interface does that.
124448         (getline): Always use getdelim, so that we don't have two
124449         copies of this code.
124450         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
124451         if available.
124452         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
124453         (GETNDELIM2_MAXIMUM): New macro.
124454         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
124455         instead of the old practice of delim2==0.  All callers changed.
124456         Return -1 on overflow, instead of returning junk.
124457         Do not set *linesize unless allocation succeeds.
124458         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
124459         that we include sys/types.h.
124460         * lib/getnline.h: Likewise.
124461         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
124462         (getndelim2): Reorder arguments.
124463         * lib/getnline.c (getnline, getndelim):
124464         Don't discard the NMAX argument.
124465         (getnline): Invoke getndelim, to avoid code duplication.
124466         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
124467         of (size_t) -1 by callers of the getnline family.
124469 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124471         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
124472         Check for gettimeofday.
124473         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
124474         Check for settimeofday, stime.
124476 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124478         * lib/nanosleep.c (suspended): Change its type from int to
124479         sig_atomic_t volatile.
124480         (first_call): Make it private to rpl_nanosleep, and have it
124481         be zero initially as that's a bit faster.
124482         (my_usleep): Round up fractional times instead of truncating them,
124483         as this is the usual meaning for 'sleep'.
124485         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
124486         doesn't work.
124487         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
124488         (ENOSYS): Define if not defined.
124489         (settime): Fall back on stime if it exists and settimeofday fails.
124490         But don't bother with fallbacks if a method fails with errno == EPERM.
124492 2004-05-11  Jim Meyering  <jim@meyering.net>
124494         Prior to this change, the save_cwd caller required read access to the
124495         current directory on most systems (ones with the fchdir function).
124497         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
124498         fails, try write-only, and finally, resort to using xgetcwd.
124500 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
124502         * lib/obstack.c, obstack.h: Import changes from libc.
124504 2004-04-28  Bruno Haible  <bruno@clisp.org>
124506         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
124507         also implicitly appends .exe to executables.
124508         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
124509         accepts Windows pathnames.
124510         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124511         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124512         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124513         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124514         Reported by Derek Robert Price <derek@ximbiot.com>.
124516 2004-04-21  Karl Berry  <karl@gnu.org>
124518         * config/srclist.txt (localcharset.c): break sync.
124520 2004-04-20  Paul Eggert  <eggert@twinsun.com>
124522         * m4/host-os.m4: Add a copyright notice.
124524 2004-04-20  Jim Meyering  <jim@meyering.net>
124526         Change UTILS_ to gl_ in AC_DEFINE'd names.
124527         Change utils_- and jm_-prefixed variables, too.
124528         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
124529         UTILS_FUNC_MKDIR_TRAILING_SLASH.
124530         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
124532         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
124533         Don't emit trailing blanks.
124534         Also rename jm_-prefixed variables to have gl_ prefix.
124536         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
124537         Also rename jm_-prefixed variables to have gl_ prefix.
124539         * m4/jm-macros.m4: Reflect the renamings.
124540         * m4/prereq.m4: Likewise.
124542 2004-04-20  Jim Meyering  <jim@meyering.net>
124544         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
124545         memory.
124547 2004-04-20  Jim Meyering  <jim@meyering.net>
124548             Bruno Haible  <bruno@clisp.org>
124550         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
124551         memory when realloc fails.
124553 2004-04-19  Jim Meyering  <jim@meyering.net>
124555         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
124556         now that readutmp.c may call `free (0)'.
124558 2004-04-19  Bruno Haible  <bruno@clisp.org>
124560         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
124561         * m4/inttypes_h.m4: Likewise.
124562         * m4/stdint_h.m4: Likewise.
124563         * m4/intmax_t.m4: Likewise.
124564         * m4/uintmax_t.m4: Likewise.
124566 2004-04-18  Jim Meyering  <jim@meyering.net>
124568         * m4/prereq.m4: Don't forbid jm_ prefix.
124570         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
124571         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
124572         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
124573         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
124574         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
124575         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
124576         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
124577         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
124578         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
124579         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
124580         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
124581         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
124582         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
124583         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
124584         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
124585         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
124586         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
124587         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
124588         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
124590 2004-04-18  Jim Meyering  <jim@meyering.net>
124592         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
124593         failure, don't leak memory and do call END_UTMP_ENT.
124595 2004-04-16  Jim Meyering  <jim@meyering.net>
124597         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
124598         coreutils' stat program.
124599         (gl_PREREQ): Don't require jm_PREREQ_STAT.
124601 2004-04-11  Paul Eggert  <eggert@twinsun.com>
124603         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
124604         C89.
124605         (CHAR_BIT): Remove, since we assume C89.
124606         Include <stdint.h> if available, as per current Autoconf CVS advice.
124608 2004-03-31  Jim Meyering  <jim@meyering.net>
124610         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
124611         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
124612         * m4/xalloc.m4: Likewise.
124614 2004-03-30  Paul Eggert  <eggert@twinsun.com>
124616         Merge from coreutils.
124618         * m4/inttostr.m4: New file.
124619         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
124620         Require AM_STDBOOL_H and gl_TIMESPEC instead.
124621         Require gl_CLOCK_TIME.
124622         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
124624 2004-03-30  Paul Eggert  <eggert@twinsun.com>
124626         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
124627         not bool, to be more consistent with Unix conventions.
124628         Suggested by Bruno Haible.
124630         Merge from coreutils.
124632         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
124633         * lib/umaxtostr.c: New files.
124635         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
124636         the usual <time.h> dance.
124637         (get_date): Change signature to support fractional time stamps.
124638         All callers changed.
124639         * lib/getdate.y: Include "getdate.h" first, as we can now
124640         assume C89 and don't need to worry about 'const'.
124641         Similarly, include "unlocked-io.h" near start, not in middle.
124642         Include <limits.h>.
124643         (textint.value): Use long int rather than int.
124644         (textint.digits): Use size_t rather than int.
124645         (BILLION, LOG10_BILLION): New constants.
124646         (parser_control): New member rel_ns.  Members day_ordinal,
124647         time_zone, month, day, hour, minutes, rel_year, rel_month,
124648         rel_day, rel_hour, rel_minutes, rel_seconds
124649         are now long int, not int.  Member seconds is now struct timespec,
124650         not int.  New member timespec_seen.  Members dates_seen, days_seen,
124651         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
124652         not int.
124653         (%union.intval): Now long int, not int.
124654         New member timespec.
124655         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
124656         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
124657         (spec): Now is a timespec or an item list.
124658         (timespec, items): New nonterminals.
124659         (time, rel, relunit, number, get_date):
124660         Add support for fractional seconds.
124661         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
124662         (gmtime, localtime, mktime): Remove decls; not needed with C89.
124663         (to_hour): First arg is now long int, not int.
124664         (to_year): Returns long int, not int.
124665         Don't treat year -70 like 70.
124666         (tm_diff): Returns long int, not int.
124667         (lookup_word): Use bool instead of int when appropriate.
124668         (yylex): Use size_t for count, not int.
124669         Detect overflow when parsing large integer constants.
124670         Add support for fractions.
124671         (get_date): Make pointers 'const' if possible.
124672         Use more-portable code to detect integer overflow.
124673         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
124674         Don't use ctime; it's not reliable if the year has >4 digits.
124676         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
124677         This is for compatibility with BSD.
124679         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
124680         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
124681         From coreutils' system.h.
124683         * lib/userspec.c: Don't include "posixver.h".
124684         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
124685         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
124686         compatible extension.  Simplify code by removing a boolean int
124687         that was always nonzero if a string was nonnull.
124689 2004-03-30  Jim Meyering  <jim@meyering.net>
124691         Merge from coreutils.
124693         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
124694         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
124695         on some systems one must include <grp.h> before it.
124696         Reported by Christian Krackowizer.
124698 2004-03-30  Jim Meyering  <jim@meyering.net>
124700         Merge from coreutils.
124702         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
124704         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
124705         an empty input stream.
124707         * lib/readtokens.c: Include <stdbool.h>.
124708         (readtoken): Use `size_t' rather than int/long.
124709         All callers adjusted.
124710         Use `bool' rather than `int' where appropriate.
124711         Use memset rather than an explicit loop.
124712         Use x2nrealloc rather than xrealloc.
124713         Allow the use of `\0' as a delimiter.
124714         (readtokens): Likewise.
124715         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
124717 2004-03-30  Jim Meyering  <jim@meyering.net>
124719         * m4/realloc.m4: Remove file, since now it does no more than
124720         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
124721         the `configure.ac' section of module/realloc.
124722         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
124724 2004-03-30  Bruno Haible  <bruno@clisp.org>
124726         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
124727         nonnull.
124729 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124731         Merge changes to getloadavg.c from coreutils and Emacs.
124733         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
124734         Define to an expression, not to the empty string.
124735         Include cloexec.h and xalloc.h.
124736         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
124737         Use set_cloexec_flag rather than rolling our own.
124738         * lib/cloexec.c, lib/cloexec.h: New files.
124740 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124742         * m4/cloexec.m4: New file.
124744 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124746         * lib/getopt.h: Sync with libc CVS.
124748 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124749             Bruno Haible  <bruno@clisp.org>
124751         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
124752         mbswidth.
124754 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124755             Bruno Haible  <bruno@clisp.org>
124757         * lib/mbswidth.h: Include <wchar.h> only if
124758         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
124759         <wchar.h>.
124760         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
124762 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124764         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
124765         Sync with libc CVS.
124766         * lib/getopt_int.h: New file, also synced from libc.
124768 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124770         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
124771         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
124772         Bring back getopt.c, getopt.h, getopt1.c.
124774 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124776         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
124777         All uses changed.  Check for sa_sigaction member; this fixes
124778         a bug first reported by Jason Andrade in
124779         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124781 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124783         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
124784         '#if' expressions.  Unlike the code it replaces, it does not
124785         depend on (defined _SC_PAGESIZE).  However, it does depend on
124786         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
124787         first reported by Jason Andrade in
124788         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124790 2004-02-25  Simon Josefsson  <jas@extundo.com>
124792         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
124794 2004-02-25  Simon Josefsson  <jas@extundo.com>
124796         * lib/strdup.h: New file.
124797         * lib/strdup.c: Include it.
124798         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
124799         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
124801 2004-02-23  Karl Berry  <karl@gnu.org>
124803         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
124804         (from fencepost.gnu.org:/gd/gnuorg).
124806 2004-02-23  Karl Berry  <karl@gnu.org>
124808         * config/srclistvars.sh (GNUORG) [karl]: redefine.
124809         * config/srclist.txt: add maintain/standards documents.
124811 2004-02-18  Bruno Haible  <bruno@clisp.org>
124813         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
124814         Reported by Derek Robert Price <derek@ximbiot.com>.
124816 2004-02-16  Karl Berry  <karl@gnu.org>
124818         * config/mkinstalldirs, install-sh: update from automake.
124820 2004-02-06  Karl Berry  <karl@gnu.org>
124822         * m4/po.m4: update from gettext 0.14.1.
124824 2004-02-06  Karl Berry  <karl@gnu.org>
124826         * lib/config.charset: update from gettext 0.14.1.
124828 2004-02-05  Paul Eggert  <eggert@twinsun.com>
124830         Add comments and code, prompted by suggestions from Bruno Haible
124831         for sh-quote.
124832         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
124833         describing the enum quoting_style values.
124834         * lib/quotearg.c (quotearg_alloc): New function.
124835         (quotearg_buffer_restyled): Treat lone { and } as special.
124836         Treat = as special.  Work around bug with older shells
124837         that "see" a '\' that is really the 2nd byte of a multibyte char.
124838         Quote empty string with shell_quoting_style.
124840 2004-02-03  Bruno Haible  <bruno@clisp.org>
124842         * m4/pipe.m4: New file, from GNU gettext.
124844 2004-02-03  Bruno Haible  <bruno@clisp.org>
124846         * lib/pipe.h: New file, from GNU gettext.
124847         * lib/pipe.c: New file, from GNU gettext.
124849 2004-01-27  Bruno Haible  <bruno@clisp.org>
124851         * m4/execute.m4: New file, from GNU gettext.
124853 2004-01-27  Bruno Haible  <bruno@clisp.org>
124855         * lib/execute.h: New file, from GNU gettext.
124856         * lib/execute.c: New file, from GNU gettext.
124857         * lib/w32spawn.h: New file, from GNU gettext.
124859 2004-01-24  Paul Eggert  <eggert@twinsun.com>
124861         Merge from diffutils.
124863         * lib/file-type.c (file_type): Add typed memory objects.
124864         * lib/file-type.h (S_TYPEISTMO): New macro.
124866         * lib/c-stack.h (c_stack_action): Remove argv argument.
124867         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
124868         (die): Don't calculate message unless segv_action returns.
124869         (get_stack_location, min_address_from_argv, max_address_from_argv,
124870         volatile stack_base, volatile_stack_size): Remove.
124871         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
124872         that every segmentation violation is a stack overflow.  (Ouch!)
124873         See Debian bug 136249 (still outstanding) for more info about why
124874         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
124876 2004-01-24  Paul Eggert  <eggert@twinsun.com>
124878         Exit-status fix from coreutils.
124880         Use exit_failure consistently in place of EXIT_FAILURE,
124881         so that program exit statuses are consistent on failure.
124883         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
124884         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
124885         * lib/argmatch.h: Comment fix to match the above.
124886         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
124887         Now a macro referring to exit_failure, instead of a separate
124888         variable.  Include "exitfail.h" to get it.
124889         * lib/xstrtol.h: Include "exitfail.h".
124890         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
124892         * lib/long-options.c (parse_long_options): Use prototype
124893         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
124894         for clarity.
124896 2004-01-21  Jim Meyering  <jim@meyering.net>
124898         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
124899         so as not to conflict with a different-sized __mktime_internal
124900         function in GNU libc.
124901         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
124902         Problem building statically-linked `ls' reported by Michael Brunnbauer.
124904 2004-01-20  Karl Berry  <karl@gnu.org>
124906         * config/config.guess: update from config.
124908         * config/srclistvars.sh: GNUWWWLICENSES for karl.
124910 2004-01-20  Bruno Haible  <bruno@clisp.org>
124912         Safer stack allocation.
124913         * lib/setenv.c: Include allocsa.h.
124914         (alloca): Remove fallback definition.
124915         (freea): Remove macro.
124916         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
124917         instead of freea.
124919 2004-01-20  Bruno Haible  <bruno@clisp.org>
124921         * m4/eealloc.m4: New file, from GNU gettext.
124923 2004-01-20  Bruno Haible  <bruno@clisp.org>
124925         * m4/allocsa.m4: New file, from GNU gettext.
124927 2004-01-20  Bruno Haible  <bruno@clisp.org>
124929         * lib/xallocsa.h: New file, from GNU gettext.
124930         * lib/xallocsa.c: New file, from GNU gettext.
124932 2004-01-20  Bruno Haible  <bruno@clisp.org>
124934         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
124936 2004-01-20  Bruno Haible  <bruno@clisp.org>
124938         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
124939         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
124940         specially.
124942 2004-01-20  Bruno Haible  <bruno@clisp.org>
124944         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
124945         patch.
124947 2004-01-20  Bruno Haible  <bruno@clisp.org>
124949         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
124951 2004-01-20  Bruno Haible  <bruno@clisp.org>
124953         * lib/eealloc.h: New file.
124955 2004-01-20  Bruno Haible  <bruno@clisp.org>
124957         * lib/binary-io.h: Avoid warnings on Cygwin.
124959 2004-01-20  Bruno Haible  <bruno@clisp.org>
124961         * lib/allocsa.h: New file, from GNU gettext.
124962         * lib/allocsa.c: New file, from GNU gettext.
124964 2004-01-18  Karl Berry  <karl@gnu.org>
124966         * doc/gpl.texi, doc/lgpl.texi: new files.
124968 2004-01-18  Karl Berry  <karl@gnu.org>
124970         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
124971         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
124973 2004-01-15  Paul Eggert  <eggert@twinsun.com>
124975         Merge from coreutils.
124977         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
124978         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
124979         (gl_DEFAULT_POSIX2_VERSION): Move
124980         the documentation from 'configure' into 'config.hin',
124981         so that 'configure --help' isn't burdened by it and
124982         we don't have to worry about its formatting there.
124983         Reword the documentation so that it's more succinct
124984         and can be run together into a single paragraph.
124985         * m4/same.m4 (gl_SAME): Check for pathconf.
124987 2004-01-15  Paul Eggert  <eggert@twinsun.com>
124989         Merge from coreutils.
124991         * lib/posixver.c: Include posixver.h.
124993         * lib/same.c: Include <stdbool.h>, <limits.h>.
124994         (_POSIX_NAME_MAX): Define if not defined.
124995         (MIN): New macro.
124996         (same_name): If file names are silently truncated, report
124997         that the file names are the same if they are the same after
124998         the silent truncation.
125000         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
125001         conversion function.
125002         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
125003         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
125004         longer needed.
125006 2004-01-15  Jim Meyering  <jim@meyering.net>
125008         Merge from coreutils.
125010         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
125011         if no library is required.
125012         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
125013         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
125014         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
125015         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
125016         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
125017         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
125018         value, $ac_cv_search_crypt, if it's "none required".
125019         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
125020         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
125021         not gl_FUNC_GETLOADAVG.
125022         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
125023         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
125025 2004-01-15  Jim Meyering  <jim@meyering.net>
125027         Merge from coreutils.
125029         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
125030         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
125031         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
125033         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
125034         optional configure-time default.
125036         * lib/version-etc.c (version_etc_copyright): Update copyright date.
125038         * lib/xreadlink.c (xreadlink): Correct outdated comment.
125040 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
125042         Merge from coreutils.
125044         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
125045         value, $ac_cv_search_nanosleep, if it's "none required".
125047 2004-01-14  Paul Eggert  <eggert@twinsun.com>
125049         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
125050         with like-named macro in fnmatch.c.
125051         (EXT): Use an internal constant instead.
125053         Merge fnmatch patches from glibc.
125054         * lib/fnmatch.c (mbsinit): Remove define.
125055         Add libc_hidden_ver (__fnmatch, fnmatch).
125056         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
125057         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
125059 2004-01-14  Karl Berry  <karl@gnu.org>
125061         * config/install-sh: update from automake.
125063 2004-01-13  Karl Berry  <karl@gnu.org>
125065         * config/install-sh: update from automake.
125067 2004-01-09  Karl Berry  <karl@gnu.org>
125069         * config/install-sh: update from automake.
125071 2004-01-05  Karl Berry  <karl@gnu.org>
125073         * config/config.{sub,guess}: update from config.
125075 2003-12-31  Karl Berry  <karl@gnu.org>
125077         * config/depcomp: update from automake.
125079 2003-12-14  Karl Berry  <karl@gnu.org>
125081         * lib/config.charset: update from gettext-runtime.
125083 2003-12-03  Paul Eggert  <eggert@twinsun.com>
125085         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
125086         Bug reported by Alfred M. Szmidt.
125088 2003-12-03  Bruno Haible  <bruno@clisp.org>
125090         * m4/gettext.m4: Upgrade from gettext-0.13.
125091         * m4/po.m4: Upgrade from gettext-0.13.
125092         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
125093         * m4/intmax.m4: New file, from gettext-0.13.
125094         * m4/printf-posix.m4: New file, from gettext-0.13.
125096 2003-11-29  Karl Berry  <karl@gnu.org>
125098         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
125100 2003-11-25  Paul Eggert  <eggert@twinsun.com>
125101             Bruno Haible  <bruno@clisp.org>
125103         * lib/printf-parse.h: Don't include sys/types.h.
125104         (ARG_NONE): New macro.
125105         (char_directive): Change type of *arg_index fields to size_t.
125106         * lib/printf-parse.c: Don't include sys/types.h.
125107         (SSIZE_MAX): Remove macro.
125108         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
125109         Remove unnecessary overflow check.
125110         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
125111         fields.
125113 2003-11-25  Bruno Haible  <bruno@clisp.org>
125115         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
125117 2003-11-25  Bruno Haible  <bruno@clisp.org>
125119         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
125120         gt_TYPE_SSIZE_T.
125122 2003-11-24  Paul Eggert  <eggert@twinsun.com>
125124         * modules/alloca: Remove dependency on xalloc.
125126 2003-11-24  Paul Eggert  <eggert@twinsun.com>
125128         * lib/alloca.c: Remove dependency on xalloc module.
125129         (xalloc_die): Remove.
125130         (memory_full) [!defined emacs]: New macro.
125131         [!defined emacs]: Don't include xalloc.h.
125132         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
125133         address arithmetic overflows.  Change datatypes a bit to avoid
125134         unnecessary casts.
125136 2003-11-22  Jim Meyering  <jim@meyering.net>
125138         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
125139         s/size/size_t/.
125141 2003-11-21  Karl Berry  <karl@gnu.org>
125143         * config/config.{sub,guess}: update from config.
125145 2003-11-18  Karl Berry  <karl@gnu.org>
125147         * config/config.{sub,guess}: update from config.
125149         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
125151 2003-11-17  Paul Eggert  <eggert@twinsun.com>
125153         * README: Mention that S+T cannot overflow if S is the size of
125154         an existing object and T is sufficiently small.
125156 2003-11-17  Jim Meyering  <jim@meyering.net>
125158         On systems without utime and without a utimes function capable of
125159         dealing with a NULL struct utimbuf* argument, this utime replacement
125160         could -- in unusual circumstances -- leak a file descriptor.
125161         * lib/utime.c: Include <unistd.h> and <errno.h>.
125162         (utime_null): Be sure to close `fd' and to preserve errno.
125163         Reported by Geoff Collyer via Arnold Robbins.
125165 2003-11-17  Bruno Haible  <bruno@clisp.org>
125167         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
125168         (Depends-on): Add xsize.
125170 2003-11-17  Bruno Haible  <bruno@clisp.org>
125172         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
125174 2003-11-17  Bruno Haible  <bruno@clisp.org>
125176         * lib/vasnprintf.c (alloca): Remove fallback definition.
125177         (freea): Remove definition.
125178         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
125179         Reported by Paul Eggert.
125181 2003-11-16  Paul Eggert  <eggert@twinsun.com>
125182             Bruno Haible  <bruno@clisp.org>
125184         Protect against address arithmetic overflow.
125185         * lib/printf-args.h: Include stddef.h.
125186         (arguments): Change type of field 'count' to size_t.
125187         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
125188         'unsigned int' where appropriate.
125189         * lib/printf-parse.h: Include sys/types.h.
125190         (char_directive): Change type of *arg_index fields to ssize_t.
125191         (char_directives): Change type of fields 'count', max_*_length to
125192         size_t.
125193         * lib/printf-parse.c: Include sys/types.h and xsize.h.
125194         (SSIZE_MAX): Define fallback value.
125195         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
125196         instead of 'int' where appropriate. Check a_allocated, d_allocated
125197         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
125198         * lib/vasnprintf.c: Include xsize.h.
125199         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
125200         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
125201         overflow. Avoid wraparound when converting a width or precision from
125202         decimal to binary.
125204 2003-11-16  Bruno Haible  <bruno@clisp.org>
125206         Update from GNU gettext.
125207         * lib/printf-parse.c: Generalize to it can be compiled for wide
125208         strings.
125209         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
125210         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
125211         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
125212         SNPRINTF): New macros.
125213         Don't include <alloca.h> if the file is used inside libintl.
125214         (local_wcslen): New function, for Solaris 2.5.1.
125215         (VASNPRINTF): Use it instead of wcslen.
125217 2003-11-16  Bruno Haible  <bruno@clisp.org>
125219         * lib/xsize.h (xmax): New function.
125220         (xsum, xsum3, xsum4): Declare as "pure" functions.
125222 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125224         * modules/xalloc (Files): Undo latest change, since xalloc.h
125225         no longer needs SIZE_MAX or PTRDIFF_MAX.
125227 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125229         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
125230         gl_PTRDIFF_MAX.
125232 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125234         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
125235         "return", to pacify some unknown compiler.  Problem reported
125236         by Joerg Schilling.
125238 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125240         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
125241         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
125242         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
125243         heuristic is just as accurate as far as we know, and it removes a
125244         dependency on size_max.m4 and ptrdiff_max.m4.
125246 2003-11-11  Bruno Haible  <bruno@clisp.org>
125248         * modules/xsize (Files): Add m4/size_max.m4.
125249         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
125251 2003-11-11  Bruno Haible  <bruno@clisp.org>
125253         * m4/size_max.m4: New file.
125254         * m4/ptrdiff_max.m4: New file.
125255         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
125256         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
125257         (gl_XALLOC): Invoke it.
125259 2003-11-11  Bruno Haible  <bruno@clisp.org>
125261         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
125262         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
125263         defined.
125265 2003-11-10  Paul Eggert  <eggert@twinsun.com>
125267         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
125268         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
125269         rejected some allocations of exactly SIZE_MAX - 2 bytes.
125270         From Bruno Haible.
125271         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
125272         not (size_t) -1, since it's defined here.
125274 2003-11-09  Karl Berry  <karl@gnu.org>
125276         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
125278 2003-11-06  Paul Eggert  <eggert@twinsun.com>
125280         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
125281         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
125282         Reject sizes of exactly SIZE_MAX bytes.
125283         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
125284         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
125286 2003-11-05  Bruno Haible  <bruno@clisp.org>
125288         * lib/xsize.h: Include limits.h, to avoid a possible collision with
125289         SIZE_MAX defined in <limits.h> on Solaris.
125291 2003-11-04  Jim Meyering  <jim@meyering.net>
125293         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
125294         variable names, rather than @VAR@.
125295         * modules/poll: Likewise.
125297 2003-11-04  Bruno Haible  <bruno@clisp.org>
125299         * modules/xsize: New file.
125300         * modules/linebreak: Depend on xsize.
125301         * MODULES.html.sh (func_all_modules): Add xsize.
125303 2003-11-04  Bruno Haible  <bruno@clisp.org>
125305         * m4/xsize.m4: New file.
125307 2003-11-04  Bruno Haible  <bruno@clisp.org>
125309         * lib/xsize.h: New file.
125310         * lib/linebreak.c: Include xsize.h.
125311         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
125312         argument for overflow.
125313         Suggested by Paul Eggert.
125315 2003-11-03  Karl Berry  <karl@gnu.org>
125317         * config/config.{guess,sub}: update from config.
125319 2003-11-03  Jim Meyering  <jim@meyering.net>
125321         * modules/userspec (lib_SOURCES): Add userspec.h.
125322         (Include): Add "userspec.h".
125323         Improve description.
125325 2003-11-03  Jim Meyering  <jim@meyering.net>
125327         * lib/userspec.c: Include "userspec.h".
125328         * lib/userspec.h: New file.
125330 2003-11-03  Bruno Haible  <bruno@clisp.org>
125332         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
125334 2003-11-03  Bruno Haible  <bruno@clisp.org>
125336         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
125337         available, to avoid (extremely rare) race condition.
125338         Suggested by Paul Eggert.
125340 2003-11-02  Karl Berry  <karl@gnu.org>
125342         * config/srclist.txt (vasprintf.c): sync broken, sigh.
125344 2003-10-31  Paul Eggert  <eggert@twinsun.com>
125346         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
125347         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
125348         (read_filesystem_list): Set and use me_type_malloced.
125349         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
125350         whatever the type happens to be), for brevity and consistency.
125351         Check for size calculation overflow on Alphas running OSF/1.
125353 2003-10-31  Jim Meyering  <jim@meyering.net>
125355         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
125357         * lib/linebuffer.c: Include <string.h> for declaration of memset.
125359 2003-10-30  Paul Eggert  <eggert@twinsun.com>
125360             Bruno Haible  <bruno@clisp.org>
125362         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
125363         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
125365 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
125367         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
125368         netbsd*-gnu*.  Suggested by Robert Millan.
125370 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125372         * modules/group-member: Depend on stdbool.
125374 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125376         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
125378 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125380         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
125381         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
125382         after the 'gnu' in these cases.  This fixes some bugs in the
125383         previous change, and is based on suggestions by Robert Millan.
125385 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125387         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
125388         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
125389         no longer needed.
125390         * lib/quotearg.c (quotearg_n_options): Use it.
125391         * lib/group-member.c: Include <stdbool.h>.
125392         (free_group_info): Arg is now const *; don't free arg.
125393         (get_group_info): Now returns bool and accepts struct group_info *,
125394         rather than returning a malloc'ed struct group_info *.
125395         All uses changed.  Check for overflow in internal size calculation.
125397         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
125398         rather than xmalloc/xrealloc.
125399         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
125400         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
125401         conformance bug: the old code used a pointer after freeing the
125402         storage that it addressed.
125403         * lib/hash.c (hash_initialize): Simplify the code by using
125404         xalloc_oversized rather than doing it by hand.
125405         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
125406         the buffer preserved.  Use free and xmalloc instead.
125407         * lib/quotearg.c (quotearg_n_options): Likewise.
125408         Use a simpler test for size overflow.  Don't use xalloc_oversized
125409         because unsigned int might be wider than size_t (!); this suggests
125410         that we should switch from unsigned int to size_t for slot numbers.
125412 2003-10-28  Paul Eggert  <eggert@twinsun.com>
125414         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
125415         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
125416         NetBSD kernels.  Requested by Richard Stallman.
125418 2003-10-27  Paul Eggert  <eggert@twinsun.com>
125420         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
125421         to allocate the returned structure.  Do not allocate a subarray,
125422         as x2nrealloc will do that.
125423         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
125424         instead of xnrealloc.
125425         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
125427 2003-10-27  Bruno Haible  <bruno@clisp.org>
125429         * lib/stdbool_.h: Better support for BeOS.
125431 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125433         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
125434         now uses inline.
125436 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125438         * lib/xalloc.h (xalloc_oversized): New static inline function, for
125439         callers that want to do their own size-overflow checking.  Include
125440         <stdbool.h>, since xalloc_oversized returns bool.
125441         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
125442         to use xalloc_oversized.
125444         Add two functions x2realloc, x2nrealloc, for programs that grow
125445         arrays dynamically by doubling their sizes.
125446         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
125447         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
125448         New functions.
125450         Port to C99 semantics for 'inline' of external functions.
125451         Bug reported by Bruno Haible.
125452         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
125453         with the old contents of xnmalloc.
125454         (xnmalloc, xmalloc): Use it.
125455         (xnrealloc_inline): New static inline function,
125456         with the old contents of xnrealloc.
125457         (xnrealloc, xrealloc): Use it.
125459         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
125460         that.
125462 2003-10-26  Karl Berry  <karl@gnu.org>
125464         * config/srclist.txt (COPYING.DOC): no longer available from
125465         /gd/gnuorg; don't know where the ultimate source is.
125467 2003-10-25  Paul Eggert  <eggert@twinsun.com>
125469         Fix several address-calculation bugs in the hash modules,
125470         plus some minor code cleanup.
125472         * lib/hash.h: Include <stdbool.h>, for bool.
125473         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
125474         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
125475         hash_get_n_entries, hash_get_max_bucket_length,
125476         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
125477         hash_rehash): Use size_t rather than unsigned.
125478         * lib/hash.c (struct hash_table, hash_get_n_buckets,
125479         hash_get_n_buckets_used, hash_get_n_entries,
125480         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
125481         hash_get_entries, hash_do_for_each, hash_string, is_prime,
125482         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
125483         Likewise.
125484         (SIZE_MAX): Define if not defined.
125485         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
125486         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
125487         hash_print):
125488         Use const * when possible.
125489         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
125490         (check_tuning): Fix bug: if tuning parameters were very close to
125491         0 or 1, rounding errors could have caused subscript violations.
125492         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
125493         (hash_initialize): Add 'fail:' label
125494         to free table and return NULL, and use it to simplify code.
125495         Use calloc rather than clearing the storage ourself.
125496         (hash_initialize, hash_rehash): Check for arithmetic overflow in
125497         buffer size calculations.
125498         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
125499         Include <stddef.h>, for size_t.
125500         * lib/hash-pjw.c (hash_pjw): Likewise.
125501         Switch to method described by Bruno Haible.
125502         Include <limits.h>, for CHAR_BIT.
125503         (SIZE_BITS): New macro.
125505 2003-10-23  Paul Eggert  <eggert@twinsun.com>
125507         * m4/getline.m4 (AM_FUNC_GETLINE):
125508         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
125509         hosts.  Problem reported by Derek Robert Price in
125510         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
125511         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
125512         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
125514 2003-10-21  Paul Eggert  <eggert@twinsun.com>
125516         * lib/getndelim2.c (getndelim2): When size calculation overflows,
125517         ceiling the allocation at NMAX bytes rather than silently
125518         discarding input bytes before NMAX is reached.  This makes
125519         a difference only if NMAX exceeds SIZE_MAX / 2.
125521         * lib/obstack.c: Merge from glibc.
125522         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
125523         Add libc_hidden_def (_obstack_newchunk).
125524         (_obstack_free) [! defined _LIBC]: Remove.
125525         [defined _LIBC]: Make a strong alias from obstack_free, rather than
125526         a clone of the function body.
125527         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
125528         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
125530         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
125531         glibc.
125532         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
125533         arg to memcpy.
125535         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
125536         (obstack_ptr_grow_fast, obstack_int_grow_fast):
125537         Don't use lvalue casts, as GCC plans to remove support for them
125538         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
125539         was also present in the non-GCC version, indicating that this
125540         code had always been buggy and had never been widely used.
125541         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
125542         Use the fast variant of each macro, rather than copying the
125543         definiens of the fast variant; that way, we'll be more likely to
125544         catch future bugs in the fast variants.
125546 2003-10-20  Bruno Haible  <bruno@clisp.org>
125548         * modules/wait-process: New file.
125549         * MODULES.html.sh (func_all_modules): Add wait-process.
125551 2003-10-20  Bruno Haible  <bruno@clisp.org>
125553         * m4/wait-process.m4: New file.
125555 2003-10-20  Bruno Haible  <bruno@clisp.org>
125557         * lib/wait-process.h: New file, from GNU gettext.
125558         * lib/wait-process.c: New file, from GNU gettext.
125560 2003-10-19  Jim Meyering  <jim@meyering.net>
125562         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
125563         HPUX 10.20.
125565 2003-10-18  Karl Berry  <karl@gnu.org>
125567         * config/config.guess: update from config.
125569 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125571         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
125572         (getgroups): First arg is int, not size_t.
125573         Don't let 'free' mangle errno.
125575 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125577         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
125579 2003-10-16  Karl Berry  <karl@gnu.org>
125581         * config/config.{guess,sub}: update from config.
125583 2003-10-16  Jim Meyering  <jim@meyering.net>
125585         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
125586         memcpy.
125588 2003-10-15  Paul Eggert  <eggert@twinsun.com>
125590         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
125591         (SIZE_MAX): Remove.
125592         (new_exclude, add_exclude_file): Initial size no longer needs to
125593         be a power of 2.
125594         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
125595         our own address arithmetic overflow checking.
125597         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
125598         (fnmatch): Do not alloca more than 2000 wide characters;
125599         instead, use malloc for large buffers.
125600         Check for address arithmetic overflow, and return -1
125601         with errno set to ENOMEM in that case.
125602         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
125603         (NEW_PATTERN): Do not alloca more than 8000 bytes;
125604         instead, return -1.  Check for address arithmetic overflow.
125606 2003-10-14  Paul Eggert  <eggert@twinsun.com>
125608         Handle invalid suffixes and overflow independently, so that
125609         callers can treat them independently as needed.  Fix some bugs in
125610         suffix handling, e.g., "100k@" was not diagnosed as an invalid
125611         suffix for a human-readable blocksize.  The major caller-visible
125612         change is the addition of a new
125613         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
125614         that both overflow and suffix chars were found.
125616         * lib/human.c (humblock): Don't check separately for invalid suffix
125617         char; that is xstrtoumax's job (now that its bug is fixed).
125618         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
125619         INTMAX_MAX]: New macros.
125620         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
125621         TYPE_MAXIMUM): New macros.
125622         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
125623         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
125624         if overflow occurs, as it's what __strtol does and it's more useful
125625         in practice.
125626         (__xstrtol): If __strtol reports some error other than ERANGE,
125627         reflect it to the caller as LONGINT_INVALID.  If it reports
125628         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
125629         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
125630         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
125631         value.
125632         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
125633         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
125634         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
125635         [defined UINTMAX_MAX]: New macros.
125637 2003-10-14  Bruno Haible  <bruno@clisp.org>
125639         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
125641 2003-10-14  Bruno Haible  <bruno@clisp.org>
125643         * m4/sig_atomic_t: New file, from GNU gettext.
125644         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
125646 2003-10-14  Bruno Haible  <bruno@clisp.org>
125648         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
125649         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
125650         Also use volatile where needed.
125652 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125654         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
125655         Change maintainer from Bruno Haible to 'all'.
125657 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125659         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
125661 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125663         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
125664         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
125665         and define in terms of the other primitives.
125666         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
125667         (SIZE_MAX): Define if not already defined.
125668         (array_size_overflow): New function.
125669         (xalloc_die): Abort instead of exiting if 'error' returns.
125670         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
125671         (xmalloc, xrealloc): Use them.
125672         (xcalloc): Check for address arithmetic overflow.
125673         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
125674         a bit faster than strcpy.
125676 2003-10-10  Simon Josefsson  <jas@extundo.com>
125678         * modules/argp (Depends-on): Add restrict and strcase.
125680 2003-10-10  Simon Josefsson  <jas@extundo.com>
125682         * m4/argp.m4: Add AC_C_INLINE.
125684 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125686         Merge getpass from libc, plus a few fixes.
125688         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
125689         Include <stdbool.h>.
125690         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
125691         __fsetlocking to empty.
125692         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
125693         do include <bits/libc-lock.h>.
125694         Do not include <fcntl.h>; not needed.
125695         [_LIBC]: Include <wchar.h>.
125696         (NOTCANCEL_MODE): New macro.
125697         (flockfile, funlockfile) [_LIBC]: New macros.
125698         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
125699         [!_LIBC]: New macros.
125700         (call_fclose): New function.
125701         (getpass): Use it.  Save tty stream separately; this simplifies the
125702         code and makes it more reliable if stdin happens to equal stdout.
125703         Invoke __fsetlocking on tty.
125704         Handle thread cancellation if needed.
125705         Namespace cleanup (use __tcgetattr, __getline).
125706         Use bool for Booleans.
125707         [USE_IN_LIBIO]: Handle wide streams.
125708         [!_LIBC]: Unconditionally do the fseek, since we don't know what
125709         stream might go where.
125711         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
125712         doesn't have to include <stdio.h> before us.
125713         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
125714         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
125715         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
125716         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
125717         if not declared, so that we can use getpass.c code from libc without
125718         rewriting it.
125719         (flockfile, ftrylockfile, funlockfile): New macros.
125721 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125723         * modules/getpass: Depend on stdbool.
125725 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125727         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
125729 2003-10-07  Karl Berry  <karl@gnu.org>
125731         * config/config.{guess,sub}: update from config.
125733 2003-10-06  Jim Meyering  <jim@meyering.net>
125734             Bruno Haible  <bruno@clisp.org>
125736         This lets translators provide better translations for the
125737         "Written by ..." part of --version output.
125738         * lib/version-etc.h: Include stdarg.h.
125739         (version_etc_copyright): Declare as readonly.
125740         (version_etc): Make this function variadic with a NULL-terminated list
125741         of author name strings.
125742         (version_etc_va): New declaration.
125743         * lib/version-etc.c: Include stdarg.h, stdlib.h.
125744         (version_etc_copyright): Declare as readonly.
125745         (version_etc_va): New function. Provide a different translatable string
125746         for each possible number of authors < 10. Abbreviate when there are 10
125747         authors or more.
125748         (version_etc): Make this function variadic. Call version_etc_va.
125749         Suggestion from Gary V. Vaughan.
125751         * lib/long-options.h (parse_long_options): Change prototype: the
125752         authors string is moved to the end and becomes variadic.
125753         * lib/long-options.c: Include stdarg.h.
125754         (parse_long_options): Make this function variadic, too.
125755         Call version_etc_va, not version_etc.
125757 2003-10-06  Bruno Haible  <bruno@clisp.org>
125759         * modules/version-etc-2: Remove file.
125760         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
125762 2003-10-06  Bruno Haible  <bruno@clisp.org>
125764         * modules/fatal-signal: New file.
125765         * MODULES.html.sh (func_all_modules): Add fatal-signal.
125767 2003-10-06  Bruno Haible  <bruno@clisp.org>
125769         * m4/fatal-signal.m4: New file.
125770         * m4/signalblocking.m4: New file, from GNU gettext.
125772 2003-10-06  Bruno Haible  <bruno@clisp.org>
125774         * lib/version-etc-2.h: Remove file.
125775         * lib/version-etc-2.c: Remove file.
125777 2003-10-06  Bruno Haible  <bruno@clisp.org>
125779         * lib/fatal-signal.h: New file, from GNU gettext.
125780         * lib/fatal-signal.c: New file, from GNU gettext.
125782 2003-10-05  Paul Eggert  <eggert@twinsun.com>
125784         * README: Rework advice for preventing empty .o files.
125785         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
125786         not <sys/types.h>.
125788 2003-10-04  Karl Berry  <karl@gnu.org>
125790         * lib/argp*: update from libc.
125792 2003-10-04  Karl Berry  <karl@gnu.org>
125794         * config/config.{guess,sub}: update from config.
125796 2003-10-02  Bruno Haible  <bruno@clisp.org>
125798         * modules/lchown (Include): Add lchown.h.
125799         * modules/time_r (Include): Use "..." syntax.
125800         * modules/xgetdomainname (Include): Add xgetdomainname.h.
125802 2003-10-01  Simon Josefsson  <jas@extundo.com>
125804         * MODULES.html.sh (func_all_modules): Move gethostname from section
125805         'based on' to section 'lacking' POSIX:2001.
125807 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
125809         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
125810         to output mode on the same stream.
125812 2003-09-29  Paul Eggert  <eggert@twinsun.com>
125814         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
125815         Fix arg typo in previous patch.
125817 2003-09-28  Jim Meyering  <jim@meyering.net>
125819         * lib/error.c: Correct cpp indentation.
125821 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125823         * modules/free: New file.
125825 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125827         * m4/free.m4: New file.
125829 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125831         * lib/minmax.h (MIN, MAX)
125832         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
125833         Omit the special code that used __typeof__, since we worry that
125834         it could be more trouble than it's worth.  See:
125835         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
125836         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
125838         * lib/free.c: New file.
125840 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
125842         Trivial fixes to Makefile.am parts of module listings.
125843         * modules/strstr: Append strstr.h to lib_SOURCES.
125844         * modules/strcase: Likewise, for strcase.h.
125846 2003-09-27  Karl Berry  <karl@gnu.org>
125848         * config/mkinstalldirs: update from automake.
125850 2003-09-26  Paul Eggert  <eggert@twinsun.com>
125852         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
125853         (error_tail): Do not loop, reallocating temporary buffer, since
125854         the output cannot contain more wide characters than the input
125855         contains bytes, the size must be big enough already.  This avoids
125856         one potential size overflow calculation.  Check for size overflow
125857         when calculating temporary buffer size.  Free temporary buffer
125858         when done, if it was allocated with malloc; this plugs a memory
125859         leak.  Remove casts from void * to pointers, that are no longer
125860         needed now that we're assuming C89 or better.
125862         Merge error changes from glibc.
125864         * lib/error.c, error.h: Update copyright notice header to match glibc.
125865         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
125866         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
125867         Disable cancellation while printing error.
125868         * lib/error.h: Prepend __ to parameter names.
125870 2003-09-26  Jim Meyering  <jim@meyering.net>
125872         * lib/error.c (error_tail): Move some declarations
125873         into inner scope where the local variables are used.
125875 2003-09-26  Bruno Haible  <bruno@clisp.org>
125877         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
125878         stpncpy().
125879         Don't define stpncpy through config.h; it's now done through stpncpy.h.
125881 2003-09-26  Bruno Haible  <bruno@clisp.org>
125883         * lib/stpncpy.h (gnu_stpncpy): New declaration.
125884         (stpncpy): Define as alias for gnu_stpncpy.
125885         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
125887 2003-09-25  Simon Josefsson  <jas@extundo.com>
125889         * lib/xgetdomainname.h: New file.
125890         * lib/xgetdomainname.c: New file.
125892 2003-09-25  Simon Josefsson  <jas@extundo.com>
125893             Bruno Haible  <bruno@clisp.org>
125895         * modules/getdomainname: New file.
125896         * modules/xgetdomainname: New file.
125897         * MODULES.html.sh (func_all_modules): Add getdomainname,
125898         xgetdomainname.
125900 2003-09-25  Simon Josefsson  <jas@extundo.com>
125901             Bruno Haible  <bruno@clisp.org>
125903         * m4/getdomainname.m4: New file.
125905 2003-09-25  Simon Josefsson  <jas@extundo.com>
125906             Bruno Haible  <bruno@clisp.org>
125908         * lib/getdomainname.h: New file.
125909         * lib/getdomainname.c: New file.
125911 2003-09-25  Karl Berry  <karl@gnu.org>
125913         * lib/argp-fmtstream.c, argp-help.c: update from libc.
125915 2003-09-25  Karl Berry  <karl@gnu.org>
125917         * config/install-sh: update from automake.
125919 2003-09-25  Bruno Haible  <bruno@clisp.org>
125921         * modules/version-etc-2: New file, from modules/version-etc with
125922         modifications.
125923         * MODULES.html.sh (func_all_modules): Add version-etc-2.
125925 2003-09-25  Bruno Haible  <bruno@clisp.org>
125927         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
125928         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
125930 2003-09-24  Simon Josefsson  <jas@extundo.com>
125932         * modules/xgethostname: Add xgethostname.h.
125934 2003-09-24  Paul Eggert  <eggert@twinsun.com>
125936         * lib/linebuffer.c (freebuffer): Don't free the argument, just
125937         the buffer associated with the argument.  Bug reported by
125938         Simon Josefsson.
125940 2003-09-24  Paul Eggert  <eggert@twinsun.com>
125942         * README: Document assumptions that 'int' is at least 32 bits
125943         wide, that integer arithmetic is 2's complement without overflow,
125944         that there are no holes in integer values, that adding sizes of
125945         two nonoverlapping objects can't overflow, and that all-bits-zero
125946         yields scalar zero.  Fix spelling and capitalization typos.
125948 2003-09-19  Karl Berry  <karl@gnu.org>
125950         * lib/argp.h: update from libc.
125952 2003-09-17  Paul Eggert  <eggert@twinsun.com>
125954         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
125955         to avoid spurious warnings like "AC_RUN_IFELSE was called before
125956         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
125958 2003-09-17  Paul Eggert  <eggert@twinsun.com>
125960         * gnulib-tool: Use "test -h", not "test -L", for portability
125961         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
125962         (tags_regexp): Remove, since \| doesn't conform to POSIX.
125963         (sed_extract_prog): Issue s commands one-by-one, rather than
125964         using \| in one s command.
125966 2003-09-16  Paul Eggert  <eggert@twinsun.com>
125968         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
125969         input error, instead of returning NULL the next time we are called
125970         (and therefore losing track of errno).
125972 2003-09-16  Bruno Haible  <bruno@clisp.org>
125974         * gnulib-tool (func_create_testdir): Warn about duplicated
125975         dependencies.
125977 2003-09-15  Paul Eggert  <eggert@twinsun.com>
125979         * modules/argmatch, modules/fatal, modules/obstack,
125980         modules/xalloc, modules/xgethostname: Sort dependencies by
125981         importance, not alphabetically.
125983 2003-09-15  Paul Eggert  <eggert@twinsun.com>
125985         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
125986         fails, so that the caller gets the proper errno.
125988         * lib/readutmp.c (read_utmp): Likewise.
125989         Check for fstat error.  Close stream and free storage
125990         when failing.
125992 2003-09-14  Karl Berry  <karl@gnu.org>
125994         * config/srclist.txt (strdup.c): disable for c89 changes.
125996 2003-09-14  Jim Meyering  <jim@meyering.net>
125998         * lib/getloadavg.c: Correct cpp indentation.
125999         * lib/strdup.c: Likewise.
126000         * lib/vasnprintf.c: Likewise.
126002 2003-09-14  Bruno Haible  <bruno@clisp.org>
126004         * modules/fwriteerror: New file.
126005         * MODULES.html.sh (func_all_modules): Add fwriteerror.
126007 2003-09-14  Bruno Haible  <bruno@clisp.org>
126009         * lib/fwriteerror.h: New file.
126010         * lib/fwriteerror.c: New file.
126012 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126014         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
126015         modules/xgethostname, modules/xalloc: Depend on exit.
126017 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126019         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
126021         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
126022         and AC_MINIX, too, so that their extensions are available.
126024         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
126025         This macro has been superseded by gl_BACKUPFILE.
126027         More patches to assume C89 or better.
126029         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
126031         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
126032         unconditionally.
126033         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
126034         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
126035         Include <string.h>, <stdlib.h> unconditionally.
126036         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
126037         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
126038         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
126039         headers or for string.h.
126040         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
126041         or strtoul.
126043         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
126044         headers.
126045         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
126046         * m4/userspec.m4 (gl_USERSPEC): Likewise.
126047         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
126048         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
126049         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
126050         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
126051         memcpy, memset.
126052         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
126053         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
126054         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
126055         strtol.
126056         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
126057         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
126058         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
126059         strtoul.
126061 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126063         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
126064         * lib/obstack.c [!defined _LIBC]: Likewise.
126065         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
126066         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
126067         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
126069         More changes to assume C89 or better.
126071         * lib/error.c (error_tail): Assume vprintf.
126073         * lib/argmatch.c (getenv): Remove decl.
126074         * lib/progreloc.c (get_full_program_name): Define via prototype.
126075         * lib/setenv.c (clearenv): Likewise.
126076         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
126077         needed.
126078         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
126079         (malloc, memcpy): Remove decls.
126080         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
126081         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
126082         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
126083         (memcpy): Remove macro.
126084         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
126085         (__P): Remove.  All uses removed.
126086         (PTR): Remove.  All uses changed to void *.
126087         (CHAR_BIT, NULL): Remove.
126088         (spaces, zeros, memset_space, memset_zero)
126089         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
126090         Remove.
126091         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
126092         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
126093         Define with prototype.
126094         Remove now-unnecessary prototype decl.
126095         (extra_args_spec): Assume ANSI C.  All uses changed.
126096         (extra_args_spec_iso): Remove.
126097         (my_strftime, emacs_strftimeu): Define via prototype.
126098         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
126099         unconditionally.
126100         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
126101         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
126102         (strtoul, strtol): Remove decls.
126103         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
126104         LONG_MAX): Remove.
126105         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
126106         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
126107         (LOCALE_PARAM_PROTO): New macro.
126108         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
126109         (INTERNAL (strtol), strtol): Define with a prototype.
126110         (PARAMS): Remove.  All uses removed.
126111         * lib/tempname.c: Include <string.h> unconditionally.
126112         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
126113         * lib/xgethostname.c (main): Define with a prototype.
126114         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
126115         Include <stdlib.h> unconditionally.
126116         (calloc, malloc, realloc, free): Remove decls.
126117         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
126118         Include <stdlib.h> unconditionally.  Sort include file names.
126119         (strtod): Remove.
126120         (xstrtod): Define with a prototype.
126121         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
126122         (strtol, strtoul): Remove decls.
126124 2003-09-11  Paul Eggert  <eggert@twinsun.com>
126126         More patches to assume C89 or better.
126127         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
126128         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
126129         string.h, memchr, STDC_HEADERS.
126131 2003-09-11  Paul Eggert  <eggert@twinsun.com>
126133         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
126134         Include <stdlib.h>, <string.h> unconditionally.
126135         Remove now-unnecessary cast to char *.
126136         * lib/strnlen.c: Include <string.h> unconditionally.
126137         * lib/yesno.c (yesno): Define with a prototype.
126139 2003-09-11  Bruno Haible  <bruno@clisp.org>
126141         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
126143 2003-09-10  Jim Meyering  <jim@meyering.net>
126145         * lib/error.c: Correct indentation of cpp directives.
126147 2003-09-10  Bruno Haible  <bruno@clisp.org>
126149         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
126150         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
126151         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
126152         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
126153         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
126154         <stdlib.h> and <string.h> checks.
126155         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
126156         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
126158 2003-09-10  Bruno Haible  <bruno@clisp.org>
126160         * lib/strcspn.c: Include <string.h> unconditionally.
126161         * lib/strpbrk.c: Include <string.h> unconditionally.
126162         * lib/strstr.c: Include <string.h> unconditionally.
126163         * lib/unicodeio.c: Include <string.h> unconditionally.
126164         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
126165         * lib/unsetenv.c: Likewise.
126166         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
126167         * lib/yesno.c: Include <stdlib.h> unconditionally.
126168         (rpmatch): Add prototype.
126170 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126172         More patches to assume C89 or better.
126173         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
126174         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
126175         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
126176         or for string.h.
126177         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
126178         stdlib.h.
126179         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
126180         C headers.
126181         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
126182         string.h.
126183         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
126184         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
126185         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
126186         or for string.h.
126187         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
126188         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
126189         C headers.
126190         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
126191         memcpy.
126192         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
126193         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
126194         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
126195         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
126196         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
126197         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
126198         string.h, free.
126199         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
126200         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
126201         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
126202         C headers, or for string.h.
126203         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
126204         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
126205         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
126206         headers, memory.h, stdlib.h, string.h, strings.h.
126207         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
126208         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
126209         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
126210         strchr.
126211         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
126212         headers, memory.h, string.h.
126213         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
126214         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
126215         free.
126216         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
126217         headers.
126218         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
126219         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
126220         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
126221         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
126222         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
126224 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126226         More K&R removal.
126228         * lib/acosl.c (main): Use a prototype.
126229         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
126230         tanl.c: Likewise.
126232         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
126234         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
126235         (getopt, etopt_long, getopt_long_only, _getopt_internal)
126236         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
126237         with a prototype.
126238         * lib/getopt.c (const): Remove macro.
126239         Include <string.h> unconditionally.
126240         (my_index): Remove; all uses changed to strchr.
126241         (strlen): Remove decl.
126242         (exchange): Remove forward decl; no longer needed.
126243         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
126244         Define with prototype.
126245         * lib/getopt1.c (const): Remove macro.
126246         (getopt_long, getopt_long_only, main): Define with prototype.
126248         * lib/getugroups.c: Include <string.h> unconditionally.
126250         * lib/getusershell.c: Include <stdlib.h> unconditionally.
126251         (getusershell, setusershell, endusershell, readname, main):
126252         Define with prototypes.
126254         * lib/group-member.c: Include group-member.h first.
126255         Include <stdlib.h> unconditionally.
126257         * lib/hard-locale.c: Include hard-locale.h first.
126258         Include <stdlib.h>, <string.h> unconditionally.
126260         * lib/hash.c (free, malloc): Remove decls.
126261         Include <stdlib.h> unconditionally.
126263         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
126264         (getenv): Do not declare.
126266         * lib/idcache.c: Include <string.h> unconditionally.
126268         * lib/long-options.c: Include long-options.h first, to test interface.
126269         Include <stdlib.h> unconditionally.
126271         * lib/makepath.c: Include makepath.h first, to test interface.
126272         Include <stdlib.h> and <string.h> unconditionally.
126274         * lib/linebuffer.c: Include <stdlib.h>.
126275         (free): Remove decl.
126277         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
126278         stddef.h. rpl_malloc returns void *, not char *.
126279         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
126280         prototype.
126282         * lib/md5.h: Include <limits.h> unconditionally.
126283         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
126284         (__P): Remove; all uses removed.
126285         * lib/md5.c: Include "md5.h" first.
126286         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
126287         md5_buffer, md5_process_bytes, md5_process_block):
126288         Define with prototypes.
126289         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
126290         * lib/sha.c: Include "sha.h" first.
126291         Include <stdlib.h>, <string.h> unconditionally.
126293         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
126294         * lib/memcmp.c (__ptr_t): Likewise.
126295         * lib/memrchr.c (__ptr_t): Likewise.
126296         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
126297         Include <string.h> unconditionally.
126298         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
126299         * lib/memchr.c: Include <stdlib.h> unconditionally.
126300         * lib/memchr.c (LONG_MAX): Remove.
126301         * lib/memrchr.c (LONG_MAX): Likewise.
126302         * lib/memchr.c (__memchr): Define via a prototype.
126303         * lib/memrchr.c (__memrchr): Likewise.
126304         * lib/memcmp.c (__P): Remove, and remove all uses.
126305         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
126306         Remove forward decls; no longer needed.
126307         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
126308         Use types required by C89 in prototype.
126310         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
126311         * lib/savedir.c: Likewise.
126312         * lib/mkdir.c (free): Remove decl.
126313         * lib/rmdir.c (rmdir): Define with a prototype.
126314         * lib/savedir.c: Include savedir.h first, to test interface.
126316         * lib/mktime.c (STDC_HEADERS): Remove.
126317         Include <stdlib.h>, <string.h> unconditionally.
126319         * lib/modechange.c: Include <stdlib.h> unconditionally.
126320         (malloc): Remove decl.
126322         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
126323         (free): Remove decl.
126325         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
126326         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
126327         (This type really should be intptr_t, but that's a C99ism.)
126328         (_obstack_memcpy): Remove: all uses changed to memcpy.
126329         Include <string.h> unconditionally.
126330         (struct obstack): Assume __STDC__ for types of members
126331         chunkfun, freefun, extra_arg.
126332         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
126333         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
126334         obstack_begin, obstack_specify_allocation,
126335         obstack_specify_allocation_with_arg, obstack_chunkfun,
126336         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
126337         Remove unprototyped decls and the macros that use them.
126338         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
126339         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
126340         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
126341         (defined __STDC__ && __STDC__)]:
126342         Remove nonprototyped code.
126343         Include <stdlib.h> unconditionally.
126344         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
126345         _obstack_allocated_p, _obstack_free, obstack_free,
126346         _obstack_memory_used, print_and_abort):
126347         Define using prototypes.
126348         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
126349         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
126350         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
126351         obstack_next_free, obstack_object_size, obstack_room) [0]:
126352         Remove unused, unprototyped code.
126354         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
126356         * lib/physmem.c (physmem_total, physmem_available, main): Define
126357         with prototypes.
126359         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
126360         (main): Define with a prototype.
126362         * lib/posixver.c (getenv): Remove decl.
126364         * lib/putenv.c (malloc): Returns void *, not char *.
126365         Include <string.h> unconditionally.
126366         (strchr, memcpy, NULL): Do not define.
126368         * lib/readtokens.c: Include readtokens.h first, to test interface.
126369         Include <stdlib.h>, <string.h> unconditionally.
126370         (init_tokenbuffer): Define with a prototype.
126372         * lib/regex.c (PARAMS): Remove.  All uses removed.
126373         All uses of _RE_ARGS removed, too.
126374         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
126375         unconditionally.
126376         (bzero): Assume memset exists.
126377         (memcmp, memcpy, NULL): Remove.
126378         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
126379         char, or assignments to local vars of type signed char.
126380         (init_syntax_once, PREFIX(extract_number_and_incr),
126381         PREFIX(print_partial_compiled_pattern),
126382         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
126383         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
126384         PREFIX(regex_grow_registers), PREFIX(regex_compile),
126385         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
126386         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
126387         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
126388         wcs_compile_range, byte_compile_range, truncate_wchar,
126389         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
126390         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
126391         count_mbs_length, wcs_re_match_2_internal,
126392         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
126393         PREFIX(alt_match_null_string_p),
126394         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
126395         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
126396         regfree, PREFIX(extract_number)): Define with prototype.  Remove
126397         now-unnecessary declaration, if any.
126398         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
126399         regcomp, regexec):
126400         Remove now-unnecessary casts among pointer types.
126401         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
126403         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
126404         (free): Remove decl.
126406         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
126408         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
126409         (free): Remove decl.
126411         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
126412         * lib/xgetcwd.c: Likewise.
126414         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
126415         (free): Remove decl.
126417         * lib/strchrnul.c (strchrnul): Define with a prototype.
126418         Fix bug: c_in was not converted to char before searching.
126420         The following changes are not K&R related:
126422         * lib/group-member.h: Include <sys/types.h>, so that this file is
126423         self-contained.
126424         * lib/makepath.h: Likewise.
126426         * lib/getusershell.c (readname, default_index, line_size, readname):
126427         Use size_t, not int, for sizes.
126428         (readname): If the size overflows, report an error instead of
126429         looping forever.
126431 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126433         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
126434         libc.
126436 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126438         * README: New section: portability guidelines.
126440 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126442         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
126443         C89 spec.
126445 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126447         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
126449 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126451         Assume C89 or better; remove K&R cruft.
126452         A few of these changes were first proposed by Derek Robert Price
126453         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
126455         * lib/addext.c: Include <string.h> unconditionally.
126456         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
126457         Don't declare getenv or malloc.
126459         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
126460         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
126461         (NULL): Remove.
126462         (find_stack_direction, alloca): Use prototypes.
126464         * lib/atexit.c (atexit): Define using a prototype.
126466         * lib/basename.c, dirname.c, stripslash.c:
126467         Include <string.h> unconditionally.
126469         * lib/bcopy.c: Include <stddef.h>.
126470         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
126472         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
126474         * lib/error.h (error, error_at_line, error_print_progname)
126475         [! (defined (__STDC__) && __STDC__)]: Remove decls.
126476         * lib/error.c: Include error.h first, to check interface.
126477         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126478         (VA_START): Remove; all uses changeed to va_start.
126479         (exit, strerror): Remove decls.
126480         (error_print_progname): Prototype uncondionally.
126481         Don't include <errno.h>; no longer needed.
126482         (private_strerror): Remove.
126483         (error_tail): Always define.
126484         (error, error_at_line): Assume C89 or better; always use prototypes.
126485         * lib/fatal.c: Include "fatal.h" first, to test interface.
126486         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126487         (VA_START): Remove; all uses changed to va_start.
126488         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
126489         this case.
126490         (exit): Remove decl.
126491         (fatal): Prototype unconditionally.  Assume va_start works.
126492         Abort at end, to pacify gcc.
126494         * lib/euidaccess.c (main): Define with a prototype.
126496         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
126498         * lib/exitfail.c: Include <stdlib.h> unconditionally.
126500         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
126501         prototypes.
126502         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
126503         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
126504         (getenv): Remove decl.
126505         (fnmatch): Define using a prototype.
126506         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
126507         (FCT): Define using a prototype.
126509         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
126511         * lib/gethostname.c: Include <stddef.h>.
126512         (gethostname): Define with prototype.  Length is size_t, not int.
126514 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126516         Assume C89 or better; remove K&R cruft.
126517         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
126518         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
126519         string.h, getenv, malloc.
126520         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
126521         headers.
126522         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
126523         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
126524         do not check for strerror.
126525         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
126526         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
126527         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
126528         do not check for doprnt or vprintf.
126529         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
126530         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
126532 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126534         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
126535         getversion.c should have been removed then, but was accidentally
126536         preserved.
126538         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
126539         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
126541 2003-09-08  Karl Berry  <karl@gnu.org>
126543         * config/config.sub, config.guess, srclistvars.sh: update from savannah
126544                 config, forget about prep.
126546         * config/depcomp, missing: update from automake.
126548 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126550         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
126551         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126553 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126555         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
126556         copy_tm_result.  Bug reported by Simon Josefsson in
126557         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126559 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126561         * m4/time_r.m4: New file.
126562         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
126563         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
126564         is. Check for timegm declaration.
126565         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
126566         Do not check for gmtime_r.
126567         Replace mktime if __mktime_internal does not exist and if mktime
126568         hasn't been replaced already.
126570 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126572         * lib/time_r.c, lib/time_r.h: New files.
126574         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
126575         __localtime_r.
126576         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
126577         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
126579         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
126580         __gmtime_r.
126581         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
126582         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
126583         Include <time_r.h>.
126585         * lib/timegm.c: Switch to glibc implementation, with the following
126586         changes:
126587         [defined HAVE_CONFIG_H]: Include <config.h>.
126588         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
126589         (__mktime_internal) [!defined _LIBC]: New decl.
126590         (__gmtime_r) [!defined _LIBC]: New macro and function.
126591         (timegm): Use a prototype, since gnulib assumes C89.
126592         Do not bother declaring tmp to be const, as it's not really usefu.
126593         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
126594         (timegm): Declare only if HAVE_DECL_TIMEGM.
126596 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126598         * MODULES.html.sh (func_all_modules): Add time_r.
126599         * modules/time_r: New file.
126600         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
126601         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
126603 2003-09-03  Paul Eggert  <eggert@twinsun.com>
126605         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
126606         Bug reported by Lute Kamstra in
126607         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
126609         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
126610         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
126611         course with correspondingly smaller numbers for tomorrow and
126612         yesterday.  From Tadayoshi Funaba.  Originally installed into
126613         sh-utils on 1999-08-07, but the patch got lost (I guess during the
126614         coreutils merge?).
126616 2003-08-31  Simon Josefsson  <jas@extundo.com>
126618         * modules/timegm: New file.
126619         * MODULES.html.sh (func_all_modules): Add timegm.
126621 2003-08-31  Simon Josefsson  <jas@extundo.com>
126623         * m4/timegm.m4: New file.
126625 2003-08-31  Simon Josefsson  <jas@extundo.com>
126627         * lib/timegm.h: New file.
126628         * lib/timegm.c: New file.  Based on
126629         wget-1.8.2/src/http.c:mktime_from_utc.
126631 2003-08-31  Karl Berry  <karl@gnu.org>
126633         * lib/argp.h: update from libc.
126635 2003-08-28  Bruno Haible  <bruno@clisp.org>
126637         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
126638         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
126639         followed by '#define fnmatch fnmatch_posix' gives an error.
126641 2003-08-28  Bruno Haible  <bruno@clisp.org>
126643         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
126644         warning on QNX, which defines O_BINARY to 000000.
126646 2003-08-27  Jim Meyering  <jim@meyering.net>
126648         * m4/mkstemp.m4: Require that the system mkstemp be able to create
126649         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
126650         would fail after 32.  Reported by Danny Levinson.  Details here:
126651         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
126653 2003-08-24  Bruno Haible  <bruno@clisp.org>
126655         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
126656         MSVC7 <stdio.h> is included later.
126658 2003-08-22  Simon Josefsson  <jas@extundo.com>
126660         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
126662 2003-08-20  Karl Berry  <karl@gnu.org>
126664         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
126666 2003-08-20  Bruno Haible  <bruno@clisp.org>
126668         * modules/progname: New file.
126669         * MODULES.html.sh (func_all_modules): Add progname.
126671 2003-08-20  Bruno Haible  <bruno@clisp.org>
126673         * lib/progname.h: New file, from GNU gettext.
126674         * lib/progname.c: New file, from GNU gettext.
126675         * lib/progreloc.c: New file, from GNU gettext.
126677 2003-08-19  Jim Meyering  <jim@meyering.net>
126679         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
126680         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
126682 2003-08-19  Bruno Haible  <bruno@clisp.org>
126684         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
126685         more.
126687 2003-08-19  Bruno Haible  <bruno@clisp.org>
126689         * lib/xstrdup.c: Assume <string.h> exists.
126691 2003-08-18  Paul Eggert  <eggert@twinsun.com>
126693         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
126694         in makefile rules.
126696 2003-08-18  Jim Meyering  <jim@meyering.net>
126698         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
126699         * m4/lib-ld.m4: Likewise.
126701 2003-08-18  Jim Meyering  <jim@meyering.net>
126703         * lib/setenv.h: Indent nested cpp directive.
126704         * lib/vasnprintf.c: Remove trailing blanks.
126706 2003-08-17  Simon Josefsson  <jas@extundo.com>
126708         * modules/xstrndup: New file.
126709         * MODULES.html.sh (func_all_modules): Add xstrndup.
126711 2003-08-17  Simon Josefsson  <jas@extundo.com>
126713         * modules/argp: Fix autoconf macro name. Add more dependencies.
126715 2003-08-17  Simon Josefsson  <jas@extundo.com>
126717         * m4/xstrndup.m4: New file.
126719 2003-08-17  Simon Josefsson  <jas@extundo.com>
126721         * m4/argp.m4: New file.
126723 2003-08-17  Simon Josefsson  <jas@extundo.com>
126724             Bruno Haible  <bruno@clisp.org>
126726         * lib/xstrndup.h: New file.
126727         * lib/xstrndup.c: New file.
126729 2003-08-17  Bruno Haible  <bruno@clisp.org>
126731         * modules/strndup (Files, Include): Add lib/strndup.h.
126733 2003-08-17  Bruno Haible  <bruno@clisp.org>
126735         * modules/euidaccess (Files): Add lib/euidaccess.h.
126737 2003-08-17  Bruno Haible  <bruno@clisp.org>
126739         * lib/strndup.h: New file.
126741 2003-08-17  Bruno Haible  <bruno@clisp.org>
126743         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
126744         like AC_GNU_SOURCE.
126745         * modules/extensions (configure.ac): Comment out the invocation of
126746         gl_USE_SYSTEM_EXTENSIONS.
126748 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126750         Merges from coreutils, etc.
126751         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
126752         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
126753         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
126754         fixing a typo.
126755         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
126756         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
126758 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126760         Document merge from coreutils.
126761         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
126762         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
126763         * modules/utime: Add m4/utimes-null.m4.
126765 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126767         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
126768         space, undoing this 2003-08-12 change:
126769         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126771 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126773         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
126774         strtoul.c from libc, undoing this 2003-08-12 change:
126775         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126777 2003-08-16  Jim Meyering  <jim@meyering.net>
126779         Merges from coreutils.
126780         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
126781         prefix.  Adjust cache variables similarly.  Create 500 rather than
126782         just 300 files, to exercise bug on Darwin6.5, too.
126783         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
126784         $missing_dir.
126785         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
126786         AM_SYS_POSIX_TERMIOS.
126787         Reported by mkc@mathdogs.com.
126788         Also change use of $am_cv_sys_posix_termios
126789         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
126790         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
126791         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
126792         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
126793         in /proc/mounts until it finds one with matching device number.  This
126794         is unnecessary when the FILE argument *is* a mount point.  No stat call
126795         is necessary in that case.  So, disable the statvfs-testing code on
126796         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
126797         as RedHat bug# 84846.
126798         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
126799         to 1MB, so as not to render systems with no stack size limit (e.g.,
126800         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
126801         Include <unistd.h>.  On some systems,
126802         it is required for the definition of _SC_PAGESIZE.
126804 2003-08-16  Jim Meyering  <jim@meyering.net>
126806         Merge from coreutils.
126807         * lib/xstrtoimax.c: #else #if -> #elif.
126808         * lib/xstrtoumax.c: Likewise.
126810 2003-08-16  Jim Meyering  <jim@meyering.net>
126812         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
126813         * m4/utimes.m4: Removed.
126814         * m4/utimes-null.m4: Renamed from utimes.m4.
126816         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
126817         to 1MB, so as not to render systems with no stack size limit (e.g.,
126818         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
126819         Include <unistd.h>.  On some systems,
126820         it is required for the definition of _SC_PAGESIZE.
126822 2003-08-16  Jim Meyering  <jim@meyering.net>
126823         and Paul Eggert  <eggert@cs.ucla.edu>
126825         Merges from coreutils, etc.
126827         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
126828         using the latest version from cvs.  This avoids problems with #line
126829         directives using a vendor (Sun) compiler.
126830         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
126831         Don't set GETGROUPS_LIB here; now it's
126832         done via getgroups.m4's wrapper function.
126833         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
126834         rather than just in sh-util/configure.in, so that the
126835         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
126836         same.
126837         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
126838         AC_FUNC_GETLOADAVG where to find getloadavg.c.
126839         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
126840         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
126841         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
126842         Remove code that is now done by the newly-required macros.
126843         Append $(EXEEXT) to DF_PROG.
126844         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
126845         Do not invoke or require the following here,
126846         since prereq.m4 or some gnulib .m4 now does this for us:
126847         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
126848         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
126849         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
126850         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
126851         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
126852         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
126853         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
126854         AC_FUNC_OBSTACK.
126855         Do not replace the following functions, as this is now the job
126856         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
126857         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
126858         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
126859         atexit getpass, strdup, getpagesize.
126860         Replace 'raise'.
126861         Do not check for the following functions, as this is now the job
126862         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
126863         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
126864         setregid.
126865         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
126866         Check for sys/sysctl.h.
126867         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
126868         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
126869         of checking for ssize_t ourselves.
126871         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
126872         Require every macro that gnulib/modules/* suggests for us.
126873         (jm_PREREQ_ADDEXT): New macro.
126874         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
126875         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
126877         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
126878         (gl_PHYSMEM): Use it.
126879         Also check for `table' function.
126880         Check for new headers and functions.
126881         Add check for sys/sysmp.h.
126882         With suggestions from Kaveh Ghazi.
126883         Ignore headers that are present but cannot be compiled.  This
126884         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
126885         C 5.4.
126887 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126889         Document merge from coreutils.
126890         * modules/userspec: Depend on posixver.
126891         * modules/strftime: Depend on tzset.
126893 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126895         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
126896         rather than tab, after '#' in shell-script copyright notices.
126897         Suggested by Bruno Haible.
126899 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126901         * config/srclist-update: Use three spaces, rather than tab, after '#'
126902         in shell-script copyright notices.  Suggested by Bruno Haible.
126903         Remove unnecessary parenthesization in regular expression.
126905 2003-08-15  Jim Meyering  <jim@meyering.net>
126907         Merge from coreutils.
126908         * lib/xgethostname.c: Include <stdlib.h>.
126909         (xghostname): Don't exit for anything other than memory-related
126910         failure; just return NULL.
126911         * lib/userspec.c: Include "posixver.h".
126912         (parse_user_spec): Accept `.' as a separator only
126913         in pre-POSIX-200112 mode.
126914         * lib/strtoimax.c: Use #elif rather than #else #if.
126915         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
126916         Remove function, now that we can rely on a working tzset function.
126917         [!_LIBC]: Ensure that the required autoconf test has been run.
126918         [!defined _NL_CURRENT && HAVE_STRFTIME]:
126919         Use underlying_strftime for %r.
126920         * lib/sha.c: Merge in some clean-up and optimization changes from
126921         glibc.
126922         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
126923         Ensure that it is a multiple of 64.
126924         Rearrange loop exit tests so as to avoid performing an
126925         additional fread after encountering an error or EOF.
126926         * lib/realloc.c: Update copyright date.
126928 2003-08-15  Jim Meyering  <jim@meyering.net>
126929         and Paul Eggert  <eggert@twinsun.com>
126931         Merge from coreutils.
126932         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
126933         member but strut utmpx does not.  Needed for AIX 4.3.3.
126934         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
126936 2003-08-15  Jim Meyering  <jim@meyering.net>
126937         and Paul Eggert  <eggert@cs.ucla.edu>
126939         Merges from coreutils, etc.
126940         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
126941         Require gl_FUNC_TZSET_CLOBBER.
126942         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
126943         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
126944         members.
126946 2003-08-14  Paul Eggert  <eggert@twinsun.com>
126948         Help the merge from coreutils.
126949         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
126950         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
126951         * m4/tzset.m4: Use it too.
126953 2003-08-14  Paul Eggert  <eggert@twinsun.com>
126955         * modules/tzset: New file.
126957 2003-08-14  Jim Meyering  <jim@meyering.net>
126959         Merges from coreutils.
126960         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
126961         variable names, rather than @FNMATCH_H@.
126962         * modules/alloca: Likewise for $(ALLOCA_H).
126964         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
126965         the three copies of the literal target, `fnmatch.h'.
126966         * modules/alloca (alloca.h): Likewise.
126968 2003-08-14  Jim Meyering  <jim@meyering.net>
126970         Merge from coreutils.
126971         * m4/tzset.m4: New file.
126972         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
126973         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
126974         otherwise, AIX 5.1 systems would end up using the latter.
126975         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
126976         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
126977         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
126978         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
126980 2003-08-14  Jim Meyering  <jim@meyering.net>
126982         Merge from coreutils.
126983         * lib/obstack.h: Whitespace changes.
126984         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
126985         and xcalloc return values.
126986         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
126987         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
126988         hang on OSF/1 5.1 for DIR on both local and remote file systems.
126989         Reported by (and fix confirmed by) Nelson H. F. Beebe.
126990         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
126991         error from mntctl.
126992         Use mntctl's return value to drive the entry-processing loop, since
126993         we can't rely on the value of the vmt_length member in the last
126994         entry.  On some systems doing so could result in exhausting
126995         virtual memory.  Based in part on a patch from Mike Jetzer.
126997 2003-08-14  Jim Meyering  <jim@meyering.net>
126998         and Paul Eggert  <eggert@twinsun.com>
127000         Merges from coreutils, plus other fixes.
127001         * lib/physmem.c: Merge in portability changes from gcc/libiberty
127002         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
127003         for credits and details.  Thanks to Kaveh Ghazi for helping
127004         to keep these files in sync.
127005         (ARRAY_SIZE): Define it.
127006         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
127007         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
127008         (memcasecmp): Don't assume size_t fits in unsigned int.
127009         Remove casts and duplicate code.
127010         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
127011         (memcpy): Remove definition.
127012         Merge in some clean-up and optimization changes from glibc.
127013         [BLOCKSIZE]: Move definition to top of file.
127014         Ensure that it is a multiple of 64.
127015         Rearrange loop exit tests so as to avoid performing an
127016         additional fread after encountering an error or EOF.
127017         * lib/md5.h (md5_uintptr): Define.
127018         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
127019         return to the initial working directory.  Preserve errno
127020         for caller.
127021         * lib/idcache.c: Include "xalloc.h".
127022         (xmalloc, xrealloc): Remove decls.
127023         (getuser): Remove casts no longer required in C89.
127024         * lib/human.c: Include stdio.h, for sprintf.
127025         * lib/group-member.c: Include "xalloc.h".
127026         (xmalloc, xrealloc): Remove decls.
127027         (get_group_info): Remove casts no longer required in C89.
127028         * lib/getusershell.c (readname): Remove casts no longer required in
127029         C89.
127030         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
127031         * lib/getline.c: Whitespace fix, from coreutils.
127033 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127035         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
127036         Check for isascii.
127038         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127039         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127040         Undo previous (whitespace-only) change.
127042 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127044         * lib/exclude.c: Include <ctype.h>
127045         (IN_CTYPE_DOMAIN): New macro.
127046         (is_space): New fn.
127047         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
127048         and empty lines.
127050         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
127051         Undo previous (whitespace-only) change.
127053 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127055         * config/srclist-update: Change update back to the old behavior,
127056         leaving whitespace alone.  Use one 'sed' command rather than a
127057         pipeline.
127058         (fixlicense): Now a variable, not a function.
127059         (remove_trailing_blanks): Remove.
127060         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
127061         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
127062         Undo previous (whitespace-only) change.
127064 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127066         Merge from coreutils.
127067         * modules/euidaccess: Add lib_SOURCES, include for new
127068         file euidaccess.h
127070 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127072         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127073         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127074         Normalize leading white space and remove trailing white space.
127076         Merge from coreutils
127077         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
127079         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
127080         0.12.1.  These files are now being upgraded automatically by
127081         ../config/srclist-update.
127083 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127085         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
127086         Normalize leading white space and remove trailing white space.
127087         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
127088         notice, as per ../config/srclist-update.
127090         Merge from coreutils.
127091         * lib/euidaccess.h: New file.
127092         * lib/euidaccess.c: Include it.
127093         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
127094         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
127095         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
127097 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127099         * config/srclist-update: Add copyright notice.
127100         (remove_id_lines, remove_trailing_blanks): New constants.
127101         (fixfile): Use them to normalize spacing a bit in copied files.
127102         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
127103         Normalize leading white space and remove trailing white space.
127105         * config/texinfo.tex: Sync with texinfo.
127107         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
127108         strtoul.c from libc, to merge coreutils whitespace changes.
127110         * config/srclist.txt: Get the following m4 files from gettext:
127111         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
127112         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
127113         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
127114         wint_t.m4.
127116 2003-08-12  Karl Berry  <karl@gnu.org>
127118         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
127119         been made.
127121 2003-08-11  Paul Eggert  <eggert@twinsun.com>
127123         * modules/gnu-source, m4/gnu-source.m4:
127124         Remove; we're assuming Autoconf 2.54 or later now.
127125         Suggested by Bruno Haible.
127126         * MODULES.html.sh (func_all_modules): Remove gnu-source.
127128 2003-08-11  Bruno Haible  <bruno@clisp.org>
127130         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
127132 2003-08-11  Bruno Haible  <bruno@clisp.org>
127134         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
127135         (vasnprintf): Use it instead of wcslen.
127137 2003-08-11  Bruno Haible  <bruno@clisp.org>
127139         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
127140         value to ensure that _Bool promotes to int. Use #define for _Bool when
127141         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
127143 2003-08-10  Karl Berry  <karl@gnu.org>
127145         * lib/regex.h: update from libc (whitespace fix).
127147 2003-08-09  Paul Eggert  <eggert@twinsun.com>
127149         Merge some files from coreutils.  These changes were
127150         originally made by Jim Meyering.
127151         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
127152         many older Unixes require this.
127153         * lib/alloca.c (alloca): Remove cast to argument of free;
127154         no longer needed in C89.
127155         * lib/alloca_.h, regex.h: Fix white space to match
127156         what GNU indent does.
127158 2003-08-09  Paul Eggert  <eggert@twinsun.com>
127160         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
127161         apparently Emacs's Unicode mode got confused before my 2003-08-05
127162         checkin.
127164 2003-08-08  Paul Eggert  <eggert@twinsun.com>
127166         * m4/extensions.m4: New file.
127167         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
127168         Require gl_USE_SYSTEM_EXTENSIONS.
127169         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
127170         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
127172 2003-08-08  Paul Eggert  <eggert@twinsun.com>
127174         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
127175         * modules/extensions, modules/gnu-source: New files.
127176         * modules/timespec, modules/unlocked-io: Depend on extensions.
127178 2003-08-07  Paul Eggert  <eggert@twinsun.com>
127180         * modules/restrict: New file.
127181         * MODULES.html.sh (func_all_modules): Add restrict.
127182         * modules/regex: Depend on restrict.
127184 2003-08-07  Paul Eggert  <eggert@twinsun.com>
127186         * m4/restrict.m4: New file.
127187         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
127189 2003-08-07  Bruno Haible  <bruno@clisp.org>
127191         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
127192         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
127194 2003-08-07  Bruno Haible  <bruno@clisp.org>
127196         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
127197         makes the module 'getndelim2' compatible with the module 'getline'.
127199 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127201         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
127202         byte with "\201" to avoid glitches when editing that source file
127203         with multi-gnome-terminal.
127205 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127207         * lib/bumpalloc.h: Remove.
127209 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127211         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
127212         * modules/bumpalloc: Remove.
127214 2003-08-04  Paul Eggert  <eggert@twinsun.com>
127216         * lib/getloadavg.c: Change copyright notice and spacing to conform to
127217         GNU coding style.
127219         Merge from coreutils.
127220         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
127221         1. From glibc.
127222         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
127223         from Karl Berry, implemented by Jim Meyering.
127224         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
127225         from Dmitry V. Levin.
127226         Remove anachronistic cast of xrealloc.
127227         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
127228         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
127229         type. Otherwise, it wouldn't compile with at least /bin/cc on
127230         ymp-cray-unicos9.0.2.X.
127231         Combine two mostly-identical uses of alloca into one.
127232         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
127234 2003-08-04  Dave Love  <d.love@dl.ac.uk>
127236         [From Emacs.]
127238         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
127239         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
127240         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
127241         obsolete NLIST_NAME_UNION.
127242         [__GNU__]: Undef BSD and FSCALE.
127243         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
127245 2003-08-03  Paul Eggert  <eggert@twinsun.com>
127247         * lib/stdbool_.h (_Bool): Make it signed char, instead of
127248         an enum type, so that it's guaranteed to promote to int.  See:
127249         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
127251 2003-08-03  Karl Berry  <karl@gnu.org>
127253         * config/depcomp: update from automake.
127255 2003-07-31  Paul Eggert  <eggert@twinsun.com>
127257         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
127258         (strerror): Don't assume that a printable int fits in 14 bytes.
127260 2003-07-31  Bruno Haible  <bruno@clisp.org>
127262         * modules/getpass-gnu: New file.
127263         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
127265 2003-07-31  Bruno Haible  <bruno@clisp.org>
127267         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
127269 2003-07-24  Karl Berry  <karl@gnu.org>
127271         * config/missing: update from automake.
127273 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
127274             Bruno Haible  <bruno@clisp.org>
127276         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
127277         * lib/getline.c (getline, getdelim): Likewise.
127278         Remove _GNU_SOURCE define; now it's defined in config.h through
127279         m4/getline.m4.
127281 2003-07-23  Karl Berry  <karl@gnu.org>
127283         * config/config.sub: update from prep.
127285 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127287         * modules/xalloc (Depends-on): Add exitfail.
127288         * modules/xmemcoll: Likewise.
127290 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127292         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
127293         over-parenthesization in macros.
127295         Sync with coreutils.
127297         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
127298         required by C99.
127300         Use `exit_failure' for xalloc and xmemcoll instead of their own
127301         private exit-failure variables.
127302         * lib/xalloc.h (xalloc_exit_failure): Remove.
127303         * lib/xmalloc.c: Likewise.  Include exitfail.h.
127304         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
127305         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
127306         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
127307         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
127309 2003-07-20  Jim Meyering  <jim@meyering.net>
127311         * modules/closeout (Depends-on): Add exitfail.
127312         Suggestion from Bruno Haible.
127314 2003-07-19  Karl Berry  <karl@gnu.org>
127316         * config/config.sub: update from prep.
127318 2003-07-18  Paul Eggert  <eggert@twinsun.com>
127320         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
127321         Remove.
127322         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
127323         to test that it can stand by itself.  Include "exitfail.h".
127324         Clients should set exit_failure instead.
127325         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
127327 2003-07-18  Bruno Haible  <bruno@clisp.org>
127329         * modules/getndelim2: New file.
127330         * modules/getline: Share files with module getndelim2.
127331         * modules/getnline: Depend on getndelim2 instead of sharing files with
127332         it. Add getnline.c to lib_SOURCES.
127333         * MODULES.html.sh (func_all_modules): Add getndelim2.
127335 2003-07-18  Bruno Haible  <bruno@clisp.org>
127337         * m4/getndelim2.m4: New file.
127338         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
127339         invoke gl_PREREQ_GETNDELIM2.
127340         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
127341         gl_PREREQ_GETNDELIM2.
127342         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
127343         gl_GETNDELIM2.
127345 2003-07-18  Bruno Haible  <bruno@clisp.org>
127347         * lib/getndelim2.h: New file.
127348         * lib/getndelim2.c: Make into a module of its own. Include config.h,
127349         getndelim2.h.
127350         (getndelim2): Make non-static. Change return type to ssize_t.
127351         * lib/getline.h: Change argument names.
127352         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
127353         * lib/getnline.c: Include getndelim2.h.
127355 2003-07-18  Andreas Schwab  <schwab@suse.de>
127357         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
127359 2003-07-17  Karl Berry  <karl@gnu.org>
127361         * config/config.sub: update from prep.
127363 2003-07-17  Bruno Haible  <bruno@clisp.org>
127365         * modules/getnline: New file.
127366         * modules/getline: Add lib/getndelim2.c to source file list.
127367         * MODULES.html.sh (func_all_modules): Add getnline.
127369 2003-07-17  Bruno Haible  <bruno@clisp.org>
127371         * m4/getnline.m4: New file.
127373 2003-07-17  Bruno Haible  <bruno@clisp.org>
127375         * m4/Makefile.am.in: Remove file.
127376         * m4/Makefile.am: Remove file.
127377         * m4/Makefile.in: Remove file.
127379 2003-07-17  Bruno Haible  <bruno@clisp.org>
127381         * lib/getnline.h: New file.
127382         * lib/getnline.c: New file.
127383         * lib/getndelim2.c: New file, extracted from getline.c.
127384         (getndelim2): Renamed from getdelim2, with added nmax argument.
127385         * lib/getline.c: Include getndelim2.c.
127386         (getdelim2): Moved out to getndelim2.c.
127387         (getline, getdelim): Update.
127389 2003-07-17  Bruno Haible  <bruno@clisp.org>
127391         * lib/Makefile.am: Remove file.
127392         * lib/Makefile.in: Remove file.
127394 2003-07-17  Bruno Haible  <bruno@clisp.org>
127396         * configure.in: Remove file.
127397         * Makefile.in: Remove file.
127399 2003-07-17  Bruno Haible  <bruno@clisp.org>
127401         * MODULES.html.sh: Put the </BODY> right before </HTML>.
127403 2003-07-16  Karl Berry  <karl@gnu.org>
127405         * config/srclist-update: was running fixlicense twice, which caused
127406                 texinfo.tex to be nullified for some reason.  Simplify,
127407                 $gplsrc is no longer needed as far as I can see?
127409 2003-07-16  Jim Meyering  <jim@meyering.net>
127411         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
127413 2003-07-15  Paul Eggert  <eggert@twinsun.com>
127415         * config/srclist.txt: Get the following files from gettext-runtime/intl
127416         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
127417         ref-del.sin.  From Bruno Haible.
127418         * config/srclist-update (fixfile): Change grep pattern again, since the
127419         previous fix didn't work (there was another trailing $).  Use
127420         '[$]' to escape the $s.
127422 2003-07-15  Karl Berry  <karl@gnu.org>
127424         * lib/vasnprintf.c: update from gettext.
127426 2003-07-15  Karl Berry  <karl@gnu.org>
127428         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
127429         gets expanded when surrounded by '$'.
127431 2003-07-15  Jim Meyering  <jim@meyering.net>
127433         * modules/save-cwd: Don't depend on error.  From Derek Price.
127435 2003-07-15  Jim Meyering  <jim@meyering.net>
127437         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
127439 2003-07-14  Simon Josefsson  <jas@extundo.com>
127441         * modules/mempcpy: New file.
127442         * MODULES.html.sh (func_all_modules): Add mempcpy.
127444 2003-07-14  Simon Josefsson  <jas@extundo.com>
127446         * m4/mempcpy.m4: New file.
127448 2003-07-14  Simon Josefsson  <jas@extundo.com>
127450         * lib/mempcpy.h: New file.
127451         * lib/mempcpy.c: New file.
127453 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127455         * modules/getdate, modules/posixtm: Depend on mktime.
127457 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127459         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
127460         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
127461         unicodeio.c, unicodeio.h, unlocked-io.h:
127462         Switch from LGPL to GPL.
127464 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127466         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
127467         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
127468         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
127469         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
127470         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
127471         updated automatically by ../config/srclist-update.  This changes
127472         their license from LPGL to GPL.
127474 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127476         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
127477         assumed to refer to the root of the most recent stable gettext version.
127478         * config/srclistvars.sh: Add defaults for eggert.
127479         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
127480         Match "This program" as well as "The program".  This is needed
127481         for gettext.
127483 2003-07-14  Jim Meyering  <jim@meyering.net>
127485         Don't emit diagnostics.  Let callers do that.
127486         * lib/save-cwd.c: Don't include "error.h".
127487         (save_cwd): Don't call error.  Ensure that errno is valid
127488         when returning nonzero.
127490         * lib/save-cwd.h (restore_cwd): Update prototype.
127491         * lib/save-cwd.c (restore_cwd): Remove two parameters.
127492         Simplify.  Don't call error upon failure.  Let callers do that.
127493         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
127494         when auditing is enabled.  But don't bother updating the #if.
127496 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
127498         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
127499         it breaks C++ compilation.
127500         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
127502 2003-07-10  Simon Josefsson  <jas@extundo.com>
127504         * modules/strchrnul (Makefile.am): Add strchrnul.h.
127506 2003-07-10  Jim Meyering  <jim@meyering.net>
127508         * m4/clock_time.m4: Remove trailing blank.
127509         * m4/intmax_t.m4: Likewise.
127511 2003-07-10  Jim Meyering  <jim@meyering.net>
127513         * lib/vasnprintf.c: Remove trailing blanks.
127514         Make cpp indentation consistent.
127516 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127518         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
127519         posixver.c, strftime.c, strnlen.c, strverscmp.c:
127520         Switch from LGPL to GPL.
127522 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127524         * config/srclist.txt: Sort sublists.  Add
127525         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
127526         that differ from gnulib for one reason or another; we'd like this list
127527         to be smaller but for now let's document what we have.
127529 2003-07-08  Paul Eggert  <eggert@twinsun.com>
127531         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
127532         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
127533         and sweeter "eval x=$x".
127534         * config/srclist.txt: Get lib/argp* from glibc.
127536 2003-07-07  Paul Eggert  <eggert@twinsun.com>
127538         * lib/mktime.c: Fix some boundary cases and remove need for floating
127539         point.
127541         Issue a compile-time diagnostic if time_t is floating point, or if
127542         two's complement arithmetic is not in effect, or if arithmetic
127543         right shift does not propagate the sign.  These assumptions were
127544         all in the original code but they weren't checked.
127546         (TIME_T_MIDPOINT, verify): New macros.
127547         (__isleap): Remove; it has integer overflow problems.
127548         (leapyear): New function, without those problems.
127549         (ydhms_tm_diff): Remove; splitting into two parts.
127550         (ydhms_diff): New function, containing the arithmetic part of
127551         the old ydhms_tm_diff function.  Issue a compile-time
127552         diagnostic if we are not using C99 integer division.
127553         Avoid casts when possible.
127554         (guess_time_tm): New function, containing the checking part of
127555         the old ydhms_tm_diff function.  Return the new value, rather than
127556         the difference between it and the old.  Accept a new argument T
127557         so that *T specifies the old value.  Check for overflow in the result.
127559         (__mktime_internal): Use a time_t offset, not a long int offset.
127560         This undoes the 2003-06-04 change, which is no longer needed now
127561         that we have better overflow checking.
127562         (localtime_offset): Likewise.
127564         (__mktime_internal): Avoid harmful overflow on hosts where time_t
127565         and long are 64-bit but int is only 32-bit.
127566         (ydhms_diff): Use long int to store year1 and yday1.
127567         Issue a compile-time diagnostic if long int is not wide enough.
127569         (__mktime_internal): Use long int to store adjusted year and yday.
127570         Use plain C rather than preprocessor commands, if that doesn't
127571         affect efficiency.
127572         Check for overflow (and try to repair) after each probe
127573         rather than checking only at the very end.  This avoids some bugs
127574         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
127575         does not equal GMT offset at maximum time).
127576         Use integer to check for overflow rather than floating point; this
127577         is more portable to non-IEEE hosts, and is a tad faster.
127578         When we detect that we are oscillating between two values,
127579         don't check whether tm_isdst has the requested value, since
127580         we already know the answer.  When tm_isdst has the wrong value,
127581         use a different heuristic to find the right one, based on the
127582         extreme values actually observed in practice in tz2003a,
127583         rather than the (overly optimistic) "previous 3 calendar quarters".
127585         (not_equal_tm, print_tm, check_result): Use "const T" rather than
127586         "T const" to accommodate glibc style.
127587         (check_result): Use less-confusing report format.  "long" -> "long int.
127588         (main): Likewise.
127589         Don't loop if the iteration overflows time_t.
127590         Allow a negative step in the iteration.
127592 2003-07-06  Karl Berry  <karl@gnu.org>
127594         * config/depcomp: update from automake.
127595         * config/config.sub: update from prep.
127597 2003-07-03  Karl Berry  <karl@gnu.org>
127599         * config/config.guess: update from prep.
127601 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127603         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
127604         xreadlink.c now includes it unconditionally.
127606 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127608         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
127609         having it depend on HAVE_SYS_TYPES_H.
127611 2003-07-01  Bruno Haible  <bruno@clisp.org>
127613         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
127614         <sys/types.h> should be sufficient.
127615         Reported by Paul Eggert.
127617 2003-06-26  Karl Berry  <karl@gnu.org>
127619         * config/depcomp: update from automake.
127621 2003-06-26  Bruno Haible  <bruno@clisp.org>
127623         * modules/human: Depend on module stdbool.
127625 2003-06-25  Bruno Haible  <bruno@clisp.org>
127627         * modules/readlink: New file.
127628         * modules/xreadlink: Depend on it.
127629         * MODULES.html.sh (func_all_modules): Add readlink.
127631 2003-06-25  Bruno Haible  <bruno@clisp.org>
127633         * m4/readlink.m4: New file.
127635 2003-06-25  Bruno Haible  <bruno@clisp.org>
127637         * lib/readlink.c: New file.
127639 2003-06-22  Karl Berry  <karl@gnu.org>
127641         * config/srclist.txt: update mkinstalldirs from automake.
127642         * config/mkinstalldirs: update.
127644 2003-06-22  Bruno Haible  <bruno@clisp.org>
127646         Portability to mingw32.
127647         * m4/ssize_t.m4: New file, from GNU gettext.
127648         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
127649         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
127651 2003-06-22  Bruno Haible  <bruno@clisp.org>
127653         * modules/safe-read: Add m4/ssize_t.m4.
127654         * modules/xreadlink: Add m4/ssize_t.m4.
127656 2003-06-20  Bruno Haible  <bruno@clisp.org>
127658         Assume C89, so PARAMS isn't needed.
127659         * lib/unicodeio.h (PARAMS): Remove.
127660         * lib/unicodeio.c: Don't use PARAMS.
127662 2003-06-18  Karl Berry  <karl@gnu.org>
127664         * config/config.{guess,sub}: update from prep.
127666 2003-06-18  Jim Meyering  <jim@meyering.net>
127668         Merge changes from coreutils.
127669         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
127670         Remove explicit declarations of xmalloc and realloc.
127671         Include xalloc.h.
127672         (read_utmp): Remove anachronistic cast of xmalloc.
127674 2003-06-17  Paul Eggert  <eggert@twinsun.com>
127676         Assume C89, so PARAMS isn't needed.
127677         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
127678         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
127679         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
127680         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
127681         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
127682         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
127683         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
127684         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
127685         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
127686         lib/xstrtod.h, lib/xstrtol.h: Likewise.
127687         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
127688         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
127689         no longer needed. Anyway, config.h should always be included before any
127690         other file.
127692 2003-06-11  Simon Josefsson  <jas@extundo.com>
127694         * modules/sysexits: New file.
127695         * MODULES.html.sh (func_all_modules): Add sysexits.
127697 2003-06-11  Simon Josefsson  <jas@extundo.com>
127699         * lib/sysexit_.h: New file.
127701 2003-06-11  Derek Price  <derek@ximbiot.com>
127703         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
127704         necessary.
127706 2003-06-11  Bruno Haible  <bruno@clisp.org>
127708         * m4/sysexits.m4: New file.
127710 2003-06-10  Simon Josefsson  <jas@extundo.com>
127712         * lib/argp.h: New file, from glibc.
127713         * lib/argp-ba.c: New file, from glibc.
127714         * lib/argp-eexst.c: New file, from glibc.
127715         * lib/argp-fmtstream.c: New file, from glibc.
127716         * lib/argp-fmtstream.h: New file, from glibc.
127717         * lib/argp-fs-xinl.c: New file, from glibc.
127718         * lib/argp-help.c: New file, from glibc.
127719         * lib/argp-namefrob.h: New file, from glibc.
127720         * lib/argp-parse.c: New file, from glibc.
127721         * lib/argp-pv.c: New file, from glibc.
127722         * lib/argp-pvh.c: New file, from glibc.
127723         * lib/argp-xinl.c: New file, from glibc.
127725 2003-06-10  Simon Josefsson  <jas@extundo.com>
127727         * modules/strchrnul: New file.
127729 2003-06-10  Simon Josefsson  <jas@extundo.com>
127731         * modules/argp: New file.
127733 2003-06-10  Simon Josefsson  <jas@extundo.com>
127735         * m4/strchrnul.m4: New file.
127737 2003-06-10  Simon Josefsson  <jas@extundo.com>
127739         * lib/strchrnul.h: New file.
127740         * lib/strchrnul.c: New file.
127742 2003-06-10  Bruno Haible  <bruno@clisp.org>
127744         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
127746 2003-06-07  Karl Berry  <karl@gnu.org>
127748         * config/config.{guess,sub}: update from prep.
127750 2003-06-07  Jim Meyering  <jim@meyering.net>
127752         * modules/strtod: Use $(...) notation, not @...@ for
127753         AC_REPLACE'd variables.
127754         * modules/localcharset: Likewise.
127756 2003-06-07  Jim Meyering  <jim@meyering.net>
127758         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
127759         in place of my name in the copyright comment.
127760         Remove definition and uses of __P.
127762         From coreutils.
127763         * lib/stat.c: Don't declare xmalloc explicitly.
127764         Instead, include "xalloc.h".
127765         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
127766         xrealloc, and xcalloc return values.
127767         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
127768         Improve comment.
127769         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
127771 2003-06-07  Bruno Haible  <bruno@clisp.org>
127773         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
127774         avoid AC_CONFIG_LINKS.
127775         * modules/fnmatch (Makefile.am): Use explicit creation rule for
127776         fnmatch.h, to avoid AC_CONFIG_LINKS.
127777         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
127779 2003-06-07  Bruno Haible  <bruno@clisp.org>
127781         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
127782         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
127783         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127784         directory.
127785         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
127786         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127787         directory.
127789 2003-06-06  Jim Meyering  <jim@meyering.net>
127791         Merge from coreutils.
127792         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
127793         Consolidate declarations and initializations of *_base* locals.
127795         Merge from coreutils.
127796         This avoids a core dump on systems without GNU putenv,
127797         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
127798         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
127799         (unsetenv): New static function, from GNU libc.
127800         (rpl_putenv): Use it.
127802         * lib/modechange.c: Remove trailing blanks.
127804         Merge from coreutils.
127805         * lib/fsusage.c: Remove declaration of statfs.
127806         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
127808         * lib/posixtm.c: Include <stdbool.h> unconditionally.
127810 2003-06-06  Jim Meyering  <jim@meyering.net>
127812         * lib/stdbool_.h: Renamed from stdbool.h.in.
127814 2003-06-06  Jim Meyering  <jim@meyering.net>
127815             Bruno Haible  <bruno@clisp.org>
127817         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
127818         Adjust Makefile.am snippet not to redirect directly to target.
127819         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
127821 2003-06-05  Paul Eggert  <eggert@twinsun.com>
127823         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
127824         mismatch, look in future quarters as well as past.  This fixes a
127825         bug when processing fall-backwards gaps immediately after a long
127826         period of daylight-saving time.
127828         * lib/mktime.c: Assume freestanding C89 or better.
127829         (HAVE_LIMITS_H): Remove.  Assume it's 1.
127830         (__P): Remove; not used.
127831         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
127832         (mktime, not_equal_tm, print_tm, check_result,
127833         main): Use prototypes.  Use const * where appropriate.
127834         (main): Fix typo in testing code that uncovered by above changes.
127835         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
127837 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127839         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
127840         locale.h, localeconv.  This merges changes from coreutils.
127842         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
127843         It can be removed after the next Autoconf is released.
127844         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
127845         needed.
127847 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127849         * lib/mktime.c: Fix Debian bug 177940
127850         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
127851         (localtime_offset): Now long int, not time_t, because we want it
127852         to be guaranteed to be signed.  All uses changed.
127853         (__mktime_internal): If overflow would occur when adding offset,
127854         don't add it.
127856         Merge 'human' changes from coreutils.  Rewrite to support
127857         locale-specific notations like thousands separators.
127858         * lib/human.c: Simplify authorship notice.
127859         Include human.h immediately after config.h.
127860         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
127861         <limits.h>: Do not include, since human.h does.
127862         (SIZE_MAX, UINTMAX_MAX): New macros.
127863         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
127864         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
127865         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
127866         (power_letter): Renamed from suffixes.
127867         (generate_suffix_backwards): Remove.
127868         (adjust_value): Now takes int style (because of human.h changes)
127869         and long double value (for greater precision on some platforms).
127870         (group_number): New function.
127871         (human_readable): Use it.  Use integer options, not enum.
127872         Put the options before the sizes in the arg list.
127873         Support all the new options.
127874         The old human_readable function has been removed;
127875         use inttostr.h instead.
127876         (human_readable, default_block_size, humblock):
127877         Use uintmax_t, not int, for block sizes.
127878         (human_readable_inexact, block_size_types): Remove.
127879         (block_size_opts): New constant.
127880         (human_options): Renamed from human_block_size, with new signature
127881         that allows block sizes up to UINTMAX_MAX.  All callers changed.
127882         * lib/human.h: Add copyright and authorship notice.
127883         Include <limits.h> and <stdbool.h> unconditionally.
127884         (PARAMS): Remove.  All uses removed.
127885         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
127886         (enum human_inexact_style): Remove tag; now a nameless enum.
127887         (human_floor, human_ceiling, human_round_to_even): Now have
127888         values 2, 0, 1 rather than -1, 1, 0.
127889         (human_group_digits, human_suppress_point_zero, human_autoscale,
127890         human_base_1024, human_SI, human_B): New constants.
127891         (human_readable_inexact, human_block_size): Remove.
127892         (human_readable): Size args are now uintmax_t, not int.
127893         (human_options): New decl.
127895         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
127896         unnecessary now that we assume C89 or better.  This change
127897         imported from coreutils.
127899         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
127900         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
127901         in the 2003-05-30 sync from glibc.
127903         .h files should stand alone, but we shouldn't include <sys/types.h>
127904         if we can get away with just <stddef.h>.
127906         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
127907         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
127908         rather than <sys/types.h>, as we merely need size_t.
127909         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
127910         to get size_t.
127911         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
127912         Include <stdio.h>, to get FILE.
127913         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
127914         memcasecmp.h has included <stddef.h> and all we need is size_t.
127915         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
127916         our interface, instead of including <sys/types.h>
127918 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127920         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
127921         now, as glibc mktime is buggy on non-glibc systems.
127923 2003-06-03  Karl Berry  <karl@gnu.org>
127925         * config/config.sub: update from prep.
127927 2003-06-02  Paul Eggert  <eggert@twinsun.com>
127929         [from coreutils]
127930         Fix some minor time-related bugs with POSIX time arguments.
127931         Some valid time stamps were being rejected (notably -1, and
127932         time stamps before 1900 on 64-bit hosts).  And some invalid
127933         time stamps were being accepted, e.g. September 31.
127935         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
127936         that we can return (time_t) -1 successfully.
127937         * lib/posixtm.c: Likewise.
127938         [HAVE_STDBOOL_H]: Include <stdbool.h>.
127939         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
127940         (t): Remove static var.
127941         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
127942         of static var.  All uses changed.
127943         (year): Do not reject years before 1900; they can occur with
127944         64-bit time_t.
127945         (posix_time_parse): Do not check for out-of-range components;
127946         that is now the caller's responsibility, since our checks were
127947         only approximations.
127948         (posixtime): Use mktime to check for out-of-range components,
127949         since it knows them exactly.
127950         If mktime returns (time_t) -1, check whether an error actually occurred
127951         by invoking localtime on -1.
127952         (main) [TEST_POSIXTIME]: Check for input data errors, and report
127953         posixtime failures better.
127954         Improve the test data (in comments only).
127956 2003-06-02  Karl Berry  <karl@gnu.org>
127958         * config/mkinstalldirs (version): new variable.
127959         (--version): new option.
127960         (usage): improve message.
127962 2003-05-30  Karl Berry  <karl@gnu.org>
127964         * lib/mktime.c: update from libc.
127966 2003-05-30  Bruno Haible  <bruno@clisp.org>
127968         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
127969         * config/config.rpath: Upgrade to gettext-0.12.1.
127971 2003-05-30  Bruno Haible  <bruno@clisp.org>
127973         * m4/gettext.m4: Upgrade to gettext-0.12.1.
127974         * m4/nls.m4: New file, from gettext-0.12.1.
127975         * m4/po.m4: New file, from gettext-0.12.1.
127976         * m4/progtest.m4: Upgrade to gettext-0.12.1.
127978 2003-05-30  Bruno Haible  <bruno@clisp.org>
127980         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
127981         * lib/localcharset.h: Likewise.
127982         * lib/localcharset.c: Likewise.
127984 2003-05-29  Karl Berry  <karl@gnu.org>
127986         * config/config.rpath: update from gettext.
127988 2003-05-28  Paul Eggert  <eggert@twinsun.com>
127990         Assume the headers required for C89 freestanding compilers.
127991         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
127992         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
127993         * m4/human.m4 (gl_HUMAN): Likewise.
127994         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
127995         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
127996         * m4/userspec.m4 (gl_USERSPEC): Likewise.
127997         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
127998         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
127999         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
128001 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128003         Assume the headers required for C89 freestanding compilers.
128004         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
128005         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
128006         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
128007         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
128008         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
128009         define, since <limits.h> is guaranteed to do that.
128010         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
128011         * lib/exclude.c: Include <stdbool.h> unconditionally.
128012         * lib/tempname.c: Include <stddef.h> unconditionally.
128013         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
128014         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
128015         <stddef.h> does that.
128016         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
128017         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
128018         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
128019         needed.
128020         * lib/xstrtol.c: Likewise.
128021         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
128022         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
128024         * lib/addext.c (addext): Use assignment rather than cast, to avoid
128025         warnings on some platforms.
128027         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
128028         arbitrarily.
128030 2003-05-26  Jim Meyering  <jim@meyering.net>
128032         Merge in a change from coreutils:
128033         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
128034         that is guaranteed to be `no'.  Use `no_such_member' to indicate
128035         that condition, rather than `-1' which is slightly misleading.
128036         Change the name of the cache variable to have the gl_ prefix.
128037         Prompted by a patch from Richard Dawe for DJGPP.
128039 2003-05-24  Karl Berry  <karl@gnu.org>
128041         * config/config.guess: update from prep.
128043 2003-05-22  Karl Berry  <karl@gnu.org>
128045         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
128047 2003-05-20  Karl Berry  <karl@gnu.org>
128049         * config/config.guess: update from prep.
128051 2003-05-18  Karl Berry  <karl@gnu.org>
128053         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
128054         might actually be set by the user.
128056         * config/depcomp, install-sh, mdate-sh: update from automake.
128058 2003-05-17  Bruno Haible  <bruno@clisp.org>
128060         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
128061         invalid expansion for AC_EGREP_CPP.
128062         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
128063         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
128064         Suggested by Akim Demaille <akim@epita.fr> in
128065         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
128067 2003-05-12  Jim Meyering  <jim@meyering.net>
128069         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
128070         the space-padded-by-default conversion specifiers, %e, %k, %l.
128072 2003-05-12  Bruno Haible  <bruno@clisp.org>
128074         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
128075         the string is longer than 4 KB.
128077 2003-05-11  Karl Berry  <karl@gnu.org>
128079         * config/config.{guess,sub}: update from prep.
128081 2003-05-09  Bruno Haible  <bruno@clisp.org>
128083         * modules/error: Add m4/strerror_r.m4 to file list.
128085 2003-05-03  Bruno Haible  <bruno@clisp.org>
128087         Upgrade to Unicode-4.0.
128088         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
128089         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
128090         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
128091         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
128092         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
128093         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
128094         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
128095         Change width of U+E0100..U+E01EF from 1 to 0.
128097 2003-04-25  Jim Meyering  <jim@meyering.net>
128099         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
128100         of type size_t, not int.
128102 2003-04-25  Bruno Haible  <bruno@clisp.org>
128104         * lib/copy-file.c: Include <stddef.h>, for size_t.
128106 2003-04-21  Paul Eggert  <eggert@twinsun.com>
128108         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
128109         code which expansion is under static control.  Patch imported from
128110         Akim Demaille's patch to Bison; see
128111         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
128113 2003-04-14  Bruno Haible  <bruno@clisp.org>
128115         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
128117 2003-04-11  Jim Meyering  <jim@meyering.net>
128119         Merge changes from Coreutils.
128121         2003-03-22  Jim Meyering  <jim@meyering.net>
128123         * lib/strftime.c (widen): Cast alloca return value to proper type.
128125         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
128127         From GNU libc.
128128         * lib/strftime.c (my_strftime): Handle very large width
128129         specifications for numeric values correctly.  Improve checks for
128130         overflow.
128132         2003-01-19  Jim Meyering  <jim@meyering.net>
128134         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
128135         definitions.
128136         (nl_get_alt_digit) [! defined my_strftime]: Define.
128137         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
128138         _nl_get_alt_digit and _nl_get_walt_digit.
128140         * lib/strftime.c (my_strftime): Merge in locale-related changes from
128141         libc. These changes have no effect outside of _LIBC.
128143 2003-04-10  Bruno Haible  <bruno@clisp.org>
128145         * modules/findprog: New file.
128146         * MODULES.html.sh (func_all_modules): Add it.
128148 2003-04-10  Bruno Haible  <bruno@clisp.org>
128150         * m4/findprog.m4: New file.
128151         * m4/eaccess.m4: New file.
128153 2003-04-10  Bruno Haible  <bruno@clisp.org>
128155         * lib/findprog.h: New file, from GNU gettext.
128156         * lib/findprog.c: New file, from GNU gettext.
128158 2003-04-05  Jim Meyering  <jim@meyering.net>
128160         Merge changes from Coreutils.
128162         * lib/exclude.h (PARAMS): Remove definition and uses.
128163         * lib/exclude.c: Remove uses of `PARAMS'.
128165         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
128166         Add test-cases for DOS filenames. Declare program_name.
128167         (main): Set up program_name.  Patch by Rich Dawe.
128169         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
128170         error from mntctl.
128171         Use mntctl's return value to drive the entry-processing loop, since
128172         we can't rely on the value of the vmt_length member in the last
128173         entry.  On some systems doing so could result in exhausting
128174         virtual memory.  Based in part on a patch from Mike Jetzer.
128176 2003-04-04  Bruno Haible  <bruno@clisp.org>
128178         * modules/linebreak: New file.
128179         * MODULES.html.sh (func_all_modules): Add it.
128181 2003-04-04  Bruno Haible  <bruno@clisp.org>
128183         * m4/linebreak.m4: New file.
128185 2003-04-04  Bruno Haible  <bruno@clisp.org>
128187         * lib/linebreak.h: New file, from GNU gettext.
128188         * lib/linebreak.c: New file, from GNU gettext with slight
128189         modifications.
128190         * lib/lbrkprop.h: New file, from GNU gettext.
128192 2003-04-03  Bruno Haible  <bruno@clisp.org>
128194         * modules/utf8-ucs4: New file.
128195         * modules/utf16-ucs4: New file.
128196         * modules/ucs4-utf8: New file.
128197         * modules/ucs4-utf16: New file.
128198         * MODULES.html.sh (func_all_modules): Add them.
128200 2003-04-03  Bruno Haible  <bruno@clisp.org>
128202         * m4/utf-ucs4.m4: New file.
128203         * m4/ucs4-utf.m4: New file.
128205 2003-04-03  Bruno Haible  <bruno@clisp.org>
128207         * lib/utf8-ucs4.h: New file, from GNU gettext.
128208         * lib/utf16-ucs4.h: New file, from GNU gettext.
128209         * lib/ucs4-utf8.h: New file, from GNU gettext.
128210         * lib/ucs4-utf16.h: New file, from GNU gettext.
128212 2003-04-02  Bruno Haible  <bruno@clisp.org>
128214         * modules/binary-io: New file.
128215         * MODULES.html.sh (func_all_modules): Add it.
128217 2003-04-02  Bruno Haible  <bruno@clisp.org>
128219         * lib/binary-io.h: New file, from GNU gettext.
128221 2003-04-01  Bruno Haible  <bruno@clisp.org>
128223         * modules/pathname: New file.
128224         * MODULES.html.sh (func_all_modules): Add it.
128226 2003-04-01  Bruno Haible  <bruno@clisp.org>
128228         * lib/pathname.h: New file, from GNU gettext.
128229         * lib/concatpath.c: New file, from GNU gettext.
128231 2003-03-30  Bruno Haible  <bruno@clisp.org>
128233         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
128235 2003-03-30  Bruno Haible  <bruno@clisp.org>
128237         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
128238         function chown() doesn't exist.
128240 2003-03-28  Bruno Haible  <bruno@clisp.org>
128242         * modules/copy-file: New file.
128243         * MODULES.html.sh (func_all_modules): Add it.
128245 2003-03-28  Bruno Haible  <bruno@clisp.org>
128247         * m4/copy-file.m4: New file.
128249 2003-03-28  Bruno Haible  <bruno@clisp.org>
128251         * lib/copy-file.h: New file, from GNU gettext.
128252         * lib/copy-file.c: New file, from GNU gettext.
128254 2003-03-18  Jim Meyering  <jim@meyering.net>
128256         * lib/quote.c (quote_n): Fix typo in comment.
128258 2003-03-18  Bruno Haible  <bruno@clisp.org>
128260         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
128261         checking.
128262         * m4/onceonly_2_57.m4: Likewise.
128264 2003-03-17  Bruno Haible  <bruno@clisp.org>
128266         * m4/onceonly.m4: Require autoconf 2.54 or newer.
128267         (m4_quote): Remove macro.
128268         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
128270 2003-03-14  Jim Meyering  <jim@meyering.net>
128272         Merge changes from Coreutils.
128273         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
128274         to be const, in order to avoid warnings.
128275         (obstack_room): Likewise.
128276         (obstack_empty_p): Likewise.
128278 2003-03-14  Bruno Haible  <bruno@clisp.org>
128280         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
128281         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
128283 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128285         Merge changes from Bison.
128286         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
128287         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
128288         when compiling Bison 1.875's `bitset bset = obstack_alloc
128289         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
128290         * lib/hash.c: Include <stdbool.h> unconditionally.
128292 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128294         * m4/onceonly.m4 (m4_quote): New macro.
128295         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
128296         Quote AC_FOREACH variable-expansions properly.
128298 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128300         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
128302 2003-03-09  Paul Eggert  <eggert@twinsun.com>
128304         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
128305         Reported by Bruce Becker; see:
128306         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
128308 2003-03-03  Paul Eggert  <eggert@twinsun.com>
128309             Bruno Haible  <bruno@clisp.org>
128311         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
128312         Reported by John Hughes, see
128313         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
128315 2003-02-20  Bruno Haible  <bruno@clisp.org>
128317         * MODULES.html.sh (func_all_modules): Add poll.
128319 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128321         * modules/poll: New file.
128323 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128325         * lib/poll_.h: New file.
128326         * lib/poll.c: New file.
128328 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128330         * m4/poll.m4: New file.
128332 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128334         * modules/mathl: New file.
128336 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128338         * lib/mathl.h: New file.
128339         * lib/acosl.c: New file.
128340         * lib/asinl.c: New file.
128341         * lib/atanl.c: New file.
128342         * lib/ceill.c: New file.
128343         * lib/cosl.c: New file.
128344         * lib/expl.c: New file.
128345         * lib/floorl.c: New file.
128346         * lib/frexpl.c: New file.
128347         * lib/ldexpl.c: New file.
128348         * lib/logl.c: New file.
128349         * lib/sincosl.c: New file.
128350         * lib/sinl.c: New file.
128351         * lib/sqrtl.c: New file.
128352         * lib/tanl.c: New file.
128353         * lib/trigl.c: New file.
128354         * lib/trigl.h: New file.
128356 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128358         * m4/mathl.m4: New file.
128360 2003-02-18  Bruno Haible  <bruno@clisp.org>
128362         * MODULES.html.sh (func_all_modules): Add mathl.
128364 2003-02-17  Bruno Haible  <bruno@clisp.org>
128366         * modules/mkdtemp: New module.
128367         * MODULES.html.sh (func_all_modules): Add it.
128369 2003-02-17  Bruno Haible  <bruno@clisp.org>
128371         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
128373 2003-02-17  Bruno Haible  <bruno@clisp.org>
128375         * lib/mkdtemp.h: New file, from GNU gettext.
128376         * lib/mkdtemp.c: New file, from GNU gettext.
128378 2003-02-02  Jim Meyering  <jim@meyering.net>
128380         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
128381         e.g. glibc-2.2.93.
128383 2003-01-31  Bruno Haible  <bruno@clisp.org>
128385         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
128386         'rpl_rename'.
128387         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
128388         'rpl_strnlen'.
128389         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
128390         'rpl_strtod'.
128391         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
128392         'rpl_utime'.
128394 2003-01-31  Bruno Haible  <bruno@clisp.org>
128396         * lib/rename.c: #undef rename before defining rpl_rename.
128397         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
128399 2003-01-30  Bruno Haible  <bruno@clisp.org>
128401         * modules/vasnprintf, modules/vasprintf: New modules.
128402         * MODULES.html.sh (func_all_modules): Add them.
128404 2003-01-30  Bruno Haible  <bruno@clisp.org>
128406         * m4/signed.m4: New file, from GNU gettext.
128407         * m4/longdouble.m4: New file, from GNU gettext.
128408         * m4/wchar_t.m4: New file, from GNU gettext.
128409         * m4/wint_t.m4: New file, from GNU gettext.
128410         * m4/vasnprintf.m4: New file.
128411         * m4/vasprintf.m4: New file.
128413 2003-01-30  Bruno Haible  <bruno@clisp.org>
128415         * lib/printf-args.h: New file, from GNU gettext.
128416         * lib/printf-args.c: New file, from GNU gettext.
128417         * lib/printf-parse.h: New file, from GNU gettext.
128418         * lib/printf-parse.c: New file, from GNU gettext.
128419         * lib/vasnprintf.h: New file, from GNU gettext.
128420         * lib/vasnprintf.c: New file, from GNU gettext.
128421         * lib/asnprintf.c: New file, from GNU gettext.
128422         * lib/vasprintf.h: New file, from GNU gettext with modifications.
128423         * lib/vasprintf.c: New file, from GNU gettext.
128424         * lib/asprintf.c: New file, from GNU gettext.
128426 2003-01-29  Bruno Haible  <bruno@clisp.org>
128428         * modules/stpncpy: New module.
128429         * MODULES.html.sh (func_all_modules): Add it.
128431 2003-01-29  Bruno Haible  <bruno@clisp.org>
128433         * m4/stpncpy.m4: New file.
128435 2003-01-29  Bruno Haible  <bruno@clisp.org>
128437         * lib/stpncpy.h: New file, from GNU gettext with modifications.
128438         * lib/stpncpy.c: New file, from GNU gettext with modifications.
128440 2003-01-28  Bruno Haible  <bruno@clisp.org>
128442         * modules/c-ctype: New module.
128443         * MODULES.html.sh (func_all_modules): Add it.
128445 2003-01-28  Bruno Haible  <bruno@clisp.org>
128447         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
128448         Paul Eggert.
128449         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
128450         Paul Eggert.
128452 2003-01-27  Bruno Haible  <bruno@clisp.org>
128454         * modules/xsetenv: New module.
128455         * MODULES.html.sh (func_all_modules): Add it.
128457 2003-01-27  Bruno Haible  <bruno@clisp.org>
128459         * lib/xsetenv.h: New file, from GNU gettext.
128460         * lib/xsetenv.c: New file, from GNU gettext.
128462 2003-01-23  Jim Meyering  <jim@meyering.net>
128464         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
128465         from working on systems without dirfd (at least Irix and OSF1/Tru64).
128467 2003-01-23  Bruno Haible  <bruno@clisp.org>
128469         * modules/minmax: New module.
128470         * MODULES.html.sh (func_all_modules): Add it.
128472 2003-01-23  Bruno Haible  <bruno@clisp.org>
128474         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
128475         Eggert.
128477 2003-01-22  Bruno Haible  <bruno@clisp.org>
128479         * modules/exit: New module.
128480         * MODULES.html.sh (func_all_modules): Add it.
128482 2003-01-22  Bruno Haible  <bruno@clisp.org>
128484         * lib/exit.h: New file, from GNU gettext.
128486 2003-01-19  Bruno Haible  <bruno@clisp.org>
128488         * gnulib-tool: Recognize option --extract-maintainer.
128489         (func_get_maintainer): New function.
128490         * modules/*: Add Maintainer entry.
128492 2003-01-16  Jim Meyering  <jim@meyering.net>
128494         * m4/regex.m4: The `regex' struct is both input and output.
128495         Initialize it before each use.  Patch by Tim Waugh.
128497 2003-01-16  Bruno Haible  <bruno@clisp.org>
128499         * MODULES.html.sh: Add a table of contents. Add the module name as
128500         leftmost column. Add hyperlinks.
128502 2003-01-15  Bruno Haible  <bruno@clisp.org>
128504         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
128506 2003-01-15  Bruno Haible  <bruno@clisp.org>
128508         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
128509         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
128510         suffix.
128512 2003-01-15  Bruno Haible  <bruno@clisp.org>
128514         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
128516 2003-01-15  Bruno Haible  <bruno@clisp.org>
128518         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
128519         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
128521 2003-01-14  Jim Meyering  <jim@meyering.net>
128523         * lib/same.c (same_name): Tweak a comment.
128525 2003-01-14  Bruno Haible  <bruno@clisp.org>
128527         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
128528         when a string comparison is sufficient.
128530 2003-01-14  Bruno Haible  <bruno@clisp.org>
128532         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
128533         'unsigned int'.
128535 2003-01-14  Bruno Haible  <bruno@clisp.org>
128537         * lib/hash-pjw.c: Add comment about low quality of this function.
128539 2003-01-13  Bruno Haible  <bruno@clisp.org>
128541         * modules/stpcpy: Distribute lib/stpcpy.h.
128542         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
128544 2003-01-13  Bruno Haible  <bruno@clisp.org>
128546         * modules/*: Add a description.
128547         * modules/strpbrk: Fix Makefile.am snippet.
128548         * modules/strtoimax: Fix dependencies.
128549         * modules/strtoumax: Likewise.
128551 2003-01-13  Bruno Haible  <bruno@clisp.org>
128553         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
128554         * modules/alloca (Makefile.am): All object files depend on alloca.h.
128555         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
128557 2003-01-13  Bruno Haible  <bruno@clisp.org>
128559         * gnulib-tool (func_create_testdir): Store config/* files in the main
128560         directory.
128561         * config.rpath: Move to ...
128562         * config/config.rpath: ... here.
128563         * modules/gettext: Contains config/config.rpath, not config.rpath.
128564         * modules/iconv: Likewise.
128566 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128568         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128569         to avoid collisions with libcurses and libreadline.
128571         * m4/getstr.m4: Remove.
128572         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
128574 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128576         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128577         to avoid collisions with libcurses and libreadline.
128579         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
128580         * lib/getstr.h, getstr.c: Remove.
128581         * lib/getline.c: Include "getline.h", to check interface.
128582         Move body of old getstr.c here: this defines MIN_CHUNK and
128583         declares getdelim2, which is renamed from getstr.
128584         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
128586         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
128587         All uses changed.
128588         * lib/linebuffer.h: Likewise.
128589         (readline): Remove backward-compatibility macro.
128591 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128593         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128594         to avoid collisions with libcurses and libreadline.
128595         * getstr: Remove.
128596         * MODULES.html.sh: Remove getstr.
128597         * modules/getline: Depend on unlocked-io, not getstr.
128599 2003-01-12  Jim Meyering  <jim@meyering.net>
128601         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
128603 2003-01-10  Bruno Haible  <bruno@clisp.org>
128605         * modules/alloca: Change Makefile.am requirements. Simplify Include
128606         requirements. Add lib/alloca_.h to file list.
128608 2003-01-10  Bruno Haible  <bruno@clisp.org>
128610         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
128612 2003-01-10  Bruno Haible  <bruno@clisp.org>
128614         * lib/alloca_.h: New file.
128615         * lib/getdate.y: Unconditionally include alloca.h.
128616         * lib/makepath.c: Likewise.
128617         * lib/setenv.c: Likewise.
128618         * lib/userspec.c: Likewise.
128620 2003-01-09  Karl Berry  <karl@gnu.org>
128622         * MODULES.html.sh: include `dirname $0` in PATH, to find
128623         gnulib-tool.
128625 2003-01-09  Bruno Haible  <bruno@clisp.org>
128627         * modules/stdbool: Change configure.ac, Makefile.am requirements.
128628         Simplify Include requirements. Add lib/stdbool.h.in to file list.
128630 2003-01-09  Bruno Haible  <bruno@clisp.org>
128632         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
128634 2003-01-09  Bruno Haible  <bruno@clisp.org>
128636         * lib/stdbool.h.in: New file.
128638 2003-01-09  Bruno Haible  <bruno@clisp.org>
128640         * gnulib-tool (func_all_modules): Ignore files ending in ~.
128641         * MODULES.html.sh: Likewise.
128643 2003-01-08  Jim Meyering  <jim@meyering.net>
128645         * lib/full-write.c: Undefine and define-away `const' after inclusion
128646         of errno.h, not before.  Suggestion from Bruno Haible.
128648 2003-01-08  Bruno Haible  <bruno@clisp.org>
128650         * modules/full-read: Depend on full-write.
128652 2003-01-08  Bruno Haible  <bruno@clisp.org>
128654         * lib/safe-read.c: Include specification header first, to ensure its
128655         selfcontainedness.
128656         * lib/full-write.c: Likewise.
128658 2003-01-07  Jim Meyering  <jim@meyering.net>
128660         * lib/full-write.c: Rework so that it may serve to define full_read,
128661         too.
128662         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
128664 2003-01-07  Bruno Haible  <bruno@clisp.org>
128666         * lib/strtoimax.c: Include <stdint.h> as an alternative to
128667         <inttypes.h>.
128668         * lib/xstrtol.h: Likewise.
128669         * lib/xstrtoimax.c: Likewise.
128670         * lib/xstrtoumax.c: Likewise.
128671         * lib/human.h: Likewise.
128673         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
128674         on systems that have <inttypes.h> but not <stdint.h>.
128676 2003-01-07  Bruno Haible  <bruno@clisp.org>
128678         * MODULES.html.sh: Add copyright notice.
128679         (missed_files): Omit CVS directory entries.
128680         (func_module): Make it work with sed-3.02.
128681         * MODULES.txt: Remove file.
128683 2003-01-06  Jim Meyering  <jim@meyering.net>
128685         * lib/version-etc.c: Update year in translatable copyright string.
128687 2003-01-03  Karl Berry  <karl@gnu.org>
128689         * config/config.{guess,sub}: update from prep.
128691 2003-01-02  Karl Berry  <karl@gnu.org>
128693         * doc/COPYING.DOC: belatedly updated to 1.2.
128695 2003-01-01  Karl Berry  <karl@gnu.org>
128697         * gnulib-tool (func_verify_module): report module name $module in
128698         error message, not $1.
128699         * gnulib-tool (create-testdir): don't complain if destdir couldn't
128700         be created, only if it doesn't exist.
128701         * gnulib-tool (last_checkin_date): don't expand the $Date here.
128703 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128705         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
128707 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128709         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
128710         memcmp if strcoll doesn't work.
128712 2002-12-31  Bruno Haible  <bruno@clisp.org>
128714         * lib/utime.c (utime_null): No need to call ftruncate if the file was
128715         nonempty.
128717 2002-12-31  Bruno Haible  <bruno@clisp.org>
128719         * lib/memcoll.c (STRCOLL): New macro.
128720         (memcoll): Use it.
128722 2002-12-31  Bruno Haible  <bruno@clisp.org>
128724         * lib/localcharset.h: New file.
128725         * lib/localcharset.c: Include it.
128726         * lib/unicodeio.c: Likewise.
128728 2002-12-31  Bruno Haible  <bruno@clisp.org>
128730         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
128731         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
128733 2002-12-31  Bruno Haible  <bruno@clisp.org>
128735         * lib/getline.h: Include <stddef.h>, for size_t.
128737         * lib/unicodeio.h: Include <stddef.h>, for size_t.
128738         * lib/unicodeio.c: Don't include <stddef.h>.
128740 2002-12-31  Bruno Haible  <bruno@clisp.org>
128742         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
128743         HAVE_TM_ZONE.
128745 2002-12-24  Karl Berry  <karl@gnu.org>
128747         * config/config.guess: update from prep.
128749 2002-12-24  Bruno Haible  <bruno@clisp.org>
128751         General infrasructure.
128752         * m4/README: Rewritten.
128753         * m4/onceonly.m4: New file.
128754         * m4/onceonly_2_57.m4: New file.
128756         Module atexit.
128757         * m4/atexit.m4: New file.
128759         Module strtod.
128760         * m4/strtod.m4: New file.
128762         Module strtol.
128763         * m4/strtol.m4: New file.
128765         Module strtoul.
128766         * m4/strtoul.m4: New file.
128768         Module memchr.
128769         * m4/memchr.m4: New file.
128771         Module memcmp.
128772         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
128773         (jm_FUNC_MEMCMP): Invoke it.
128775         Module memcpy.
128776         * m4/memcpy.m4: New file.
128778         Module memmove.
128779         * m4/memmove.m4: New file.
128781         Module memset.
128782         * m4/memset.m4: New file.
128784         Module strcspn.
128785         * m4/strcspn.m4: New file.
128787         Module strpbrk.
128788         * m4/strpbrk.m4: New file.
128790         Module strstr.
128791         * m4/strstr.m4: New file.
128793         Module strerror.
128794         * m4/strerror.m4: New file.
128796         Module mktime.
128797         * m4/mktime.m4: Renamed from jm-mktime.m4.
128798         (gl_PREREQ_MKTIME): New macro.
128799         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
128801         Module malloc.
128802         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
128803         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
128804         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
128806         Module realloc.
128807         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
128808         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
128809         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
128811         Module strftime.
128812         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
128813         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
128814         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
128815         gl_TM_GMTOFF.
128816         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
128818         Module xalloc.
128819         * m4/xalloc.m4: New file.
128821         Module alloca.
128822         * m4/alloca.m4: New file.
128824         Module putenv.
128825         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
128826         (jm_FUNC_PUTENV): Invoke it.
128828         Module setenv.
128829         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
128830         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
128831         when invoked twice.
128832         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
128833         gt_FUNC_SETENV.
128835         Module memrchr.
128836         * m4/memrchr.m4: New file.
128838         Module stpcpy.
128839         * m4/stpcpy.m4: New file.
128841         Module strcase.
128842         * m4/strcase.m4: New file.
128844         Module strdup.
128845         * m4/strdup.m4: New file.
128847         Module strnlen.
128848         * m4/strnlen.m4: New file.
128850         Module strndup.
128851         * m4/strndup.m4: New file.
128853         Module xstrtod.
128854         * m4/xstrtod.m4: New file.
128856         Module xstrtol.
128857         * m4/xstrtol.m4: New file.
128859         Module getdate.
128860         * m4/getdate.m4: New file.
128862         Module unlocked-io.
128863         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
128864         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
128865         * m4/jm-glibc-io.m4n: Remove file.
128867         Module long-options.
128868         * m4/long-options.m4: New file.
128870         Module md5.
128871         * m4/md5.m4: New file.
128873         Module sha.
128874         * m4/sha.m4: New file.
128876         Module getstr.
128877         * m4/getstr.m4: New file.
128879         Module getline.
128880         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
128881         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
128882         <sys/types.h>, for size_t. Use the function name gnu_getline, not
128883         simply getline. Infoke gl_PREREQ_GETLINE.
128885         Module obstack.
128886         * m4/obstack.m4: New file.
128888         Module hash.
128889         * m4/hash.m4: New file.
128891         Module readtokens.
128892         * m4/readtokens.m4: New file.
128894         Module strverscmp.
128895         * m4/strverscmp.m4: New file.
128897         Module stdbool.
128898         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
128899         OSF/1.
128901         Module strtoll.
128902         * m4/strtoll.m4: New file.
128904         Module strtoull.
128905         * m4/strtoull.m4: New file.
128907         Module strtoimax.
128908         * m4/strtoimax.m4: New file.
128910         Module strtoumax.
128911         * m4/strtoumax.m4: New file.
128913         Module xstrtoimax.
128914         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
128915         jm_AC_PREREQ_XSTRTOIMAX.
128916         Moved the strtol prerequisites to strtol.m4.
128917         Moved the strtoll prerequisites to strtoll.m4.
128918         Moved the strtoimax prerequisites to strtoimax.m4.
128920         Module xstrtoumax.
128921         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
128922         jm_AC_PREREQ_XSTRTOUMAX.
128923         Moved the strtoul prerequisites to strtoul.m4.
128924         Moved the strtoull prerequisites to strtoull.m4.
128925         Moved the strtoumax prerequisites to strtoumax.m4.
128927         Module chown.
128928         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
128929         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
128931         Module dup2.
128932         * m4/dup2.m4: New file.
128934         Module ftruncate.
128935         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
128936         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
128938         Module getgroups.
128939         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
128940         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
128942         Module gettimeofday.
128943         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
128944         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
128945         gl_PREREQ_GETTIMEOFDAY.
128947         Module mkdir.
128948         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
128949         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
128951         Module mkstemp.
128952         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
128953         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
128954         jm_AC_TYPE_UINTMAX_T.
128955         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
128957         Module stat.
128958         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
128959         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
128961         Module lstat.
128962         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
128963         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
128965         Module timespec.
128966         * m4/timespec.m4 (gl_TIMESPEC): New macro.
128967         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
128968         * m4/st_mtim.m4: Indentation.
128970         Module nanosleep.
128971         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
128972         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
128973         gl_PREREQ_NANOSLEEP.
128975         Module regex.
128976         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
128977         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
128978         (gl_REGEX): New macro.
128980         Module rename.
128981         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
128982         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
128984         Module rmdir.
128985         * m4/rmdir.m4: New file.
128987         Module utime.
128988         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
128989         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
128990         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
128992         Module dirname.
128993         * m4/dirname.m4: New file.
128995         Module getopt.
128996         * m4/getopt.m4: New file.
128998         Module unistd-safer.
128999         * m4/unistd-safer.m4: New file.
129001         Module fnmatch.
129002         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
129003         declaration.
129004         (gl_PREREQ_FNMATCH_EXTRA): New macro.
129005         (gl_FUNC_FNMATCH_POSIX): New macro.
129006         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
129007         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
129008         simply fnmatch.
129010         Module exclude.
129011         * m4/exclude.m4: New file.
129013         Module human.
129014         * m4/human.m4: New file.
129016         Module acl.
129017         * m4/acl.m4: Nop.
129019         Module backupfile.
129020         * m4/backupfile.m4: New file.
129021         * m4/d-ino.m4: Indentation.
129023         Module fsusage.
129024         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
129025         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
129026         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
129028         Module dirfd.
129029         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
129030         requirements.
129032         Module euidaccess.
129033         * m4/euidaccess.m4: New file.
129035         Module file-type.
129036         * m4/file-type.m4: New file.
129038         Module fileblocks.
129039         * m4/fileblocks.m4: New file.
129041         Module filemode.
129042         * m4/filemode.m4: New file.
129044         Module isdir.
129045         * m4/isdir.m4: New file.
129047         Module lchown.
129048         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
129049         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
129051         Module makepath.
129052         * m4/makepath.m4: New file.
129054         Module modechange.
129055         * m4/modechange.m4: New file.
129057         Module mountlist.
129058         * m4/mountlist.m4: New file.
129059         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
129060         Indentation.
129062         Module path-concat.
129063         * m4/path-concat.m4: New file.
129065         Module pathmax.
129066         * m4/pathmax.m4: New file.
129068         Module same.
129069         * m4/same.m4: New file.
129071         Module save-cwd.
129072         * m4/save-cwd.m4: New file.
129074         Module savedir.
129075         * m4/savedir.m4: New file.
129077         Module xgetcwd.
129078         * m4/xgetcwd.m4: New file.
129079         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
129081         Module xreadlink.
129082         * m4/xreadlink.m4: New file.
129084         Module safe-read.
129085         * m4/safe-read.m4: New file.
129087         Module safe-write.
129088         * m4/safe-write.m4: New file.
129090         Module closeout.
129091         * m4/closeout.m4: New file.
129093         Module stdio-safer.
129094         * m4/stdio-safer.m4: New file.
129096         Module getpass.
129097         * m4/getpass.m4: New file.
129099         Module getugroups.
129100         * m4/getugroups.m4: New file.
129102         Module group-member.
129103         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
129104         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
129106         Module idcache.
129107         * m4/idcache.m4: New file.
129109         Module userspec.
129110         * m4/userspec.m4: New file.
129112         Module gettime.
129113         * m4/clock_time.m4: New file.
129114         * m4/gettime.m4: New file.
129116         Module settime.
129117         * m4/settime.m4: New file.
129119         Module posixtm.
129120         * m4/posixtm.m4: New file.
129122         Module gethostname.
129123         * m4/gethostname.m4: New file.
129125         Module canon-host.
129126         * m4/canon-host.m4: New file.
129128         Module gettext.
129129         * m4/codeset.m4: New file, from gettext-0.11.5.
129130         * m4/gettext.m4: New file, from gettext-0.11.5.
129131         * m4/glibc21.m4: New file, from gettext-0.11.5.
129132         * m4/iconv.m4: New file, from gettext-0.11.5.
129133         * m4/intdiv0.m4: New file, from gettext-0.11.5.
129134         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
129135         * m4/inttypes.m4: New file, from gettext-0.11.5.
129136         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
129137         * m4/isc-posix.m4: New file, from gettext-0.11.5.
129138         * m4/lcmessage.m4: New file, from gettext-0.11.5.
129139         * m4/lib-ld.m4: New file, from gettext-0.11.5.
129140         * m4/lib-link.m4: New file, from gettext-0.11.5.
129141         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
129142         * m4/progtest.m4: New file, from gettext-0.11.5.
129143         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
129144         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
129145         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
129147         Module localcharset.
129148         * m4/localcharset.m4: New file.
129150         Module hard-locale.
129151         * m4/hard-locale.m4: New file.
129153         Module mbswidth.
129154         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
129155         onceonly macros.
129156         * m4/mbrtowc.m4: Add comment.
129158         Module memcasecmp.
129159         * m4/memcasecmp.m4: New file.
129161         Module memcoll.
129162         * m4/memcoll.m4: New file.
129164         Module unicodeio.
129165         * m4/unicodeio.m4: New file.
129167         Module rpmatch.
129168         * m4/rpmatch.m4: New file.
129170         Module yesno.
129171         * m4/yesno.m4: New file.
129173         Module exitfail.
129174         * m4/exitfail.m4: New file.
129176         Module c-stack.
129177         * m4/c-stack.m4 (gl_C_STACK): New macro.
129178         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
129180         Module error.
129181         * m4/error.m4 (gl_ERROR): New macro.
129182         (jm_PREREQ_ERROR): Use onceonly macros.
129184         Module fatal.
129185         * m4/fatal.m4: New file.
129187         Module getloadavg.
129188         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
129189         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
129191         Module getpagesize.
129192         * m4/getpagesize.m4: New file.
129194         Module getusershell.
129195         * m4/getusershell.m4: New file.
129197         Module physmem.
129198         * m4/physmem.m4: New file.
129200         Module posixver.
129201         * m4/posixver.m4: New file.
129203         Module quotearg.
129204         * m4/quotearg.m4: New file.
129206         Module quote.
129207         * m4/quote.m4: New file.
129209         Module readutmp.
129210         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
129212         Module sig2str.
129213         * m4/sig2str.m4: New file.
129215         Other.
129216         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
129217         ulonglong.m4.
129218         * m4/intmax_t.m4: New file.
129219         * m4/d-type.m4: Indentation.
129220         * m4/jm-macros.m4: Update.
129221         * m4/prereq.m4 (jm_PREREQ): Update.
129222         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
129223         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
129224         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
129225         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
129226         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
129227         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
129228         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
129229         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
129230         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
129231         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
129232         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
129233         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
129234         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
129235         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
129236         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
129237         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
129238         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
129239         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
129240         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
129242 2002-12-24  Bruno Haible  <bruno@clisp.org>
129244         * MODULES.txt: Update according to m4/ changes.
129246         Module gettext.
129247         * config.rpath: New file, from gettext-0.11.5.
129249         * modules/*: New module descriptions.
129250         * gnulib-tool: New file.
129251         * MODULES.html.sh: New file.
129253 2002-12-21  Karl Berry  <karl@gnu.org>
129255         * doc/fdl.texi: update to version 1.2.
129257 2002-12-19  Karl Berry  <karl@gnu.org>
129259         * config/config.guess: update from prep.
129261 2002-12-18  Bruno Haible  <bruno@clisp.org>
129263         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
129264         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
129266 2002-12-17  Bruno Haible  <bruno@clisp.org>
129268         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
129269         stdlib.h, string.h.
129271 2002-12-17  Bruno Haible  <bruno@clisp.org>
129273         * lib/canon-host.c (strdup): Remove unused declaration.
129275         * lib/fsusage.c: Include full_read.h.
129276         (get_fs_usage): Use full_read instead of safe_read.
129278         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
129280 2002-12-12  Karl Berry  <karl@gnu.org>
129282         * config/config.guess: update from prep.
129284 2002-12-11  Bruno Haible  <bruno@clisp.org>
129286         * m4/setenv.m4: New file, from gettext-0.11.5.
129288 2002-12-11  Bruno Haible  <bruno@clisp.org>
129290         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
129291         not unsetenv().
129292         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
129293         modifications:
129295         2002-12-11  Bruno Haible  <bruno@clisp.org>
129297                 * setenv.c (alloca): Fall back to malloc.
129298                 (freea): New macro.
129299                 (setenv): Use freea() to free memory allocated with alloca().
129301         2002-11-13  Bruno Haible  <bruno@clisp.org>
129303                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
129304                 function declarations.
129305                 * unsetenv.c (unsetenv): Likewise.
129307         2002-03-04  Bruno Haible  <bruno@clisp.org>
129309                 Portability to AIX 4.3.3.
129310                 * unsetenv.c: New file, extracted from setenv.c.
129311                 * setenv.c: Move the unsetenv() function to unsetenv.c.
129313         2001-12-20  Bruno Haible  <bruno@clisp.org>
129315                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
129316                 use malloc instead. For SunOS 4.
129318         2001-12-11  Bruno Haible  <bruno@clisp.org>
129320                 * setenv.c: Declare alloca.
129321                 (compar_fn_t): New typedef.
129322                 (KNOWN_VALUE, STORE_VALUE): Use it.
129324         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
129325         setenv.h.
129327 2002-12-10  Paul Eggert  <eggert@twinsun.com>
129329         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
129330         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
129331         Choose values that are less likely to collide with system fnmatch
129332         options.
129333         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
129334         defined (e.g., a pure POSIX system).
129335         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
129336         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
129338 2002-12-06  Paul Eggert  <eggert@twinsun.com>
129340         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
129341         a pain in practice to deal with generated m4 files.  This change
129342         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
129344         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
129345         and jm-glibc-io.m4, as they are no longer a special case.
129346         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
129347         kludge and the auto-generation stuff.  Check only whether the
129348         functions are declared, not whether they exist, since older hosts
129349         that don't declare the functions can't use the optimization anyway.
129351 2002-12-06  Jim Meyering  <jim@meyering.net>
129353         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
129355         Merge in changes from libc's misc/error.c, in preparation
129356         for the merge of gnulib's changes back into libc.
129358         * lib/error.c (_): Define only if not already defined.
129359         Move definition to follow all #include directives.
129360         Include unlocked-io.h only if !_LIBC.
129361         [_LIBC]: Include <libio/libioP.h>.
129362         [USE_IN_LIBIO]: Include <libio/iolibio.h>
129363         (fflush): Tweak definition to use INTUSE.
129364         (putc): Define.
129366 2002-12-05  Paul Eggert  <eggert@twinsun.com>
129368         * lib/alloca.c [defined emacs]: Include "lisp.h".
129369         (xalloc_die) [defined emacs]: New macro.
129370         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
129371         [! defined emacs]: Include <xalloc.h>.
129372         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
129373         (pointer): Typedef to POINTER_TYPE *.
129374         (malloc): Remove decl; we now always use xmalloc.
129375         (alloca): Use old-style definition, since Emacs needs this.
129376         Check for arithmetic overflow when computing combined size.
129378 2002-12-04  Paul Eggert  <eggert@twinsun.com>
129380         Do not generate unlocked-io.h automatically, since it's easier to
129381         maintain it by hand.
129383         * lib/unlocked-io.h: New file, from GNU diffutils,
129384         but with proper copyright notice and attribution.
129385         * lib/gen-uio: Remove.
129386         * lib/Makefile.am: Add copyright notice.
129387         (libfetish_a_SOURCES): Add unlocked-io.h.
129388         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
129389         (DISTCLEANFILES, io_functions): Remove macros.
129390         (EXTRA_DIST): Remove gen_uio.
129391         (unlocked-io.h): Remove rule.
129393 2002-12-04  Jim Meyering  <jim@meyering.net>
129395         Reflect the fact that stat.c and lstat.c are no longer generated.
129396         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
129397         (DISTCLEANFILES): Likewise.
129398         (EXTRA_DIST): Likewise.
129399         (all_local): Don't depend on stat.c or lstat.c.
129400         (stat.c, lstat.c): Remove rules.
129401         (EXTRA_DIST): Remove xstat.in.
129403         * lib/xstat.in: Remove file.  Contents moved into stat.c.
129404         * lib/stat.c: New file.  Contents mostly from xstat.in.
129405         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
129406         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
129408         * lib/safe-read.c: Rework so that it may serve to define safe_write,
129409         too.
129410         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
129412 2002-12-03  Jim Meyering  <jim@meyering.net>
129414         * lib/safe-read.c, safe-write.c: Change variable names and comments,
129415         but not semantics, to minimize the differences between these two files.
129416         (safe_read): Change comment to mention SAFE_READ_ERROR.
129418         * lib/safe-read.c (IS_EINTR): Define.
129419         (safe_read): Use IS_EINTR in place of in-function cpp directives.
129421 2002-12-02  Jim Meyering  <jim@meyering.net>
129423         * lib/safe-read.c (EINTR): Define.
129424         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
129425         (INT_MAX): Provide fallback.
129426         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
129428         * lib/safe-read.h (SAFE_READ_ERROR): Define.
129430 2002-12-02  Bruno Haible  <bruno@clisp.org>
129432         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
129433         Define, taken from safe-read.c.
129434         (INT_MAX): Provide fallback.
129435         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
129436         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
129438         * lib/safe-read.c (EINTR): Remove definition.
129439         (safe_read): Don't use EINTR if it is absent.
129441 2002-12-01  Jim Meyering  <jim@meyering.net>
129443         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
129444         zero.
129445         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
129447 2002-11-27  Paul Eggert  <eggert@twinsun.com>
129449         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
129450         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
129451         with `if (! (value < limit)) abort ();', for readability.
129453 2002-11-26  Karl Berry  <karl@gnu.org>
129455         * lib/strdup.c: copy from libc again, with jim's ok.
129456         * lib/.cppi-disable: re-add strdup.c
129458 2002-11-25  Karl Berry  <karl@gnu.org>
129460         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
129461         instead of "strtol.c".
129463 2002-11-25  Karl Berry  <karl@gnu.org>
129465         * config/install-sh: update from automake for variable quoting, $0 in
129466         error msgs, etc.
129468         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
129469         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
129470         entry.
129472 2002-11-25  Jim Meyering  <jim@meyering.net>
129474         * lib/mktime.c: Sync from libc, now that it has the latest fix.
129476 2002-11-24  Karl Berry  <karl@gnu.org>
129478         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
129479         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
129481 2002-11-24  Jim Meyering  <jim@meyering.net>
129483         Update from coreutils:
129485         * lib/mktime.c: Merge in changes from libc.
129487         Avoid a link-time failure on some Linux systems.
129488         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
129489         (otherwise).
129490         (__mon_yday): Declare with the STATIC attribute.
129491         (__mktime_internal): Likewise.
129492         Based on a report from Greg Schafer.
129494 2002-11-23  Jim Meyering  <jim@meyering.net>
129496         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
129497         Use `unsigned', not `int', as type of index.
129499         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
129501         * lib/fsusage.c: Remove unneeded parentheses around operands of
129502         `defined'.
129504 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129506         * lib/quotearg.h: Allow multiple inclusion by surrounding with
129507         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
129508         so that we can be included first.
129509         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
129510         * lib/quotearg.c: Include quotearg.h immediately after config.h.
129511         No need to include stddef.h or sys/types.h any more.
129512         Surround local include files with "", not "<>".
129513         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
129514         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
129515         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
129516         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
129517         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
129518         (ISPRINT): Remove; no longer needed now that we assume C89.
129520         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
129521         Preserve errno.
129523         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
129524         quotearg_char): Use SIZE_MAX rather than
129525         (size_t) -1 when we are talking about "infinity".
129527         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
129529 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129531         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
129532         hint that one should use `if (! x) abort ();' rather than `assert
129533         (x);', and anyway it's one less thing to worry about configuring.
129534         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
129535         hash_rehash, hash_insert): Use abort rather than assert.
129537 2002-11-22  Bruno Haible  <bruno@clisp.org>
129539         * lib/safe-read.h: Assume C89. Add comments.
129540         (safe_read): Change return type to size_t.
129541         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
129542         byte counts > SSIZE_MAX correctly.
129543         * lib/safe-write.h: New file.
129544         * lib/safe-write.c: New file.
129545         * lib/full-read.h: New file.
129546         * lib/full-read.c: New file.
129547         * lib/full-write.h: Assume C89. Add comments.
129548         * lib/full-write.c: Include safe-write.h.
129549         (full_write): Rewritten to use safe_write.
129550         Suggested by Jim Meyering and Paul Eggert.
129552 2002-11-21  Jim Meyering  <jim@meyering.net>
129554         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
129556         Merge in changes from the coreutils.
129558         2002-09-25  Paul Eggert  <eggert@twinsun.com>
129559         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
129560         <stdint.h>.
129561         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
129562         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
129563         int.  Work more efficiently if X is the same width as uintmax_t.
129564         Do not compare X to -1, to avoid bogus compiler warning.
129565         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
129566         Don't assume that f_frsize and f_bsize are the same type.
129568         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
129569         warning on FreeBSD.
129571         * lib/makepath.c (make_path): Restore umask *before* creating the final
129572         component.
129573         (make_path): Minor reformatting.
129575         * lib/xmalloc.c: Adjust to work with new autoconf macros,
129576         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
129577         HAVE_MALLOC/HAVE_REALLOC.
129579         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
129580         dummy ones.  At least on GNU/Linux systems, `auto' means something
129581         else.
129582         From Michael Stone.
129584 2002-11-21  Bruno Haible  <bruno@clisp.org>
129586         Remove case insensitive option matching.
129587         * lib/argmatch.h (argcasematch): Remove declaration.
129588         (ARGCASEMATCH): Remove macro.
129589         (__xargmatch_internal): Remove case_sensitive argument.
129590         (XARGMATCH): Update.
129591         (XARGCASEMATCH): Remove macro.
129592         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
129593         case_sensitive argument.
129594         (argcasematch): Remove function.
129595         (__xargmatch_internal): Remove case_sensitive argument.
129596         (main): Use XARGMATCH instead of XARGCASEMATCH.
129598         * lib/xmalloc.c: Change compile-time error message. Add comment about
129599         required autoconf version.
129601 2002-11-20  Paul Eggert  <eggert@twinsun.com>
129603         Merge argmatch cleanups from Bison.  Assume C89.
129605         * lib/argmatch.c: Include config.h here, not in argmatch.h.
129606         Include stdlib.h, for EXIT_FAILURE.
129607         Always include <string.h>, since we assume C89.
129608         (EXIT_FAILURE): Remove pre-C89 bug workaround.
129609         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
129610         Include <stddef.h> instead, since it's all we need for size_t.
129611         (PARAMS): Remove.  All uses removed.
129612         (ARRAY_CARDINALITY): Do not bother to #undef.
129613         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
129614         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129615         Remove unnecessary parentheses.
129616         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129617         Insert necessary parentheses.
129618         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
129619         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
129621 2002-11-19  Bruno Haible  <bruno@clisp.org>
129623         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
129624         * lib/mbswidth.h: Include <stddef.h>, for size_t.
129626         * lib/mbswidth.h (PARAMS): Remove macro.
129627         (mbswidth, mbsnwidth): Use ANSI C function declarations.
129628         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
129630         * lib/gcd.h (PARAMS): Remove macro.
129631         (gcd): Use ANSI C function declarations.
129632         * lib/gcd.c (gcd): Likewise.
129634 2002-11-15  Bruno Haible  <bruno@clisp.org>
129636         * lib/strcspn.c: Include <stddef.h>.
129637         (strcspn): Use ANSI C function declaration. Change return type to
129638         size_t. Use NULL.
129639         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
129640         (strpbrk): Use NULL.
129641         * lib/strpbrk.h (PARAMS): Remove macro.
129642         (strpbrk): Use ANSI C function declaration.
129643         * lib/strstr.c: Don't include <sys/types.h>.
129644         * lib/strstr.h (PARAMS): Remove macro.
129645         (strstr): Use ANSI C function declarations.
129647 2002-11-14  Karl Berry  <karl@gnu.org>
129649         * config/mkinstalldirs: `do' on separate line, instead of
129650         `for var; do'.
129652 2002-11-06  Bruno Haible  <bruno@clisp.org>
129654         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
129655         * lib/gcd.c (gcd): Likewise.
129657 2002-11-05  Bruno Haible  <bruno@clisp.org>
129659         * lib/gcd.h: New file, from gettext-0.11.5.
129660         * lib/gcd.c: New file, from gettext-0.11.5.
129662 2002-11-05  Bruno Haible  <bruno@clisp.org>
129664         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129665         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129666         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129667         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129669         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
129670         <libintl.h>.
129671         * lib/makepath.c: Include gettext.h instead of <locale.h> and
129672         <libintl.h>.
129674         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
129675         * lib/human.c: Include gettext.h instead of <libintl.h>.
129676         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
129677         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
129678         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
129679         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
129680         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
129681         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
129682         (textdomain): Remove definition.
129683         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
129685         * lib/long-options.c: Remove include of <libintl.h> and definition of
129686         _.
129687         * lib/same.c: Remove include of <libintl.h> and definition of _.
129689 2002-11-04  Owen Taylor  <otaylor@redhat.com>
129691         * lib/config.charset: A few additions for Solaris.
129693 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129695         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
129696         * lib/localcharset.c (locale_charset): Declare as extern "C".
129698 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129700         * lib/config.charset: msdos in uk_UA uses CP1125.
129702 2002-11-04  Bruno Haible  <bruno@clisp.org>
129704         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
129705         * lib/strcase.h: New file, from GNU gettext-0.11.5.
129706         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
129707         * lib/strstr.h: New file, from GNU gettext-0.11.5.
129708         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
129710 2002-11-04  Bruno Haible  <bruno@clisp.org>
129712         * lib/localcharset.c (locale_charset): Don't return an empty string.
129714 2002-11-04  Bruno Haible  <bruno@clisp.org>
129716         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
129717         aliases.
129719 2002-11-04  Bruno Haible  <bruno@clisp.org>
129721         * lib/config.charset: Update for newest glibc. Add canonical names
129722         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
129724 2002-11-04  Bruno Haible  <bruno@clisp.org>
129726         * lib/config.charset: Add support for NetBSD.
129728 2002-11-04  Bruno Haible  <bruno@clisp.org>
129730         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
129732 2002-11-01  Bruno Haible  <bruno@clisp.org>
129734         * configure.in: Add AC_CONFIG_AUX_DIR call.
129735         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
129736         test/Makefile.
129737         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
129739 2002-09-28  Karl Berry  <karl@gnu.org>
129741         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
129742         installed automake until the next release, since changes have been
129743         made.
129745 2002-09-25  Karl Berry  <karl@gnu.org>
129747         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
129748         * lib/getopt*: copy from libc/posix.
129749         * lib/gettext.h: copy from gettext.
129750         * lib/.cppi-disable: add strdup.c, gettext.h.
129752 2002-09-25  Karl Berry  <karl@gnu.org>
129754         * config/srclist.txt: enable gettext.h check.
129755         * config/config.{guess,sub}: update from prep.
129756         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
129757                 from automake 1.6.3.
129758         See srclist*.
129760 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
129762         * regex.c (PATFETCH): Remove the translating fetch.
129763         (PATFETCH_RAW): Rename to PATFETCH.
129764         (set_image_of_range): New fun.
129765         (SET_RANGE_TABLE_WORK_AREA): Use it.
129766         (regex_compile): Don't translate the pattern chars so eagerly.
129767         Only do it when inserting an `exactn' bytecode or when handling
129768         a char-range.
129769         (mutually_exclusive_p): Avoid empty statement.
129771 2002-07-06  Jim Meyering  <meyering@lucent.com>
129773         * m4/README: Don't mention Makefile.am.in.
129774         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
129776 2002-07-01  Jim Meyering  <meyering@lucent.com>
129778         * lib/c-stack.c: Include sys/time.h.
129779         From Volker Borchert.
129781 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129783         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
129785 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129787         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
129788         New macro.  Use it uniformly instead of
129789         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
129790         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
129791         reported by Vin Shelton.
129793 2002-06-22  Paul Eggert  <eggert@twinsun.com>
129795         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
129796         Do not assume SA_SIGINFO behavior.
129797         Bug reported by Jim Meyering on NetBSD 1.5.2.
129799 2002-06-22  Jim Meyering  <meyering@lucent.com>
129801         * m4/c-stack.m4: New file, from diffutils-2.8.2.
129802         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
129804         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
129805         now that configure.ac uses AC_GNU_SOURCE.
129806         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
129807         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
129809         Update to latest tools.  Suggestions from Paul Eggert.
129810         * m4/stdbool.m4: New file, from diffutils-2.8.2.
129811         * m4/gnu-source.m4: Update from diffutils-2.8.2.
129812         * m4/fnmatch.m4: Likewise.
129813         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
129814         to AC_HEADER_STDBOOL
129816 2002-06-22  Jim Meyering  <meyering@lucent.com>
129818         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
129819         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
129821 2002-06-22  Jim Meyering  <meyering@lucent.com>
129823         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
129825         * lib/exitfail.c, exitfail.h: Likewise.
129826         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
129828         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
129829         of fnmatch.h.
129830         (EXTRA_DIST): Add fnmatch_loop.c.
129831         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
129833         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
129834         * lib/fnmatch.c: Update from diffutils-2.8.2.
129835         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
129836         * lib/fnmatch.h: Remove file.
129838 2002-06-21  Jim Meyering  <meyering@lucent.com>
129840         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
129841         * m4/mbrtowc.m4: Likewise.
129843         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
129844         * m4/mbswidth.m4: Reflect name change:
129845         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
129846         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
129848         * m4/lib-link.m4: Update from gettext-0.11.2.
129849         * m4/gettext.m4: Likewise.
129851         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
129852         From Alfred M. Szmidt.
129854 2002-06-18  Paul Eggert  <eggert@twinsun.com>
129856         * lib/file-type.h: Report an error if neither S_ISREG nor
129857         S_IFREG is defined, instead of using a test specific to glibc
129858         2.2.  This should be safe, since POSIX requires S_ISREG and
129859         Unix Version 7 had S_IFREG.  We don't need to check for
129860         <sys/types.h> since we don't use any symbols that it defines.
129862 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
129864         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
129865         $@-t, so that each temporary file name is unique and valid in the first
129866         8 characters, for operation under DOS.
129868 2002-06-15  Paul Eggert  <eggert@twinsun.com>
129870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
129872 2002-06-15  Jim Meyering  <meyering@lucent.com>
129874         Work even with DJGPP 2.03, which lacks support for symlinks.
129875         From Richard Dawe.
129876         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
129877         is defined.
129878         * lib/lchown.c (S_ISLNK): Likewise.
129880 2002-06-15  Jim Meyering  <meyering@lucent.com>
129882         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
129883         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
129884         have been included before this file.
129886 2002-06-14  Jim Meyering  <meyering@lucent.com>
129888         * lib/file-type.h: Use the version from diffutils-2.8.2.
129889         * lib/file-type.c: Likewise.
129891 2002-06-07  Jim Meyering  <meyering@lucent.com>
129893         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
129894         They're needed at least for NetBSD 1.5.2.
129895         ($statxfs_includes): Include those same headers.
129896         ($statxfs_includes): Include sys/vfs.h if available.
129897         ($statxfs_includes): Likewise for sys/statvfs.h.
129898         Check for the following members in both structs statfs and statvfs:
129899         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
129901 2002-06-01  Jim Meyering  <meyering@lucent.com>
129903         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
129904         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
129906 2002-05-28  Jim Meyering  <meyering@lucent.com>
129908         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
129909         Reported by Volker Borchert.
129911 2002-05-27  Jim Meyering  <meyering@lucent.com>
129913         Fix a problem seen only on nonconforming systems whereby ls.c's
129914         use of localtime, and then of gettimeofday would cause trouble:
129915         the localtime call used to initialize rpl_gettimeofday's save
129916         mechanism would clobber ls's current local time information so
129917         that in any long listing the first file would always be listed
129918         with date 1970-01-01.  Analysis by Volker Borchert.
129920         * lib/gettimeofday.c (localtime): Undefine.
129921         (rpl_localtime): New function.
129923 2002-05-27  Jim Meyering  <meyering@lucent.com>
129925         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
129926         localtime.
129928         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
129929         use the replacement function; it wouldn't resolve at link time.
129930         Reported by Volker Borchert.
129932 2002-05-22  Jim Meyering  <meyering@lucent.com>
129934         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
129935         file-type.h.
129936         * lib/file-type.h: New file.
129937         * lib/file-type.c (file_type): New file/function.  Extracted from
129938         diffutils.
129940 2002-04-30  Jim Meyering  <meyering@lucent.com>
129942         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
129944 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129946         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
129948 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129950         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
129951         Do not check for alloca.h (no longer used) or stdbool.h (was never
129952         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
129954 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129956         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
129958 2002-04-29  Jim Meyering  <meyering@lucent.com>
129960         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
129961         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
129962         Use AC_FUNC_STRNLEN here instead.
129964         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
129965         With autoconf-2.53a, it's part of AC_PROG_CC.
129967 2002-04-28  Paul Eggert  <eggert@twinsun.com>
129969         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
129970         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
129972 2002-04-28  Paul Eggert  <eggert@twinsun.com>
129974         * lib/sig2str.h, lib/sig2str.c: New files.
129975         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
129977 2002-04-28  Paul Eggert  <eggert@twinsun.com>
129979         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
129980         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
129981         of 127, since 64 is the largest conceivable number for ancient
129982         nonstandard hosts.
129983         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
129985 2002-04-28  Jim Meyering  <meyering@lucent.com>
129987         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
129989 2002-04-24  Jim Meyering  <meyering@lucent.com>
129991         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
129992         (jm_PREREQ): Use it.
129994         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
129995         mach/mach.h fcntl.h.
129996         Check for this function: setlocale.
129998 2002-04-24  Jim Meyering  <meyering@lucent.com>
130000         * lib/gettext.h: New file, from Gettext.
130001         * lib/Makefile.am (INCLUDES): Remove -I../intl.
130002         (libfetish_a_SOURCES): Add gettext.h.
130004 2002-04-16  Jim Meyering  <meyering@lucent.com>
130006         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
130007         ut_pid, ut_id, ut_exit.
130009 2002-04-16  Jim Meyering  <meyering@lucent.com>
130011         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
130012         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
130013         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
130015 2002-04-12  Jim Meyering  <meyering@lucent.com>
130017         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
130018         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
130019         existence of the getmntinfo function.  Needed for Darwin 5.3.
130021         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
130022         This is necessary at least on Darwin 5.3.
130024         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
130025         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
130026         strnlen.o in the library, and that makes some versions of ranlib
130027         object.
130029 2002-04-12  Jim Meyering  <meyering@lucent.com>
130031         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
130033 2002-04-09  Jim Meyering  <meyering@lucent.com>
130035         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
130036         to be more precise.  Rather than saying we're checking whether the
130037         function `works', say what we're testing.
130038         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
130039         Reported by Bruno Haible.
130041 2002-03-10  Jim Meyering  <meyering@lucent.com>
130043         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
130044         Suggestion from Santiago Vila.
130046 2002-03-08  Jim Meyering  <meyering@lucent.com>
130048         * lib/rename.c: Mention that this wrapper is needed also on
130049         mips-dec-ultrix4.4 systems.
130051 2002-03-02  Jim Meyering  <meyering@lucent.com>
130053         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
130054         not HAVE_CLOCK_SETTIME.
130056 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130058         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
130059         Check for clock_settime.
130061 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130063         * lib/nanosleep.h: Rename to....
130064         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
130066         * lib/gettime.c: New file.
130067         * lib/settime.c: New file.
130068         * lib/stime.c: Remove.
130070         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
130071         timespec.h.  Remove nanosleep.h.
130073 2002-02-25  Paul Eggert  <eggert@twinsun.com>
130075         * m4/acl.m4: New file.
130076         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
130077         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
130079 2002-02-25  Paul Eggert  <eggert@twinsun.com>
130081         * lib/acl.c, lib/acl.h: New files.
130082         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
130084 2002-02-24  Jim Meyering  <meyering@lucent.com>
130086         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
130087         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
130088         cause trouble.  Reported by Nelson Beebe.
130090 2002-02-23  Paul Eggert  <eggert@twinsun.com>
130092         * lib/path-concat.c (xpath_concat): Reorder code to pacify
130093         compilers that don't know that xalloc_die never returns.
130095 2002-02-20  Jim Meyering  <meyering@lucent.com>
130097         * lib/getdate.c: Regenerate using bison-1.33.
130099 2002-02-17  Jim Meyering  <meyering@lucent.com>
130101         * config/config.guess (main): Don't use `head -1'; it's no longer
130102         portable. Use `sed 1q' instead.
130104 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
130106         * m4/codeset.m4: Upgrade to gettext-0.11.
130107         * m4/gettext.m4: Upgrade to gettext-0.11.
130108         * m4/glibc21.m4: Upgrade to gettext-0.11.
130109         * m4/iconv.m4: Upgrade to gettext-0.11.
130110         * m4/isc-posix.m4: Upgrade to gettext-0.11.
130111         * m4/lcmessage.m4: Upgrade to gettext-0.11.
130112         * m4/lib-ld.m4: New file, from gettext-0.11.
130113         * m4/lib-link.m4: New file, from gettext-0.11.
130114         * m4/lib-prefix.m4: New file, from gettext-0.11.
130115         * m4/progtest.m4: Upgrade to gettext-0.11.
130117 2002-02-15  Paul Eggert  <eggert@twinsun.com>
130119         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
130120         (jm_PREREQ): Use it.
130122 2002-02-15  Paul Eggert  <eggert@twinsun.com>
130124         * lib/posixver.c, lib/posixver.h: New files.
130125         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
130127 2002-02-02  Paul Eggert  <eggert@twinsun.com>
130128             Bruno Haible  <bruno@clisp.org>
130130         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
130131         (fwrite_success_callback): New declaration.
130132         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
130133         print_unicode_char. Call failure callback instead of error.
130134         (fwrite_success_callback): New function.
130135         (exit_failure_callback): New function.
130136         (fallback_failure_callback): New function.
130137         (print_unicode_char): Call unicode_to_mb.
130139 2002-01-26  Jim Meyering  <meyering@lucent.com>
130141         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
130142         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
130144 2002-01-26  Jim Meyering  <meyering@lucent.com>
130146         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
130148 2002-01-22  Paul Eggert  <eggert@twinsun.com>
130150         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
130152 2002-01-22  Jim Meyering  <meyering@lucent.com>
130154         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
130155         Otherwise, some versions of automake would omit the rule that makes
130156         Makefile from Makefile.in.
130158 2002-01-21  Paul Eggert  <eggert@twinsun.com>
130160         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
130161         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
130162         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
130163         (memcoll): Set errno to zero if there is no error.
130165         * lib/quotearg.c (quotearg_buffer_restyled):
130166         Fix bug with quoting buffers containing NUL when backslashing escapes.
130167         This bug was exposed by the other changes in this patch.
130168         (quotearg_n_options): New arg ARGSIZE.
130169         All callers changed.
130170         (quoting_options_from_style): New function.
130171         (quotearg_n_style): Use it.
130172         (quotearg_n_style_mem): New function.
130174         * lib/quotearg.h (quotearg_n_style_mem): New function.
130176 2002-01-19  Jim Meyering  <meyering@lucent.com>
130178         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
130179         Remove useless quotes: DF_PROG="df".
130180         * m4/strnlen.m4: New file.
130182 2002-01-16  Paul Eggert  <eggert@twinsun.com>
130184         * lib/backupfile.c (ISDIGIT): Comment fix.
130185         * lib/getdate.y (ISDIGIT): Likewise.
130186         * lib/posixtm.c (ISDIGIT, year): Likewise.
130187         * lib/strverscmp.c (ISDIGIT): Likewise.
130188         * lib/userspec.c (ISDIGIT): Likewise.
130190 2002-01-16  Jim Meyering  <meyering@lucent.com>
130192         * lib/getdate.y: Add three semicolons, each just before a closing
130193         brace. Bison (as of version 1.31) no longer papers over that mistake.
130195 2002-01-05  Jim Meyering  <meyering@lucent.com>
130197         * lib/version-etc.c (version_etc_copyright): Update copyright year.
130199 2001-12-19  Paul Eggert  <eggert@twinsun.com>
130201         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
130202         not silently exit merely because the output buffer happens to
130203         have nothing pending.
130205 2001-12-18  Paul Eggert  <eggert@twinsun.com>
130207         See the big note in ../ChangeLog.
130208         * lib/human.c (suffixes): Prefer K to k for 1024.
130209         (generate_suffix_backwards): New function.
130210         (human_readable_inexact): Use it.
130211         * lib/xstrtol.c (__xstrtol): If there is no number but there
130212         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
130213         Accept 'K' as well as 'k'.
130215 2001-12-15  Jim Meyering  <meyering@lucent.com>
130217         * lib/regex.h (__restrict_arr): Update from libc.
130219         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
130220         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
130221         (STREQ): Define.
130223 2001-12-14  Jim Meyering  <meyering@lucent.com>
130225         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
130226         Suggestion from Bruno Haible.
130228 2001-12-10  Jim Meyering  <meyering@lucent.com>
130230         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
130231         xrealloc, Instead, include "xalloc.h".
130232         (initbuffer): Don't cast xmalloc return value to char*.
130233         (readline): Reword comment.
130234         Don't cast xrealloc return value to char*
130235         Return NULL, not 0.
130237 2001-12-09  Jim Meyering  <meyering@lucent.com>
130239         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
130240         about `signed and unsigned type in conditional expression'.
130241         * lib/posixtm.c (posix_time_parse): Likewise.
130243         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
130245         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
130246         to avoid a pedantic warning.
130248         * lib/getstr.c: Don't include assert.h.
130249         (getstr): Remove warning-evoking assertions.
130250         Return -1 if offset parameter is out of bounds.
130251         Change the type of a local from int to size_t.
130253         * lib/strftime.c (my_strftime_localtime_r): Include this function
130254         definition in the `#if ! HAVE_TM_GMTOFF' block.
130256         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
130257         Include xalloc.h instead.
130259 2001-12-02  Jim Meyering  <meyering@lucent.com>
130261         * lib/tempname.c: Don't declare getenv, thus reverting the change of
130262         2001-11-18.  It's no longer necessary, now that stdlib.h is always
130263         included.
130265         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
130266         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
130268 2001-11-30  Akim Demaille  <akim@epita.fr>
130270         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
130271         before being defined.
130273 2001-11-27  Paul Eggert  <eggert@twinsun.com>
130275         * lib/quotearg.h (quotearg_n, quotearg_n_style):
130276         First arg is int, not unsigned.
130277         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
130278         (SIZE_MAX, UINT_MAX): New macros.
130279         (quotearg_n_options): Abort if N is negative.
130280         Avoid overflow check on hosts where size_t is 64 bits and int
130281         is 32 bits, as overflow is impossible there.
130282         Fix off-by-one typo that caused unnecessary reallocation.
130284 2001-11-27  Jim Meyering  <meyering@lucent.com>
130286         * lib/tempname.c: Merge with version from libc.
130287         * lib/regex.c: Likewise.
130289         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
130290         systems for which STDC_HEADERS is 0, it was not included, resulting in
130291         a warning about an integer-to-pointer conversion problem with getenv.
130292         Reported by Volker Borchert.
130294 2001-11-26  Jim Meyering  <meyering@lucent.com>
130296         * lib/gtod.h: Remove file.
130297         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
130298         * lib/gettimeofday.c: Don't include gtod.h.
130299         (GTOD_init): Remove function.
130300         (rpl_gettimeofday): Do its job here instead, rather than aborting.
130301         Suggestion from Volker Borchert.
130303 2001-11-23  Jim Meyering  <meyering@lucent.com>
130305         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
130306         it.
130307         * lib/hash.c (struct hash_table): Define it here instead.
130309 2001-11-22  Jim Meyering  <meyering@lucent.com>
130311         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
130313 2001-11-20  Jim Meyering  <meyering@lucent.com>
130315         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
130316         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
130318 2001-11-19  Jim Meyering  <meyering@lucent.com>
130320         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
130321         directory.  Use "conftestXXXXXX" as the template.
130322         Suggestion from Paul Eggert.
130324         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
130325         immediately, so the test doesn't mistakenly hit the max-open-files
130326         limit.
130328 2001-11-18  Paul Eggert  <eggert@twinsun.com>
130330         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
130331         (TEMPORARIES): New macro.
130332         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
130333         removes an artificial limitation (e.g. HP-UX 10.20, where
130334         TMP_MAX is 17576).
130336 2001-11-18  Jim Meyering  <meyering@lucent.com>
130338         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
130340 2001-11-18  Jim Meyering  <meyering@lucent.com>
130342         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
130343         on SunOS 4.
130345         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
130346         files will be created before anything else.
130348 2001-11-17  Paul Eggert  <eggert@twinsun.com>
130350         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
130351         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
130353 2001-11-17  Jim Meyering  <meyering@lucent.com>
130355         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
130356         Prompted by a report from Bob Proulx.
130358         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
130359         Instead, require UTILS_FUNC_MKSTEMP.
130361 2001-11-17  Jim Meyering  <meyering@lucent.com>
130363         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
130364         Now, that's done as part of AC_FUNC_STRTOD.
130366 2001-11-17  Jim Meyering  <meyering@lucent.com>
130368         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
130369         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
130370         rather than group writable.  Patch by Juan F. Codagnone.
130372         * lib/readtokens.c: Remove explicit declarations of xmalloc and
130373         xrealloc, Instead, include "xalloc.h".
130375         * lib/mountlist.c: Include unlocked-io.h after all system headers.
130376         Remove explicit declarations of xmalloc, xrealloc,
130377         and xstrdup.  Instead, include "xalloc.h".
130379         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
130380         unlocked-io.h.
130381         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
130382         Likewise.
130383         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
130385         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
130386         Reported by Padraig Brady.
130388         * lib/mkstemp.c: #undef mkstemp.
130389         Include config.h.
130390         (rpl_mkstemp): Rename from mkstemp.
130391         Protoize.
130393 2001-11-16  Jim Meyering  <meyering@lucent.com>
130395         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
130396         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
130397         determine the amount of total physical memory, use pstat_getstatic.
130398         HPUX-11 doesn't define _SC_PHYS_PAGES.
130399         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
130400         If sysconf couldn't be used to determine the amount of available
130401         physical memory, use both pstat_getstatic and pstat_getdynamic.
130402         Based on a patch from Bob Proulx.
130404 2001-11-10  Jim Meyering  <meyering@lucent.com>
130406         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
130407         (jm_PREREQ): Use it.
130409 2001-11-09  Jim Meyering  <meyering@lucent.com>
130411         * m4/jm-macros.m4: Require autoconf-2.52f.
130412         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
130413         Use these AC_-prefixed names, not the AM_-prefixed ones.
130415         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
130417 2001-11-05  Jim Meyering  <meyering@lucent.com>
130419         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
130421 2001-11-04  Jim Meyering  <meyering@lucent.com>
130423         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
130424         $DEFS.
130426 2001-11-03  Jim Meyering  <meyering@lucent.com>
130428         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
130429         of AC_DEFUN.
130431         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
130432         know the name of the variable in the macro definition.
130434 2001-11-03  Jim Meyering  <meyering@lucent.com>
130436         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
130437         in argmatch_to_argument call.
130439         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
130440         argument.
130442         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
130443         e.g., a fault due to an attempt to free a NULL pointer.
130445 2001-11-01  Jim Meyering  <meyering@lucent.com>
130447         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
130448         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
130450 2001-11-01  Jim Meyering  <meyering@lucent.com>
130452         * lib/dirfd.c, lib/dirfd.h: New files.
130453         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
130455         * lib/hash.c (hash_print) [TESTING]: Clean up.
130457 2001-10-22  Paul Eggert  <eggert@twinsun.com>
130459         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
130460         to avoid a warning if -Wall.
130462 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
130464         * README: New file
130465         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
130466         (per RMS's instructions, this is now the canonical source)
130467         * lgpl/, gpl/: New directories.
130469 2001-10-21  Paul Eggert  <eggert@twinsun.com>
130471         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
130473 2001-10-21  Jim Meyering  <meyering@lucent.com>
130475         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
130476         this code would end up calling gettext even in packages built
130477         with --disable-nls.
130478         * lib/getopt.c (_): Likewise.
130479         * lib/regex.c (_): Likewise.
130481 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130483         * m4/error.m4 (jm_PREREQ_ERROR):
130484         Do not invoke AC_CHECK_FUNCS with strerror_r, as
130485         AC_FUNC_STRERROR_R does that.
130486         Check for strerror declaration.
130488         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
130489         are supposed to have them these days.
130490         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
130491         Merge changes from latest Autoconf CVS.
130492         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
130493         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
130494         POSIX decided to standardize on the int flavor of strerror_r.
130496 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130498         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
130499         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
130500         Use strerror_r that is only a macro, even if it is not a function.
130501         (strerror): Check for HAVE_DECL_STRERROR before declaring.
130502         (private_strerror): Use prototypes, not old-style function definition.
130503         (print_errno_message): New function.
130504         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
130505         char*-flavored one.
130506         (error_tail, error, error_at_line): Use it.
130508 2001-10-11  Jim Meyering  <meyering@lucent.com>
130510         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
130511         and quote_n (1, ... to avoid clobbering a buffer.
130513 2001-10-05  Jim Meyering  <meyering@lucent.com>
130515         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
130516         hash-pjw.h.
130517         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
130518         * lib/hash-pjw.h: New file.
130520 2001-09-30  Jim Meyering  <meyering@lucent.com>
130522         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
130523         `struct fsstat' has the `f_fstypename' member.
130524         Use that to define FS_TYPE, which is now used to make
130525         the getfsstat link test tighter.
130527 2001-09-30  Jim Meyering  <meyering@lucent.com>
130529         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
130530         Include <sys/ucred.h>, for Apple Darwin.
130531         Include sys/mount.h and sys/fs_types.h only if available.
130532         (FS_TYPE): Define.
130533         (read_filesystem_list): Use FS_TYPE.
130535 2001-09-29  Paul Eggert  <eggert@twinsun.com>
130537         * lib/exclude.c (excluded_filename): 0 -> false, since it's
130538         a boolean context.
130540 2001-09-29  Jim Meyering  <meyering@lucent.com>
130542         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130543         [one-argument getmntent function]): Include stdio.h before mntent.h.
130544         SunOS 4.1.x needs it for the declaration of `FILE'.
130545         Patch by Volker Borchert.
130547         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130548         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
130549         sys/fs_types.h, and make the link-test for getfsstat guard #include
130550         directives with appropriate #if HAVE_*_H tests so that we can
130551         detect getfsstat on Apple Darwin1.3.7 systems.
130552         Reported by Nelson Beebe.
130553         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
130555 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130557         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130558         #defines strtoimax.  Also treat the other strto* functions
130559         like strtoimax.
130561         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130562         Check for strtoul and strtoumax,
130563         as those declarations are made even in the signed case.
130564         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
130565         Likewise, for strtol and strtoimax.
130567 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130569         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130570         #defines strtoimax.  Also treat the other strto* functions
130571         like strtoimax.
130573         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
130574         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
130575         (strtoimax, strtoumax): Do not declare if already defined as a macro.
130577 2001-09-26  Jim Meyering  <meyering@lucent.com>
130579         Most macros in unlocked-io.h had the wrong number of arguments.
130580         * lib/gen-uio: New script.
130581         (USE_UNLOCKED_IO): Define to 1 if not already defined.
130582         * lib/unlocked-io.hin: Remove file.
130583         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
130584         rather than trying to embed it here.
130585         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
130586         Reported by Padraig Brady.
130588 2001-09-25  Volker Borchert  <bt@teknon.de>
130590         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
130591         `result'.
130593 2001-09-24  Jim Meyering  <meyering@lucent.com>
130595         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
130597 2001-09-23  Jim Meyering  <meyering@lucent.com>
130599         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
130600         instead of the mere test for existence of mntent.h.  The latter
130601         would get a false-positive on AIX 3.4 systems.
130602         In the outer getmntent if-block, don't die if neither of the getmntent
130603         tests succeeds.  Instead, just fall through and continue with the
130604         remaining tests.
130606 2001-09-23  Jim Meyering  <meyering@lucent.com>
130608         * lib/mountlist.c: Remove useless parentheses in #if directives.
130609         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
130610         the deprecated MOUNTED symbol is no longer defined in mntent.h.
130612 2001-09-22  Jim Meyering  <meyering@lucent.com>
130614         * m4/gettext.m4: New file.  From gettext.
130615         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
130616         * m4/progtest.m4: Likewise
130617         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
130618         * m4/glibc21.m4: Likewise.
130620         * m4/libintl.m4: Remove.  No longer used.
130622 2001-09-22  Jim Meyering  <meyering@lucent.com>
130624         * lib/localcharset.c: Update from latest gettext.
130625         * lib/config.charset: Likewise.
130627 2001-09-20  Jim Meyering  <meyering@lucent.com>
130629         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
130630         strtoimax.
130631         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
130632         strtoumax.
130634 2001-09-20  Jim Meyering  <meyering@lucent.com>
130636         * lib/xstrtol.c (strtoimax): Guard declaration with
130637         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
130638         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
130639         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
130640         (strtoumax): Likewise, for completeness (it wasn't necessary).
130642 2001-09-17  Paul Eggert  <eggert@twinsun.com>
130644         * lib/strtoimax.c (HAVE_LONG_LONG):
130645         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
130646         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
130647         to work around bug in IBM C compiler.
130649 2001-09-17  Jim Meyering  <meyering@lucent.com>
130651         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
130652         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
130653         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
130654         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
130655         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
130656         whenever the right hand side need not be expanded by the shell.
130658 2001-09-16  Paul Eggert  <eggert@twinsun.com>
130660         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
130661         library.  It's not correct, as some older glibcs are buggy.
130662         fnmatch wasn't fixed until glibc 2.2.
130664         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
130665         special shell magic here.
130667 2001-09-16  Jim Meyering  <meyering@lucent.com>
130669         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
130670         * m4/jm-macros.m4: Require it.
130672 2001-09-16  Jim Meyering  <meyering@lucent.com>
130674         * lib/mkdir.c: New file.
130676 2001-09-15  Jim Meyering  <meyering@lucent.com>
130678         * m4/jm-macros.m4: Check for help2man.
130680 2001-09-11  Jim Meyering  <meyering@lucent.com>
130682         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
130683         The body, by Paul Eggert, was moved here from configure.in.
130684         * m4/jm-macros.m4: Require UTILS_HOST_OS.
130686 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130688         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
130689         (jm_PREREQ): Use it.
130691 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130693         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
130694         Use ssize_t, not int, to store result of readlink.
130695         Check for ssize_t overflow as well as size_t overflow,
130696         as POSIX says the result of readlink is implementation-defined
130697         when ssize_t overflows.
130698         Remove unnecessary cast to char*.
130699         Use free+malloc instead of realloc, as the storage doesn't need
130700         to be preserved and it's clearer and can be more efficient that way.
130701         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
130702         * lib/xreadlink.h (xreadlink): Update prototype.
130704 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130706         * lib/xgetcwd.c: Revert some of the previous change; intead,
130707         fix the HAVE_GETCWD_NULL code to behave more like the
130708         !HAVE_GETCWD_NULL code used to.
130710         Include "xalloc.h".
130711         (xgetcwd): Do not return NULL when memory is exhausted; instead,
130712         invoke xalloc_die.
130714 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130716         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
130717         sys/param.h, as pathmax.h includes them.
130719 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130721         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
130722         (jm_PREREQ_XGETCWD): New macro.
130724         * m4/getcwd.m4: New file.
130726 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130728         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
130729         like the HAVE_GETCWD_NULL code.
130730         Include pathmax.h if not HAVE_GETCWD.
130731         Do not include xalloc.h.
130732         (INITIAL_BUFFER_SIZE): New symbol.
130733         Do not use xmalloc / xrealloc, since the caller is responsible for
130734         handling errors.  Preserve errno around `free' during failure.
130735         Do not overrun buffer when using getwd.
130737 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130739         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
130740         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
130741         getcwd (NULL, 0).
130743 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130745         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
130746         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
130747         spotted by Jim Meyering.
130749 2001-09-03  Jim Meyering  <meyering@lucent.com>
130751         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
130752         failure.
130754 2001-09-02  Jim Meyering  <meyering@lucent.com>
130756         * lib/error.c: Update from GNU libc.
130758 2001-09-01  Jim Meyering  <meyering@lucent.com>
130760         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
130761         Used by df.
130763 2001-09-01  Jim Meyering  <meyering@lucent.com>
130765         * lib/xreadlink.c: New file.
130766         * lib/xreadlink.h: New file.
130767         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
130768         xreadlink.h.
130770         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
130771         doesn't conflict with sparc Solaris 7's definition in
130772         /usr/include/sys/int_types.h.
130774         * lib/exclude.c: Use `""', not `<>' to #include non-system header
130775         files.
130776         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
130777         and strncasecmp as r-values.  Unixware didn't have declarations.
130779 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130781         * lib/xstrtol.h: Add copyright notice.
130782         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
130783         LONGINT_INVALID_SUFFIX_CHAR.
130785 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130787         * lib/xstrtol.c (strtoimax): New decl.
130789 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130791         * lib/xgetcwd.c: Don't include pathmax.h.
130792         Include stdlib.h and unistd.h if available.
130793         Include xalloc.h.
130794         (xmalloc, xstrdup, free): Remove decls.
130795         (xgetcwd): Don't assume sizes fit in unsigned.
130796         Check for overflow when computing sizes.
130797         Simplify reallocation code.
130799 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130801         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
130802         a directory's st_size can have an arbitrary value, so the old
130803         usage could waste an arbitrary amount of memory.  All uses
130804         changed.
130805         * lib/savedir.h: Update prototype.
130807 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130809         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
130811         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
130812         old strtoimax.c.
130814         Also, make the following further changes to make this file's
130815         configuration more similar to that of strtol.c:
130816         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
130817         (strtoumax, uintmax_t, strtoull, strtol): Remove.
130818         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
130819         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
130820         changed to signed values.
130822         And make the following changes as well:
130823         Fix copyright notice, as 1999 was missing.
130824         (verify): New macro.
130825         (strtoimax): Check sizes at compile-time, not run-time.
130826         Prefer strtol to strtoll if both work.
130827         (main): Remove; it was not that useful and was a pain to maintain.
130829         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
130831 2001-08-31  Jim Meyering  <meyering@lucent.com>
130833         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
130834         Use an initial, malloc'd, buffer of length 128 rather than
130835         a statically allocated one of length 1024.
130837 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130839         Simplify code, partly by assuming autoconf 2.52 semantics.
130841         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
130843         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
130844         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
130845         All uses removed.
130846         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
130847         Move AC_REQUIRE to next-to-top level, to avoid confusion.
130848         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
130849         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
130850         jm_AC_HEADER_INTTYPES_H.
130851         * m4/jm-macros.m4 (jm_MACROS): Likewise.
130853         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
130855         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130856         Quote first arg of AC_DEFUN.
130857         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
130858         since they are needed to parse the include file even if we need
130859         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
130860         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
130861         but with opposite signedness.
130863 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130865         Merge 'exclude' changes from tar 1.13.22.
130866         This fixes one or two unlikely storage allocation overflow bugs,
130867         but doesn't change user-visible behavior otherwise.
130869 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130871         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
130872         (jm_PREREQ_EXCLUDE): New macro.
130874 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130876         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
130877         tm to be declared.
130879 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130881         * lib/hash.c: Remove '2001' from copyright notice.
130883 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130885         * lib/full-write.h: New file.
130886         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
130887         * lib/full-write.c: Correct credits, as cccp.c no longer
130888         exists and anyway it was so heavily changed from the old cccp
130889         code as to be unrecognizable.  Include full-write.h.
130890         (full_write): Return size_t, with short writes meaning failure.
130891         All callers changed.  This fixes a bug with large buffers
130892         on 64-bit hosts.
130893         * lib/utime.c: Include full-write.h.
130895 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130897         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
130898         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
130899         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
130900         Include if available.
130901         (<xalloc.h>): Include
130902         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
130903         (verify): New macro.  Use it to verify that EXCLUDE macros do not
130904         collide with FNM macros.
130905         (struct patopts): New struct.
130906         (struct exclude): Use it, as exclude patterns now come with options.
130907         (new_exclude): Support above changes.
130908         (new_exclude, add_exclude_file):
130909         Initial size must now be a power of two to simplify overflow checking.
130910         (free_exclude, fnmatch_no_wildcards): New function.
130911         (excluded_filename): No longer requires options arg, as the options
130912         are determined by add_exclude.  Now returns bool, not int.
130913         (excluded_filename, add_exclude):
130914         Add support for the fancy new exclusion options.
130915         (add_exclude, add_exclude_file): Now takes int options arg.
130916         Check for arithmetic overflow when computing sizes.
130917         (add_exclude_file): xrealloc might modify errno, so don't
130918         realloc until after errno might be used.
130920         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
130921         New macros.
130922         (free_exclude): New decl.
130923         (add_exclude, add_exclude_file): Now takes int options arg.
130924         (excluded_filename): No longer requires options arg, as the options
130925         are determined by add_exclude.  Now returns bool, not int.
130927 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130929         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
130931 2001-08-27  Jim Meyering  <meyering@lucent.com>
130933         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
130935         * lib/version-etc.c (N_): Remove definition.
130936         Revert most of last change.
130937         Instead, simply don't mark the `Copyright...' string for translation.
130938         Based on advice from Paul Eggert.
130940         * lib/strtoxmax.c: Tweak comment.
130942 2001-08-26  Jim Meyering  <meyering@lucent.com>
130944         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
130946         * m4/xstrtoimax.m4: New file.
130947         * m4/xstrtoumax.m4: Add comments explaining why we
130948         AC_REPLACE_FUNCS(strtol).
130950 2001-08-26  Jim Meyering  <meyering@lucent.com>
130952         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
130953         of copyright with `%s' so translators don't get an untranslated
130954         message in 2002.
130955         (COPYRIGHT_YEAR): Define.
130956         (version_etc): Use fprintf rather than fputs.
130957         Suggestion from Ulrich Drepper.
130959         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
130961         * lib/strtoll.c: New file, from GNU libc.
130962         * lib/xstrtoimax.c: New file.
130964         * lib/xstrtol.h: Add xstrtoimax.
130965         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
130966         * lib/strtoimax.c: New file.  Likewise, but first define
130967         STRTOUXMAX_SIGNED.
130969         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
130970         ...
130971         * lib/strtoxmax.c: ... then renamed to this.
130973 2001-08-18  Paul Eggert  <eggert@twinsun.com>
130975         * m4/inttypes.m4: Add AC_PREREQ(2.13).
130976         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
130977         (jm_AC_TYPE_INTMAX_T): New macro.
130978         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
130980         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
130982         * m4/longlong.m4: Renamed from ulonglong.m4.
130983         * m4/inttypes.m4: Renamed from inttypes_h.m4.
130984         * m4/uintmax_t.m4: Removed.
130986 2001-08-13  Paul Eggert  <eggert@twinsun.com>
130988         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
130989         Port to Solaris 8, where 'sed' requires a space after the 'r'
130990         command, and where sh dislikes "$/".  Clean up the spacing a bit.
130991         Redirect output to $tmp just once.
130993 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
130995         * lib/addext.c (<errno.h>): Include.
130996         (errno): Declare if not defined.
130997         (addext): Work correctly when pathconf returns -1 and leaves
130998         errno alone because there is no limit.  Also, work even if
130999         pathconf returns a value greater than SIZE_MAX.
131001 2001-08-12  Jim Meyering  <meyering@lucent.com>
131003         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
131004         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
131005         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
131006         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
131007         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
131008         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
131009         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
131010         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
131011         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
131012         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
131013         utime.m4, utimes.m4, xstrtoumax.m4:
131014         Quote the first argument in each use of AC_DEFUN.
131016 2001-08-12  Jim Meyering  <meyering@lucent.com>
131018         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
131019         Simply `return getcwd (NULL, 0);'.
131020         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
131021         Use 1300 as initial value for length, not PATH_MAX.
131023         * lib/pathmax.h: Clean up cpp syntax.
131025 2001-08-12  Jim Meyering  <meyering@lucent.com>
131027         * lib/gettimeofday.c: New file.
131028         * lib/gtod.h: New file.
131029         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
131031 2001-08-05  Jim Meyering  <meyering@lucent.com>
131033         * m4/jm-macros.m4: Require autoconf-2.52.
131035 2001-08-04  Jim Meyering  <meyering@lucent.com>
131037         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
131038         stmt, to get in sync with glibc.
131040 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131042         The following changes are from gettext 0.10.39 as maintained by
131043         Bruno Haible.
131045         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
131046         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
131047         with inverted sense.  All uses changed.
131049         * lib/mbswidth.c: Don't include <limits.h>.
131050         Include <stdlib.h> and <string.h> unconditionally.
131051         (iswcntrl, mbsinit, ISCNTRL): New macros.
131052         (mbsnwidth): Use K&R style function declarations.
131053         Don't bother checking for MB_LEN_MAX == 1, since the compiler
131054         can optimize it when MB_CUR_MAX == 1.
131055         The width of control characters is zero, not 1.
131057 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131059         The following changes are from gettext 0.10.39 as maintained by
131060         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
131062         * m4/codeset.m4: Upgrade to serial AM1.
131063         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
131064         all uses changed.  Quote first arg of AC_DEFUN.
131065         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
131067         * m4/iconv.m4: Upgrade to serial AM2.
131068         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
131069         Add --with-libconv-prefix.
131070         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
131071         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
131072         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
131073         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
131074         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
131076         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
131077         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
131078         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
131079         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
131080         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
131081         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
131082         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
131083         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
131084         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
131086         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
131087         string.h any more.
131089         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
131090         not the default value.
131092         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
131093         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
131094         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
131095         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
131096         Also check for iswcntrl, used for wcwidth fallback.
131097         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
131098         to Autoconf 2.13.
131100 2001-08-03  Jim Meyering  <meyering@lucent.com>
131102         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
131103         as it was in the original.  Reported by Paul Eggert.
131105 2001-07-16  Jim Meyering  <meyering@lucent.com>
131107         * m4/gettimeofday.m4: New file.
131108         Prompted by a report from Bernhard Baehr.
131110 2001-07-15  Jim Meyering  <meyering@lucent.com>
131112         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
131113         stuff. Now it's in ../Makefile.cfg.
131115 2001-07-15  Jim Meyering  <meyering@lucent.com>
131117         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
131118         (BUILT_SOURCES): Add unlocked-io.h.
131119         (io_functions): Define.
131120         (unlocked-io.h): New rule.
131121         (DISTCLEANFILES): Add unlocked-io.h.
131122         (all-local): Depend on unlocked-io.h, to ensure it is created.
131124         * lib/unlocked-io.hin: New file
131126         * lib/regex.c: Update from glibc.
131128 2001-07-05  Jim Meyering  <meyering@lucent.com>
131130         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
131131         recommendation.
131132         (libfetish_a_SOURCES): Put all .h files here instead.
131133         Remove a thus-exposed (better checks in automake) duplicate and
131134         two unnecessary .h files.
131136 2001-07-04  Jim Meyering  <meyering@lucent.com>
131138         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
131139         that generates jm-glibc-io.m4 so that it doesn't trigger any make
131140         distcheck failure.
131142 2001-07-02  Jim Meyering  <meyering@lucent.com>
131144         The following changes were prompted by suggestions from Bruno Haible.
131146         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
131147         is now generated.
131148         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
131149         definition of EXTRA_DIST.
131150         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
131151         ensure that the generated file is created/updated whenever the list
131152         of $(unlocked_functions) is changed.
131153         (jm-glibc-io.m4): New rule.
131154         (unlocked-io.h): New rule -- currently unused.
131156 2001-06-24  Jim Meyering  <meyering@lucent.com>
131158         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
131159         unmatched right bracket, rather than kludging it with an extra,
131160         falsely-matching quote in a comment.  Patch by Akim Demaille.
131162 2001-06-11  Jim Meyering  <meyering@lucent.com>
131164         * lib/regex.c: Update from GNU libc.
131166 2001-05-27  Jim Meyering  <meyering@lucent.com>
131168         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
131169         Check for ut_type in struct utmp.
131171 2001-05-27  Jim Meyering  <meyering@lucent.com>
131173         * lib/readutmp.h (UT_TYPE): Define.
131175 2001-05-24  Jim Meyering  <meyering@lucent.com>
131177         * lib/argmatch.c: Include "quote.h".
131178         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
131179         quote function.  Reported by Göran Uddeborg.
131181 2001-05-22  Jim Meyering  <meyering@lucent.com>
131183         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
131184         now that we use the package-supplied version unconditionally.
131185         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
131187 2001-05-21  Jim Meyering  <meyering@lucent.com>
131189         * m4/regex.m4: Change a couple backticks to single quotes to avoid
131190         shell syntax errors.
131192 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
131194         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
131196 2001-05-20  Paul Eggert  <eggert@twinsun.com>
131198         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
131199         Don't bother to check library strftime, since
131200         we'll be using our own my_strftime function anyway.
131201         Define my_strftime instead of strftime.
131203 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
131205         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
131206         which is not yet declared.
131208 2001-05-15  Jim Meyering  <meyering@lucent.com>
131210         * m4/regex.m4: Use proper quoting so brackets appear in the test
131211         program.
131212         Reported by, and with help from, Bruno Haible.
131214 2001-05-13  Jim Meyering  <meyering@lucent.com>
131216         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
131217         undefined.
131219 2001-05-11  Paul Eggert  <eggert@twinsun.com>
131221         dirname code cleanup.  base_name now behaves more compatibly
131222         with POSIX basename when given file names that have trailing
131223         slashes, and similarly for dir_name.  Add new primitives
131224         base_len and dir_len.  Put the directory-name-related decls
131225         into dirname.h.
131227         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
131228         * lib/backupfile.c (base_name): Likewise.
131229         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
131230         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
131231         * lib/makepath.c (strip_trailing_slashes): Likewise.
131232         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
131233         ISSLASH): Likewise.
131234         * lib/rename.c (strip_trailing_slashes): Likewise.
131235         * lib/same.c (base_name): Likewise.
131236         * lib/stripslash.c (ISSLASH): Likewise.
131238         * lib/addext.c: Include <dirname.h> after size_t is defined.
131239         * lib/backupfile.c: Likewise.
131241         * lib/addext.c (addext): Use base_len to trim redundant
131242         trailing slashes instead of doing it ourselves.
131243         But do not trim the last slash if it is not redundant.
131245         * lib/backupfile.c (find_backup_file_name,
131246         max_backup_version): Use base_len instead of rolling it ourselves.
131247         Handle the case of "" and (on DOS) "C:" correctly.
131249         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
131250         needed. Include <string.h>, <dirname.h>.
131251         (base_name): Allow file names ending in slashes, other than names
131252         that are all slashes.  In this case, return the basename followed
131253         by the slashes.  This is more general, and can be used in places
131254         where the original base_name purposely had an assertion failure.
131255         (base_len): New function.
131257         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
131258         Do not include <assert.h>; no longer needed.
131259         Include xalloc.h.
131260         (memrchr): Remove decl.
131261         (dir_name_r): Remove.
131262         (dir_len): Renamed from dirlen.  All callers changed.
131263         Rewrite in terms of base_name, for simplicity and consistency.
131264         (dir_name): Never return NULL.  All callers changed.
131265         Do not include <stdlib.h> in test program; no longer needed.
131266         return 0; is fine for test program.
131268         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
131269         New macros.
131270         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
131272         * lib/path-concat.c (path_concat): Use base_len to compute
131273         base length, not strlen; this means we cannot rely on memcpy
131274         to null-terminate.
131276         * lib/same.c (STREQ): Remove.
131277         (same_name): Handle the case where the basename ends in trailing '/'.
131279         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
131280         a slash was stripped.  Do not strip the last slash after a
131281         file system prefix.
131283 2001-05-11  Paul Eggert  <eggert@twinsun.com>
131285         * lib/Makefile.am (libfetish_a_SOURCES):
131286         Add strftime.c, since we now compile it on all hosts.
131288         * lib/strftime.c (my_strftime):
131289         Define to nstrftime if emacs, but only if my_strftime is not defined.
131290         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
131291         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
131292         Add one more extra argument: a nanoseconds value.
131293         All uses changed.
131294         (ns): New macro.
131295         (my_strftime function): Add %N format.
131296         (emacs_strftimeu): Renamed from emacs_strftime,
131297         with extra ut argument.
131299 2001-05-09  Paul Eggert  <eggert@twinsun.com>
131301         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
131303 2001-04-21  Jim Meyering  <meyering@lucent.com>
131305         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
131306         doesn't interfere.
131308 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
131310         * m4/ftruncate.m4: Check for chsize.
131311         Link with ftruncate.o unconditionally if ftruncate is missing.
131312         This was required when cross-compiling to i586-mingw32msvc.
131314 2001-04-08  Jim Meyering  <meyering@lucent.com>
131316         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
131317         recomputed; that's necessary when the offset spans a DST transition.
131318         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
131320 2001-04-02  Jim Meyering  <meyering@lucent.com>
131322         * lib/regex.h, regex.c: Update from GNU libc.
131324 2001-03-24  Jim Meyering  <meyering@lucent.com>
131326         * m4/jm-macros.m4: Require autoconf-2.49d.
131328 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
131330         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
131332 2001-03-19  Paul Eggert  <eggert@twinsun.com>
131334         * lib/version-etc.c (version_etc_copyright): Update to 2001.
131336 2001-03-17  Jim Meyering  <meyering@lucent.com>
131338         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
131339         now that the version in autoconf is equivalent.
131340         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
131342         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
131343         Suggestion from Akim Demaille.
131345         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
131346         (jm_PREREQ_TEMPNAME): New function.
131348 2001-03-16  Paul Eggert  <eggert@twinsun.com>
131350         * lib/tempname.c (uint64_t): Define to uintmax_t if
131351         not defined, and if UINT64_MAX is not defined.
131352         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
131353         Reported by John David Anglin.
131355 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
131357         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
131358         resolve alias if codeset is empty.
131359         * lib/config.charset (BeOS): Use wildcard syntax.
131361 2001-03-13  Jim Meyering  <meyering@lucent.com>
131363         * lib/path-concat.c (path_concat)
131364         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
131365         concatenating e.g., `C:' and `foo'.
131366         From Bruno Haible.
131368 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131370         * lib/localcharset.c (locale_charset): Don't use
131371         setlocale(LC_CTYPE,NULL). Don't return NULL.
131372         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
131374 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131376         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
131377         support for DOS/DJGPP.
131379 2001-03-01  Paul Eggert  <eggert@twinsun.com>
131381         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
131382         lacks mkstemp.  Compile our own tempname.c if we compile our own
131383         mkstemp.c, as mkstemp relies on tempname.
131385 2001-03-01  Jim Meyering  <meyering@lucent.com>
131387         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
131388         AH_VERBATIM really does output its argument verbatim.
131390 2001-02-28  Paul Eggert  <eggert@twinsun.com>
131392         * lib/Makefile.am (libfetish_a_SOURCES):
131393         Add dup-safer.c, fopen-safer.c.
131394         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
131396         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
131397         * lib/unistd-safer.h: New files.
131399 2001-02-25  Paul Eggert  <eggert@twinsun.com>
131401         The mkstemp replacement is taken from glibc 2.2.2, with some
131402         portability fixes for use outside glibc, as follows:
131404         * lib/tempname.c (struct_stat64): New macro.
131405         (direxists, __gen_tempname): Use it.
131406         This avoids a portability problem with Solaris 8.
131408         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
131409         (<stddef.h>, <stdint.h>, <string.h>):
131410         Include only if STDC_HEADERS || _LIBC.
131411         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
131412         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
131413         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
131414         (__set_errno): Define this macro if <errno.h> doesn't.
131415         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
131416         Define these macros if <stdio.h> doesn't.
131417         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
131418         Define these macros if <sys/stat.h>
131419         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
131420         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
131421         __xstat64): Define if not _LIBC.
131422         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
131423         (__gen_tempname): Invoke gettimeofday only if
131424         HAVE_GETTIMEOFDAY || _LIBC;
131425         otherwise, fall back on plain "time".
131426         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
131428         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
131430         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
131432 2001-02-18  Paul Eggert  <eggert@twinsun.com>
131434         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
131436 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131438         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
131439         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
131440         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
131441         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
131443 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131445         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
131446         Remove workaround macros for hosts that have mbrtowc but not
131447         mbstate_t, as we now insist on proper declarations for both
131448         before using mbrtowc.
131450 2001-02-17  Jim Meyering  <meyering@lucent.com>
131452         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
131453         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
131454         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
131455         UnixWare 7.1.1.
131457         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
131458         rather than AC_CACHE_VAL.
131460 2001-02-17  Jim Meyering  <meyering@lucent.com>
131462         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
131463         around included file name.
131465         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
131467         * lib/strftime.c: Update from GNU libc (the only changes were to
131468         comments).
131470 2001-02-17  Jim Meyering  <meyering@lucent.com>
131472         * lib/regex.c: Update from libc.
131474 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
131476         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
131477         clash.
131479 2001-02-16  Paul Eggert  <eggert@twinsun.com>
131481         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
131482         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
131483         Reported by Mark Hounschell via Paul Eggert.
131485 2001-02-07  Jim Meyering  <meyering@lucent.com>
131487         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
131489 2001-02-05  Jim Meyering  <meyering@lucent.com>
131491         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
131492         it includes the patch required for `large file' support with at least
131493         HP-UX's 10.20 /bin/cc.
131495 2001-02-03  Jim Meyering  <meyering@lucent.com>
131497         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
131498         AS_IF, now that it works once again (mysteriously).
131499         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131501 2001-01-30  Jim Meyering  <meyering@lucent.com>
131503         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
131504         * m4/chown.m4: Rename conftestchown to conftest.chown.
131505         * m4/rename.m4: s/conftestdir/conftest.d1/ and
131506         s/conftestdir2/conftest.d2/.
131507         * m4/utimes.m4: s/conftestdata/conftest.data/
131508         Inspired by Pavel Roskin's change in autoconf.
131510 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
131512         * lib/config.charset: Update for FreeBSD 4.2.
131514 2001-01-27  Jim Meyering  <meyering@lucent.com>
131516         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
131517         a use of AS_IF.
131518         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131520 2001-01-26  Jim Meyering  <meyering@lucent.com>
131522         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
131523         quotearg.c includes it.
131525 2001-01-26  Jim Meyering  <meyering@lucent.com>
131527         * lib/quotearg.c: Include stddef.h.
131528         * lib/quote.c: Include stddef.h.
131529         Reported by Axel Kittenberger.
131531         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
131532         line in double quotes so that it evokes a better diagnostic.
131533         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
131534         Reported by Axel Kittenberger.
131536 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
131538         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
131539         as if it was a `charset'.
131541 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131543         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
131544         has const.
131546 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131548         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
131549         to avoid a warning.  Add back 'const' to inptr.
131551 2001-01-20  Jim Meyering  <meyering@lucent.com>
131553         Be sure that headers are checked before used in code compiled
131554         for the type checks.
131555         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
131556         In place of that, invoke jm_CHECK_ALL_TYPES.
131557         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
131558         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
131559         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
131560         The check for ssize_t was mistakenly run before the test for unistd.h.
131562         The configure-time check for stdbool.h was missing.
131563         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
131564         (jm_PREREQ_HASH): New function.
131566 2001-01-17  Jim Meyering  <meyering@lucent.com>
131568         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
131569         for autoconf-2.49c.
131570         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
131572 2001-01-16  Jim Meyering  <meyering@lucent.com>
131574         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
131575         From Bruno Haible.
131577 2001-01-14  Jim Meyering  <meyering@lucent.com>
131579         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
131580         foo and bar.  Create conftestdir/ in the script, not in the C code.
131581         Remove directories in the script, not in the C code.
131582         Remove conftestdir{,2} before trying to create the directory.
131583         Make the entire configure script fail if the mkdir fails.
131585 2001-01-14  Jim Meyering  <meyering@lucent.com>
131587         * lib/rename.c: New file.  From Volker Borchert.
131588         Include stdlib.h, string.h or strings.h, and xalloc.h.
131589         Use strip_trailing_slashes rather than open-coding it.
131591 2001-01-03  Paul Eggert  <eggert@twinsun.com>
131593         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
131595 2001-01-03  Jim Meyering  <meyering@lucent.com>
131597         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
131598         of local `inptr' to avoid warning with some system declarations of
131599         iconv.
131601 2001-01-02  Volker Borchert  <bt@teknon.de>
131603         * m4/rename.m4: New file.
131604         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
131606 2001-01-01  Jim Meyering  <meyering@lucent.com>
131608         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
131609         even on systems with utmpx.h.  It's necessary for the declaration of
131610         utmp's ut_user member.  Reported by Andreas Jaeger.
131612         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
131613         available. They are required for the declarations of getgrgid and
131614         getpwuid resp.
131615         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
131616         Reported by Andreas Jaeger.
131618 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
131620         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
131621         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
131622         so `make install' also works in VPATH builds.
131624 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
131626         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
131627         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
131628         can be used in subdirectories.
131630 2000-12-29  Paul Eggert  <eggert@twinsun.com>
131632         * lib/modechange.c: Do not assume that mode_t uses the
131633         traditional octal encoding.  E.g. "chmod 1 FOO" should set
131634         the other-execute bit of FOO even if S_IXOTH != 1.
131636         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
131637         WOTH, XOTH, ALLM): New macros.
131638         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
131639          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
131640         Use them.
131641         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
131642         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
131643         (mode_compile):
131644         No need to use uintmax_t; unsigned long is long enough.
131645         Don't bother to get suffix since we don't use it.
131647 2000-12-26  Jim Meyering  <meyering@lucent.com>
131649         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
131650         better with autoheader.
131652 2000-12-24  Jim Meyering  <meyering@lucent.com>
131654         * lib/hash.c (is_prime): Return explicit boolean values.
131655         (hash_get_first): Return NULL to appease Irix5.6's 89.
131656         Reported by Nelson Beebe.
131658 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
131660         * lib/localcharset.c (locale_charset): Add support for Win32.
131662 2000-12-18  Paul Eggert  <eggert@twinsun.com>
131664         * lib/physmem.h, lib/physmem.c: New files.
131666         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
131667         (noinst_HEADERS): Add physmem.h.
131669         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
131670         't' for compatibility with Solaris 8 sort.
131672 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
131674         * lib/config.charset: Add support for BeOS.
131676 2000-12-17  Jim Meyering  <meyering@lucent.com>
131678         * m4/dos.m4 (jm_AC_DOS): New file and macro.
131679         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
131681 2000-12-16  Jim Meyering  <meyering@lucent.com>
131683         This bug had a serious impact on chown: `chown N:M FILE' (for integer
131684         N and M) would have treated it like `chown N:N FILE'.
131686         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
131688 2000-12-16  Jim Meyering  <meyering@lucent.com>
131690         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
131691         SHELLS_FILE to a file name that's useful on djgpp systems.
131692         Include stdlib.h.
131693         (ADDITIONAL_DEFAULT_SHELLS): Define.
131694         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
131695         Based mostly on a patch from Prashant TR.
131697 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
131699         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
131700         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
131701         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
131703 2000-12-08  Andreas Schwab  <schwab@suse.de>
131705         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
131706         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
131708 2000-12-07  Jim Meyering  <meyering@lucent.com>
131710         * lib/stripslash.c (ISSLASH): Define.
131711         (strip_trailing_slashes): Use ISSLASH rather than comparing against
131712         `/'.
131713         From Prashant TR.
131715         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
131716         (dir_name_r): Declare this function as static.
131717         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
131718         manifest itself on a name containing a mix of slashes and
131719         backslashes.
131720         Make this function work with names starting with a DOS-style
131721         drive letter and colon prefix.
131722         (dir_name): Append `.' if necessary.
131723         Based mostly on patches from Prashant TR and Eli Zaretskii.
131725         * lib/dirname.h (dir_name_r): Remove prototype.
131727 2000-12-06  Paul Eggert  <eggert@twinsun.com>
131729         * m4/off_t-format.m4: Remove this file.
131730         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
131732 2000-12-06  Jim Meyering  <meyering@lucent.com>
131734         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
131735         replacement strtoull, we may well need the replacement strtoul, too.
131736         Check for declarations of strtoul and strtoull.
131737         Check for strtol.  Mainly as a cue to cause automake to include
131738         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
131739         Check for limits.h -- strtol.c needs it.
131741 2000-12-05  Jim Meyering  <meyering@lucent.com>
131743         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
131745 2000-12-04  Jim Meyering  <meyering@lucent.com>
131747         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
131748         Also include memory.h, stdlib.h, unistd.h if appropriate.
131749         Reported by Andreas Jaeger (conflicting declaration of malloc).
131751 2000-12-02  Jim Meyering  <meyering@lucent.com>
131753         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
131754         * m4/jm-macros.m4 (jm_MACROS): require it.
131756 2000-12-02  Jim Meyering  <meyering@lucent.com>
131758         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
131760 2000-12-01  Paul Eggert  <eggert@twinsun.com>
131762         * lib/memrchr.c: Include <config.h> before any system include file.
131764 2000-11-30  Jim Meyering  <meyering@lucent.com>
131766         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
131768 2000-11-30  Jim Meyering  <meyering@lucent.com>
131770         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
131772 2000-11-29  Paul Eggert  <eggert@twinsun.com>
131774         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
131776 2000-11-26  Jim Meyering  <meyering@lucent.com>
131778         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
131780 2000-11-22  Paul Eggert  <eggert@twinsun.com>
131782         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
131783         size of (size_t) -1; it's not portable.
131785 2000-11-17  Jim Meyering  <meyering@lucent.com>
131787         * lib/strstr.c: Update from GNU libc.
131789 2000-11-17  Akim Demaille  <akim@epita.fr>
131791         * lib/obstack.h: Formatting changes.
131792         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
131793         prevent type checking.
131794         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
131795         cast the value to (void *): assigning a `foo *' to a `void *'
131796         variable is valid.
131797         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
131799 2000-11-16  Jim Meyering  <meyering@lucent.com>
131801         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
131803 2000-11-11  Jim Meyering  <meyering@lucent.com>
131805         * lib/error.c: Add a couple #includes, merging from GNU libc version.
131807 2000-11-10  Jim Meyering  <meyering@lucent.com>
131809         * lib/obstack.h: Update from GNU libc.
131810         * lib/obstack.c: Likewise.
131812 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
131814         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
131816 2000-11-06  Paul Eggert  <eggert@twinsun.com>
131818         * lib/getusershell.c (setusershell): Use rewind rather than
131819         fseek/fseeko, to avoid configuration hassles with fseeko.
131820         Don't bother opening SHELLS_FILE if shellstream is NULL;
131821         it's not necessary.
131823 2000-11-05  Jim Meyering  <meyering@lucent.com>
131825         * lib/makepath.h (make_dir): Declare.
131826         * lib/makepath.c (make_dir): Remove `static' attribute.
131827         Tweak a comment.
131829 2000-11-04  Jim Meyering  <meyering@lucent.com>
131831         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
131833 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
131835         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
131836         last one in a bucket, advance to the next bucket.
131838 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
131840         * lib/fnmatch.c: Do not comment out all the code if we are using
131841         the GNU C library, because in some cases we are replacing buggy
131842         code in the GNU C library itself.
131844 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
131846         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
131847         (regex_compile): Catch bogus \(\1\).
131849 2000-10-30  Paul Eggert  <eggert@twinsun.com>
131851         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
131852         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
131853         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
131855 2000-10-30  Paul Eggert  <eggert@twinsun.com>
131857         * lib/error.h, getline.h, modechange.h:
131858         Remove "2000" from Copyright line, as the file hasn't been
131859         changed this year other than in the copyright notice.
131861         * lib/xalloc.h: Add "2000" to Copyright line, as this file
131862         was changed this year.
131864 2000-10-29  Jim Meyering  <meyering@lucent.com>
131866         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
131867         renaming.
131868         * m4/ls-mntd-fs.m4: Likewise
131870 2000-10-29  Jim Meyering  <meyering@lucent.com>
131872         * lib/xstat.in: Fix grammar in comment.
131874 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
131876         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
131877         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
131878         doesn't define __restrict_arr.
131880 2000-10-28  Jim Meyering  <meyering@lucent.com>
131882         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
131883         (jm_PREREQ_MEMCHR): New function.
131885 2000-10-28  Jim Meyering  <meyering@lucent.com>
131887         * lib/memchr.c: Update from libc.
131888         Adjust for portability:
131889         [HAVE_STDLIB_H]: Include stdlib.h.
131890         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
131891         Undef __memchr, too.
131892         [!weak_alias]: Define __memchr to memchr.
131894         * lib/regex.c: Update from libc.
131895         * lib/regex.h: Likewise.
131896         * lib/getopt1.c: Likewise.
131897         * lib/memcmp.c: Likewise.
131899         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
131900         Avoid using fseek, when possible -- it's broken by design.
131901         Patch by Ulrich Drepper.
131903 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
131905         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
131906         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
131907         Giving in to popular pressure to shut up the compiler with casts.
131909 2000-10-26  Jim Meyering  <meyering@lucent.com>
131911         * lib/strftime.c: Update from libc.
131913 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
131915         * regex.c: More `unsigned char' -> `re_char' changes.
131916         Also change several `int' into `re_wchar_t'.
131917         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
131918         (PUSH_FAILURE_POINTER): Don't cast any more.
131919         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
131920         We want GCC to complain, since this piece of code makes
131921         re_match non-reentrant, which *should* be fixed.
131922         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
131923         (EXTEND_BUFFER): Use RETALLOC.
131924         (SET_LIST_BIT): Don't cast.
131925         (re_wchar_t): New type.
131926         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
131927         that those two functions will always properly return.
131928         (IMMEDIATE_QUIT_CHECK): Cast to void.
131929         (analyse_first): Use recursion rather than an explicit stack.
131930         (re_compile_fastmap): Can't fail anymore.
131931         (re_search_2): Don't check re_compile_fastmap for failure.
131932         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
131933         Now also sets the new value (passed in a new argument).
131934         (re_match_2_internal): Use it.
131935         Also, use a new var `reg' of type size_t when looping through regs
131936         rather than reuse the inappropriate `mcnt'.
131938 2000-10-25  Jim Meyering  <meyering@lucent.com>
131940         * lib/obstack.c: Update from libc.
131942 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
131944         * regex.c (regex_compile): Change the way of handling a range from
131945         a char less than 256 to a char not less than 256.
131947 2000-10-24  Andrew Innes  <andrewi@gnu.org>
131949         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
131950         NT-Emacs only.
131951         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
131952         so that re_search functions only quit when callers expect them to.
131954 2000-10-23  Jim Meyering  <meyering@lucent.com>
131956         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
131957         wrong.  That set_locale call must not have any side effects.
131958         From Paul Eggert.
131960 2000-10-22  Jim Meyering  <meyering@lucent.com>
131962         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
131963         [CYCLIC]: Remove now-unused definition.
131965         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
131966         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
131967         Suggestion from Ulrich Drepper.
131969 2000-10-21  Jim Meyering  <meyering@lucent.com>
131971         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
131972         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
131973         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
131975 2000-10-21  Jim Meyering  <meyering@lucent.com>
131977         * lib/dirname.c (memrchr): Declare if necessary.
131978         (dir_name): Remove the restriction that there be no
131979         trailing slashes.  Now, this code skips past them, effectively
131980         ignoring them.
131981         [TEST_DIRNAME] (main): New unit tests.
131983         * lib/memrchr.c: New file from GNU libc.
131984         Undef __memrchr, too.
131985         [!weak_alias]: Define __memrchr to memrchr.
131986         Guard weak_alias use with `#ifdef weak_alias'.
131988 2000-10-21  Jim Meyering  <meyering@lucent.com>
131990         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
131991         (dir_name): Use dir_name_r.
131992         * lib/dirname.h (dir_name_r): Declare it.
131994 2000-10-17  Jim Meyering  <meyering@lucent.com>
131996         * lib/quote.h (PARAMS): Define and use.
131997         Reported by Akim Demaille.
131999         * lib/getopt.c: Update from libc.
132001 2000-10-16  Jim Meyering  <meyering@lucent.com>
132003         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
132004         setlocale.
132005         From Jan Fedak.
132007 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
132009         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
132011 2000-09-25  Jim Meyering  <meyering@lucent.com>
132013         * lib/md5.h (rol): Define (from GnuPG).
132015         * lib/sha.c: Give credit (GnuPG) where due.
132016         (M): Use rol rather than open-coding it.
132017         Add a FIXME comment.
132019 2000-09-21  Jim Meyering  <meyering@lucent.com>
132021         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
132022         Reported by Michael Stone.
132024 2000-09-20  Jim Meyering  <meyering@lucent.com>
132026         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
132027         (noinst_HEADERS): Add sha.h.
132028         Based on code from Scott G. Miller and from GnuPG.
132030 2000-09-18  Jim Meyering  <meyering@lucent.com>
132032         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
132033         LIBS. Otherwise, everyone ends up linking with -lelf for some
132034         configurations.
132035         Reported by Mike Stone.
132037 2000-09-15  Jim Meyering  <meyering@lucent.com>
132039         * lib/regex.c: Update from libc.
132041 2000-09-10  Jim Meyering  <meyering@lucent.com>
132043         * lib/getopt.c (_getopt_internal): Update from glibc.
132045 2000-09-09  Jim Meyering  <meyering@lucent.com>
132047         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
132048         think it should be used as a general replacement for isascii.
132049         * lib/fnmatch.c: Likewise.
132050         * lib/mbswidth.c: Likewise
132051         * lib/regex.c: Likewise.
132053         Don't use atoi.
132054         * lib/userspec.c: Include sys/param.h and limits.h.
132055         Include xstrtol.h.
132056         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
132057         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
132058         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
132059         UID, GID.  Check range.
132061 2000-09-06  Jim Meyering  <meyering@lucent.com>
132063         * lib/getopt.c (_getopt_internal): Update from glibc.
132065 2000-08-30  Jim Meyering  <meyering@lucent.com>
132067         * lib/strftime.c: Merge in changes from GNU libc.
132069 2000-08-26  Jim Meyering  <meyering@lucent.com>
132071         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
132072         * m4/fpending.m4: New file.
132074 2000-08-26  Jim Meyering  <meyering@lucent.com>
132076         * lib/closeout.c: Include "__fpending.h".
132077         (close_stdout_status): Return right away if there's nothing to flush.
132079         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
132080         * lib/__fpending.c: New file.
132081         * lib/__fpending.h: New file.
132083 2000-08-20  Jim Meyering  <meyering@lucent.com>
132085         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
132086         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
132087         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
132089 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
132091         Improve fileutils installation on systems where running
132092         programs (like install) can't be unlinked.
132093         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
132094         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
132096 2000-08-07  Paul Eggert  <eggert@twinsun.com>
132098         Standardize on "memory exhausted" instead of "Memory exhausted"
132099         or "virtual memory exhausted".
132100         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
132101         "virtual memory exhausted".
132102         * lib/same.c (same_name): Invoke xalloc_die instead of printing
132103         our own message.
132104         * lib/userspec.c (parse_user_spec): Likewise.
132105         * lib/bumpalloc.h: comment fix
132106         * lib/same.c, userspec.c: Include xalloc.h.
132108         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
132109         not char *const and pointing to a constant array.
132110         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
132111         (xrealloc): Comment fix.
132113         * lib/userspec.c (parse_user_spec):
132114         Don't translate a message until just before returning,
132115         to avoid unnecessary translation.
132117 2000-08-07  Jim Meyering  <meyering@lucent.com>
132119         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
132120         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
132121         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
132122         getgroups.c, gethostname.c, getopt.h, group-member.c,
132123         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
132124         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
132125         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
132126         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
132127         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
132128         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
132129         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
132130         yesno.c: Back out Copyright date changes for each file with no change
132131         this year.  This eases coordination with other programs using the same
132132         source code modules.  From Paul Eggert.
132134 2000-08-06  Paul Eggert  <eggert@twinsun.com>
132136         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
132137         not char, for compatibility with glibc 2.1.3 strftime.c.
132139 2000-08-03  Greg McGary  <greg@mcgary.org>
132141         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
132142         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
132143         (EXTEND_BUFFER): Use them.
132145 2000-08-01  Jim Meyering  <meyering@lucent.com>
132147         * lib/dirname.c (ISSLASH): Define.
132148         (BACKSLASH_IS_PATH_SEPARATOR): Define.
132149         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
132150         both `\' and `/' may be use as path separators.
132151         Based on a patch from Prashant TR.
132153 2000-07-31  Paul Eggert  <eggert@twinsun.com>
132155         * lib/quotearg.c (quotearg_n_options): Don't make the initial
132156         slot vector a constant, since it might get modified.
132158 2000-07-31  Jim Meyering  <meyering@lucent.com>
132160         * lib/xmalloc.c: Use `virtual memory exhausted', not
132161         `Memory exhausted'.
132162         * lib/obstack.c (print_and_abort): Likewise.
132164 2000-07-30  Paul Eggert  <eggert@twinsun.com>
132166         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
132167         buffer, so that the caller can always quote one small
132168         component of a "memory exhausted" message in slot 0.
132169         From a suggestion by Jim Meyering.
132171 2000-07-30  Jim Meyering  <meyering@lucent.com>
132173         * lib/makepath.c (make_path): Quote the other instance, too.
132175         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
132176         (STATIC_BUF_SIZE): Define.
132177         (quotearg_n_options): Use only statically allocated storage when
132178         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
132179         than STATIC_BUF_SIZE.
132181 2000-07-29  Jim Meyering  <meyering@lucent.com>
132183         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
132184         * lib/dirname.c (dir_name): Likewise.
132186         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
132187         `/'.
132189         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
132190         (dir_name): Assert that there are no trailing slashes.
132192 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
132194         * lib/mbswidth.h (mbswidth): Add a flags argument.
132195         (mbswidth): New declaration.
132196         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
132197         * lib/mbswidth.c (mbswidth): Add a flags argument.
132198         (mbsnwidth): New function.
132200 2000-07-24  Jim Meyering  <meyering@lucent.com>
132202         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
132204 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132206         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
132208 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132210         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
132211         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
132212         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
132213         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
132214         invoke multibyte primitives.
132216 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132218         * lib/quotearg.c:
132219         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
132220         so that mbstate_t is always defined.
132222         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
132223         be 1 in at least one GCC installation, and this configuration
132224         error is likely to be common.  Ignoring MB_LEN_MAX hurts
132225         performance on hosts that have mbrtowc but have only unibyte
132226         locales, but I assume these hosts are rare.
132228 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132230         * lib/mbswidth.c (_XOPEN_SOURCE):
132231         Don't define; this causes problems on Solaris 7.
132232         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
132234 2000-07-23  Jim Meyering  <meyering@lucent.com>
132236         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
132237         too: getgrgid, getpwuid, getuid.
132239 2000-07-23  Jim Meyering  <meyering@lucent.com>
132241         * lib/basename.c (base_name): Add an assertion.
132243 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
132245         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
132246         shadow its mbsinit function.
132248 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
132250         * lib/mbswidth.h: New file.
132251         * lib/mbswidth.c: New file.
132252         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
132253         (noinst_HEADERS): Add mbswidth.h.
132255 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
132257         * lib/config.charset: Add support for FreeBSD. Improve support for
132258         HP-UX and IRIX 6.
132260 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
132262         * m4/mbswidth.m4: New file.
132263         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
132265 2000-07-15  Jim Meyering  <meyering@lucent.com>
132267         * lib/makepath.c: Include quote.h.
132268         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
132269         corresponding argument in a `quote (...)' call.
132270         Give better diagnostics.
132272         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
132273         (noinst_HEADERS): Add quote.h.
132275         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
132276         from tar's src/misc.c.
132277         * lib/quote.h: New file.  Prototypes for same.
132279 2000-07-14  Paul Eggert  <eggert@twinsun.com>
132281         From a suggestion by Bruno Haible.
132282         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
132283         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
132284         to decide whether to define the BeOS workaround macro;
132285         this adjusts to the change to AC_MBSTATE_T.
132287 2000-07-14  Jim Meyering  <meyering@lucent.com>
132289         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
132290         jm_AC_TYPE_UINTMAX_T.
132292 2000-07-13  Paul Eggert  <eggert@twinsun.com>
132294         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
132296         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
132297         quotearg_buffer_restyled): Add support for
132298         clocale_quoting_style.  Undo previous change to
132299         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
132300         and "{RIGHT QUOTATION MARK}" msgids.
132302 2000-07-10  Paul Eggert  <eggert@twinsun.com>
132304         From a suggestion by Bruno Haible.
132305         * m4/mbstate_t.m4 (AC_MBSTATE_T):
132306         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
132307         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
132308         and mbstate_t, to a single-part test that simply defines mbstate_t.
132309         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
132310         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
132312 2000-07-10  Jim Meyering  <meyering@lucent.com>
132314         * m4/strerror_r.m4: Mirror the correction made in autoconf.
132316         * m4/gnu-source.m4: Output to confdefs.h directly.
132317         Suggestion from Akim Demaille.
132319 2000-07-09  Paul Eggert  <eggert@twinsun.com>
132321         The old behavior of quoting `like this' doesn't look good with
132322         newer, ISO-style fonts.  See:
132323         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
132325         Instead, quote "like this" by default.  Let the translator
132326         tailor the locale-specific quoting behavior by providing
132327         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
132329         * lib/quotearg.c (N_): New macro.
132330         (gettext_default): New function.
132331         (quotearg_buffer_restyled): Use
132332         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
132333         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
132335 2000-07-09  Jim Meyering  <meyering@lucent.com>
132337         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
132338         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
132340         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
132341         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
132343 2000-07-09  Jim Meyering  <meyering@lucent.com>
132345         * lib/Most files: Update copyright dates to include 2000.
132347 2000-07-08  Jim Meyering  <meyering@lucent.com>
132349         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
132350         if not defined.
132351         (xgethostname): Remove now-unnecessary #ifdef.
132352         Move declaration of `err' into loop where it's used.
132354 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132355         and Bruno Haible  <haible@clisp.cons.org>
132357         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
132358         only if the test for an object-type mbstate_t fails.  This
132359         prevents us from mistakenly reporting that mbstate_t is a
132360         system object type after we "#define mbstate_t int" to work
132361         around its lack.
132363 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132364         and Bruno Haible  <haible@clisp.cons.org>
132366         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
132368 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132370         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
132371         to strerror_r.
132372         Include <ctype.h> for use of isalpha.
132374 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132376         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
132377         by allocating a larger buffer. Test the gethostname return value for
132378         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
132379         returns an error and ENAMETOOLONG isn't defined.
132381 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132383         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
132384         dimension.
132386 2000-07-04  Jim Meyering  <meyering@lucent.com>
132388         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
132389         of the deprecated AC_CHECKING.
132391 2000-07-04  Jim Meyering  <meyering@lucent.com>
132393         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
132394         Reported by Bruno Haible.
132396 2000-07-04  Jim Meyering  <meyering@lucent.com>
132398         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
132399         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
132400         lacks mbrtowc.
132402 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132404         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
132405         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
132407 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132408         and Bruno Haible  <haible@clisp.cons.org>
132410         * lib/quotearg.c (mbrtowc):
132411         Assign to *pwc, and return 1 only if result is nonzero.
132412         (iswprint): Use ISPRINT when substituting our own mbrtowc.
132414 2000-07-03  Jim Meyering  <meyering@lucent.com>
132416         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
132418 2000-07-03  Jim Meyering  <meyering@lucent.com>
132420         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
132421         This is necessary to get a definition of e.g., UTMP_FILE on
132422         HP-UX 10.20.
132423         From Bob Proulx.
132425 2000-07-02  Jim Meyering  <meyering@lucent.com>
132427         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
132429         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
132430         AC_LIBOBJ(function_name).
132431         * m4/chown.m4: Likewise.
132432         * m4/fnmatch.m4: Likewise.
132433         * m4/ftruncate.m4: Likewise.
132434         * m4/getgroups.m4: Likewise.
132435         * m4/getline.m4: Likewise.
132436         * m4/group-member.m4: Likewise.
132437         * m4/jm-macros.m4: Likewise.
132438         * m4/lstat.m4: Likewise.
132439         * m4/malloc.m4: Likewise.
132440         * m4/memcmp.m4: Likewise.
132441         * m4/nanosleep.m4: Likewise.
132442         * m4/putenv.m4: Likewise.
132443         * m4/realloc.m4: Likewise.
132444         * m4/regex.m4: Likewise.
132445         * m4/stat.m4: Likewise.
132446         * m4/strftime.m4: Likewise.
132448 2000-07-02  Jim Meyering  <meyering@lucent.com>
132450         * lib/quotearg.c (mbstate_t): Don't define here.
132452 2000-07-02  Jim Meyering  <meyering@lucent.com>
132454         * lib/nanosleep.c (SIGCONT): Define if not already defined.
132456 2000-07-01  Jim Meyering  <meyering@lucent.com>
132458         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
132460 2000-07-01  Jim Meyering  <meyering@lucent.com>
132462         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
132463         problem.
132465 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132467         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
132468         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
132470 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132472         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
132473         per change in ../m4/ls-mntd-fs.m4.
132474         (read_filesystem_list): Ignore symbolic links.
132476 2000-06-29  Jim Meyering  <meyering@lucent.com>
132478         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
132479         for declaration of strcmp.
132481         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
132483         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
132484         Avoid warning by casting result to `char *' to remove `const'.
132486 2000-06-28  Jim Meyering  <meyering@lucent.com>
132488         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
132489         included by quotearg.c, for which we perform this test.  From
132490         Bruno Haible.
132492 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132494         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
132495         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
132496         <utmpx.h> exists, put readutmp.o into LIBOBJS.
132498 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132500         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
132502 2000-06-26  Paul Eggert  <eggert@twinsun.com>
132504         savedir now sets errno on failure and invokes xmalloc to get memory.
132505         Fix a couple of other minor bugs while we're at it.
132507         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
132508         (NAMLEN): Remove macro.
132509         (malloc, realloc): Remove decls.
132510         (stpcpy): Likewise.
132511         ("xalloc.h"): Include.
132512         (NAME_SIZE_DEFAULT): New macro.
132513         (savedir): Use xmalloc / xrealloc to allocate memory.
132514         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
132515         Skip "" directory entries.
132516         Use strlen to calculate directory entry length, since the old method
132517         is rarely used these days and isn't worth supporting.
132518         Don't use a pointer after freeing it.
132519         Check for integer overflow when calculating allocation size.
132520         Use memcpy to copy entries, instead of stpcpy.
132521         Set errno properly when returning NULL.
132522         Check for readdir error.
132524 2000-06-26  Jim Meyering  <meyering@lucent.com>
132526         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
132528 2000-06-25  Jim Meyering  <meyering@lucent.com>
132530         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
132531         Linux header bug when _XOPEN_SOURCE is defined to 500.
132533 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132535         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
132536         deficiency.
132538 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132540         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
132541         Include xalloc.h.
132542         Don't include <stdlib.h>.  Don't declare malloc, realloc.
132544 2000-06-24  Jim Meyering  <meyering@lucent.com>
132546         * m4/strerror_r.m4: Revive this file -- to try out an experimental
132547         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
132548         for which strerror does return char*, but which lacks a conveniently
132549         accessible declaration of the function.  If the compile-test says
132550         strerror_r doesn't work, then resort to a `run'-test that works on
132551         BeOS and segfaults on DEC Unix.
132553 2000-06-24  Jim Meyering  <meyering@lucent.com>
132555         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
132557 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132559         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
132560         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
132562 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132564         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
132565         (mbrtowc, mbstate_t): Define substitutes if
132566         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
132567         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
132568         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
132570 2000-06-23  Jim Meyering  <meyering@lucent.com>
132572         * m4/afs.m4: Add missing AC_MSG_RESULT.
132573         Reported by Bruno Haible.
132575         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
132576         Suggestion from Bruno Haible.
132578 2000-06-23  Jim Meyering  <meyering@lucent.com>
132580         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
132582 2000-06-21  Jim Meyering  <meyering@lucent.com>
132584         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
132586 2000-06-21  Jim Meyering  <meyering@lucent.com>
132588         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
132589         (noinst_HEADERS): Add getstr.h.
132591         * lib/getline.c (getstr): Move into a separate file.
132592         * lib/getstr.c (getstr): New file, extracted from getline.c, with
132593         the following changes: new parameter, delim2; both delim[12]
132594         parameters have type `int', not `char'.  The latter would lose
132595         with 8-bit delimiters.
132596         * lib/getstr.h: New file.
132598 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132600         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
132601         than 1024, return a memory chunk of least possible size, instead
132602         of size PATH_MAX + 2. In the loop, increment the size proportionally.
132603         Use free/xmalloc instead of xrealloc to avoid copying for very long
132604         paths.
132606 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132608         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
132609         the empty string.
132611 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132613         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
132614         address, not strdup.  Include <stdlib.h> and don't declare free().
132616 2000-06-19  Jim Meyering  <meyering@lucent.com>
132618         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
132620 2000-06-18  Jim Meyering  <meyering@lucent.com>
132622         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
132624         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
132625         `checking whether...' message to be consistent with that of the
132626         lstat test.
132628 2000-06-18  Jim Meyering  <meyering@lucent.com>
132630         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
132631         Besides, these days every porting target provides a mkdir function.
132633         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
132634         needed. (this snippet comes from src/system.h).
132636 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
132638         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
132640 2000-06-15  Paul Eggert  <eggert@twinsun.com>
132642         * lib/human.c (adjust_value): New function.
132643         (human_readable_inexact): Apply rounding style even when
132644         printing approximate values.
132646 2000-06-14  Paul Eggert  <eggert@twinsun.com>
132648         * lib/human.c (human_readable_inexact): Allow an input block
132649         size that is not a multiple of the output block size, and vice versa.
132650         Reported by Piergiorgio Sartor.
132652 2000-06-14  Paul Eggert  <eggert@twinsun.com>
132654         * lib/getdate.y (get_date): Apply relative times after time
132655         zone indicator, not before.  Reported by Todd A. Jacobs.
132657 2000-06-13  Jim Meyering  <meyering@lucent.com>
132659         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
132661         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
132663 2000-06-12  Paul Eggert  <eggert@twinsun.com>
132665         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
132667 2000-06-12  Jim Meyering  <meyering@lucent.com>
132669         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
132670         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
132671         optional argument.
132672         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
132673         the optional argument, `lib'.
132675 2000-06-08  Jim Meyering  <meyering@lucent.com>
132677         * m4/largefile.m4: Remove file (now that it's part of autoconf).
132679 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132681         Rewrite largefile configuration so that we don't need to run
132682         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
132683         AC_CANONICAL_HOST in configure.in -- jmm]
132685         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
132686         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
132687         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
132688         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
132689         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
132690         All uses changed.
132691         Instead of inspecting the output of getconf, try to compile the
132692         test program without and with the macro definition.
132693         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
132694         for getconf.  Instead, check for the needed flags by compiling
132695         test programs.
132697 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132699         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
132701 2000-06-04  Jim Meyering  <meyering@lucent.com>
132703         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
132704         SunOS 4.1.4 for which gid_t is an unsigned type.
132706 2000-06-03  Jim Meyering  <meyering@lucent.com>
132708         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
132709         now that autoconf requires that.
132711         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
132712         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
132713         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
132715 2000-06-03  Jim Meyering  <meyering@lucent.com>
132717         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
132719 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132721         * m4/glibc21.m4: New file.
132722         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
132724 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132726         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
132727         newer, don't install charset.alias.
132728         * lib/config.charset: Change the Linux/glibc rules so they become empty
132729         on glibc-2.1 or newer.
132731 2000-06-02  Jim Meyering  <meyering@lucent.com>
132733         * lib/mountlist.c: Back out last change.  Instead, do this...
132734         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
132735         me_dummy member using the same `ignore'-testing code.
132736         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
132737         fs_type strings.
132738         From Mark D. Roth.
132740 2000-05-29  Jim Meyering  <meyering@lucent.com>
132742         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
132743         mounts with the `ignore' attribute.  Based on a patch from
132744         Mark D. Roth.
132746 2000-05-28  Jim Meyering  <meyering@lucent.com>
132748         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
132749         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132750         * m4/stat.m4: Likewise.
132751         * m4/lstat.m4: Likewise.
132752         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
132754         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
132755         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
132757 2000-05-26  Jim Meyering  <meyering@lucent.com>
132759         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
132761 2000-05-24  Jim Meyering  <meyering@lucent.com>
132763         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
132764         autoconf requires that.
132765         * m4/lib-check.m4: Likewise.
132766         * m4/jm-macros.m4: Likewise.
132767         * m4/strftime.m4: Likewise.
132769         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
132770         AC_CHECK_DECLS, now that autoconf requires that.
132772 2000-05-22  Jim Meyering  <meyering@lucent.com>
132774         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132775         * m4/lstat.m4: Likewise.
132777 2000-05-22  Jim Meyering  <meyering@lucent.com>
132779         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
132781 2000-05-20  Jim Meyering  <meyering@lucent.com>
132783         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
132784         (jm_PREREQ): Use it.
132786 2000-05-18  Jim Meyering  <meyering@lucent.com>
132788         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
132789         back, too, since it may have been modified by allocate_entry.
132790         (hash_delete): Rewrite to use neither the assignment operator
132791         nor the comma operator in an if-expression.
132793 2000-05-15  Paul Eggert  <eggert@twinsun.com>
132795         * lib/closeout.c:
132796         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
132797         Remove; no longer needed.
132798         "quotearg.h": Add include.
132799         (file_name): Do not bother to explicitly initialize to NULL; it's less
132800         efficient on some hosts.
132801         (close_stdout_status): Remove test as to whether stdout was already
132802         closed; it breaks for the case "echo x | sort >&-".
132803         Quote file name colons.
132804         Do not assume that _("write error") lacks format strings.
132806 2000-05-15  Jim Meyering  <meyering@lucent.com>
132808         * lib/version-etc.c (version_etc_copyright): Update the copyright
132809         string used in all --version output.
132811 2000-05-14  Jim Meyering  <meyering@lucent.com>
132813         * lib/closeout.c (close_stdout_set_file_name): New function.
132814         (close_stdout_status): Use new file-scoped global.
132815         Return right away if fstat says the stdout file descriptor is invalid.
132816         * lib/closeout.h (close_stdout_set_file_name): Declare.
132818 2000-05-10  Jim Meyering  <meyering@lucent.com>
132820         * lib/closeout.c [default_exit_status]: New file-scoped variable.
132821         (close_stdout_set_status): New function.
132822         * lib/closeout.h (close_stdout_set_status): Declare.
132824 2000-05-09  Jim Meyering  <meyering@lucent.com>
132826         * m4/gettext.m4: Rename this...
132827         * m4/libintl.m4: ...to this.
132829 2000-05-08  Jim Meyering  <meyering@lucent.com>
132831         * lib/long-options.c: Don't include closeout.h.
132832         (parse_long_options): Don't call close_stdout for --version.
132834 2000-05-06  Paul Eggert  <eggert@twinsun.com>
132836         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
132837         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
132838         2.1.3 bug.  This avoids a clash when files like regex.c define
132839         _GNU_SOURCE.
132841 2000-05-06  Jim Meyering  <meyering@lucent.com>
132843         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
132844         (AC_REPLACE_FUNCS): Add strnlen.
132846         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
132847         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
132849         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
132850         AC_SEARCH_LIBS call for nanosleep.
132851         (LIB_NANOSLEEP): Set and AC_SUBST.
132853 2000-05-06  Jim Meyering  <meyering@lucent.com>
132855         * lib/strnlen.c: Undefine __strnlen and strnlen.
132856         [!weak_alias]: Define __strnlen to strnlen.
132858         * lib/atexit.c: New file, from libiberty.
132860 2000-05-06  Jim Meyering  <meyering@lucent.com>
132862         * lib/closeout.c (close_stdout_status): Also check for errors on the
132863         stderr stream.
132865 2000-05-05  Jim Meyering  <meyering@lucent.com>
132867         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
132868         AC_SEARCH_LIBS call for clock_gettime.
132869         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
132871         * m4/search-libs.m4: Update from autoconf.
132873         su doesn't work on Solaris 2.6.
132874         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
132875         <shadow.h>.  Reported by Dragos Harabor.
132877 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
132879         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
132880         memcpy instead of xmalloc, xrealloc, path_concat.
132881         (locale_charset): Treat empty environment variables as absent.
132882         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
132884 2000-05-04  Jim Meyering  <meyering@lucent.com>
132886         * lib/getopt.c: Update from glibc.
132887         * lib/obstack.c: Likewise.
132888         * lib/obstack.h: Likewise.
132889         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
132890         file
132892         * lib/regex.h: Likewise.
132893         * lib/strndup.c: Likewise.
132894         * lib/strnlen.c: New file, from glibc.
132896 2000-05-03  Jim Meyering  <meyering@lucent.com>
132898         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
132900 2000-05-02  Paul Eggert  <eggert@twinsun.com>
132902         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
132903         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
132904         compile-time test, rather than inspecting host and OS, to
132905         decide whether to define _LARGEFILE_SOURCE.
132907 2000-05-01  Jim Meyering  <meyering@lucent.com>
132909         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
132911         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
132912         Based on a patch from Bruno Haible.
132914 2000-05-01  Jim Meyering  <meyering@lucent.com>
132916         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
132918 2000-04-29  Jim Meyering  <meyering@lucent.com>
132920         * lib/path-concat.c: Declare strdup only if it's not defined.
132921         * lib/canon-host.c: Likewise.
132923 2000-04-28  Jim Meyering  <meyering@lucent.com>
132925         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
132926         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
132927         is included first, then limits.h is included by locale.h by libintl.h.
132928         From John David Anglin.
132930 2000-04-25  Jim Meyering  <meyering@lucent.com>
132932         * lib/makepath.c (S_IRWXUGO): Define.
132933         (make_path): Always perform explicit chmod if MODE specifies any
132934         of the `special' permission bits.  Prompted by a bug report against
132935         install from Mate Wierdl and Joost van Baal.
132937 2000-04-18  Jim Meyering  <meyering@lucent.com>
132939         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
132940         (jm_PREREQ): Use it.
132942 2000-04-18  Jim Meyering  <meyering@lucent.com>
132944         * lib/README: New file.
132946         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
132947         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
132949 2000-04-17  Jim Meyering  <meyering@lucent.com>
132951         Get it right :-)
132952         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
132953         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
132954         Suggestion from Akim Demaille.
132956 2000-04-17  Jim Meyering  <meyering@lucent.com>
132958         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
132959         the definition of it to rpl_strftime also defined-away the system's
132960         declaration.
132962 2000-04-15  Jim Meyering  <meyering@lucent.com>
132964         Use `C' to denote so-called `contiguous' files, the same way
132965         that tar does.
132966         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
132967         (ftypelet): Use S_ISCTG.
132968         From Michael Deutschmann.
132970 2000-04-14  Jim Meyering  <meyering@lucent.com>
132972         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
132973         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
132974         clobbered.
132976 2000-04-14  Jim Meyering  <meyering@lucent.com>
132978         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
132980 2000-04-13  Jim Meyering  <meyering@lucent.com>
132982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
132983         AH_VERBATIM to insert required #ifndef into config.h.in.
132984         Suggestion from Akim Demaille.
132986 2000-04-12  Jim Meyering  <meyering@lucent.com>
132988         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
132989         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
132990         Christian Krackowizer.
132992         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
132993         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
132994         (AC_SYS_LARGEFILE): Require.
132995         (AM_C_PROTOTYPES): Require.
132997 2000-04-08  Jim Meyering  <meyering@lucent.com>
132999         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
133000         names don't conflict.  Reported by Eli Zaretskii.
133002 2000-04-07  Jim Meyering  <meyering@lucent.com>
133004         * lib/putenv.c: Move inclusion of errno.h so it follows that of
133005         sys/types.h, to work around system header problems on AIX 3.2.5.
133006         From Bruno Haible.
133008 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
133010         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
133011         bug.  Deal with the different error behavior of Irix iconv.
133013 2000-04-05  Paul Eggert  <eggert@twinsun.com>
133015         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
133016         IRIX if the installer said otherwise.
133018 2000-04-05  Jim Meyering  <meyering@lucent.com>
133020         Portability tweaks required for ultrix4.3.
133021         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
133022         (jm_CHECK_DECLS): Add getutent to the list of functions.
133023         (_jm_DECL_HEADERS): Add utmpx.h.
133024         From John David Anglin.
133026         * m4/strftime.m4: Back out the 2000-04-02 change.
133027         Instead of that change, simply undefine putenv in the test program.
133029 2000-04-05  Jim Meyering  <meyering@lucent.com>
133031         Portability tweaks required for ultrix4.3.
133032         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
133033         getutent.
133034         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
133035         * lib/canon-host.c: Declare strdup.
133036         * lib/path-concat.c: Likewise.
133037         From John David Anglin.
133039 2000-04-04  Jim Meyering  <meyering@lucent.com>
133041         Be more DOS 8.3-friendly.
133042         * lib/ref-add.sin: Renamed from ref-add.sed.in.
133043         * lib/ref-del.sin: Renamed from ref-del.sed.in.
133044         * lib/Makefile.am: Reflect renaming.
133045         Reported by Eli Zaretskii.
133047         Use a temporary file name that won't clash with `charset.alias'
133048         in the DOS 8.3 name space.
133049         * lib/Makefile.am (charset_tmp): Define.
133050         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
133051         (uninstall-local): Likewise.
133052         Reported by Eli Zaretskii.
133054 2000-04-03  Jim Meyering  <meyering@lucent.com>
133056         * m4/gettext.m4: Fix typo in comment.
133058         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
133059         textutils/configure.in).  Suggestion from Paul Eggert.
133060         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
133062 2000-04-02  Paul Eggert  <eggert@twinsun.com>
133064         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
133065         variable in the shell rather than using putenv, which isn't
133066         portable.  This avoids the configure-time inter-test dependency
133067         on the potentially-renamed putenv function.
133069 2000-03-30  Paul Eggert  <eggert@twinsun.com>
133071         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
133072         before checking struct stat.st_blksize, so that
133073         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
133075 2000-03-29  Paul Eggert  <eggert@twinsun.com>
133077         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
133078         since strftime.c uses HAVE_STRFTIME to decide whether to use
133079         the underlying strftime.
133081 2000-03-29  Paul Eggert  <eggert@twinsun.com>
133083         * lib/time/strftime.c (my_strftime): Make sure we call the system
133084         strftime, not ourselves, when invoking the underlying strftime.
133086 2000-03-24  Jim Meyering  <meyering@lucent.com>
133088         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
133089         (charset_alias): Define.
133090         (install-exec-local): Factor out common code.
133091         (uninstall-local): Split lines longer than 80.
133092         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
133093         (SUFFIXES): Define.
133094         (.sed.in.sed): New rule.  Don't redirect directly to $@.
133095         (CLEANFILES): Add ref-add.sed and ref-del.sed.
133097 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
133099         * lib/config.charset: Output a line containing "Packages using this
133100         file".
133101         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
133102         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
133103         ref-del.sed): New rules.
133105 2000-03-17  Jim Meyering  <meyering@lucent.com>
133107         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
133108         Otherwise, include <strings.h>
133110 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
133112         * lib/unicodeio.c (utf8_wctomb): New function.
133113         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
133114         format instead of in UCS-4 with platform dependent endianness.
133116 2000-03-10  Jim Meyering  <meyering@lucent.com>
133118         * m4/lib-check.m4: Look for getspnam in -lgen, too.
133119         From Marco Franzen.
133121 2000-03-07  Paul Eggert  <eggert@twinsun.com>
133123         * lib/savedir.c (savedir): Work even if directory size is
133124         negative; this can happen with some screwy NFS configurations.
133126 2000-03-06  Jim Meyering  <meyering@lucent.com>
133128         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
133129         if it's NULL (because we ran out of memory).  From Bruno Haible.
133131 2000-03-05  Jim Meyering  <meyering@lucent.com>
133133         * lib/localcharset.c ("path-concat.h"): Include.
133134         (get_charset_aliases): Use path_concat instead of ANSI string
133135         concatenation.
133137         * lib/unicodeio.h (PARAMS): Define.
133138         Use it to guard prototype.
133140 2000-03-04  Jim Meyering  <meyering@lucent.com>
133142         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
133143         for lib/localcharset.c.
133145 2000-03-04  Jim Meyering  <meyering@lucent.com>
133147         * lib/Makefile.am (install-exec-local): Create $(libdir) before
133148         installing into it.
133149         (uninstall-local): Uncomment this rule so `make distcheck' works
133150         once again.
133152         * lib/unicodeio.c (<errno.h>): Include it.
133153         (errno): Declare if not defined.
133155         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
133157         * lib/config.charset: New version, incorporating remarks from a linux
133158         i18n mailing list.  From Bruno Haible.
133160 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
133162         * m4/codeset.m4: New file.
133163         * m4/iconv.m4: New file.
133164         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
133166 2000-03-03  Jim Meyering  <meyering@lucent.com>
133168         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
133170 2000-03-02  Jim Meyering  <meyering@lucent.com>
133172         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
133173         the messages come out on separate lines.
133175         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
133176         rather than jm_CHECK_DECLARATIONS.
133177         * m4/decl.m4: Remove now-unused file.
133179         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
133180         geteuid.
133182 2000-03-02  Jim Meyering  <meyering@lucent.com>
133184         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
133186 2000-03-01  Jim Meyering  <meyering@lucent.com>
133188         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
133189         * lib/unicodeio.c: Likewise.
133191 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
133193         * lib/config.charset: New file.
133194         * lib/localcharset.c: New file.
133195         * lib/unicodeio.h, lib/unicodeio.c: New files.
133196         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
133197         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
133198         (noinst_HEADERS): Add unicodeio.h.
133199         (all-local, install-exec-local, charset.alias): New targets.
133201 2000-02-28  Paul Eggert  <eggert@twinsun.com>
133203         * lib/quotearg.c (ALERT_CHAR): New macro.
133204         (quotearg_buffer_restyled): Use it.
133206 2000-02-27  Jim Meyering  <meyering@lucent.com>
133208         * m4/check-decl.m4: Add getenv to the list.
133210 2000-02-27  Jim Meyering  <meyering@lucent.com>
133212         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
133213         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
133215         * lib/backupfile.c: Guard inclusion of stdlib.h with
133216         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
133217         Declare malloc if needed.
133219         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
133220         `#ifndef HAVE_DECL..'
133221         now that autoconf always defines the HAVE_DECL_ symbols.
133222         * lib/human.c: Likewise.
133223         * lib/same.c: Likewise.
133224         * lib/strtoumax.c: Likewise.
133226         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
133227         declaration check was not run.
133228         * lib/hash.c: Likewise.
133229         * lib/human.c: Likewise.
133230         * lib/same.c: Likewise.
133231         * lib/strtoumax.c: Likewise.
133233         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
133234         `.', then first look up the entire `.'-containing string as a login
133235         name.
133237 2000-02-23  Jim Meyering  <meyering@lucent.com>
133239         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
133240         in place of my hack.
133242 2000-02-18  Paul Eggert  <eggert@twinsun.com>
133244         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
133245         (textint): New typedef.
133246         (parser_control): Member year changed from int to textint.
133247         All uses changed.
133248         (YYSTYPE): Removed; replaced by %union with int and textint members.
133249         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
133250         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
133251         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
133252         (tSNUMBER, tUNUMBER): Now of type <textintval>.
133253         (date, number, to_year): Use width of number in digits, not its value,
133254         to determine whether it's a 2-digit year, or a 2-digit time.
133255         (yylex): Store number of digits of numeric tokens.
133256         Reported by John Kendall.
133258         (parser_control): Changed from struct parser_control to typedef (for
133259         consistency).  All uses changed.
133261         (tID): Removed; not used.
133262         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
133264 2000-02-14  Paul Eggert  <eggert@twinsun.com>
133266         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
133267         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
133269 2000-02-12  Jim Meyering  <meyering@lucent.com>
133271         * lib/userspec.c (ISDIGIT): Define it.
133272         (isdigit): Remove definition.
133273         (is_number): Use ISDIGIT, not isdigit.
133274         <libintl.h>: Include.
133275         (_ and N_): Define.
133276         (parse_user_spec): Mark translatable strings.
133278 2000-02-10  Jim Meyering  <meyering@lucent.com>
133280         With these changes, nanosleep.[ch] are finally enough like the other
133281         lib/* replacement files to compile on a few more losing systems.
133283         * lib/nanosleep.h: Don't include config.h.
133284         Remove prototype from declaration of nanosleep.
133285         (PARAMS): Remove now-unneeded definition.
133286         * lib/nanosleep.c: #undef nanosleep.
133287         (rpl_nanosleep): Rename from nanosleep.
133289 2000-02-10  Jim Meyering  <meyering@lucent.com>
133291         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
133292         gnu_nanosleep to rpl_nanosleep.
133294 2000-02-09  Jim Meyering  <meyering@lucent.com>
133296         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
133297         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
133299 2000-02-08  Akim Demaille  <akim@epita.fr>
133301         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
133302         `[' and `]' and remove uses of `changequote'.
133303         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
133304         (AC_SYS_LARGEFILE): Likewise.
133305         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
133306         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
133307         of changequote.
133308         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
133309         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
133310         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
133311         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
133313 2000-02-05  Jim Meyering  <meyering@lucent.com>
133315         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
133316         Remove explicit use of AC_HEADER_TIME.  It is required by
133317         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
133318         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
133319         in autoconf whereby the expansion of the latter ended up preceding
133320         the expansion of its prerequisite, AC_HEADER_TIME.
133321         Reported by Volker Borchert.
133323 2000-02-03  Jim Meyering  <meyering@lucent.com>
133325         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
133327 2000-02-03  Jim Meyering  <meyering@lucent.com>
133329         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
133330         rather than with `#if HAVE_UTMPNAME'.
133332 2000-02-02  Jim Meyering  <meyering@lucent.com>
133334         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
133335         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
133336         Reported by Eli Zaretskii.
133338 2000-02-01  Jim Meyering  <meyering@lucent.com>
133340         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
133342 2000-01-31  Jim Meyering  <meyering@lucent.com>
133344         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
133345         functions.  Add the time.h and sys/time.h headers along with the
133346         AC_REQUIRE'ment of AC_HEADER_TIME.
133348 2000-01-31  Jim Meyering  <meyering@lucent.com>
133350         * lib/nanosleep.h (nanosleep): Guard declaration with
133351         `#if ! HAVE_DECL_NANOSLEEP'.
133352         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
133353         the declaration in that vendor's sys/timers.h.
133354         Reported by Christian Krackowizer.
133356         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
133357         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
133358         (ISPRINT): Likewise.
133359         Reported by Tom Tromey.
133361 2000-01-30  Jim Meyering  <meyering@lucent.com>
133363         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
133365         * m4/prereq.m4 (utmp_includes): Define.
133366         Check for ut_user and ut_name members in both struct utmpx
133367         and struct utmp.
133369 2000-01-30  Jim Meyering  <meyering@lucent.com>
133371         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
133372         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
133373         header files where only utmpx.ut_user is declared.
133375         * lib/readutmp.h (UT_USER): Define.
133377 2000-01-29  Jim Meyering  <meyering@lucent.com>
133379         * m4/lib-check.m4: New file containing library-related checks from
133380         fileutils and sh-utils (textutils had none).
133382 2000-01-28  Jim Meyering  <meyering@lucent.com>
133384         * m4/perl.m4: Change format of warning message to look more like that
133385         from the missing script.  Suggestion from François Pinard.
133387 2000-01-25  Jim Meyering  <meyering@lucent.com>
133389         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
133390         well as time.h in the compile check.
133391         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
133392         Fix typo in cross-compiling case: s/yes/no/.
133394 2000-01-23  Jim Meyering  <meyering@lucent.com>
133396         * m4/jm-macros.m4: Move df-related tests here from
133397         fileutils/configure.in
133399         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
133400         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
133402         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
133403         s/space/ac_fsusage_space/.
133404         (jm_FILE_SYSTEM_USAGE): Take two parameters.
133406         * m4/ftruncate.m4: New file (derived from part of
133407         fileutils/configure.in).
133408         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
133409         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
133411         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
133412         AC_SUBST these here, rather than just in sh-util/configure.in, so
133413         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
133414         all the same.
133415         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
133416         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
133417         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
133418         (AC_SUBST(POW_LIBM)): Likewise.
133419         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
133421 2000-01-23  Jim Meyering  <meyering@lucent.com>
133423         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
133424         obstack.c.
133426 2000-01-22  Jim Meyering  <meyering@lucent.com>
133428         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
133430         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
133432         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
133433         configure.in
133434         (AC_CHECK_HEADERS): Likewise for sh-utils.
133435         (AC_CHECK_HEADERS): Likewise for textutils.
133436         Merge the three lists of headers.
133438         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
133439         from fileutils' configure.in.
133441         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
133442         code. Moved tests into their own function (_jm_DECL_HEADERS) in
133443         check-decl.m4.
133445         * m4/check-decl.m4: Use #if rather than #ifdef.
133446         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
133447         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
133448         (_jm_DECL_HEADERS): Define new function.
133449         (jm_CHECK_DECLARATIONS): Require it.
133451 2000-01-22  Jim Meyering  <meyering@lucent.com>
133453         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
133454         [! HAVE_DECL_STRTOULL]: Declare strtoull.
133455         Required for some AIX systems.  Reported by Christian Krackowizer.
133456         [TESTING] (main): New function.
133458         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
133459         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
133460         letters.
133462         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
133463         iswprint.
133465         * lib/strverscmp.c (ISDIGIT): Define.
133466         (strverscmp): Use ISDIGIT, not isdigit.
133468 2000-01-19  Jim Meyering  <meyering@lucent.com>
133470         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
133471         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
133472         defines `struct timespec' in <sys/time.h>
133474         * m4/c-bs-a.m4: Remove uses of changequote altogether.
133475         Thanks to Akim for explaining.
133477 2000-01-17  Paul Eggert  <eggert@twinsun.com>
133479         * lib/nanosleep.c (nanosleep):
133480         Don't use SA_INTERRUPT to decide whether to call sigaction, as
133481         POSIX.1 doesn't require SA_INTERRUPT and some systems
133482         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
133483         it's been part of POSIX.1 since day 1 (in 1988).
133485 2000-01-17  Jim Meyering  <meyering@lucent.com>
133487         * lib/interlock: Remove unused file.  Reported by François Pinard.
133489 2000-01-16  Paul Eggert  <eggert@twinsun.com>
133491         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
133492         alert, backslash, formfeed, and vertical tab unnecessarily in
133493         shell quoting style.
133495 2000-01-16  Jim Meyering  <meyering@lucent.com>
133497         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
133498         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
133499         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
133500         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
133502 2000-01-16  Jim Meyering  <meyering@lucent.com>
133504         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
133505         because the latter didn't work.
133507 2000-01-15  Jim Meyering  <meyering@lucent.com>
133509         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
133510         (AC_REPLACE_FUNCS): Add memcpy and memset.
133511         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
133512         Add strpbrk.
133513         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
133515 2000-01-12  Jim Meyering  <meyering@lucent.com>
133517         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
133518         (jm_PREREQ): Use it.
133519         (jm_PREREQ_READUTMP): New macro.
133520         (jm_PREREQ): Use it.
133522 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133524         Quote multibyte characters correctly.
133525         * m4/c-bs-a.m4: New file.
133526         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
133527         (jm_PREREQ): Use it.
133529 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133531         * m4/uintmax_t.m4: Port to autoconf 2.13.
133533 2000-01-08  Jim Meyering  <meyering@ascend.com>
133535         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
133536         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
133538 2000-01-04  Jim Meyering  <meyering@ascend.com>
133540         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
133541         jm_STRUCT_DIRENT_D_TYPE.
133542         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
133543         jm_STRUCT_DIRENT_D_INO.
133544         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
133545         jm_STRUCT_UTIMBUF.
133546         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
133547         renamings.
133548         * m4/utime.m4: Likewise.
133550         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
133551         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
133553 2000-01-03  Paul Eggert  <eggert@twinsun.com>
133555         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
133556         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
133558 2000-01-02  Jim Meyering  <meyering@ascend.com>
133560         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
133561         remember if this is necessary.
133563 1999-12-26  Jim Meyering  <meyering@ascend.com>
133565         * m4/jm-macros.m4: Use it here.
133566         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
133568 1999-12-23  Jim Meyering  <meyering@ascend.com>
133570         * m4/jm-macros.m4: Check for clock_gettime (moved from
133571         fileutils/configure.in)
133572         Check for gettimeofday.
133574 1999-12-20  Jim Meyering  <meyering@ascend.com>
133576         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
133577         autoconf-2.14a-1999-12-20.
133579 1999-12-19  Jim Meyering  <meyering@ascend.com>
133581         * m4/lstat-slash.m4: New file.
133582         * m4/jm-macros.m4: Use the new macro:
133583         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133585 1999-12-07  Jim Meyering  <meyering@ascend.com>
133587         * m4/perl.m4: Require that File::Compare be available, too.
133588         Too many systems seem to lack it.
133590         * m4/strftime.m4: Add checks for most of the cpp macros tested in
133591         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
133593 1999-11-18  Paul Eggert  <eggert@twinsun.com>
133595         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
133596         problem with the QNX 4.25 shell, which doesn't propagate exit
133597         status of failed commands inside shell assignments.
133599 1999-11-17  Jim Meyering  <meyering@ascend.com>
133601         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
133603 1999-11-07  Jim Meyering  <meyering@ascend.com>
133605         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
133607 1999-11-06  Jim Meyering  <meyering@ascend.com>
133609         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
133610         * m4/jm-macros.m4 (jm_MACROS): Use it here.
133612 1999-11-05  Jim Meyering  <meyering@ascend.com>
133614         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
133615         configure.in of textutils, fileutils, and sh-utils into this one
133616         (shared between those packages) file.
133617         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
133618         AC_STRUCT_ST_BLKSIZE.
133620 1999-11-03  Jim Meyering  <meyering@ascend.com>
133622         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
133623         of AC_CHECK_TYPE checks includes unistd.h.
133624         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
133625         Suggestion from Akim Demaille.
133627 1999-10-30  Jim Meyering  <meyering@ascend.com>
133629         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
133630         m4-quoted string.
133631         * m4/ls-mntd-fs.m4: Likewise.
133632         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
133633         * m4/jm-winsz1.m4: Likewise.
133635         * m4/const.m4: Remove file, since the fix made it into the experimental
133636         version of autoconf.
133637         * m4/mktime.m4: Likewise.
133639         * m4/check-type.m4: Remove file, now that the latest version of
133640         AC_CHECK_TYPE takes a third arg to specify additional #includes.
133642         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
133643         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
133644         AC_CHECK_TYPE.
133646 1999-10-04  Jim Meyering  <meyering@ascend.com>
133648         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
133650 1999-09-22  Paul Eggert  <eggert@twinsun.com>
133652         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
133653         2.95.1 bug with HP-UX 10.20.
133655 1999-09-17  Jim Meyering  <meyering@ascend.com>
133657         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
133658         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
133659         due to missing strdup (against sh-utils-2.0).
133661 1999-08-29  Jim Meyering  <meyering@ascend.com>
133663         * m4/jm-macros.m4: Require jm_BISON.
133664         * m4/bison.m4: New file.
133666 1999-08-17  Paul Eggert  <eggert@twinsun.com>
133668         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
133669         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
133671 1999-08-05  Jim Meyering  <meyering@ascend.com>
133673         * m4/getline.m4: Rename test file from conftestdata to conftest.data
133674         to avoid conflicts with `conftest' on 8+3 filesystems.
133675         Suggestion from Eli Zaretskii.
133677 1999-08-04  Jim Meyering  <meyering@ascend.com>
133679         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
133680         fileutils and sh-utils (textutils's getline test was inadequate).
133681         (AM_FUNC_GETLINE): Run this test.
133682         (AC_CHECK_FUNCS): Check for getdelim.
133683         Reported by Bob Proulx.
133685 1999-08-02  Jim Meyering  <meyering@ascend.com>
133687         * m4/jm-macros.m4: Add a comment.
133689 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133691         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
133692         <inttypes.h> defines strtoumax as a macro (and not as a
133693         function).
133695 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133697         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
133698         that we can shift, multiply and divide unsigned long long
133699         values; Ultrix cc can't do it.
133701 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133703         * m4/mktime.m4: New file, which is a preview of what should appear
133704         in the next public autoconf release.
133706 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133708         * m4/lfs.m4: Remove this file.
133709         * m4/largefile.m4: New file.  It contains the old contents of
133710         lfs.m4, except that all names with prefix AC_LFS have been
133711         changed to use the prefix AC_SYS_LARGEFILE instead, to be
133712         compatible with future autoconf versions.  Also, some minor m4
133713         quoting problems have been fixed.
133715 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133717         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
133718         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
133719         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
133720         and simplify the shell code.
133722 1999-08-01  Jim Meyering  <meyering@ascend.com>
133724         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
133725         m4.
133727 1999-07-20  Jim Meyering  <meyering@ascend.com>
133729         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
133731 1999-07-15  Jim Meyering  <meyering@ascend.com>
133733         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
133735 1999-05-22  Jim Meyering  <meyering@ascend.com>
133737         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
133739 1999-05-20  Jim Meyering  <meyering@ascend.com>
133741         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
133742         Add a colon after each `then' in case $4 is empty.
133744 1999-05-16  Jim Meyering  <meyering@ascend.com>
133746         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
133748 1999-05-10  Jim Meyering  <meyering@ascend.com>
133750         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
133752         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
133753         AC_FUNC_MKTIME.
133755 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
133757         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
133759 1999-05-04  Paul Eggert  <eggert@twinsun.com>
133761         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
133762         not CPPFLAGS, so that linking works correctly in IRIX.
133764 1999-04-30  Paul Eggert  <eggert@twinsun.com>
133766         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
133768 1999-04-20  Paul Eggert  <eggert@twinsun.com>
133770         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
133771         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
133772         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
133773         jm_AC_TYPE_UNSIGNED_LONG_LONG.
133774         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
133776         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
133778 1999-04-20  Jim Meyering  <meyering@ascend.com>
133780         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
133781         AC_REPLACE xstroull if necessary.  From Paul Eggert.
133782         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
133784 1999-04-18  Jim Meyering  <meyering@ascend.com>
133786         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
133787         * m4/jm-macros.m4: Use it.
133789 1999-04-06  Jim Meyering  <meyering@ascend.com>
133791         * m4/strftime.m4: Remove test for %f.
133793 1999-03-29  Jim Meyering  <meyering@ascend.com>
133795         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
133796         superset of the AC_TYPE_* checks in the textutils, fileutils,
133797         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
133798         AC_TYPE_PID_T.
133800 1999-03-28  Jim Meyering  <meyering@ascend.com>
133802         * m4/jm-macros.m4: Define GNU_PACKAGE here.
133803         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
133804         replaced e.g., in the *.sh files of the sh-utils.
133806 1999-03-20  Jim Meyering  <meyering@ascend.com>
133808         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
133809         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
133810         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
133812 1999-03-19  Jim Meyering  <meyering@ascend.com>
133814         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
133816 1999-03-12  Jim Meyering  <meyering@ascend.com>
133818         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
133820 1999-03-07  Jim Meyering  <meyering@ascend.com>
133822         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
133823         declared.
133825 1999-02-17  Jim Meyering  <meyering@ascend.com>
133827         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
133828         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
133830 1999-02-07  Jim Meyering  <meyering@ascend.com>
133832         * m4/group-member.m4: New file -- extracted from sh-utils'
133833         configure.in.
133835         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
133836         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
133838 1999-02-06  Jim Meyering  <meyering@ascend.com>
133840         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
133841         * m4/fnmatch.m4: Likewise.
133842         * m4/getgroups.m4: Likewise.
133843         * m4/lstat.m4: Likewise.
133844         * m4/malloc.m4: Likewise.
133845         * m4/putenv.m4: Likewise.
133846         * m4/realloc.m4: Likewise.
133847         * m4/regex.m4: Likewise.
133848         * m4/stat.m4: Likewise.
133849         * m4/strftime.m4: Likewise.
133850         Suggestion from Alain Magloire.
133852         * m4/chown.m4: Use `.$ac_objext', not `.o'.
133853         * m4/fnmatch.m4: Likewise.
133854         * m4/getgroups.m4: Likewise.
133855         * m4/getline.m4: Likewise.
133856         * m4/lstat.m4: Likewise.
133857         * m4/malloc.m4: Likewise.
133858         * m4/memcmp.m4: Likewise.
133859         * m4/putenv.m4: Likewise.
133860         * m4/realloc.m4: Likewise.
133861         * m4/regex.m4: Likewise.
133862         * m4/stat.m4: Likewise.
133863         * m4/strftime.m4: Likewise.
133864         Suggestion from Alain Magloire.
133866         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
133867         an argument.
133869         * m4/regex.m4: Add a run-time Test for proper operation of
133870         re_compile_pattern.
133872 1999-01-31  Jim Meyering  <meyering@ascend.com>
133874         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
133876 1999-01-30  Jim Meyering  <meyering@ascend.com>
133878         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
133880         * m4/jm-mktime.m4: Make this a wrapper around the official
133881         AM_FUNC_MKTIME rather than my private copy, now that the official one
133882         is up to date.
133883         * m4/mktime.m4: Remove file.
133885         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
133886         * m4/uptime.m4: Likewise.
133887         * m4/uintmax_t.m4: Likewise.
133889 1999-01-28  Jim Meyering  <meyering@ascend.com>
133891         * m4/jm-macros.m4: Use jm_AFS.
133892         * m4/afs.m4: New file (from fileutils' configure.in).
133894         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
133895         * m4/chown.m4: Likewise.
133896         * m4/d-ino.m4: Likewise.
133897         * m4/d-type.m4: Likewise.
133898         * m4/fnmatch.m4: Likewise.
133899         * m4/getgroups.m4: Likewise.
133900         * m4/gettext.m4: Likewise.
133901         * m4/jm-mktime.m4: Likewise.
133902         * m4/jm-winsz2.m4: Likewise.
133903         * m4/lcmessage.m4: Likewise.
133904         * m4/ls-mntd-fs.m4: Likewise.
133905         * m4/malloc.m4: Likewise.
133906         * m4/memcmp.m4: Likewise.
133907         * m4/putenv.m4: Likewise.
133908         * m4/realloc.m4: Likewise.
133909         * m4/st_mtim.m4: Likewise.
133910         * m4/strftime.m4: Likewise.
133912 1999-01-16  Jim Meyering  <meyering@ascend.com>
133914         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
133915         (ARGMATCH_DIE_DECL): Define.
133917 1999-01-12  Jim Meyering  <meyering@ascend.com>
133919         * m4/Makefile.am.in: Rewrite to avoid using fmt.
133920         Reported by Lars Hecking.
133922 1999-01-10  Jim Meyering  <meyering@ascend.com>
133924         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
133925         gross kludge.
133926         * m4/inttypes_h.m4: Likewise.
133927         * m4/lstat.m4: Likewise.
133928         * m4/malloc.m4: Likewise.
133929         * m4/readdir.m4: Likewise.
133930         * m4/realloc.m4: Likewise.
133931         * m4/st_dm_mode.m4: Likewise.
133932         * m4/stat.m4: Likewise.
133933         * m4/utimbuf.m4: Likewise.
133934         * m4/utimes.m4: Likewise.
133936         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
133937         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
133938         comments in config.h.in are meaningful.
133940         * m4/jm-macros.m4: Require autoconf-2.13 here.
133942         * m4/regex.m4: By default, don't use the included regex.c on systems
133943         with glibc 2.  Suggestion from Uli Drepper.
133945 1999-01-02  Jim Meyering  <meyering@ascend.com>
133947         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
133949 1998-12-18  Jim Meyering  <meyering@ascend.com>
133951         * m4/Makefile.am.in (Makefile.am): Simplify rule.
133952         Based on a suggestion from Lars Hecking.
133954 1998-11-16  Paul Eggert  <eggert@twinsun.com>
133956         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
133958 1998-11-16  Jim Meyering  <meyering@ascend.com>
133960         * m4/lfs.m4: Double-quote the `uname...` expression.
133962 1998-11-14  Jim Meyering  <meyering@ascend.com>
133964         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
133965         * m4/stat.m4: Likewise.
133967 1998-11-03  Jim Meyering  <meyering@ascend.com>
133969         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
133970         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
133972 1998-10-18  Jim Meyering  <meyering@ascend.com>
133974         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
133976 1998-10-17  Jim Meyering  <meyering@ascend.com>
133978         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
133979         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
133980         calls for those previously hard-coded headers.  Instead, take a new
133981         parameter.
133982         (jm_CHECK_DECLARATIONS): Reflect interface change.
133983         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
133984         (jm_CHECK_DECL_LOCALTIME_R): New macro.
133986         * m4/mktime.m4: Test for spring-forward gap before long-running test.
133988 1998-10-14  Jim Meyering  <meyering@ascend.com>
133990         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
133991         instead of "TZ=America/Vancouver".  From Paul Eggert.
133993 1998-10-11  Jim Meyering  <meyering@ascend.com>
133995         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
133996         This adds a test for a recently added compatibility fix for mktime.c.
133997         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
133999 1998-09-27  Jim Meyering  <meyering@ascend.com>
134001         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
134003         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
134004         ../configure.in, including a change from Gordon Matzigkeit to allow
134005         cross-compiling for the Hurd.
134007         * m4/glibc.m4: New file/macro to test for the GNU C Library
134008         versions 1 and 2.  From Gordon Matzigkeit.
134009         Indent.
134011 1998-09-21  Jim Meyering  <meyering@ascend.com>
134013         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
134015 1998-08-18  Paul Eggert  <eggert@twinsun.com>
134017         Port nanosecond-resolution times to UnixWare 2.1.2 and
134018         pedantic Solaris 2.6.
134020         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
134021         AC_STRUCT_ST_MTIM.
134022         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
134023         Generate name of ns member, instead of just 1 or undef.
134024         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
134026 1998-08-15  Jim Meyering  <meyering@ascend.com>
134028         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
134029         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
134030         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
134031         instead of jm_TYPE_SSIZE_T.
134033 1998-08-12  Jim Meyering  <meyering@ascend.com>
134035         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
134037 1998-08-02  Jim Meyering  <meyering@ascend.com>
134039         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
134040         in acconfig.h manually.
134042 1998-07-31  Paul Eggert  <eggert@twinsun.com>
134044         * m4/st_mtim.m4: New file.
134046 1998-07-28  Jim Meyering  <meyering@ascend.com>
134048         * m4/utimes.m4: Undef stat.
134050 1998-07-25  Jim Meyering  <meyering@ascend.com>
134052         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
134053         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
134055 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
134057         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
134058         uid and gid actually remain unchanged.
134060 1998-07-07  Jim Meyering  <meyering@ascend.com>
134062         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
134064 1998-07-04  Jim Meyering  <meyering@ascend.com>
134066         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
134067         to prove that this macro can be used in packages without regex.c.
134069 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
134071         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
134072         is to be used.
134074 1998-07-03  Jim Meyering  <meyering@ascend.com>
134076         * m4/gettext.m4: Add -lintl if it's found to be necessary.
134078         * m4/gettext.m4: New file -- from gettext-0.10.35.
134079         * m4/lcmessage.m4: Likewise.
134080         * m4/progtest.m4: Likewise.
134082         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
134083         * m4/jm-macros.m4: Require the new macro.
134085 1998-06-29  Jim Meyering  <meyering@ascend.com>
134087         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
134088         for the definition of NGROUPS (used in a system header included
134089         by sys/mount.h).
134091 1998-06-28  Jim Meyering  <meyering@ascend.com>
134093         * m4/ls-mntd-fs.m4: New file.
134094         * m4/fstypename.m4: New file.
134096         * m4/jm-macros.m4: Require the new macro.
134097         * m4/jm-glibc-io.m4: New file.
134099 1998-05-19  Jim Meyering  <meyering@ascend.com>
134101         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
134102         * m4/lchown.m4: New file.
134104         * m4/Makefile.am.in: New file.
134105         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
134107 1998-05-14  Jim Meyering  <meyering@ascend.com>
134109         * m4/Makefile.am (EXTRA_DIST): Add them.
134110         * m4/jm-macros.m4: New file.
134111         * m4/utimbuf.m4: New file.
134113 1998-05-12  Jim Meyering  <meyering@ascend.com>
134115         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
134117 1998-05-11  Jim Meyering  <meyering@ascend.com>
134119         * m4/isc-posix.m4: New file.
134121 1998-05-10  Jim Meyering  <meyering@ascend.com>
134123         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
134125 1998-05-09  Jim Meyering  <meyering@ascend.com>
134127         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
134128         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
134129         with automake.
134131         * m4/ssize_t.m4: New file.
134132         * m4/mktime.m4: Remove file -- the new automake has this now.
134134 1998-04-26  Jim Meyering  <meyering@ascend.com>
134136         * m4/assert.m4: New file.
134137         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
134139 1998-04-05  Jim Meyering  <meyering@ascend.com>
134141         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
134142         (jm_PREREQ): Use it here.
134144 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
134146         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
134147         in acconfig.h.
134149 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
134151         * m4/prereq.m4: New file.
134152         * m4/error.m4: New file.
134153         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
134155 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
134157         * m4/getline.m4: Don't set am_cv_func_working_getline before the
134158         cache-check for the same variable -- that defeated the purpose of
134159         the test; the test program was never run.  This was a problem only
134160         on systems with losing getline functions -- HP-UX 10.20 is one.
134161         Reported by Bjorn Helgaas.
134163 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
134165         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
134167 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
134169         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
134171         * m4/const.m4: New file.  Use an initializer in this declaration
134172         typedef int charset[2]; const charset x;
134173         Reported by Bob Glickstein.
134175 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
134177         * m4/chown.m4: Fix reversed types on -1 args to chown.
134178         From Kaveh Ghazi.
134180 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
134182         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
134183         Add lseek and memchr.
134185         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
134186         T.E.Dickey <dickey@clark.net> said that some older preprocessors
134187         have a 20-character limit on names.
134189 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
134191         * m4/inttypes_h.m4: New file.
134192         * m4/uintmax_t.m4: New file.
134193         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
134196         -----
134198         Local Variables:
134199         coding: utf-8
134200         End:
134202         Copyright (C) 1997-2020 Free Software Foundation, Inc.
134204         Copying and distribution of this file, with or without
134205         modification, are permitted provided the copyright notice
134206         and this notice are preserved.